Hide menu
cadex::ModelPrs_SelectionManager Class Reference

Allows manage the selection, handle selection events (via observers object), set the filter to limit the selection. More...

Inheritance diagram for cadex::ModelPrs_SelectionManager:
cadex::Base_PublicObject

Public Types

typedef cadex::internal::ModelPrs_SelectionManagerImpl ImplType
 

Public Member Functions

void Select (const ModelPrs_Selection &theSelection)
 Adds the selection to the scene.
 
void Deselect (const ModelPrs_Selection &theSelection)
 Deletes the selection from the scene.
 
void DeselectAll ()
 Deletes any selections from the scene.
 
void SetFilter (ModelPrs_SelectionFilterType theFilter)
 Adds a filter on selectable entities.
 
void Register (ModelPrs_SelectionChangesObserver &theObserver)
 Register selection events observer. More...
 
void Unregister ()
 Unregister selection events observer. More...
 
- Public Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject ()
 Constructor. More...
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified. More...
 
 operator bool () const
 Casts the object to the bool type. More...
 
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 
const internal::Base_Handle & HImpl () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 
bool operator== (const Base_PublicObject &theObject) const
 
bool operator!= (const Base_PublicObject &theObject) const
 

Protected Member Functions

 ModelPrs_SelectionManager ()
 Constructor.
 
- Protected Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Allows manage the selection, handle selection events (via observers object), set the filter to limit the selection.

Warning
This class is a part of Visualization Toolkit add-on, which is licensed separately from the base CAD Exchanger SDK.

Member Function Documentation

◆ Register()

void cadex::ModelPrs_SelectionManager::Register ( ModelPrs_SelectionChangesObserver theObserver)

Register selection events observer.

theObserver must have a longer lifespan than the selection manager. If this cannot be guaranteed then the observer must be removed using the Unregister() method.

See also
Unregister(), ModelPrs_SelectionChangesObserver

◆ Unregister()

void cadex::ModelPrs_SelectionManager::Unregister ( )

Unregister selection events observer.

See also
Register(), ModelPrs_SelectionChangesObserver