Cafu Engine
ModelEditor::ElementsListT Class Reference

A control for displaying a list of the elements of the model. More...

#include "ElementsList.hpp"

Inheritance diagram for ModelEditor::ElementsListT:

Public Member Functions

 ElementsListT (ChildFrameT *MainFrame, wxWindow *Parent, const wxSize &Size, ModelElementTypeT Type)
 The constructor. More...
 
 ~ElementsListT ()
 The destructor. More...
 
bool AreDefaultItemsSelected () const
 Returns whether one or more "default" elements are selected in the list. More...
 
void Notify_SelectionChanged (SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &OldSel, const ArrayT< unsigned int > &NewSel)
 This method is called whenever the selection of a model changed. More...
 
void Notify_Created (SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
 This method is called when new elements have been created and were added to the model. More...
 
void Notify_Deleted (SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
 This method is called when new elements were deleted from the model. More...
 
void Notify_MeshChanged (SubjectT *Subject, unsigned int MeshNr)
 Notifies the observer that a mesh has changed. More...
 
void Notify_SkinChanged (SubjectT *Subject, unsigned int SkinNr)
 Notifies the observer that a skin has changed. More...
 
void Notify_GuiFixtureChanged (SubjectT *Subject, unsigned int GuiFixtureNr)
 Notifies the observer that a GUI fixture has changed. More...
 
void Notify_AnimChanged (SubjectT *Subject, unsigned int AnimNr)
 Notifies the observer that an animation sequence has changed. More...
 
void Notify_ChannelChanged (SubjectT *Subject, unsigned int ChannelNr)
 Notifies the observer that an animation channel has changed. More...
 
void Notify_SubjectDies (SubjectT *dyingSubject)
 This method is called whenever a subject is about the be destroyed (and become unavailable). More...
 
- Public Member Functions inherited from ModelEditor::ObserverT
virtual void Notify_JointChanged (SubjectT *Subject, unsigned int JointNr)
 Notifies the observer that a joint has changed. More...
 
virtual void Notify_SubmodelsChanged (SubjectT *Subject)
 Notifies the observer that the list of submodels has changed. More...
 
virtual void Notify_AnimStateChanged (SubjectT *Subject)
 Notifies the observer that the animation state has changed. More...
 
virtual ~ObserverT ()
 The virtual destructor. More...
 

Additional Inherited Members

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

Detailed Description

A control for displaying a list of the elements of the model.

Constructor & Destructor Documentation

ElementsListT::ElementsListT ( ChildFrameT MainFrame,
wxWindow *  Parent,
const wxSize &  Size,
ModelElementTypeT  Type 
)

The constructor.

ElementsListT::~ElementsListT ( )

The destructor.

Member Function Documentation

bool ElementsListT::AreDefaultItemsSelected ( ) const

Returns whether one or more "default" elements are selected in the list.

void ElementsListT::Notify_AnimChanged ( SubjectT Subject,
unsigned int  AnimNr 
)
virtual

Notifies the observer that an animation sequence has changed.

Parameters
SubjectThe model document with the model in which the anim has changed.
AnimNrThe number of the anim sequence that has changed.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_ChannelChanged ( SubjectT Subject,
unsigned int  ChannelNr 
)
virtual

Notifies the observer that an animation channel has changed.

Parameters
SubjectThe model document with the model in which the channel has changed.
ChannelNrThe number of the anim channel that has changed.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_Created ( SubjectT Subject,
ModelElementTypeT  Type,
const ArrayT< unsigned int > &  Indices 
)
virtual

This method is called when new elements have been created and were added to the model.

Parameters
SubjectThe model document to which elements were added.
TypeThe type of the added elements (joints, meshes or anims).
IndicesThe array indices at which the new elements were inserted.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_Deleted ( SubjectT Subject,
ModelElementTypeT  Type,
const ArrayT< unsigned int > &  Indices 
)
virtual

This method is called when new elements were deleted from the model.

Parameters
SubjectThe model document from which elements were deleted.
TypeThe type of the deleted elements (joints, meshes or anims).
IndicesThe array indices at which the elements were deleted.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_GuiFixtureChanged ( SubjectT Subject,
unsigned int  GuiFixtureNr 
)
virtual

Notifies the observer that a GUI fixture has changed.

Parameters
SubjectThe model document with the model in which the GUI fixture has changed.
GuiFixtureNrThe number of the GUI fixture that has changed.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_MeshChanged ( SubjectT Subject,
unsigned int  MeshNr 
)
virtual

Notifies the observer that a mesh has changed.

Parameters
SubjectThe model document with the model in which the mesh has changed.
MeshNrThe number of the mesh that has changed.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_SelectionChanged ( SubjectT Subject,
ModelElementTypeT  Type,
const ArrayT< unsigned int > &  OldSel,
const ArrayT< unsigned int > &  NewSel 
)
virtual

This method is called whenever the selection of a model changed.

Parameters
SubjectThe model document in which the selection has changed.
TypeThe type of the elements in a model whose selection changed (joints, meshes or anims).
OldSelArray of the previously selected elements.
NewSelArray of the new selected elements.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_SkinChanged ( SubjectT Subject,
unsigned int  SkinNr 
)
virtual

Notifies the observer that a skin has changed.

Parameters
SubjectThe model document with the model in which the skin has changed.
SkinNrThe number of the skin that has changed.

Reimplemented from ModelEditor::ObserverT.

void ElementsListT::Notify_SubjectDies ( SubjectT dyingSubject)
virtual

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

Parameters
dyingSubjectThe subject that is being destroyed.

Implements ModelEditor::ObserverT.


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