Skyscraper 2.0
SBS::DynamicMesh::Mesh Struct Reference
Collaboration diagram for SBS::DynamicMesh::Mesh:

Classes

struct  ClientEntry
 
struct  Submesh
 

Public Member Functions

 Mesh (DynamicMesh *parent, const std::string &name, SceneNode *node, Real max_render_distance, const std::string &filename="", const std::string &meshname="", const std::string &path="")
 
 ~Mesh ()
 
void Enabled (bool value)
 
bool ChangeTexture (const std::string &old_texture, const std::string &new_texture)
 
int FindMatchingSubMesh (const std::string &material)
 
SubmeshCreateSubMesh (const std::string &material)
 
void DeleteSubMesh (int client, int index)
 
void Prepare (bool process_vertices=true, int client=-1)
 
void EnableDebugView (bool value)
 
bool IsVisible ()
 
bool IsVisible (Ogre::Camera *camera)
 
int GetSubMeshCount ()
 
void UpdateVertices (int client, const std::string &material, Polygon *polygon=0, bool single=false)
 
void Detach ()
 
void UpdateBoundingBox ()
 
void EnableShadows (bool value)
 
void SetMaterial (const std::string &material)
 

Public Attributes

std::string name
 
Ogre::MeshPtr MeshWrapper
 
std::vector< SubmeshSubmeshes
 
std::vector< ClientEntryclient_entries
 
Ogre::Entity * Movable
 
SceneNodenode
 
DynamicMeshParent
 
::SBS::SBSsbs
 
bool enabled
 
bool prepared
 
bool auto_shadows
 
bool parent_deleting
 

Detailed Description

Definition at line 70 of file dynamicmesh.h.

Constructor & Destructor Documentation

◆ Mesh()

SBS::DynamicMesh::Mesh::Mesh ( DynamicMesh * parent,
const std::string & name,
SceneNode * node,
Real max_render_distance,
const std::string & filename = "",
const std::string & meshname = "",
const std::string & path = "" )

◆ ~Mesh()

SBS::DynamicMesh::Mesh::~Mesh ( )

Definition at line 696 of file dynamicmesh.cpp.

References SBS::ObjectBase::ReportError(), and SBS::ObjectBase::sbs.

Here is the call graph for this function:

Member Function Documentation

◆ ChangeTexture()

bool SBS::DynamicMesh::Mesh::ChangeTexture ( const std::string & old_texture,
const std::string & new_texture )

◆ CreateSubMesh()

◆ DeleteSubMesh()

void SBS::DynamicMesh::Mesh::DeleteSubMesh ( int client,
int index )

Definition at line 825 of file dynamicmesh.cpp.

References SBS::Polygon::material, and SBS::ObjectBase::Parent.

◆ Detach()

void SBS::DynamicMesh::Mesh::Detach ( )

Definition at line 1459 of file dynamicmesh.cpp.

References SBS::SceneNode::DetachObject(), SBS::SBS::mSceneManager, SBS::DynamicMesh::node, and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ Enabled()

void SBS::DynamicMesh::Mesh::Enabled ( bool value)

Definition at line 721 of file dynamicmesh.cpp.

References SBS::SceneNode::AttachObject(), SBS::SceneNode::DetachObject(), and SBS::DynamicMesh::node.

Referenced by Mesh().

Here is the call graph for this function:

◆ EnableDebugView()

void SBS::DynamicMesh::Mesh::EnableDebugView ( bool value)

Definition at line 1271 of file dynamicmesh.cpp.

◆ EnableShadows()

void SBS::DynamicMesh::Mesh::EnableShadows ( bool value)

Definition at line 1509 of file dynamicmesh.cpp.

◆ FindMatchingSubMesh()

int SBS::DynamicMesh::Mesh::FindMatchingSubMesh ( const std::string & material)

Definition at line 789 of file dynamicmesh.cpp.

References SBS::SBS::InstanceNumber, SBS::ObjectBase::sbs, and SBS::ToString().

Here is the call graph for this function:

◆ GetSubMeshCount()

int SBS::DynamicMesh::Mesh::GetSubMeshCount ( )

Definition at line 1473 of file dynamicmesh.cpp.

◆ IsVisible() [1/2]

bool SBS::DynamicMesh::Mesh::IsVisible ( )

Definition at line 1277 of file dynamicmesh.cpp.

◆ IsVisible() [2/2]

bool SBS::DynamicMesh::Mesh::IsVisible ( Ogre::Camera * camera)

◆ Prepare()

◆ SetMaterial()

void SBS::DynamicMesh::Mesh::SetMaterial ( const std::string & material)

Definition at line 1517 of file dynamicmesh.cpp.

References SBS::TextureManager::GetMaterialByName(), SBS::SBS::GetTextureManager(), and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ UpdateBoundingBox()

void SBS::DynamicMesh::Mesh::UpdateBoundingBox ( )

Definition at line 1478 of file dynamicmesh.cpp.

References SBS::ObjectBase::Parent.

◆ UpdateVertices()

Member Data Documentation

◆ auto_shadows

bool SBS::DynamicMesh::Mesh::auto_shadows

Definition at line 117 of file dynamicmesh.h.

Referenced by Mesh().

◆ client_entries

std::vector<ClientEntry> SBS::DynamicMesh::Mesh::client_entries

Definition at line 110 of file dynamicmesh.h.

◆ enabled

bool SBS::DynamicMesh::Mesh::enabled

Definition at line 115 of file dynamicmesh.h.

Referenced by Mesh().

◆ MeshWrapper

Ogre::MeshPtr SBS::DynamicMesh::Mesh::MeshWrapper

◆ Movable

Ogre::Entity* SBS::DynamicMesh::Mesh::Movable

Definition at line 111 of file dynamicmesh.h.

Referenced by Mesh().

◆ name

std::string SBS::DynamicMesh::Mesh::name

Definition at line 107 of file dynamicmesh.h.

Referenced by Mesh().

◆ node

SceneNode* SBS::DynamicMesh::Mesh::node

Definition at line 112 of file dynamicmesh.h.

Referenced by Mesh().

◆ Parent

DynamicMesh* SBS::DynamicMesh::Mesh::Parent

Definition at line 113 of file dynamicmesh.h.

Referenced by Mesh().

◆ parent_deleting

bool SBS::DynamicMesh::Mesh::parent_deleting

Definition at line 118 of file dynamicmesh.h.

Referenced by Mesh().

◆ prepared

bool SBS::DynamicMesh::Mesh::prepared

Definition at line 116 of file dynamicmesh.h.

Referenced by Mesh().

◆ sbs

::SBS::SBS* SBS::DynamicMesh::Mesh::sbs

Definition at line 114 of file dynamicmesh.h.

Referenced by Mesh().

◆ Submeshes

std::vector<Submesh> SBS::DynamicMesh::Mesh::Submeshes

Definition at line 109 of file dynamicmesh.h.


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