TrinityCore
Loading...
Searching...
No Matches
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
 
WorldModelgetWorldModel ()
 
- Public Member Functions inherited from VMAP::ModelSpawn
bool operator== (ModelSpawn const &other) const
 
const G3D::AABox & getBounds () 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, ModelSpawn const &spawn)
 
- Public Attributes inherited from VMAP::ModelSpawn
uint32 flags
 
uint16 adtId
 
uint32 ID
 
G3D::Vector3 iPos
 
G3D::Vector3 iRot
 
float iScale
 
G3D::AABox iBound
 
std::string name
 

Detailed Description

Definition at line 63 of file ModelInstance.h.

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

VMAP::ModelInstance::ModelInstance ( )
inline

Definition at line 66 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

◆ 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 * VMAP::ModelInstance::getWorldModel ( )
inline

Definition at line 72 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 68 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 74 of file ModelInstance.h.

◆ iInvScale

float VMAP::ModelInstance::iInvScale
protected

Definition at line 75 of file ModelInstance.h.

◆ iModel

WorldModel* VMAP::ModelInstance::iModel
protected

Definition at line 76 of file ModelInstance.h.


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