GClasses
GClasses::GRayTraceTriangle Class Reference

Detailed Description

A single triangle in a ray-tracing scene.

#include <GRayTrace.h>

Inheritance diagram for GClasses::GRayTraceTriangle:
GClasses::GRayTraceObject

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 GRayTraceMaterialmaterial ()
 
virtual void normalVector (GRayTraceRay *pRay)
 
virtual G3DReal rayDistance (G3DVector *pRayOrigin, G3DVector *pRayDirection)
 
virtual GDomNodeserialize (GDom *pDoc, const GRayTraceScene *pScene) const
 
virtual ObjectType type () const
 
G3DVectorvertex (int nVertex)
 
- Public Member Functions inherited from GClasses::GRayTraceObject
 GRayTraceObject ()
 
virtual ~GRayTraceObject ()
 

Protected Attributes

size_t m_nIndex
 
GRayTraceTriMeshm_pMesh
 

Additional Inherited Members

- Public Types inherited from GClasses::GRayTraceObject
- Static Public Member Functions inherited from GClasses::GRayTraceObject
static GRayTraceObjectdeserialize (GDomNode *pNode, GRayTraceScene *pScene)
 

Constructor & Destructor Documentation

GClasses::GRayTraceTriangle::GRayTraceTriangle ( GRayTraceTriMesh pMesh,
size_t  nIndex 
)
inline
GClasses::GRayTraceTriangle::GRayTraceTriangle ( GDomNode pNode,
GRayTraceScene pScene 
)
virtual GClasses::GRayTraceTriangle::~GRayTraceTriangle ( )
inlinevirtual

Member Function Documentation

virtual void GClasses::GRayTraceTriangle::adjustBoundingBox ( G3DVector pMin,
G3DVector pMax 
)
virtual
virtual void GClasses::GRayTraceTriangle::center ( G3DVector pOutPoint)
virtual
virtual void GClasses::GRayTraceTriangle::drawWireFrame ( GCamera pCamera,
GImage pImage 
)
virtual
virtual bool GClasses::GRayTraceTriangle::isCulled ( )
inlinevirtual
virtual GRayTraceMaterial* GClasses::GRayTraceTriangle::material ( )
inlinevirtual
virtual void GClasses::GRayTraceTriangle::normalVector ( GRayTraceRay *  pRay)
virtual
virtual G3DReal GClasses::GRayTraceTriangle::rayDistance ( G3DVector pRayOrigin,
G3DVector pRayDirection 
)
virtual
virtual GDomNode* GClasses::GRayTraceTriangle::serialize ( GDom pDoc,
const GRayTraceScene pScene 
) const
virtual
virtual ObjectType GClasses::GRayTraceTriangle::type ( ) const
inlinevirtual
G3DVector* GClasses::GRayTraceTriangle::vertex ( int  nVertex)

Member Data Documentation

size_t GClasses::GRayTraceTriangle::m_nIndex
protected
GRayTraceTriMesh* GClasses::GRayTraceTriangle::m_pMesh
protected