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.
 
SurfacePointWidget::Parameters surfacePointParams
 
MR::Color ordinaryPointColor = Color::gray()
 
MR::Color lastPointColor = Color::green()
 
MR::Color closeContourPointColor = Color::transparent()
 
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

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

Color for the special point used to close a contour. Better do not change it. Parameters affect to future points only

◆ historyNameSuffix

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

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

◆ lastPointColor

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

Color for the last modified point in the contour Parameters affect to future points only

◆ 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

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

Color for ordinary points in the contour Parameters affect to future points only

◆ pickPredicate

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

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

◆ 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: