Cafu Engine
ModelEditor::ModelDocumentT Class Reference
Inheritance diagram for ModelEditor::ModelDocumentT:

Classes

class  AnimStateT
 
class  LightSourceT
 
class  SubmodelT
 

Public Member Functions

 ModelDocumentT (GameConfigT *GameConfig, const wxString &FileName)
 The constructor. More...
 
 ~ModelDocumentT ()
 The destructor. More...
 
const CafuModelTGetModel () const
 
const ArrayT< unsigned int > & GetSelection (ModelElementTypeT Type) const
 
const BoundingBox3fTGetSequenceBB () const
 
int GetSelSkinNr () const
 Return the index number of the currently selected skin, or -1 when no skin (that is, the default skin) is selected. More...
 
wxString GetSelSkinString () const
 Returns a string representation for the currently selected skin. More...
 
const ArrayT< EditorMaterialI * > & GetEditorMaterials () const
 
const AnimStateTGetAnimState () const
 
const ArrayT< SubmodelT * > & GetSubmodels () const
 
IntrusivePtrT< const
cf::GuiSys::GuiImplT
GetGui () const
 
const MapBrushTGetGround () const
 
const ArrayT< CameraT * > & GetCameras () const
 
const ArrayT< LightSourceT * > & GetLightSources () const
 
const GameConfigTGetGameConfig () const
 
CafuModelTGetModel ()
 
void SetSelection (ModelElementTypeT Type, const ArrayT< unsigned int > &NewSel)
 
AnimStateTGetAnimState ()
 
void LoadSubmodel (const wxString &FileName)
 
void UnloadSubmodel (unsigned long SubmodelNr)
 
MapBrushTGetGround ()
 
GameConfigTGetGameConfig ()
 
ArrayT< unsigned int > GetSelection_NextAnimSequ () const
 Returns the suggested selection set for activating the next animation sequence. More...
 
ArrayT< unsigned int > GetSelection_PrevAnimSequ () const
 Returns the suggested selection set for activating the previous animation sequence. More...
 
void AdvanceTime (float Time)
 
void SetAnimSpeed (float NewSpeed)
 
- Public Member Functions inherited from ModelEditor::SubjectT
void RegisterObserver (ObserverT *Obs)
 Registers the observer Obs for notification on updates of this class. More...
 
void UnregisterObserver (ObserverT *Obs)
 Unregisters the observer Obs from further notification on updates of this class. More...
 
void UpdateAllObservers_SelectionChanged (ModelElementTypeT Type, const ArrayT< unsigned int > &OldSel, const ArrayT< unsigned int > &NewSel)
 
void UpdateAllObservers_Created (ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
 
void UpdateAllObservers_Deleted (ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
 
void UpdateAllObservers_JointChanged (unsigned int JointNr)
 
void UpdateAllObservers_MeshChanged (unsigned int MeshNr)
 
void UpdateAllObservers_SkinChanged (unsigned int SkinNr)
 
void UpdateAllObservers_GuiFixtureChanged (unsigned int GuiFixtureNr)
 
void UpdateAllObservers_AnimChanged (unsigned int AnimNr)
 
void UpdateAllObservers_ChannelChanged (unsigned int ChannelNr)
 
void UpdateAllObservers_SubmodelsChanged ()
 
void UpdateAllObservers_AnimStateChanged ()
 
virtual ~SubjectT ()
 The virtual destructor. More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

ModelEditor::ModelDocumentT::ModelDocumentT ( GameConfigT GameConfig,
const wxString &  FileName 
)

The constructor.

Exceptions
ModelT::LoadErrorif the model could not be loaded or imported.
ModelEditor::ModelDocumentT::~ModelDocumentT ( )

The destructor.

Member Function Documentation

ArrayT< unsigned int > ModelEditor::ModelDocumentT::GetSelection_NextAnimSequ ( ) const

Returns the suggested selection set for activating the next animation sequence.

ArrayT< unsigned int > ModelEditor::ModelDocumentT::GetSelection_PrevAnimSequ ( ) const

Returns the suggested selection set for activating the previous animation sequence.

int ModelEditor::ModelDocumentT::GetSelSkinNr ( ) const

Return the index number of the currently selected skin, or -1 when no skin (that is, the default skin) is selected.

wxString ModelEditor::ModelDocumentT::GetSelSkinString ( ) const

Returns a string representation for the currently selected skin.


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