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, std::shared_ptr< 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, GroupModel const *model, float &liqHeight) const
 
G3D::Matrix3 const & GetInvRot () const
 
WorldModel const * getWorldModel () const
 
void AddTileReference ()
 
uint32 RemoveTileReference ()
 
- 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
 
std::shared_ptr< WorldModel > iModel
 
uint32 referencingTiles
 

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 70 of file ModelInstance.h.

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

VMAP::ModelInstance::ModelInstance ( )
inline

Definition at line 73 of file ModelInstance.h.

◆ ModelInstance() [2/2]

VMAP::ModelInstance::ModelInstance ( ModelSpawn const &  spawn,
std::shared_ptr< WorldModel >  model 
)

Member Function Documentation

◆ AddTileReference()

void VMAP::ModelInstance::AddTileReference ( )
inline

Definition at line 81 of file ModelInstance.h.

◆ GetInvRot()

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

Definition at line 79 of file ModelInstance.h.

◆ GetLiquidLevel()

bool VMAP::ModelInstance::GetLiquidLevel ( G3D::Vector3 const &  p,
GroupModel const *  model,
float &  liqHeight 
) const

◆ GetLocationInfo()

◆ getWorldModel()

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

Definition at line 80 of file ModelInstance.h.

◆ intersectRay()

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

◆ RemoveTileReference()

uint32 VMAP::ModelInstance::RemoveTileReference ( )
inline

Definition at line 82 of file ModelInstance.h.

◆ setUnloaded()

void VMAP::ModelInstance::setUnloaded ( )
inline

Definition at line 75 of file ModelInstance.h.

Member Data Documentation

◆ iInvRot

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

Definition at line 84 of file ModelInstance.h.

Referenced by GetLiquidLevel(), GetLocationInfo(), intersectRay(), and ModelInstance().

◆ iInvScale

float VMAP::ModelInstance::iInvScale
protected

Definition at line 85 of file ModelInstance.h.

Referenced by GetLiquidLevel(), GetLocationInfo(), intersectRay(), and ModelInstance().

◆ iModel

std::shared_ptr<WorldModel> VMAP::ModelInstance::iModel
protected

Definition at line 86 of file ModelInstance.h.

Referenced by GetLocationInfo(), and intersectRay().

◆ referencingTiles

uint32 VMAP::ModelInstance::referencingTiles
protected

Definition at line 87 of file ModelInstance.h.


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