GClasses
GClasses::GRayTraceSphere Class Reference

Detailed Description

A sphere in a ray-tracing scene.

#include <GRayTrace.h>

Inheritance diagram for GClasses::GRayTraceSphere:
GClasses::GRayTraceObject

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)
 
G3DVectorcenter ()
 
virtual void drawWireFrame (GCamera *pCamera, GImage *pImage)
 
virtual bool isCulled ()
 
virtual GRayTraceMaterialmaterial ()
 
virtual void normalVector (GRayTraceRay *pRay)
 
G3DReal radius ()
 
virtual G3DReal rayDistance (G3DVector *pRayOrigin, G3DVector *pRayDirection)
 
virtual GDomNodeserialize (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
 
GRayTraceMaterialm_pMaterial
 
G3DReal m_radius
 

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::GRayTraceSphere::GRayTraceSphere ( GRayTraceMaterial pMaterial,
G3DReal  x,
G3DReal  y,
G3DReal  z,
G3DReal  rad 
)
inline
GClasses::GRayTraceSphere::GRayTraceSphere ( GDomNode pNode,
GRayTraceScene pScene 
)
virtual GClasses::GRayTraceSphere::~GRayTraceSphere ( )
inlinevirtual

Member Function Documentation

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

Member Data Documentation

G3DVector GClasses::GRayTraceSphere::m_center
protected
GRayTraceMaterial* GClasses::GRayTraceSphere::m_pMaterial
protected
G3DReal GClasses::GRayTraceSphere::m_radius
protected