MeshLib Documentation
Loading...
Searching...
No Matches
MR::BoundarySelectionWidget Class Reference

#include <MRMeshBoundarySelectionWidget.h>

+ Inheritance diagram for MR::BoundarySelectionWidget:

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
 

Member Typedef Documentation

◆ BoundarySelectionWidgetCallBack

using MR::BoundarySelectionWidget::BoundarySelectionWidgetCallBack = std::function<void( std::shared_ptr<const MR::ObjectMeshHolder> )>

◆ BoundarySelectionWidgetChecker

using MR::BoundarySelectionWidget::BoundarySelectionWidgetChecker = std::function<bool( std::shared_ptr<const MR::ObjectMeshHolder> )>

◆ HolesOnObject

using MR::BoundarySelectionWidget::HolesOnObject = std::vector<MR::EdgeId>

◆ PerObjectHoles

using MR::BoundarySelectionWidget::PerObjectHoles = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, HolesOnObject>

◆ PerObjectHolesPolylines

using MR::BoundarySelectionWidget::PerObjectHolesPolylines = std::unordered_map <std::shared_ptr<MR::ObjectMeshHolder>, std::vector<AncillaryLines>>

◆ PerObjectMeshChangedSignals

using MR::BoundarySelectionWidget::PerObjectMeshChangedSignals = std::unordered_map < std::shared_ptr<MR::ObjectMeshHolder>, boost::signals2::scoped_connection>

Member Function Documentation

◆ clear()

MRVIEWER_API void MR::BoundarySelectionWidget::clear ( )

◆ create()

MRVIEWER_API void MR::BoundarySelectionWidget::create ( BoundarySelectionWidgetCallBack onBoundarySelected,
BoundarySelectionWidgetChecker isObjectValidToPick )

◆ enable()

MRVIEWER_API void MR::BoundarySelectionWidget::enable ( bool isEnabled)

◆ getPointsForSelectedHole()

MRVIEWER_API std::vector< MR::Vector3f > MR::BoundarySelectionWidget::getPointsForSelectedHole ( ) const

◆ getSelectHole()

MRVIEWER_API std::pair< std::shared_ptr< MR::ObjectMeshHolder >, EdgeId > MR::BoundarySelectionWidget::getSelectHole ( ) const

◆ onObjectChange_()

void MR::BoundarySelectionWidget::onObjectChange_ ( )

◆ reset()

MRVIEWER_API void MR::BoundarySelectionWidget::reset ( )

◆ selectHole()

MRVIEWER_API bool MR::BoundarySelectionWidget::selectHole ( std::shared_ptr< MR::ObjectMeshHolder > object,
int index )

Friends And Related Symbol Documentation

◆ ChangeBoundarySelectionHistoryAction

Member Data Documentation

◆ params

BoundarySelectionWidgetParams MR::BoundarySelectionWidget::params

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