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

#include <MRPickPointManager.h>

Public Attributes

int widgetContourCloseMod = GLFW_MOD_CONTROL
 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.
 
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.
 

Member Data Documentation

◆ canAddPoint

AllowCallBack MR::PickPointManager::Params::canAddPoint

This callback is invoked before addition of new point (with index=-1) by mouse (but not from API or history), the addition is canceled if this callback returns false

◆ canRemovePoint

AllowCallBack MR::PickPointManager::Params::canRemovePoint

This callback is invoked before removal of some point by mouse (but not from API or history), the removal is canceled if this callback returns false

◆ closeContourPointColor

Color MR::PickPointManager::Params::closeContourPointColor = Color::transparent()

The color of last by index pick sphere in closed contour, which coincides in position with the first pick sphere.

◆ historyNameSuffix

std::string MR::PickPointManager::Params::historyNameSuffix

This is appended to the names of all undo/redo actions.

◆ lastPointColor

Color MR::PickPointManager::Params::lastPointColor = Color::green()

The color of last by index pick sphere in open contour.

◆ onPointAdd

PickerPointCallBack MR::PickPointManager::Params::onPointAdd

This callback is invoked after a point is added with its index.

◆ onPointMove

PickerPointCallBack MR::PickPointManager::Params::onPointMove

This callback is invoked every time after currently dragged point is moved (in between onPointMoveStart and onPointMoveFinish)

◆ onPointMoveFinish

PickerPointCallBack MR::PickPointManager::Params::onPointMoveFinish

This callback is invoked when point's dragging is completed.

◆ onPointMoveStart

PickerPointCallBack MR::PickPointManager::Params::onPointMoveStart

This callback is invoked when a point starts being dragged.

◆ onPointRemove

PickerPointCallBack MR::PickPointManager::Params::onPointRemove

This callback is invoked when a point is removed with its index before deletion.

◆ ordinaryPointColor

Color MR::PickPointManager::Params::ordinaryPointColor = Color::gray()

The color of all pick spheres except the one with the largest index on each object.

◆ pickPredicate

Viewport::PickRenderObjectPredicate MR::PickPointManager::Params::pickPredicate

Predicate to additionally filter objects that should be treated as pickable.

◆ startDraggingJustAddedPoint

bool MR::PickPointManager::Params::startDraggingJustAddedPoint = true

Whether to activate dragging new point immediately after its creation on mouse down.

◆ surfacePointParams

SurfacePointWidget::Parameters MR::PickPointManager::Params::surfacePointParams

Parameters for configuring the surface point widget Parameters affect to future points only

◆ widgetContourCloseMod

int MR::PickPointManager::Params::widgetContourCloseMod = GLFW_MOD_CONTROL

Modifier key for closing a contour (ordered vector of points) using the widget.

◆ widgetDeletePointMod

int MR::PickPointManager::Params::widgetDeletePointMod = GLFW_MOD_SHIFT

Modifier key for deleting a point using the widget.

◆ writeHistory

bool MR::PickPointManager::Params::writeHistory = true

Whether to write undo history of all operations including public modifying functions and user actions.


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