GClasses
|
A single triangle in a ray-tracing scene.
#include <GRayTrace.h>
Public Member Functions | |
GRayTraceTriangle (GRayTraceTriMesh *pMesh, size_t nIndex) | |
GRayTraceTriangle (GDomNode *pNode, GRayTraceScene *pScene) | |
virtual | ~GRayTraceTriangle () |
virtual void | adjustBoundingBox (G3DVector *pMin, G3DVector *pMax) |
virtual void | center (G3DVector *pOutPoint) |
virtual void | drawWireFrame (GCamera *pCamera, GImage *pImage) |
virtual bool | isCulled () |
virtual GRayTraceMaterial * | material () |
virtual void | normalVector (GRayTraceRay *pRay) |
virtual G3DReal | rayDistance (G3DVector *pRayOrigin, G3DVector *pRayDirection) |
virtual GDomNode * | serialize (GDom *pDoc, const GRayTraceScene *pScene) const |
virtual ObjectType | type () const |
G3DVector * | vertex (int nVertex) |
Public Member Functions inherited from GClasses::GRayTraceObject | |
GRayTraceObject () | |
virtual | ~GRayTraceObject () |
Protected Attributes | |
size_t | m_nIndex |
GRayTraceTriMesh * | m_pMesh |
Additional Inherited Members | |
Public Types inherited from GClasses::GRayTraceObject | |
Static Public Member Functions inherited from GClasses::GRayTraceObject | |
static GRayTraceObject * | deserialize (GDomNode *pNode, GRayTraceScene *pScene) |
|
inline |
GClasses::GRayTraceTriangle::GRayTraceTriangle | ( | GDomNode * | pNode, |
GRayTraceScene * | pScene | ||
) |
|
inlinevirtual |
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
G3DVector* GClasses::GRayTraceTriangle::vertex | ( | int | nVertex | ) |
|
protected |
|
protected |