GClasses
|
A sphere in a ray-tracing scene.
#include <GRayTrace.h>
Public Member Functions | |
GRayTraceSphere (GRayTraceMaterial *pMaterial, G3DReal x, G3DReal y, G3DReal z, G3DReal rad) | |
GRayTraceSphere (GDomNode *pNode, GRayTraceScene *pScene) | |
virtual | ~GRayTraceSphere () |
virtual void | adjustBoundingBox (G3DVector *pMin, G3DVector *pMax) |
virtual void | center (G3DVector *pOutPoint) |
G3DVector * | center () |
virtual void | drawWireFrame (GCamera *pCamera, GImage *pImage) |
virtual bool | isCulled () |
virtual GRayTraceMaterial * | material () |
virtual void | normalVector (GRayTraceRay *pRay) |
G3DReal | radius () |
virtual G3DReal | rayDistance (G3DVector *pRayOrigin, G3DVector *pRayDirection) |
virtual GDomNode * | serialize (GDom *pDoc, const GRayTraceScene *pScene) const |
virtual ObjectType | type () const |
Public Member Functions inherited from GClasses::GRayTraceObject | |
GRayTraceObject () | |
virtual | ~GRayTraceObject () |
Protected Attributes | |
G3DVector | m_center |
GRayTraceMaterial * | m_pMaterial |
G3DReal | m_radius |
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::GRayTraceSphere::GRayTraceSphere | ( | GDomNode * | pNode, |
GRayTraceScene * | pScene | ||
) |
|
inlinevirtual |
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
inline |
|
virtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
inline |
|
virtual |
Implements GClasses::GRayTraceObject.
|
virtual |
Implements GClasses::GRayTraceObject.
|
inlinevirtual |
Implements GClasses::GRayTraceObject.
|
protected |
|
protected |
|
protected |