TrinityCore
VMAP::ModelInstance Class Reference

#include <ModelInstance.h>

+ Inheritance diagram for VMAP::ModelInstance:

Public Member Functions

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

Protected Attributes

G3D::Matrix3 iInvRot
 
float iInvScale
 
WorldModeliModel
 

Additional Inherited Members

- Public Attributes inherited from VMAP::ModelMinimalData
uint8 flags
 
uint8 adtId
 
uint32 ID
 
G3D::Vector3 iPos
 
float iScale
 
G3D::AABox iBound
 

Detailed Description

Definition at line 69 of file ModelInstance.h.

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

VMAP::ModelInstance::ModelInstance ( )
inline

Definition at line 72 of file ModelInstance.h.

◆ ModelInstance() [2/2]

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

Definition at line 27 of file ModelInstance.cpp.

Member Function Documentation

◆ GetInvRot()

G3D::Matrix3 const & VMAP::ModelInstance::GetInvRot ( ) const
inline

Definition at line 78 of file ModelInstance.h.

+ Here is the caller graph for this function:

◆ GetLiquidLevel()

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

Definition at line 106 of file ModelInstance.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetLocationInfo()

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

Definition at line 66 of file ModelInstance.cpp.

+ Here is the call graph for this function:

◆ getWorldModel()

WorldModel const * VMAP::ModelInstance::getWorldModel ( ) const
inline

Definition at line 79 of file ModelInstance.h.

+ Here is the caller graph for this function:

◆ intersectRay()

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

Definition at line 33 of file ModelInstance.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUnloaded()

void VMAP::ModelInstance::setUnloaded ( )
inline

Definition at line 74 of file ModelInstance.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ iInvRot

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

Definition at line 81 of file ModelInstance.h.

◆ iInvScale

float VMAP::ModelInstance::iInvScale
protected

Definition at line 82 of file ModelInstance.h.

◆ iModel

WorldModel* VMAP::ModelInstance::iModel
protected

Definition at line 83 of file ModelInstance.h.


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