Plasma Engine  2.0
Loading...
Searching...
No Matches
plSelectionManager Class Reference

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 plDocumentObjectGetCurrentObject () 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 plDocumentGetDocument () const
 
plSharedPtr< plSelectionManager::StorageSwapStorage (plSharedPtr< plSelectionManager::Storage > pNewStorage)
 
plSharedPtr< plSelectionManager::StorageGetStorage ()
 

Public Attributes

plCopyOnBroadcastEvent< const plSelectionManagerEvent & > m_Events
 

Friends

class plDocument
 

Detailed Description

Selection Manager stores a set of selected document objects.


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