Skyscraper 2.0
|
#include <mesh.h>
Public Member Functions | |
MeshObject (Object *parent, const std::string &name, DynamicMesh *wrapper=0, const std::string &filename="", const std::string &meshname="", Real max_render_distance=0, Real scale_multiplier=1, bool create_collider=true, bool dynamic_buffers=false) | |
virtual | ~MeshObject () |
void | Enabled (bool value) |
void | EnableCollider (bool value) |
bool | IsEnabled () |
Wall * | CreateWallObject (const std::string &name) |
Wall * | GetWallByName (std::string name) |
void | Prepare (bool force=false) |
void | EnableDebugView (bool value) |
void | CreateColliderFromModel (int &vertex_count, Vector3 *&vertices, int &index_count, unsigned long *&indices) |
void | CreateBoxCollider () |
void | DeleteWalls () |
void | DeleteWalls (Object *parent) |
Vector3 | GetPoint (const std::string &wallname, const Vector3 &start, const Vector3 &end) |
Vector3 | GetWallExtents (const std::string &name, Real altitude, bool get_max) |
void | OnMove (bool parent) |
void | OnRotate (bool parent) |
bool | IsVisible (Ogre::Camera *camera) |
bool | IsPhysical () |
Vector3 | GetOffset () |
void | Cut (Vector3 start, Vector3 end, bool cutwalls, bool cutfloors, int checkwallnumber=0, bool reset_check=true) |
void | CutOutsideBounds (Vector3 start, Vector3 end, bool cutwalls, bool cutfloors) |
bool | UsingDynamicBuffers () |
void | GetBounds () |
void | ChangeHeight (Real newheight) |
void | EnableShadows (bool value) |
PolyMesh * | GetPolyMesh () |
bool | IsPrepared () |
void | ResetPrepare () |
bool | ReplaceTexture (const std::string &oldtexture, const std::string &newtexture) |
bool | ChangeTexture (const std::string &texture, bool matcheck=true) |
Vector2 | GetExtents (int coord, bool flip_z=false) |
Real | GetHeight () |
Real | HitBeam (const Vector3 &origin, const Vector3 &direction, Real max_distance) |
void | CreateCollider () |
void | DeleteCollider () |
Wall * | FindPolygon (const std::string &name, int &index) |
bool | InBoundingBox (const Vector3 &pos, bool check_y) |
DynamicMesh * | GetDynamicMesh () |
void | GetMeshInformation (const Ogre::Mesh *const mesh, int &vertex_count, Vector3 *&vertices, int &index_count, unsigned long *&indices, Ogre::AxisAlignedBox &extents) |
unsigned int | GetVertexCount () |
unsigned int | GetTriangleCount (const std::string &material, bool total) |
bool | LoadFromMesh (const std::string &meshname) |
void | SetMaterial (const std::string &material) |
void | EnablePhysics (bool value, Real restitution=0, Real friction=0, Real mass=0) |
size_t | GetSize () |
![]() | |
Object (Object *parent) | |
virtual | ~Object () |
void | SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true) |
bool | IsPermanent () |
bool | IsMovable () |
const std::string & | GetType () |
int | GetNumber () |
void | AddChild (Object *object) |
Object * | GetChild (int index) |
int | GetChildrenCount () |
void | RemoveChild (Object *object) |
SceneNode * | GetSceneNode () |
void | ShowBoundingBox (bool value) |
virtual void | Move (const Vector3 &vector, Real speed=1.0) |
virtual void | Move (Real X, Real Y, Real Z, Real speed=1.0) |
virtual void | SetPosition (const Vector3 &position) |
void | SetPositionRelative (const Vector3 &position) |
virtual void | SetPosition (Real X, Real Y, Real Z) |
void | SetPositionRelative (Real X, Real Y, Real Z) |
virtual void | SetPositionY (Real value) |
virtual Vector3 | GetPosition (bool relative=false) |
virtual void | Rotate (const Vector3 &vector, Real speed=1.0) |
virtual void | Rotate (Real X, Real Y, Real Z, Real speed=1.0) |
virtual void | SetRotation (const Vector3 &rotation) |
virtual void | SetRotation (Real X, Real Y, Real Z) |
virtual Vector3 | GetRotation () |
Quaternion | GetOrientation (bool relative=false) |
void | SetOrientation (const Quaternion &q, bool relative=false) |
virtual void | OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right) |
virtual void | OnUnclick (bool right) |
virtual void | OnHit () |
void | NotifyMove (bool parent=false) |
void | NotifyRotate (bool parent=false) |
virtual void | ResetState () |
void | ChangeParent (Object *new_parent) |
bool | IsGlobal () |
void | Init (bool children=true) |
virtual void | OnInit () |
virtual void | Loop () |
void | RegisterLoop (Object *object) |
void | UnregisterLoop (Object *object) |
std::string | GetNameBase () |
template<typename T > | |
bool | IsType () |
template<typename T > | |
T * | ConvertTo () |
![]() | |
ObjectBase (Object *parent) | |
virtual | ~ObjectBase () |
Object * | GetParent () |
SBS * | GetRoot () |
void | SetName (const std::string &name) |
const std::string & | GetName () |
std::string | GetNameBase () |
virtual void | Report (const std::string &message) |
virtual bool | ReportError (const std::string &message) |
Public Attributes | |
std::string | name |
bool | create_collider |
bool | tricollider |
bool | remove_on_disable |
DynamicMesh * | MeshWrapper |
std::vector< Wall * > | Walls |
SceneNode * | collider_node |
Ogre::AxisAlignedBox * | Bounds |
OgreBulletDynamics::RigidBody * | mBody |
OgreBulletCollisions::CollisionShape * | mShape |
std::string | Filename |
std::string | Meshname |
bool | model_loaded |
![]() | |
std::string | command |
std::string | command_processed |
std::string | context |
int | linenum |
std::string | includefile |
bool | parent_deleting |
Private Member Functions | |
bool | LoadFromFile (const std::string &filename) |
bool | LoadColliderModel (Ogre::MeshPtr &collidermesh) |
Private Attributes | |
bool | enabled |
bool | is_physical |
Real | restitution |
Real | friction |
Real | mass |
bool | prepared |
bool | wrapper_selfcreate |
PolyMesh * | polymesh |
Ogre::MeshPtr | collidermesh |
size_t | size |
Additional Inherited Members | |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
SBS::MeshObject::MeshObject | ( | Object * | parent, |
const std::string & | name, | ||
DynamicMesh * | wrapper = 0, | ||
const std::string & | filename = "", | ||
const std::string & | meshname = "", | ||
Real | max_render_distance = 0, | ||
Real | scale_multiplier = 1, | ||
bool | create_collider = true, | ||
bool | dynamic_buffers = false ) |
Definition at line 47 of file mesh.cpp.
References SBS::DynamicMesh::AddClient(), SBS::SBS::AddMeshHandle(), Bounds, collider_node, collidermesh, create_collider, enabled, Filename, friction, SBS::SceneNode::GetFullName(), SBS::Object::GetSceneNode(), is_physical, LoadFromFile(), LoadFromMesh(), mass, mBody, Meshname, MeshWrapper, model_loaded, mShape, SBS::ObjectBase::Name, name, polymesh, prepared, remove_on_disable, restitution, SBS::ObjectBase::sbs, SBS::SceneNode::SetScale(), SBS::Object::SetValues(), size, SBS::SBS::ToRemote(), tricollider, and wrapper_selfcreate.
|
virtual |
Definition at line 117 of file mesh.cpp.
References Bounds, collider_node, DeleteCollider(), SBS::SBS::DeleteMeshHandle(), DeleteWalls(), SBS::DynamicMesh::DetachClient(), SBS::SBS::FastDelete, MeshWrapper, polymesh, SBS::DynamicMesh::RemoveClient(), SBS::ObjectBase::sbs, and wrapper_selfcreate.
void SBS::MeshObject::ChangeHeight | ( | Real | newheight | ) |
Definition at line 654 of file mesh.cpp.
References SBS_PROFILE, and Walls.
Referenced by SBS::Elevator::MoveObjects().
bool SBS::MeshObject::ChangeTexture | ( | const std::string & | texture, |
bool | matcheck = true ) |
Definition at line 709 of file mesh.cpp.
References Walls.
Referenced by SBS::Indicator::Off(), SBS::DirectionalIndicator::SetLights(), SBS::Control::SetSelectPosition(), SBS::FloorIndicator::Update(), and SBS::Indicator::Update().
void SBS::MeshObject::CreateBoxCollider | ( | ) |
Definition at line 329 of file mesh.cpp.
References Bounds, collider_node, create_collider, SBS::SceneNode::CreateChild(), friction, SBS::ObjectBase::GetName(), SBS::SceneNode::GetRawSceneNode(), SBS::SceneNode::GetScale(), SBS::Object::GetSceneNode(), IsPhysical(), mass, mBody, mShape, SBS::SBS::mWorld, name, SBS::ObjectBase::ReportError(), restitution, SBS::ObjectBase::sbs, and SBS::SBS::ToLocal().
Referenced by EnablePhysics().
void SBS::MeshObject::CreateCollider | ( | ) |
Definition at line 802 of file mesh.cpp.
References SBS::Triangle::a, SBS::Triangle::b, SBS::Triangle::c, collider_node, create_collider, SBS::SceneNode::CreateChild(), SBS::SBS::DeleteColliders, Enabled(), SBS::Polygon::geometry, SBS::ObjectBase::GetName(), SBS::SceneNode::GetRawSceneNode(), SBS::SceneNode::GetScale(), SBS::Object::GetSceneNode(), GetTriangleCount(), GetVertexCount(), mBody, mShape, SBS::SBS::mWorld, name, remove_on_disable, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SBS_PROFILE, SBS::Polygon::triangles, and Walls.
Referenced by SBS::Wall::ChangeHeight(), SBS::Wall::DeletePolygon(), SBS::Wall::DeletePolygons(), and SBS::Wall::Move().
void SBS::MeshObject::CreateColliderFromModel | ( | int & | vertex_count, |
Vector3 *& | vertices, | ||
int & | index_count, | ||
unsigned long *& | indices ) |
Definition at line 286 of file mesh.cpp.
References collider_node, create_collider, SBS::SceneNode::CreateChild(), SBS::ObjectBase::GetName(), SBS::SceneNode::GetRawSceneNode(), SBS::Object::GetSceneNode(), mBody, mShape, SBS::SBS::mWorld, name, SBS::ObjectBase::ReportError(), and SBS::ObjectBase::sbs.
Referenced by EnablePhysics().
Wall * SBS::MeshObject::CreateWallObject | ( | const std::string & | name | ) |
Definition at line 208 of file mesh.cpp.
References name, SBS::Wall::SetParentArray(), SBS::Object::SetValues(), and Walls.
Referenced by SBS::SBS::AddCustomWall(), SBS::Door::AddDoorComponent(), SBS::ElevatorDoor::AddDoorComponent(), SBS::Utility::AddDoorwayWalls(), SBS::ElevatorCar::AddFloor(), SBS::Floor::AddFloor(), SBS::SBS::AddFloor(), SBS::Floor::AddInterfloorFloor(), SBS::Floor::AddInterfloorWall(), SBS::ButtonPanel::AddWall(), SBS::ElevatorCar::AddWall(), SBS::Floor::AddWall(), SBS::SBS::AddWall(), SBS::Control::Control(), SBS::SBS::CreateWallBox(), SBS::DirectionalIndicator::DirectionalIndicator(), SBS::FloorIndicator::FloorIndicator(), SBS::Indicator::Indicator(), SBS::RevolvingDoor::RevolvingDoor(), and Skyscraper::ScriptProcessor::CommandsSection::Run().
void SBS::MeshObject::Cut | ( | Vector3 | start, |
Vector3 | end, | ||
bool | cutwalls, | ||
bool | cutfloors, | ||
int | checkwallnumber = 0, | ||
bool | reset_check = true ) |
Definition at line 511 of file mesh.cpp.
References SBS::Utility::Cut(), SBS::SBS::GetUtility(), SBS::ObjectBase::sbs, and Walls.
Referenced by CutOutsideBounds(), and Skyscraper::ScriptProcessor::CommandsSection::Run().
void SBS::MeshObject::DeleteCollider | ( | ) |
Definition at line 914 of file mesh.cpp.
References mBody, mShape, and SBS_PROFILE.
Referenced by SBS::Wall::ChangeHeight(), SBS::PolyMesh::CreateMesh(), SBS::Wall::DeletePolygon(), SBS::Wall::DeletePolygons(), SBS::Wall::Move(), and ~MeshObject().
void SBS::MeshObject::DeleteWalls | ( | ) |
Definition at line 372 of file mesh.cpp.
References SBS::Wall::DeletePolygons(), SBS::SBS::FastDelete, SBS::Object::parent_deleting, SBS::ObjectBase::sbs, and Walls.
Referenced by SBS::Floor::~Floor(), and ~MeshObject().
void SBS::MeshObject::DeleteWalls | ( | Object * | parent | ) |
Definition at line 391 of file mesh.cpp.
References SBS::Wall::DeletePolygons(), SBS::ObjectBase::GetParent(), SBS::Object::parent_deleting, and Walls.
void SBS::MeshObject::EnableCollider | ( | bool | value | ) |
Definition at line 179 of file mesh.cpp.
References SBS::SBS::camera, SBS::Camera::IsActive(), mBody, remove_on_disable, SBS::Camera::ResetCollisions(), SBS::ObjectBase::sbs, and SBS_PROFILE.
Referenced by Enabled().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 154 of file mesh.cpp.
References SBS::SBS::camera, EnableCollider(), SBS::DynamicMesh::Enabled(), enabled, SBS::Camera::IsActive(), MeshWrapper, remove_on_disable, SBS::ObjectBase::sbs, and SBS_PROFILE.
Referenced by CreateCollider(), SBS::Floor::EnableColumnFrame(), SBS::ButtonPanel::Enabled(), SBS::Control::Enabled(), SBS::CustomObject::Enabled(), SBS::DirectionalIndicator::Enabled(), SBS::DoorWrapper::Enabled(), SBS::ElevatorCar::Enabled(), SBS::Floor::Enabled(), SBS::FloorIndicator::Enabled(), SBS::Indicator::Enabled(), SBS::Model::Enabled(), SBS::Primitive::Enabled(), SBS::RevolvingDoor::Enabled(), and SBS::Floor::EnableInterfloor().
void SBS::MeshObject::EnableDebugView | ( | bool | value | ) |
Definition at line 280 of file mesh.cpp.
References SBS::DynamicMesh::EnableDebugView(), and MeshWrapper.
void SBS::MeshObject::EnablePhysics | ( | bool | value, |
Real | restitution = 0, | ||
Real | friction = 0, | ||
Real | mass = 0 ) |
Definition at line 1206 of file mesh.cpp.
References collidermesh, create_collider, CreateBoxCollider(), CreateColliderFromModel(), Filename, friction, GetBounds(), GetMeshInformation(), is_physical, LoadColliderModel(), mass, Meshname, restitution, and tricollider.
Referenced by SBS::Primitive::Attach(), SBS::CustomObject::Finish(), SBS::Model::Model(), and Skyscraper::ScriptProcessor::CommandsSection::Run().
void SBS::MeshObject::EnableShadows | ( | bool | value | ) |
Definition at line 669 of file mesh.cpp.
References SBS::DynamicMesh::EnableShadows(), and MeshWrapper.
Wall * SBS::MeshObject::FindPolygon | ( | const std::string & | name, |
int & | index ) |
Definition at line 997 of file mesh.cpp.
References SBS::Wall::FindPolygon(), name, and Walls.
void SBS::MeshObject::GetBounds | ( | ) |
Definition at line 149 of file mesh.cpp.
References Bounds, SBS::DynamicMesh::GetBounds(), and MeshWrapper.
Referenced by SBS::Vehicle::CreateChassis(), and EnablePhysics().
DynamicMesh * SBS::MeshObject::GetDynamicMesh | ( | ) |
Definition at line 1043 of file mesh.cpp.
References MeshWrapper.
Referenced by SBS::Polygon::ChangeTexture(), and SBS::Polygon::ReplaceTexture().
Vector2 SBS::MeshObject::GetExtents | ( | int | coord, |
bool | flip_z = false ) |
Definition at line 933 of file mesh.cpp.
References SBS::Polygon::geometry, and Walls.
Real SBS::MeshObject::GetHeight | ( | ) |
Definition at line 728 of file mesh.cpp.
References SBS::Polygon::geometry, SBS::ObjectBase::sbs, SBS::SBS::ToLocal(), and Walls.
Referenced by SBS::ElevatorCar::SetHeight().
void SBS::MeshObject::GetMeshInformation | ( | const Ogre::Mesh *const | mesh, |
int & | vertex_count, | ||
Vector3 *& | vertices, | ||
int & | index_count, | ||
unsigned long *& | indices, | ||
Ogre::AxisAlignedBox & | extents ) |
Definition at line 1048 of file mesh.cpp.
References SBS::Object::GetSceneNode(), SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().
Referenced by EnablePhysics().
Vector3 SBS::MeshObject::GetOffset | ( | ) |
Definition at line 496 of file mesh.cpp.
References Bounds, SBS::Object::GetSceneNode(), SBS::ObjectBase::sbs, and SBS::SBS::ToLocal().
Referenced by SBS::Model::OnInit().
Vector3 SBS::MeshObject::GetPoint | ( | const std::string & | wallname, |
const Vector3 & | start, | ||
const Vector3 & | end ) |
Definition at line 412 of file mesh.cpp.
References SBS::Wall::GetPoint(), and GetWallByName().
Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().
PolyMesh * SBS::MeshObject::GetPolyMesh | ( | ) |
Definition at line 676 of file mesh.cpp.
References polymesh.
Referenced by SBS::Wall::AddPolygon(), SBS::Wall::AddPolygonSet(), SBS::Wall::GetPoint(), and SBS::SBS::HitBeam().
size_t SBS::MeshObject::GetSize | ( | ) |
Definition at line 1247 of file mesh.cpp.
References size, SBS::Polygon::size, and Walls.
unsigned int SBS::MeshObject::GetTriangleCount | ( | const std::string & | material, |
bool | total ) |
Definition at line 1175 of file mesh.cpp.
References SBS::Polygon::material, SBS::Polygon::triangles, and Walls.
Referenced by CreateCollider().
unsigned int SBS::MeshObject::GetVertexCount | ( | ) |
Definition at line 1162 of file mesh.cpp.
References Walls.
Referenced by CreateCollider(), SBS::DynamicMesh::Mesh::Prepare(), and SBS::DynamicMesh::Mesh::UpdateVertices().
Wall * SBS::MeshObject::GetWallByName | ( | std::string | name | ) |
Definition at line 219 of file mesh.cpp.
References SBS::ObjectBase::GetName(), name, SBS::SetCase(), SBS::SetCaseCopy(), and Walls.
Referenced by GetPoint(), GetWallExtents(), and Skyscraper::ScriptProcessor::CommandsSection::Run().
Definition at line 425 of file mesh.cpp.
References GetWallByName(), SBS::Wall::GetWallExtents(), and name.
Referenced by Skyscraper::ScriptProcessor::CommandsSection::Run().
Real SBS::MeshObject::HitBeam | ( | const Vector3 & | origin, |
const Vector3 & | direction, | ||
Real | max_distance ) |
Definition at line 760 of file mesh.cpp.
References SBS::Triangle::a, SBS::Triangle::b, SBS::Triangle::c, SBS::Object::GetPosition(), SBS::Polygon::GetVertex(), SBS::ObjectBase::sbs, SBS_PROFILE, SBS::SBS::ToLocal(), SBS::SBS::ToRemote(), SBS::Polygon::triangles, and Walls.
Referenced by SBS::ElevatorCar::IsInCar(), and SBS::Stairwell::IsInside().
bool SBS::MeshObject::InBoundingBox | ( | const Vector3 & | pos, |
bool | check_y ) |
Definition at line 1018 of file mesh.cpp.
References Bounds, SBS::Object::GetPosition(), SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().
Referenced by SBS::ElevatorCar::IsInCar().
bool SBS::MeshObject::IsEnabled | ( | ) |
Definition at line 236 of file mesh.cpp.
References enabled.
Referenced by SBS::CustomObject::IsEnabled(), SBS::Model::IsEnabled(), SBS::Primitive::IsEnabled(), and IsVisible().
bool SBS::MeshObject::IsPhysical | ( | ) |
Definition at line 491 of file mesh.cpp.
References is_physical.
Referenced by CreateBoxCollider(), SBS::CustomObject::IsPhysical(), SBS::Model::IsPhysical(), and SBS::Primitive::IsPhysical().
bool SBS::MeshObject::IsVisible | ( | Ogre::Camera * | camera | ) |
Definition at line 466 of file mesh.cpp.
References Bounds, SBS::Object::GetPosition(), IsEnabled(), SBS::DynamicMesh::IsVisible(), MeshWrapper, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().
Referenced by SBS::Camera::IsMeshVisible().
|
private |
Definition at line 614 of file mesh.cpp.
References collidermesh, Filename, SBS::SBS::GetMountPath(), is_physical, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, and SBS::SBS::VerifyFile().
Referenced by EnablePhysics().
|
private |
Definition at line 543 of file mesh.cpp.
References SBS::SBS::AmbientB, SBS::SBS::AmbientG, SBS::SBS::AmbientR, SBS::SBS::GetConfigBool(), SBS::SBS::GetMountPath(), SBS::DynamicMesh::LoadFromFile(), MeshWrapper, model_loaded, SBS::ObjectBase::Report(), SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SBS::StartsWith(), SBS::TrimString(), and SBS::SBS::VerifyFile().
Referenced by MeshObject().
bool SBS::MeshObject::LoadFromMesh | ( | const std::string & | meshname | ) |
Definition at line 643 of file mesh.cpp.
References SBS::DynamicMesh::LoadFromMesh(), and MeshWrapper.
Referenced by MeshObject().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 437 of file mesh.cpp.
References collider_node, mBody, MeshWrapper, SBS::SceneNode::Update(), SBS::DynamicMesh::UpdateVertices(), and UsingDynamicBuffers().
Referenced by OnRotate().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 449 of file mesh.cpp.
References collider_node, mBody, MeshWrapper, OnMove(), SBS::SceneNode::Update(), SBS::DynamicMesh::UpdateVertices(), and UsingDynamicBuffers().
void SBS::MeshObject::Prepare | ( | bool | force = false | ) |
Definition at line 241 of file mesh.cpp.
References Bounds, SBS::Polygon::geometry, MeshWrapper, model_loaded, SBS::DynamicMesh::NeedsUpdate(), prepared, SBS_PROFILE, and Walls.
Referenced by SBS::Wall::ChangeHeight(), SBS::Wall::DeletePolygon(), SBS::Wall::DeletePolygons(), and SBS::Wall::Move().
bool SBS::MeshObject::ReplaceTexture | ( | const std::string & | oldtexture, |
const std::string & | newtexture ) |
Definition at line 691 of file mesh.cpp.
References Walls.
Referenced by SBS::ElevatorCar::ReplaceTexture(), SBS::Floor::ReplaceTexture(), and SBS::Action::Run().
void SBS::MeshObject::ResetPrepare | ( | ) |
Definition at line 686 of file mesh.cpp.
References prepared.
Referenced by SBS::Polygon::Polygon(), and SBS::Polygon::~Polygon().
void SBS::MeshObject::SetMaterial | ( | const std::string & | material | ) |
Definition at line 1199 of file mesh.cpp.
References MeshWrapper, and SBS::DynamicMesh::SetMaterial().
Referenced by SBS::CustomObject::SetTexture(), and SBS::Primitive::SetTexture().
bool SBS::MeshObject::UsingDynamicBuffers | ( | ) |
Definition at line 649 of file mesh.cpp.
References MeshWrapper, and SBS::DynamicMesh::UseDynamicBuffers().
Referenced by SBS::Polygon::ChangeHeight(), SBS::Wall::ChangeHeight(), SBS::Polygon::Move(), SBS::Wall::Move(), OnMove(), and OnRotate().
Ogre::AxisAlignedBox* SBS::MeshObject::Bounds |
Definition at line 102 of file mesh.h.
Referenced by CreateBoxCollider(), SBS::Vehicle::CreateChassis(), GetBounds(), GetOffset(), SBS::Vehicle::GetWidth(), InBoundingBox(), IsVisible(), MeshObject(), Prepare(), and ~MeshObject().
SceneNode* SBS::MeshObject::collider_node |
Definition at line 101 of file mesh.h.
Referenced by CreateBoxCollider(), CreateCollider(), CreateColliderFromModel(), MeshObject(), OnMove(), OnRotate(), and ~MeshObject().
|
private |
Definition at line 121 of file mesh.h.
Referenced by EnablePhysics(), LoadColliderModel(), and MeshObject().
bool SBS::MeshObject::create_collider |
Definition at line 47 of file mesh.h.
Referenced by CreateBoxCollider(), CreateCollider(), CreateColliderFromModel(), EnablePhysics(), and MeshObject().
|
private |
Definition at line 112 of file mesh.h.
Referenced by Enabled(), IsEnabled(), and MeshObject().
std::string SBS::MeshObject::Filename |
Definition at line 107 of file mesh.h.
Referenced by SBS::PolyMesh::CreateMesh(), EnablePhysics(), LoadColliderModel(), and MeshObject().
|
private |
Definition at line 114 of file mesh.h.
Referenced by CreateBoxCollider(), EnablePhysics(), and MeshObject().
|
private |
Definition at line 113 of file mesh.h.
Referenced by EnablePhysics(), IsPhysical(), LoadColliderModel(), and MeshObject().
|
private |
Definition at line 114 of file mesh.h.
Referenced by CreateBoxCollider(), EnablePhysics(), and MeshObject().
OgreBulletDynamics::RigidBody* SBS::MeshObject::mBody |
Definition at line 104 of file mesh.h.
Referenced by CreateBoxCollider(), CreateCollider(), CreateColliderFromModel(), DeleteCollider(), EnableCollider(), MeshObject(), OnMove(), and OnRotate().
std::string SBS::MeshObject::Meshname |
Definition at line 108 of file mesh.h.
Referenced by EnablePhysics(), and MeshObject().
DynamicMesh* SBS::MeshObject::MeshWrapper |
Definition at line 98 of file mesh.h.
Referenced by SBS::Polygon::ChangeHeight(), Enabled(), EnableDebugView(), EnableShadows(), GetBounds(), GetDynamicMesh(), IsVisible(), LoadFromFile(), LoadFromMesh(), MeshObject(), SBS::Polygon::Move(), OnMove(), OnRotate(), Prepare(), SetMaterial(), UsingDynamicBuffers(), and ~MeshObject().
bool SBS::MeshObject::model_loaded |
Definition at line 109 of file mesh.h.
Referenced by LoadFromFile(), MeshObject(), SBS::Model::Model(), and Prepare().
OgreBulletCollisions::CollisionShape* SBS::MeshObject::mShape |
Definition at line 105 of file mesh.h.
Referenced by CreateBoxCollider(), CreateCollider(), CreateColliderFromModel(), DeleteCollider(), and MeshObject().
std::string SBS::MeshObject::name |
Definition at line 46 of file mesh.h.
Referenced by CreateBoxCollider(), CreateCollider(), CreateColliderFromModel(), CreateWallObject(), FindPolygon(), GetWallByName(), GetWallExtents(), and MeshObject().
|
private |
Definition at line 120 of file mesh.h.
Referenced by GetPolyMesh(), MeshObject(), and ~MeshObject().
|
private |
Definition at line 115 of file mesh.h.
Referenced by IsPrepared(), MeshObject(), Prepare(), and ResetPrepare().
bool SBS::MeshObject::remove_on_disable |
Definition at line 49 of file mesh.h.
Referenced by CreateCollider(), SBS::DoorComponent::DoorComponent(), EnableCollider(), Enabled(), and MeshObject().
|
private |
Definition at line 114 of file mesh.h.
Referenced by CreateBoxCollider(), EnablePhysics(), and MeshObject().
|
private |
Definition at line 122 of file mesh.h.
Referenced by SBS::DynamicMesh::ChangeTexture(), SBS::DynamicMesh::Enabled(), SBS::DynamicMesh::EnableDebugView(), SBS::DynamicMesh::GetBounds(), GetSize(), SBS::DynamicMesh::IsVisible(), SBS::DynamicMesh::IsVisible(), MeshObject(), SBS::DynamicMesh::NeedsUpdate(), and SBS::DynamicMesh::Prepare().
bool SBS::MeshObject::tricollider |
Definition at line 48 of file mesh.h.
Referenced by EnablePhysics(), and MeshObject().
std::vector<Wall*> SBS::MeshObject::Walls |
Definition at line 99 of file mesh.h.
Referenced by ChangeHeight(), ChangeTexture(), CreateCollider(), CreateWallObject(), SBS::Floor::Cut(), Cut(), SBS::Floor::CutAll(), SBS::Shaft::CutFloors(), SBS::Stairwell::CutFloors(), DeleteWalls(), DeleteWalls(), FindPolygon(), SBS::PolyMesh::FindWallIntersect(), GetExtents(), GetHeight(), GetSize(), GetTriangleCount(), GetVertexCount(), GetWallByName(), HitBeam(), SBS::DynamicMesh::Mesh::Prepare(), Prepare(), ReplaceTexture(), and SBS::DynamicMesh::Mesh::UpdateVertices().
|
private |
Definition at line 116 of file mesh.h.
Referenced by MeshObject(), and ~MeshObject().