MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::PickPointManager::Params Struct Reference

#include <MRPickPointManager.h>

Public Attributes

int widgetContourCloseMod = getGlfwModPrimaryCtrl()
 Modifier key for closing a contour (ordered vector of points) using the widget.
 
int widgetDeletePointMod = GLFW_MOD_SHIFT
 Modifier key for deleting a point using the widget.
 
bool writeHistory = true
 Whether to write undo history of all operations including public modifying functions and user actions.
 
std::string historyNameSuffix
 This is appended to the names of all undo/redo actions.
 
bool startDraggingJustAddedPoint = true
 Whether to activate dragging new point immediately after its creation on mouse down.
 
SurfacePointWidget::Parameters surfacePointParams
 
Color ordinaryPointColor = Color::gray()
 The color of all pick spheres except the one with the largest index on each object.
 
Color lastPointColor = Color::green()
 The color of last by index pick sphere in open contour.
 
Color closeContourPointColor = Color::transparent()
 The color of last by index pick sphere in closed contour, which coincides in position with the first pick sphere.
 
Viewport::PickRenderObjectPredicate pickPredicate
 Predicate to additionally filter objects that should be treated as pickable.
 
AllowCallBack canAddPoint
 
PickerPointCallBack onPointAdd
 This callback is invoked after a point is added with its index.
 
AllowCallBack canMovePoint
 
PickerPointCallBack onPointMoveStart
 This callback is invoked when a point starts being dragged.
 
PickerPointCallBack onPointMove
 This callback is invoked every time after currently dragged point is moved (in between onPointMoveStart and onPointMoveFinish)
 
PickerPointCallBack onPointMoveFinish
 This callback is invoked when point's dragging is completed.
 
AllowCallBack canRemovePoint
 
PickerPointCallBack onPointRemove
 This callback is invoked when a point is removed with its index before deletion.
 
ChangeObjectCallBack onUpdatePoints
 

The documentation for this struct was generated from the following file: