TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VMAP::MapRayCallback Class Reference

Public Member Functions

 MapRayCallback (ModelInstance *val)
 
bool operator() (const G3D::Ray &ray, uint32 entry, float &distance, bool pStopAtFirstHit=true)
 
bool didHit ()
 

Protected Attributes

ModelInstanceprims
 
bool hit
 

Constructor & Destructor Documentation

VMAP::MapRayCallback::MapRayCallback ( ModelInstance val)
inline
39 : prims(val), hit(false) { }
bool hit
Definition: MapTree.cpp:50
ModelInstance * prims
Definition: MapTree.cpp:49

Member Function Documentation

bool VMAP::MapRayCallback::didHit ( )
inline
47 { return hit; }
bool hit
Definition: MapTree.cpp:50

+ Here is the caller graph for this function:

bool VMAP::MapRayCallback::operator() ( const G3D::Ray ray,
uint32  entry,
float &  distance,
bool  pStopAtFirstHit = true 
)
inline
41  {
42  bool result = prims[entry].intersectRay(ray, distance, pStopAtFirstHit);
43  if (result)
44  hit = true;
45  return result;
46  }
double distance(double x, double y)
Definition: g3dmath.h:731
bool intersectRay(const G3D::Ray &pRay, float &pMaxDist, bool pStopAtFirstHit) const
Definition: ModelInstance.cpp:35
bool hit
Definition: MapTree.cpp:50
ModelInstance * prims
Definition: MapTree.cpp:49

+ Here is the call graph for this function:

Member Data Documentation

bool VMAP::MapRayCallback::hit
protected
ModelInstance* VMAP::MapRayCallback::prims
protected

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