Cafu Engine
ChildFrameT::UpdaterT Class Reference

A class that acts as an observer of the map document and the tools for the child frame. More...

Inheritance diagram for ChildFrameT::UpdaterT:

Public Member Functions

 UpdaterT (ChildFrameT *ChildFrame)
 
void NotifySubjectChanged (SubjectT *Subject, MapDocOtherDetailT OtherDetail)
 Notifies the observer that some other detail than those specifically addressed below has changed. More...
 
void NotifySubjectChanged_Selection (SubjectT *Subject, const ArrayT< MapElementT * > &OldSelection, const ArrayT< MapElementT * > &NewSelection)
 Notifies the observer that the selection in the current subject has been changed. More...
 
void NotifySubjectDies (SubjectT *dyingSubject)
 This method is called whenever a subject is about the be destroyed (and become unavailable). More...
 
void NotifySubjectChanged (ToolsSubjectT *Subject, ToolT *Tool, ToolsUpdatePriorityT Priority)
 Notifies the observer that the current subject has been changed. More...
 
- Public Member Functions inherited from ObserverT
virtual void NotifySubjectChanged_Groups (SubjectT *Subject)
 Notifies the observer that the groups in the current subject have been changed (new group added, group deleted, visibility changed, anything). More...
 
virtual void NotifySubjectChanged_Created (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &Entities)
 Notifies the observer that one or more entities have been created. More...
 
virtual void NotifySubjectChanged_Created (SubjectT *Subject, const ArrayT< MapPrimitiveT * > &Primitives)
 Notifies the observer that one or more map primitives have been created. More...
 
virtual void NotifySubjectChanged_Deleted (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &Entities)
 Notifies the observer that one or more entities have been deleted. More...
 
virtual void NotifySubjectChanged_Deleted (SubjectT *Subject, const ArrayT< MapPrimitiveT * > &Primitives)
 Notifies the observer that one or more map primitives have been deleted. More...
 
virtual ~ObserverT ()
 The virtual destructor. More...
 
virtual void NotifySubjectChanged_Modified (SubjectT *Subject, const ArrayT< MapElementT * > &MapElements, MapElemModDetailE Detail)
 
virtual void NotifySubjectChanged_Modified (SubjectT *Subject, const ArrayT< MapElementT * > &MapElements, MapElemModDetailE Detail, const ArrayT< BoundingBox3fT > &OldBounds)
 
virtual void Notify_EntChanged (SubjectT *Subject, const ArrayT< IntrusivePtrT< MapEditor::CompMapEntityT > > &Entities, EntityModDetailE Detail)
 
virtual void Notify_VarChanged (SubjectT *Subject, const cf::TypeSys::VarBaseT &Var)
 Notifies the observer that a variable has changed. More...
 
- Public Member Functions inherited from ToolsObserverT
virtual ~ToolsObserverT ()
 The virtual destructor. More...
 

Additional Inherited Members

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

Detailed Description

A class that acts as an observer of the map document and the tools for the child frame.

It updates the associated child frames status bar, tool options bar, etc. Note that the child frame could also derive from the observer classes and thus be the observer itself, but having the functionality encapsulated in a separate class like this increases clarity.

Member Function Documentation

void ChildFrameT::UpdaterT::NotifySubjectChanged ( SubjectT Subject,
MapDocOtherDetailT  OtherDetail 
)
virtual

Notifies the observer that some other detail than those specifically addressed below has changed.

Reimplemented from ObserverT.

void ChildFrameT::UpdaterT::NotifySubjectChanged ( ToolsSubjectT Subject,
ToolT Tool,
ToolsUpdatePriorityT  Priority 
)
virtual

Notifies the observer that the current subject has been changed.

Parameters
SubjectThe tools (tool manager) in which something has changed.
ToolThe specific tool that has changed.
PriorityThe priority with which the update should be implemented.

Reimplemented from ToolsObserverT.

void ChildFrameT::UpdaterT::NotifySubjectChanged_Selection ( SubjectT Subject,
const ArrayT< MapElementT * > &  OldSelection,
const ArrayT< MapElementT * > &  NewSelection 
)
virtual

Notifies the observer that the selection in the current subject has been changed.

Parameters
SubjectThe map document in which the selection has been changed.
OldSelectionArray of the previously selected objects.
NewSelectionArray of the new selected objects.

Reimplemented from ObserverT.

void ChildFrameT::UpdaterT::NotifySubjectDies ( SubjectT dyingSubject)
inlinevirtual

This method is called whenever a subject is about the be destroyed (and become unavailable).

Parameters
dyingSubjectThe subject that is being destroyed.

Implements ObserverT.


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