#include <MRMeshBoundarySelectionWidget.h>
Classes | |
struct | BoundarySelectionWidgetParams |
Public Types | |
using | BoundarySelectionWidgetCallBack = std::function<void( std::shared_ptr<const MR::ObjectMeshHolder> )> |
using | BoundarySelectionWidgetChecker = std::function<bool( std::shared_ptr<const MR::ObjectMeshHolder> )> |
using | HolesOnObject = std::vector<MR::EdgeId> |
using | PerObjectHoles = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, HolesOnObject> |
using | PerObjectHolesPolylines = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, std::vector<AncillaryLines>> |
using | PerObjectMeshChangedSignals = std::unordered_map < std::shared_ptr<MR::ObjectMeshHolder>, boost::signals2::scoped_connection> |
Public Member Functions | |
MRVIEWER_API void | enable (bool isEnabled) |
MRVIEWER_API void | create (BoundarySelectionWidgetCallBack onBoundarySelected, BoundarySelectionWidgetChecker isObjectValidToPick) |
void | onObjectChange_ () |
MRVIEWER_API void | reset () |
MRVIEWER_API bool | selectHole (std::shared_ptr< MR::ObjectMeshHolder > object, int index) |
MRVIEWER_API void | clear () |
MRVIEWER_API std::pair< std::shared_ptr< MR::ObjectMeshHolder >, EdgeId > | getSelectHole () const |
MRVIEWER_API std::vector< MR::Vector3f > | getPointsForSelectedHole () const |
Public Member Functions inherited from MR::MultiListener< MouseDownListener, MouseMoveListener > | |
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 () |
Public Attributes | |
BoundarySelectionWidgetParams | params |
Friends | |
class | ChangeBoundarySelectionHistoryAction |
using MR::BoundarySelectionWidget::BoundarySelectionWidgetCallBack = std::function<void( std::shared_ptr<const MR::ObjectMeshHolder> )> |
using MR::BoundarySelectionWidget::BoundarySelectionWidgetChecker = std::function<bool( std::shared_ptr<const MR::ObjectMeshHolder> )> |
using MR::BoundarySelectionWidget::HolesOnObject = std::vector<MR::EdgeId> |
using MR::BoundarySelectionWidget::PerObjectHoles = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, HolesOnObject> |
using MR::BoundarySelectionWidget::PerObjectHolesPolylines = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, std::vector<AncillaryLines>> |
using MR::BoundarySelectionWidget::PerObjectMeshChangedSignals = std::unordered_map < std::shared_ptr<MR::ObjectMeshHolder>, boost::signals2::scoped_connection> |
MRVIEWER_API void MR::BoundarySelectionWidget::clear | ( | ) |
MRVIEWER_API void MR::BoundarySelectionWidget::create | ( | BoundarySelectionWidgetCallBack | onBoundarySelected, |
BoundarySelectionWidgetChecker | isObjectValidToPick ) |
MRVIEWER_API void MR::BoundarySelectionWidget::enable | ( | bool | isEnabled | ) |
MRVIEWER_API std::vector< MR::Vector3f > MR::BoundarySelectionWidget::getPointsForSelectedHole | ( | ) | const |
MRVIEWER_API std::pair< std::shared_ptr< MR::ObjectMeshHolder >, EdgeId > MR::BoundarySelectionWidget::getSelectHole | ( | ) | const |
void MR::BoundarySelectionWidget::onObjectChange_ | ( | ) |
MRVIEWER_API void MR::BoundarySelectionWidget::reset | ( | ) |
MRVIEWER_API bool MR::BoundarySelectionWidget::selectHole | ( | std::shared_ptr< MR::ObjectMeshHolder > | object, |
int | index ) |
|
friend |
BoundarySelectionWidgetParams MR::BoundarySelectionWidget::params |