Skyscraper 2.0
|
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) |
Submesh * | CreateSubMesh (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< Submesh > | Submeshes |
std::vector< ClientEntry > | client_entries |
Ogre::Entity * | Movable |
SceneNode * | node |
DynamicMesh * | Parent |
::SBS::SBS * | sbs |
bool | enabled |
bool | prepared |
bool | auto_shadows |
bool | parent_deleting |
Definition at line 70 of file dynamicmesh.h.
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 = "" ) |
Definition at line 637 of file dynamicmesh.cpp.
References auto_shadows, Enabled(), enabled, SBS::Object::GetNameBase(), SBS::ObjectBase::GetNameBase(), SBS::ObjectBase::GetParent(), SBS::ObjectBase::GetRoot(), MeshWrapper, Movable, SBS::SBS::mSceneManager, name, node, Parent, parent_deleting, prepared, SBS::ObjectBase::ReportError(), sbs, and SBS::SBS::ToRemote().
SBS::DynamicMesh::Mesh::~Mesh | ( | ) |
Definition at line 696 of file dynamicmesh.cpp.
References SBS::ObjectBase::ReportError(), and SBS::ObjectBase::sbs.
bool SBS::DynamicMesh::Mesh::ChangeTexture | ( | const std::string & | old_texture, |
const std::string & | new_texture ) |
Definition at line 739 of file dynamicmesh.cpp.
References SBS::TextureManager::GetMaterialByName(), SBS::SBS::GetTextureManager(), SBS::SBS::InstanceNumber, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SBS_PROFILE, and SBS::ToString().
DynamicMesh::Mesh::Submesh * SBS::DynamicMesh::Mesh::CreateSubMesh | ( | const std::string & | material | ) |
Definition at line 804 of file dynamicmesh.cpp.
References SBS::DynamicMesh::Mesh::Submesh::clients, SBS::SceneNode::GetFullName(), SBS::DynamicMesh::GetSubMeshCount(), SBS::SBS::InstanceNumber, SBS::DynamicMesh::Mesh::Submesh::material, SBS::DynamicMesh::node, SBS::DynamicMesh::Mesh::Submesh::object, SBS::ObjectBase::sbs, and SBS::ToString().
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.
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.
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().
void SBS::DynamicMesh::Mesh::EnableDebugView | ( | bool | value | ) |
Definition at line 1271 of file dynamicmesh.cpp.
void SBS::DynamicMesh::Mesh::EnableShadows | ( | bool | value | ) |
Definition at line 1509 of file dynamicmesh.cpp.
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().
int SBS::DynamicMesh::Mesh::GetSubMeshCount | ( | ) |
Definition at line 1473 of file dynamicmesh.cpp.
bool SBS::DynamicMesh::Mesh::IsVisible | ( | ) |
Definition at line 1277 of file dynamicmesh.cpp.
bool SBS::DynamicMesh::Mesh::IsVisible | ( | Ogre::Camera * | camera | ) |
Definition at line 1283 of file dynamicmesh.cpp.
References SBS::SceneNode::GetPosition(), SBS::DynamicMesh::GetSubMeshCount(), SBS::DynamicMesh::IsVisible(), SBS::DynamicMesh::node, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().
void SBS::DynamicMesh::Mesh::Prepare | ( | bool | process_vertices = true, |
int | client = -1 ) |
Definition at line 900 of file dynamicmesh.cpp.
References SBS::Triangle::a, SBS::Triangle::b, SBS::DynamicMesh::Mesh::ClientEntry::bounds, SBS::Triangle::c, SBS::DynamicMesh::Mesh::Submesh::clients, SBS::DynamicMesh::Enabled(), SBS::Polygon::geometry, SBS::Object::GetOrientation(), SBS::SceneNode::GetOrientation(), SBS::Object::GetPosition(), SBS::SceneNode::GetPosition(), SBS::MeshObject::GetVertexCount(), SBS::Polygon::material, SBS::DynamicMesh::node, SBS::Polygon::Geometry::normal, SBS::DynamicMesh::Mesh::Submesh::object, SBS::ObjectBase::Parent, SBS::DynamicMesh::prepared, SBS::DynamicMesh::Mesh::ClientEntry::radius, SBS::ObjectBase::sbs, SBS_PROFILE, SBS::Polygon::Geometry::texel, SBS::SBS::ToRemote(), SBS::Polygon::triangles, SBS::Polygon::Geometry::vertex, SBS::DynamicMesh::Mesh::ClientEntry::vertex_count, SBS::Polygon::vertex_count, SBS::DynamicMesh::Mesh::ClientEntry::vertex_offset, and SBS::MeshObject::Walls.
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.
void SBS::DynamicMesh::Mesh::UpdateBoundingBox | ( | ) |
Definition at line 1478 of file dynamicmesh.cpp.
References SBS::ObjectBase::Parent.
void SBS::DynamicMesh::Mesh::UpdateVertices | ( | int | client, |
const std::string & | material, | ||
Polygon * | polygon = 0, | ||
bool | single = false ) |
Definition at line 1309 of file dynamicmesh.cpp.
References SBS::Polygon::geometry, SBS::Object::GetOrientation(), SBS::SceneNode::GetOrientation(), SBS::Object::GetPosition(), SBS::SceneNode::GetPosition(), SBS::MeshObject::GetVertexCount(), SBS::Polygon::material, SBS::DynamicMesh::node, SBS::Polygon::Geometry::normal, SBS::ObjectBase::Parent, SBS::DynamicMesh::prepared, SBS::ObjectBase::sbs, SBS_PROFILE, SBS::Polygon::Geometry::texel, SBS::SBS::ToRemote(), SBS::Polygon::Geometry::vertex, and SBS::MeshObject::Walls.
bool SBS::DynamicMesh::Mesh::auto_shadows |
Definition at line 117 of file dynamicmesh.h.
Referenced by Mesh().
std::vector<ClientEntry> SBS::DynamicMesh::Mesh::client_entries |
Definition at line 110 of file dynamicmesh.h.
bool SBS::DynamicMesh::Mesh::enabled |
Definition at line 115 of file dynamicmesh.h.
Referenced by Mesh().
Ogre::MeshPtr SBS::DynamicMesh::Mesh::MeshWrapper |
Definition at line 108 of file dynamicmesh.h.
Referenced by SBS::DynamicMesh::LoadFromFile(), SBS::DynamicMesh::LoadFromMesh(), and Mesh().
Ogre::Entity* SBS::DynamicMesh::Mesh::Movable |
Definition at line 111 of file dynamicmesh.h.
Referenced by Mesh().
std::string SBS::DynamicMesh::Mesh::name |
Definition at line 107 of file dynamicmesh.h.
Referenced by Mesh().
SceneNode* SBS::DynamicMesh::Mesh::node |
Definition at line 112 of file dynamicmesh.h.
Referenced by Mesh().
DynamicMesh* SBS::DynamicMesh::Mesh::Parent |
Definition at line 113 of file dynamicmesh.h.
Referenced by Mesh().
bool SBS::DynamicMesh::Mesh::parent_deleting |
Definition at line 118 of file dynamicmesh.h.
Referenced by Mesh().
bool SBS::DynamicMesh::Mesh::prepared |
Definition at line 116 of file dynamicmesh.h.
Referenced by Mesh().
::SBS::SBS* SBS::DynamicMesh::Mesh::sbs |
Definition at line 114 of file dynamicmesh.h.
Referenced by Mesh().
std::vector<Submesh> SBS::DynamicMesh::Mesh::Submeshes |
Definition at line 109 of file dynamicmesh.h.