Cafu Engine
ToolManagerT Class Reference
Inheritance diagram for ToolManagerT:

Public Member Functions

 ToolManagerT (MapDocumentT &MapDoc, wxWindow *ParentToolOptions)
 The constructor. More...
 
 ~ToolManagerT ()
 The destructor. More...
 
const ArrayT< ToolT * > & GetTools () const
 Returns the array of all tools registered with and known to the tool manager. More...
 
ToolTGetTool (const cf::TypeSys::TypeInfoT &Type)
 Returns the tool instance matching the given type. More...
 
ToolTGetActiveTool () const
 Returns the currently active tool. More...
 
const cf::TypeSys::TypeInfoTGetActiveToolType () const
 Returns the type of the currently active tool. More...
 
void SetActiveTool (const cf::TypeSys::TypeInfoT *Type)
 Sets the tool of the given type as the currently active tool. More...
 
- Public Member Functions inherited from ToolsSubjectT
void RegisterObserver (ToolsObserverT *Obs)
 Registers the observer Obs for notification on changes in this class. More...
 
void UnregisterObserver (ToolsObserverT *Obs)
 Unregisters the observer Obs from further notification on changes in this class. More...
 
void UpdateAllObservers (ToolT *Tool, ToolsUpdatePriorityT Priority)
 Notifies all observers that something in the given tool changed so that they update themselves. More...
 
virtual ~ToolsSubjectT ()
 The virtual destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ToolsSubjectT
 ToolsSubjectT ()
 The constructor. It is protected so that only derived classes can create instances of this class. More...
 

Constructor & Destructor Documentation

ToolManagerT::ToolManagerT ( MapDocumentT MapDoc,
wxWindow *  ParentToolOptions 
)

The constructor.

ToolManagerT::~ToolManagerT ( )

The destructor.

Member Function Documentation

ToolT* ToolManagerT::GetActiveTool ( ) const
inline

Returns the currently active tool.

const cf::TypeSys::TypeInfoT * ToolManagerT::GetActiveToolType ( ) const

Returns the type of the currently active tool.

This method is just a convenience method that saves the caller the explicit check for NULL when calling GetActiveTool().

ToolT * ToolManagerT::GetTool ( const cf::TypeSys::TypeInfoT Type)

Returns the tool instance matching the given type.

NULL is returned when Type is not a type of a valid tool.

const ArrayT<ToolT*>& ToolManagerT::GetTools ( ) const
inline

Returns the array of all tools registered with and known to the tool manager.

void ToolManagerT::SetActiveTool ( const cf::TypeSys::TypeInfoT Type)

Sets the tool of the given type as the currently active tool.


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