Pioneer
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
SceneGraph::Model Class Reference

#include <Model.h>

Inheritance diagram for SceneGraph::Model:
Inheritance graph
[legend]
Collaboration diagram for SceneGraph::Model:
Collaboration graph
[legend]

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 ()
 
ModelMakeInstance () 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< CollMeshCreateCollisionMesh ()
 
RefCountedPtr< CollMeshGetCollisionMesh () const
 
void SetCollisionMesh (RefCountedPtr< CollMesh > collMesh)
 
RefCountedPtr< GroupGetRoot ()
 
RefCountedPtr< Graphics::MaterialGetMaterialByName (const std::string &name) const
 
RefCountedPtr< Graphics::MaterialGetMaterialByIndex (const int) const
 
unsigned int GetNumMaterials () const
 
unsigned int GetNumTags () const
 
MatrixTransformGetTagByIndex (unsigned int index) const
 
MatrixTransformFindTagByName (const std::string &name) const
 
void FindTagsByStartOfName (const std::string &name, TVecMT &outNameMTs) const
 
void AddTag (const std::string &name, MatrixTransform *node)
 
const PatternContainerGetPatterns () 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 ()
 
AnimationFindAnimation (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::RendererGetRenderer () 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
 

Member Typedef Documentation

◆ TVecMT

Member Enumeration Documentation

◆ DebugFlags

Enumerator
DEBUG_NONE 
DEBUG_BBOX 
DEBUG_COLLMESH 
DEBUG_WIREFRAME 
DEBUG_TAGS 
DEBUG_DOCKING 
DEBUG_GEOMBBOX 

Constructor & Destructor Documentation

◆ Model()

SceneGraph::Model::Model ( Graphics::Renderer r,
const std::string &  name 
)
Here is the call graph for this function:

◆ ~Model()

SceneGraph::Model::~Model ( )

Member Function Documentation

◆ AddTag()

void SceneGraph::Model::AddTag ( const std::string &  name,
MatrixTransform node 
)
Here is the call graph for this function:

◆ ClearDecal()

void SceneGraph::Model::ClearDecal ( unsigned int  index = 0)
Here is the call graph for this function:

◆ ClearDecals()

void SceneGraph::Model::ClearDecals ( )
Here is the call graph for this function:

◆ CreateCollisionMesh()

RefCountedPtr< CollMesh > SceneGraph::Model::CreateCollisionMesh ( )
Here is the call graph for this function:

◆ FindAnimation()

Animation * SceneGraph::Model::FindAnimation ( const std::string &  name) const

◆ FindAnimationIndex()

uint32_t SceneGraph::Model::FindAnimationIndex ( Animation anim) const

◆ FindTagByName()

MatrixTransform * SceneGraph::Model::FindTagByName ( const std::string &  name) const

◆ FindTagsByStartOfName()

void SceneGraph::Model::FindTagsByStartOfName ( const std::string &  name,
TVecMT outNameMTs 
) const
Here is the call graph for this function:

◆ GetAnimationActive()

bool SceneGraph::Model::GetAnimationActive ( uint32_t  index) const

◆ GetAnimations()

const std::vector< Animation * > SceneGraph::Model::GetAnimations ( ) const
inline

◆ GetCollisionMesh()

RefCountedPtr< CollMesh > SceneGraph::Model::GetCollisionMesh ( ) const
inline

◆ GetDrawClipRadius()

float SceneGraph::Model::GetDrawClipRadius ( ) const
inline

◆ GetMaterialByIndex()

RefCountedPtr< Graphics::Material > SceneGraph::Model::GetMaterialByIndex ( const int  i) const
Here is the call graph for this function:

◆ GetMaterialByName()

RefCountedPtr< Graphics::Material > SceneGraph::Model::GetMaterialByName ( const std::string &  name) const

◆ GetName()

const std::string & SceneGraph::Model::GetName ( ) const
inline

◆ GetNameForMaterial()

std::string SceneGraph::Model::GetNameForMaterial ( Graphics::Material mat) const
Here is the call graph for this function:

◆ GetNumMaterials()

unsigned int SceneGraph::Model::GetNumMaterials ( ) const
inline

◆ GetNumPatterns()

unsigned int SceneGraph::Model::GetNumPatterns ( ) const
inline

◆ GetNumTags()

unsigned int SceneGraph::Model::GetNumTags ( ) const
inline

◆ GetPattern()

unsigned int SceneGraph::Model::GetPattern ( ) const
inline

◆ GetPatterns()

const PatternContainer & SceneGraph::Model::GetPatterns ( ) const
inline

◆ GetRenderer()

Graphics::Renderer * SceneGraph::Model::GetRenderer ( ) const
inline

◆ GetRoot()

RefCountedPtr< Group > SceneGraph::Model::GetRoot ( )
inline

◆ GetTagByIndex()

MatrixTransform * SceneGraph::Model::GetTagByIndex ( unsigned int  index) const

◆ InitAnimations()

void SceneGraph::Model::InitAnimations ( )

◆ LoadFromJson()

void SceneGraph::Model::LoadFromJson ( const Json jsonObj)
Here is the call graph for this function:

◆ MakeInstance()

Model * SceneGraph::Model::MakeInstance ( ) const

◆ Render() [1/2]

void SceneGraph::Model::Render ( const matrix4x4f trans,
const RenderData rd = 0 
)
Here is the call graph for this function:

◆ Render() [2/2]

void SceneGraph::Model::Render ( const std::vector< matrix4x4f > &  trans,
const RenderData rd = 0 
)
Here is the call graph for this function:

◆ SaveToJson()

void SceneGraph::Model::SaveToJson ( Json jsonObj) const
Here is the call graph for this function:

◆ SetAnimationActive()

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

◆ SetCollisionMesh()

void SceneGraph::Model::SetCollisionMesh ( RefCountedPtr< CollMesh collMesh)
inline
Here is the call graph for this function:

◆ SetColors()

void SceneGraph::Model::SetColors ( const std::vector< Color > &  colors)
Here is the call graph for this function:

◆ SetDebugFlags()

void SceneGraph::Model::SetDebugFlags ( Uint32  flags)
Here is the call graph for this function:

◆ SetDecalTexture()

void SceneGraph::Model::SetDecalTexture ( Graphics::Texture t,
unsigned int  index = 0 
)

◆ SetDrawClipRadius()

void SceneGraph::Model::SetDrawClipRadius ( float  clipRadius)
inline

◆ SetLabel()

void SceneGraph::Model::SetLabel ( const std::string &  text)

◆ SetPattern()

void SceneGraph::Model::SetPattern ( unsigned int  index)
Here is the call graph for this function:

◆ SetThrust()

void SceneGraph::Model::SetThrust ( const vector3f linear,
const vector3f angular 
)

◆ SetThrusterColor() [1/3]

void SceneGraph::Model::SetThrusterColor ( const Color color)
Here is the call graph for this function:

◆ SetThrusterColor() [2/3]

void SceneGraph::Model::SetThrusterColor ( const std::string &  name,
const Color color 
)
Here is the call graph for this function:

◆ SetThrusterColor() [3/3]

void SceneGraph::Model::SetThrusterColor ( const vector3f dir,
const Color color 
)
Here is the call graph for this function:

◆ SupportsDecals()

bool SceneGraph::Model::SupportsDecals ( )

◆ SupportsPatterns()

bool SceneGraph::Model::SupportsPatterns ( )

◆ UpdateAnimations()

void SceneGraph::Model::UpdateAnimations ( )

Friends And Related Symbol Documentation

◆ BaseLoader

friend class BaseLoader
friend

◆ BinaryConverter

friend class BinaryConverter
friend

◆ Loader

friend class Loader
friend

◆ ModelBinarizer

friend class ModelBinarizer
friend

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