Allows manage the selection, handle selection events (via observers object), set the filter to limit the selection. More...
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 | SetSelection (const ModelPrs_Selection &theSelection) |
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... | |
![]() | |
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. | |
![]() | |
Base_PublicObject (const internal::Base_HandledObject *theObject) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Allows manage the selection, handle selection events (via observers object), set the filter to limit the selection.
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.
void cadex::ModelPrs_SelectionManager::Unregister | ( | ) |
Unregister selection events observer.