SelectionSystem Class Reference

#include <iselection.h>

Data Structures

class  Visitor
 Visitor interface the for the selection system. More...

Public Types

enum  EMode { eEntity, ePrimitive, eComponent }
enum  EComponentMode { eDefault, eVertex, eEdge, eFace }
enum  EManipulatorMode {
  eTranslate, eRotate, eScale, eDrag,
  eClip
}

Public Member Functions

 INTEGER_CONSTANT (Version, 1)
 STRING_CONSTANT (Name,"selection")
virtual ~SelectionSystem ()
virtual void SetMode (EMode mode)=0
virtual EMode Mode () const =0
virtual void SetComponentMode (EComponentMode mode)=0
virtual EComponentMode ComponentMode () const =0
virtual void SetManipulatorMode (EManipulatorMode mode)=0
virtual EManipulatorMode ManipulatorMode () const =0
virtual SelectionChangeCallback getObserver (EMode mode)=0
virtual std::size_t countSelected () const =0
virtual std::size_t countSelectedComponents () const =0
virtual std::size_t countSelectedFaces () const =0
virtual bool areFacesSelected () const =0
virtual void onSelectedChanged (scene::Instance &instance, const Selectable &selectable)=0
virtual void onComponentSelection (scene::Instance &instance, const Selectable &selectable)=0
virtual scene::Instance & ultimateSelected () const =0
virtual scene::Instance & penultimateSelected () const =0
virtual void setSelectedAll (bool selected)=0
 Set the selection status of all objects in the scene.
virtual void setSelectedAllComponents (bool selected)=0
virtual void foreachSelected (const Visitor &visitor) const =0
 Use the provided Visitor object to enumerate each selected node.
virtual void foreachSelectedComponent (const Visitor &visitor) const =0
 Use the provided Visitor object to enumerate each selected component.
virtual void addSelectionChangeCallback (const SelectionChangeHandler &handler)=0
virtual void NudgeManipulator (const Vector3 &nudge, const Vector3 &view)=0
virtual void translateSelected (const Vector3 &translation)=0
virtual void rotateSelected (const Quaternion &rotation)=0
virtual void scaleSelected (const Vector3 &scaling)=0
virtual void pivotChanged () const =0

Detailed Description

Definition at line 85 of file iselection.h.


Member Enumeration Documentation

Enumerator:
eDefault 
eVertex 
eEdge 
eFace 

Definition at line 100 of file iselection.h.

Enumerator:
eTranslate 
eRotate 
eScale 
eDrag 
eClip 

Definition at line 106 of file iselection.h.

Enumerator:
eEntity 

entity editing

ePrimitive 

brush editing

eComponent 

vertex, edge or face editing

Definition at line 91 of file iselection.h.


Constructor & Destructor Documentation

virtual SelectionSystem::~SelectionSystem (  )  [inline, virtual]

Definition at line 111 of file iselection.h.


Member Function Documentation

virtual void SelectionSystem::addSelectionChangeCallback ( const SelectionChangeHandler handler  )  [pure virtual]
virtual bool SelectionSystem::areFacesSelected (  )  const [pure virtual]
virtual EComponentMode SelectionSystem::ComponentMode (  )  const [pure virtual]
virtual std::size_t SelectionSystem::countSelected (  )  const [pure virtual]
virtual std::size_t SelectionSystem::countSelectedComponents (  )  const [pure virtual]
virtual std::size_t SelectionSystem::countSelectedFaces (  )  const [pure virtual]
virtual void SelectionSystem::foreachSelected ( const Visitor visitor  )  const [pure virtual]

Use the provided Visitor object to enumerate each selected node.

Referenced by Scene_forEachSelectedBrush(), and Scene_forEachVisibleSelectedBrush().

virtual void SelectionSystem::foreachSelectedComponent ( const Visitor visitor  )  const [pure virtual]

Use the provided Visitor object to enumerate each selected component.

virtual SelectionChangeCallback SelectionSystem::getObserver ( EMode  mode  )  [pure virtual]
SelectionSystem::INTEGER_CONSTANT ( Version  ,
 
)
virtual EManipulatorMode SelectionSystem::ManipulatorMode (  )  const [pure virtual]
virtual EMode SelectionSystem::Mode (  )  const [pure virtual]
virtual void SelectionSystem::NudgeManipulator ( const Vector3 nudge,
const Vector3 view 
) [pure virtual]
virtual void SelectionSystem::onComponentSelection ( scene::Instance &  instance,
const Selectable selectable 
) [pure virtual]
virtual void SelectionSystem::onSelectedChanged ( scene::Instance &  instance,
const Selectable selectable 
) [pure virtual]
virtual scene::Instance& SelectionSystem::penultimateSelected (  )  const [pure virtual]
virtual void SelectionSystem::pivotChanged (  )  const [pure virtual]
virtual void SelectionSystem::rotateSelected ( const Quaternion rotation  )  [pure virtual]
virtual void SelectionSystem::scaleSelected ( const Vector3 scaling  )  [pure virtual]
virtual void SelectionSystem::SetComponentMode ( EComponentMode  mode  )  [pure virtual]
virtual void SelectionSystem::SetManipulatorMode ( EManipulatorMode  mode  )  [pure virtual]
virtual void SelectionSystem::SetMode ( EMode  mode  )  [pure virtual]
virtual void SelectionSystem::setSelectedAll ( bool  selected  )  [pure virtual]

Set the selection status of all objects in the scene.

Parameters:
selected true to select all objects, false to deselect all objects.
virtual void SelectionSystem::setSelectedAllComponents ( bool  selected  )  [pure virtual]
SelectionSystem::STRING_CONSTANT ( Name  ,
"selection"   
)
virtual void SelectionSystem::translateSelected ( const Vector3 translation  )  [pure virtual]
virtual scene::Instance& SelectionSystem::ultimateSelected (  )  const [pure virtual]

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

Generated by  doxygen 1.6.2