|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WorldModel.h>
Public Member Functions | |
| const G3D::AABox & | GetBound () const |
| bool | GetLiquidLevel (const G3D::Vector3 &pos, float &liqHeight) const |
| uint32 | GetLiquidType () const |
| void | getMeshData (std::vector< G3D::Vector3 > &vertices, std::vector< MeshTriangle > &triangles, WmoLiquid *&liquid) |
| uint32 | GetMogpFlags () const |
| uint32 | GetWmoID () const |
| GroupModel () | |
| GroupModel (const GroupModel &other) | |
| GroupModel (uint32 mogpFlags, uint32 groupWMOID, const G3D::AABox &bound) | |
| bool | IntersectRay (const G3D::Ray &ray, float &distance, bool stopAtFirstHit) const |
| bool | IsInsideObject (const G3D::Vector3 &pos, const G3D::Vector3 &down, float &z_dist) const |
| bool | readFromFile (FILE *rf) |
| void | setLiquidData (WmoLiquid *&liquid) |
| void | setMeshData (std::vector< G3D::Vector3 > &vert, std::vector< MeshTriangle > &tri) |
| pass mesh data to object and create BIH. Passed vectors get get swapped with old geometry! | |
| bool | writeToFile (FILE *wf) |
| ~GroupModel () | |
Protected Attributes | |
| G3D::AABox | iBound |
| uint32 | iGroupWMOID |
| WmoLiquid * | iLiquid |
| uint32 | iMogpFlags |
| BIH | meshTree |
| std::vector< MeshTriangle > | triangles |
| std::vector< G3D::Vector3 > | vertices |
holding additional info for WMO group files
Definition at line 61 of file WorldModel.h.
|
inline |
Definition at line 64 of file WorldModel.h.
References iBound, iGroupWMOID, iLiquid, and iMogpFlags.
Referenced by GroupModel().
| VMAP::GroupModel::GroupModel | ( | const GroupModel & | other | ) |
Definition at line 242 of file WorldModel.cpp.
References GroupModel(), iBound, iGroupWMOID, iLiquid, iMogpFlags, meshTree, triangles, and vertices.
|
inline |
Definition at line 66 of file WorldModel.h.
References iBound, iGroupWMOID, iLiquid, and iMogpFlags.
|
inline |
Definition at line 68 of file WorldModel.h.
References iLiquid.
|
inline |
Definition at line 79 of file WorldModel.h.
References iBound.
Referenced by BoundsTrait< VMAP::GroupModel >::getBounds(), and VMAP::WModelAreaCallback::operator()().
| bool VMAP::GroupModel::GetLiquidLevel | ( | const G3D::Vector3 & | pos, |
| float & | liqHeight ) const |
Definition at line 386 of file WorldModel.cpp.
References iLiquid.
Referenced by VMAP::ModelInstance::GetLiquidLevel().
| uint32 VMAP::GroupModel::GetLiquidType | ( | ) | const |
Definition at line 393 of file WorldModel.cpp.
References iLiquid.
Referenced by VMAP::VMapManager2::GetLiquidLevel().
| void VMAP::GroupModel::getMeshData | ( | std::vector< G3D::Vector3 > & | vertices, |
| std::vector< MeshTriangle > & | triangles, | ||
| WmoLiquid *& | liquid ) |
Definition at line 37 of file VMapExtensions.cpp.
|
inline |
Definition at line 80 of file WorldModel.h.
References iMogpFlags.
Referenced by VMAP::WModelAreaCallback::operator()().
|
inline |
Definition at line 81 of file WorldModel.h.
References iGroupWMOID.
Referenced by VMAP::WModelAreaCallback::operator()().
| bool VMAP::GroupModel::IntersectRay | ( | const G3D::Ray & | ray, |
| float & | distance, | ||
| bool | stopAtFirstHit ) const |
Definition at line 362 of file WorldModel.cpp.
References VMAP::GModelRayCallback::hit, meshTree, triangles, and vertices.
Referenced by IsInsideObject().
| bool VMAP::GroupModel::IsInsideObject | ( | const G3D::Vector3 & | pos, |
| const G3D::Vector3 & | down, | ||
| float & | z_dist ) const |
Definition at line 372 of file WorldModel.cpp.
References iBound, IntersectRay(), triangles, and vertices.
| bool VMAP::GroupModel::readFromFile | ( | FILE * | rf | ) |
Definition at line 304 of file WorldModel.cpp.
References iBound, iGroupWMOID, iLiquid, iMogpFlags, meshTree, VMAP::readChunk(), VMAP::WmoLiquid::readFromFile(), triangles, and vertices.
|
inline |
Definition at line 72 of file WorldModel.h.
References iLiquid.
| void VMAP::GroupModel::setMeshData | ( | std::vector< G3D::Vector3 > & | vert, |
| std::vector< MeshTriangle > & | tri ) |
| bool VMAP::GroupModel::writeToFile | ( | FILE * | wf | ) |
Definition at line 258 of file WorldModel.cpp.
References iBound, iGroupWMOID, iLiquid, iMogpFlags, meshTree, triangles, and vertices.
|
protected |
Definition at line 83 of file WorldModel.h.
Referenced by GetBound(), GroupModel(), GroupModel(), GroupModel(), IsInsideObject(), readFromFile(), and writeToFile().
|
protected |
Definition at line 85 of file WorldModel.h.
Referenced by GetWmoID(), GroupModel(), GroupModel(), GroupModel(), readFromFile(), and writeToFile().
|
protected |
Definition at line 89 of file WorldModel.h.
Referenced by GetLiquidLevel(), GetLiquidType(), getMeshData(), GroupModel(), GroupModel(), GroupModel(), readFromFile(), setLiquidData(), writeToFile(), and ~GroupModel().
|
protected |
Definition at line 84 of file WorldModel.h.
Referenced by GetMogpFlags(), GroupModel(), GroupModel(), GroupModel(), readFromFile(), and writeToFile().
|
protected |
Definition at line 88 of file WorldModel.h.
Referenced by GroupModel(), IntersectRay(), readFromFile(), setMeshData(), and writeToFile().
|
protected |
Definition at line 87 of file WorldModel.h.
Referenced by getMeshData(), GroupModel(), IntersectRay(), IsInsideObject(), readFromFile(), setMeshData(), and writeToFile().
|
protected |
Definition at line 86 of file WorldModel.h.
Referenced by getMeshData(), GroupModel(), IntersectRay(), IsInsideObject(), readFromFile(), setMeshData(), and writeToFile().