Cafu Engine
MapEditor::EntityHierarchyCtrlT Class Reference
Inheritance diagram for MapEditor::EntityHierarchyCtrlT:

Public Member Functions

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

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...
 

Member Function Documentation

void EntityHierarchyCtrlT::Notify_EntChanged ( SubjectT Subject,
const ArrayT< IntrusivePtrT< MapEditor::CompMapEntityT > > &  Entities,
EntityModDetailE  Detail 
)
overridevirtual
Parameters
SubjectThe map document in which the entities have been modified.
EntitiesList of modified map entities.
DetailInformation about what has been modified.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::Notify_VarChanged ( SubjectT Subject,
const cf::TypeSys::VarBaseT Var 
)
overridevirtual

Notifies the observer that a variable has changed.

Parameters
SubjectThe map document in which a variable has changed.
VarThe variable whose value has changed.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Created ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &  Entities 
)
overridevirtual

Notifies the observer that one or more entities have been created.

Parameters
SubjectThe map document in which the entities have been created.
EntitiesList of created entities.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Created ( SubjectT Subject,
const ArrayT< MapPrimitiveT * > &  Primitives 
)
overridevirtual

Notifies the observer that one or more map primitives have been created.

Parameters
SubjectThe map document in which the primitives have been created.
PrimitivesList of created map primitives.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Deleted ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &  Entities 
)
overridevirtual

Notifies the observer that one or more entities have been deleted.

Parameters
SubjectThe map document in which the entities have been deleted.
EntitiesList of deleted entities.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Deleted ( SubjectT Subject,
const ArrayT< MapPrimitiveT * > &  Primitives 
)
overridevirtual

Notifies the observer that one or more map primitives have been deleted.

Parameters
SubjectThe map document in which the primitives have been deleted.
PrimitivesList of deleted map primitives.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Modified ( SubjectT Subject,
const ArrayT< MapElementT * > &  MapElements,
MapElemModDetailE  Detail 
)
overridevirtual
Parameters
SubjectThe map document in which the elements have been modified.
MapElementsList of modified map elements.
DetailInformation about what has been modified: Can be one of MEMD_PRIMITIVE_PROPS_CHANGED, MEMD_GENERIC, MEMD_ASSIGN_PRIM_TO_ENTITY and MEMD_MATERIAL_CHANGED.

Reimplemented from ObserverT.

void EntityHierarchyCtrlT::NotifySubjectChanged_Selection ( SubjectT Subject,
const ArrayT< MapElementT * > &  OldSelection,
const ArrayT< MapElementT * > &  NewSelection 
)
overridevirtual

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 EntityHierarchyCtrlT::NotifySubjectDies ( SubjectT dyingSubject)
overridevirtual

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 files: