Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
VMAP::ModelInstance Class Reference

#include <ModelInstance.h>

Inheritance diagram for VMAP::ModelInstance:
Collaboration diagram for VMAP::ModelInstance:

Public Member Functions

bool GetLiquidLevel (const G3D::Vector3 &p, LocationInfo &info, float &liqHeight) const
bool GetLocationInfo (const G3D::Vector3 &p, LocationInfo &info) const
WorldModelgetWorldModel ()
void intersectPoint (const G3D::Vector3 &p, AreaInfo &info) const
bool intersectRay (const G3D::Ray &pRay, float &pMaxDist, bool pStopAtFirstHit) const
 ModelInstance ()
 ModelInstance (const ModelSpawn &spawn, WorldModel *model)
void setUnloaded ()
Public Member Functions inherited from VMAP::ModelSpawn
const G3D::AABox & getBounds () const
bool operator== (const ModelSpawn &other) const

Protected Attributes

G3D::Matrix3 iInvRot
float iInvScale
WorldModeliModel

Additional Inherited Members

Static Public Member Functions inherited from VMAP::ModelSpawn
static bool readFromFile (FILE *rf, ModelSpawn &spawn)
static bool writeToFile (FILE *rw, const ModelSpawn &spawn)
Public Attributes inherited from VMAP::ModelSpawn
uint16 adtId
uint32 flags
G3D::AABox iBound
uint32 ID
G3D::Vector3 iPos
G3D::Vector3 iRot
float iScale
std::string name

Detailed Description

Definition at line 50 of file ModelInstance.h.

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

VMAP::ModelInstance::ModelInstance ( )
inline

Definition at line 53 of file ModelInstance.h.

References iInvScale, and iModel.

◆ ModelInstance() [2/2]

ModelInstance::ModelInstance ( const ModelSpawn & spawn,
WorldModel * model )

Member Function Documentation

◆ GetLiquidLevel()

bool ModelInstance::GetLiquidLevel ( const G3D::Vector3 & p,
LocationInfo & info,
float & liqHeight ) const

◆ GetLocationInfo()

bool ModelInstance::GetLocationInfo ( const G3D::Vector3 & p,
LocationInfo & info ) const

◆ getWorldModel()

WorldModel * ModelInstance::getWorldModel ( )

Definition at line 45 of file VMapExtensions.cpp.

References iModel.

Referenced by MMAP::TerrainBuilder::loadVMap().

◆ intersectPoint()

◆ intersectRay()

bool ModelInstance::intersectRay ( const G3D::Ray & pRay,
float & pMaxDist,
bool pStopAtFirstHit ) const

◆ setUnloaded()

void VMAP::ModelInstance::setUnloaded ( )
inline

Definition at line 55 of file ModelInstance.h.

References iModel.

Member Data Documentation

◆ iInvRot

G3D::Matrix3 VMAP::ModelInstance::iInvRot
protected

◆ iInvScale

float VMAP::ModelInstance::iInvScale
protected

◆ iModel

WorldModel* VMAP::ModelInstance::iModel
protected

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