![]() |
Pioneer
|
#include <Model.h>


Public Types | |
| enum | DebugFlags { DEBUG_NONE = 0x0 , DEBUG_BBOX = 0x1 , DEBUG_COLLMESH = 0x2 , DEBUG_WIREFRAME = 0x4 , DEBUG_TAGS = 0x8 , DEBUG_DOCKING = 0x10 , DEBUG_GEOMBBOX = 0x20 } |
| typedef std::vector< MatrixTransform * > | TVecMT |
Public Member Functions | |
| Model (Graphics::Renderer *r, const std::string &name) | |
| ~Model () | |
| Model * | MakeInstance () const |
| const std::string & | GetName () const |
| float | GetDrawClipRadius () const |
| void | SetDrawClipRadius (float clipRadius) |
| void | Render (const matrix4x4f &trans, const RenderData *rd=0) |
| void | Render (const std::vector< matrix4x4f > &trans, const RenderData *rd=0) |
| RefCountedPtr< CollMesh > | CreateCollisionMesh () |
| RefCountedPtr< CollMesh > | GetCollisionMesh () const |
| void | SetCollisionMesh (RefCountedPtr< CollMesh > collMesh) |
| RefCountedPtr< Group > | GetRoot () |
| RefCountedPtr< Graphics::Material > | GetMaterialByName (const std::string &name) const |
| RefCountedPtr< Graphics::Material > | GetMaterialByIndex (const int) const |
| unsigned int | GetNumMaterials () const |
| unsigned int | GetNumTags () const |
| MatrixTransform * | GetTagByIndex (unsigned int index) const |
| MatrixTransform * | FindTagByName (const std::string &name) const |
| void | FindTagsByStartOfName (const std::string &name, TVecMT &outNameMTs) const |
| void | AddTag (const std::string &name, MatrixTransform *node) |
| const PatternContainer & | GetPatterns () const |
| unsigned int | GetNumPatterns () const |
| void | SetPattern (unsigned int index) |
| unsigned int | GetPattern () const |
| void | SetColors (const std::vector< Color > &colors) |
| void | SetDecalTexture (Graphics::Texture *t, unsigned int index=0) |
| void | ClearDecal (unsigned int index=0) |
| void | ClearDecals () |
| void | SetLabel (const std::string &) |
| bool | SupportsDecals () |
| bool | SupportsPatterns () |
| void | InitAnimations () |
| Animation * | FindAnimation (const std::string &) const |
| uint32_t | FindAnimationIndex (Animation *) const |
| const std::vector< Animation * > | GetAnimations () const |
| void | SetAnimationActive (uint32_t index, bool active) |
| bool | GetAnimationActive (uint32_t index) const |
| void | UpdateAnimations () |
| Graphics::Renderer * | GetRenderer () const |
| void | SetThrust (const vector3f &linear, const vector3f &angular) |
| void | SetThrusterColor (const vector3f &dir, const Color &color) |
| void | SetThrusterColor (const std::string &name, const Color &color) |
| void | SetThrusterColor (const Color &color) |
| void | SaveToJson (Json &jsonObj) const |
| void | LoadFromJson (const Json &jsonObj) |
| std::string | GetNameForMaterial (Graphics::Material *) const |
| void | SetDebugFlags (Uint32 flags) |
Public Member Functions inherited from DeleteEmitter | |
| DeleteEmitter () | |
| virtual | ~DeleteEmitter () |
Public Member Functions inherited from LuaWrappable | |
| virtual | ~LuaWrappable () |
Friends | |
| class | BaseLoader |
| class | Loader |
| class | ModelBinarizer |
| class | BinaryConverter |
Additional Inherited Members | |
Public Attributes inherited from DeleteEmitter | |
| sigc::signal< void > | onDelete |
| typedef std::vector<MatrixTransform *> SceneGraph::Model::TVecMT |
| SceneGraph::Model::Model | ( | Graphics::Renderer * | r, |
| const std::string & | name | ||
| ) |

| SceneGraph::Model::~Model | ( | ) |
| void SceneGraph::Model::AddTag | ( | const std::string & | name, |
| MatrixTransform * | node | ||
| ) |

| void SceneGraph::Model::ClearDecal | ( | unsigned int | index = 0 | ) |

| void SceneGraph::Model::ClearDecals | ( | ) |

| RefCountedPtr< CollMesh > SceneGraph::Model::CreateCollisionMesh | ( | ) |

| Animation * SceneGraph::Model::FindAnimation | ( | const std::string & | name | ) | const |
| uint32_t SceneGraph::Model::FindAnimationIndex | ( | Animation * | anim | ) | const |
| MatrixTransform * SceneGraph::Model::FindTagByName | ( | const std::string & | name | ) | const |
| void SceneGraph::Model::FindTagsByStartOfName | ( | const std::string & | name, |
| TVecMT & | outNameMTs | ||
| ) | const |

| bool SceneGraph::Model::GetAnimationActive | ( | uint32_t | index | ) | const |
|
inline |
|
inline |
|
inline |
| RefCountedPtr< Graphics::Material > SceneGraph::Model::GetMaterialByIndex | ( | const int | i | ) | const |

| RefCountedPtr< Graphics::Material > SceneGraph::Model::GetMaterialByName | ( | const std::string & | name | ) | const |
|
inline |
| std::string SceneGraph::Model::GetNameForMaterial | ( | Graphics::Material * | mat | ) | const |

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| MatrixTransform * SceneGraph::Model::GetTagByIndex | ( | unsigned int | index | ) | const |
| void SceneGraph::Model::InitAnimations | ( | ) |
| void SceneGraph::Model::LoadFromJson | ( | const Json & | jsonObj | ) |

| Model * SceneGraph::Model::MakeInstance | ( | ) | const |
| void SceneGraph::Model::Render | ( | const matrix4x4f & | trans, |
| const RenderData * | rd = 0 |
||
| ) |

| void SceneGraph::Model::Render | ( | const std::vector< matrix4x4f > & | trans, |
| const RenderData * | rd = 0 |
||
| ) |

| void SceneGraph::Model::SaveToJson | ( | Json & | jsonObj | ) | const |

| void SceneGraph::Model::SetAnimationActive | ( | uint32_t | index, |
| bool | active | ||
| ) |
|
inline |

| void SceneGraph::Model::SetColors | ( | const std::vector< Color > & | colors | ) |

| void SceneGraph::Model::SetDebugFlags | ( | Uint32 | flags | ) |

| void SceneGraph::Model::SetDecalTexture | ( | Graphics::Texture * | t, |
| unsigned int | index = 0 |
||
| ) |
|
inline |
| void SceneGraph::Model::SetLabel | ( | const std::string & | text | ) |
| void SceneGraph::Model::SetPattern | ( | unsigned int | index | ) |

| void SceneGraph::Model::SetThrusterColor | ( | const Color & | color | ) |

| void SceneGraph::Model::SetThrusterColor | ( | const std::string & | name, |
| const Color & | color | ||
| ) |


| bool SceneGraph::Model::SupportsDecals | ( | ) |
| bool SceneGraph::Model::SupportsPatterns | ( | ) |
| void SceneGraph::Model::UpdateAnimations | ( | ) |
|
friend |
|
friend |
|
friend |
|
friend |