![]() |
Plasma Engine
2.0
|
Selection Manager stores a set of selected document objects. More...
#include <SelectionManager.h>
Classes | |
class | Storage |
Public Member Functions | |
plSelectionManager (const plDocumentObjectManager *pObjectManager) | |
void | Clear () |
void | AddObject (const plDocumentObject *pObject) |
void | RemoveObject (const plDocumentObject *pObject, bool bRecurseChildren=false) |
void | SetSelection (const plDocumentObject *pSingleObject) |
void | SetSelection (const plDeque< const plDocumentObject * > &selection) |
void | ToggleObject (const plDocumentObject *pObject) |
const plDocumentObject * | GetCurrentObject () const |
Returns the last selected object in the selection or null if empty. | |
const plDeque< const plDocumentObject * > & | GetSelection () const |
Returns the selection in the same order the objects were added to the list. | |
bool | IsSelectionEmpty () const |
const plDeque< const plDocumentObject * > | GetTopLevelSelection () const |
Returns the subset of selected items which have no parent selected. I.e. if an object is selected and one of its ancestors is selected, it is culled from the list. Items are returned in the order of appearance in an expanded scene tree. | |
const plDeque< const plDocumentObject * > | GetTopLevelSelection (const plRTTI *pBase) const |
Same as GetTopLevelSelection() but additionally requires that all objects are derived from type pBase. | |
bool | IsSelected (const plDocumentObject *pObject) const |
bool | IsParentSelected (const plDocumentObject *pObject) const |
const plDocument * | GetDocument () const |
plSharedPtr< plSelectionManager::Storage > | SwapStorage (plSharedPtr< plSelectionManager::Storage > pNewStorage) |
plSharedPtr< plSelectionManager::Storage > | GetStorage () |
Public Attributes | |
plCopyOnBroadcastEvent< const plSelectionManagerEvent & > | m_Events |
Friends | |
class | plDocument |
Selection Manager stores a set of selected document objects.