#include <MRSurfaceContoursWidget.h>
|
MRVIEWER_API void | enable (bool isEnabled) |
|
MRVIEWER_API void | create (PickerPointCallBack onPointAdd, PickerPointCallBack onPointMove, PickerPointCallBack onPointMoveFinish, PickerPointCallBack onPointRemove, PickerPointObjectChecker isObjectValidToPick) |
|
MRVIEWER_API void | clear (bool writeHistory=true) |
|
MRVIEWER_API void | reset () |
|
const SurfaceContour & | getSurfaceContour (const std::shared_ptr< MR::VisualObject > &obj) |
|
const SurfaceContours & | getSurfaceContours () const |
|
bool | isClosedCountour (const std::shared_ptr< VisualObject > &obj) |
|
void | highlightLastPoint (const std::shared_ptr< VisualObject > &obj) |
|
MRVIEWER_API std::pair< std::shared_ptr< MR::VisualObject >, int > | getActivePoint () const |
|
MRVIEWER_API void | setActivePoint (std::shared_ptr< MR::VisualObject > obj, int index) |
|
MRVIEWER_API std::shared_ptr< SurfacePointWidget > | getActiveSurfacePoint () const |
| Get the active (the latest picked/moved) surface point widget.
|
|
MRVIEWER_API bool | appendPoint (const std::shared_ptr< VisualObject > &obj, const PickedPoint &triPoint) |
|
MRVIEWER_API bool | removePoint (const std::shared_ptr< VisualObject > &obj, int pickedIndex) |
|
MRVIEWER_API bool | closeContour (const std::shared_ptr< VisualObject > &objectToCloseCoutour) |
|
virtual | ~MultiListener ()=default |
|
virtual void | connect (Viewer *viewer, int group=0, boost::signals2::connect_position pos=boost::signals2::connect_position::at_back) |
|
virtual void | disconnect () |
|
◆ PickerPointCallBack
◆ PickerPointObjectChecker
◆ SurfaceContour
◆ SurfaceContours
◆ appendPoint()
MRVIEWER_API bool MR::SurfaceContoursWidget::appendPoint |
( |
const std::shared_ptr< VisualObject > & | obj, |
|
|
const PickedPoint & | triPoint ) |
◆ clear()
MRVIEWER_API void MR::SurfaceContoursWidget::clear |
( |
bool | writeHistory = true | ) |
|
clear temp internal variables.
- Parameters
-
writeHistory | - add history action (item in undo/redo). Set to false if you call the method as a part of another action. |
◆ closeContour()
MRVIEWER_API bool MR::SurfaceContoursWidget::closeContour |
( |
const std::shared_ptr< VisualObject > & | objectToCloseCoutour | ) |
|
◆ create()
◆ enable()
MRVIEWER_API void MR::SurfaceContoursWidget::enable |
( |
bool | isEnabled | ) |
|
◆ getActivePoint()
MRVIEWER_API std::pair< std::shared_ptr< MR::VisualObject >, int > MR::SurfaceContoursWidget::getActivePoint |
( |
| ) |
const |
◆ getActiveSurfacePoint()
MRVIEWER_API std::shared_ptr< SurfacePointWidget > MR::SurfaceContoursWidget::getActiveSurfacePoint |
( |
| ) |
const |
Get the active (the latest picked/moved) surface point widget.
◆ getSurfaceContour()
◆ getSurfaceContours()
const SurfaceContours & MR::SurfaceContoursWidget::getSurfaceContours |
( |
| ) |
const |
|
inlinenodiscard |
◆ highlightLastPoint()
void MR::SurfaceContoursWidget::highlightLastPoint |
( |
const std::shared_ptr< VisualObject > & | obj | ) |
|
◆ isClosedCountour()
bool MR::SurfaceContoursWidget::isClosedCountour |
( |
const std::shared_ptr< VisualObject > & | obj | ) |
|
|
nodiscard |
◆ removePoint()
MRVIEWER_API bool MR::SurfaceContoursWidget::removePoint |
( |
const std::shared_ptr< VisualObject > & | obj, |
|
|
int | pickedIndex ) |
◆ reset()
MRVIEWER_API void MR::SurfaceContoursWidget::reset |
( |
| ) |
|
◆ setActivePoint()
MRVIEWER_API void MR::SurfaceContoursWidget::setActivePoint |
( |
std::shared_ptr< MR::VisualObject > | obj, |
|
|
int | index ) |
◆ params
The documentation for this class was generated from the following file: