Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

VPSphere Class Reference

A sphere. More...

#include <vpsphere.h>

Inheritance diagram for VPSphere:

VPGraphicObj VPSceneNode VPMemoryObj List of all members.

Public Member Functions

 VPSphere ()
 VPSphere (float fRad)
void SetRadius (float r)
void SetMaterial (const VPMaterial &mat)
 Material assignment.
VPMaterial GetMaterial () const
 Returns of copy of the cylinder's material.
float GetRadius ()
bool DrawInstanceOGL () const
 Draws the sphere using OpenGL engine.
virtual void ComputeBoundingBox ()
 Computes the bounding box.

Detailed Description

A sphere.

Spheres are created with center at the origin.

Definition at line 17 of file vpsphere.h.


Constructor & Destructor Documentation

VPSphere::VPSphere  ) 
 

Definition at line 25 of file vpsphere.cpp.

VPSphere::VPSphere float  fRad  ) 
 

Definition at line 29 of file vpsphere.cpp.


Member Function Documentation

void VPSphere::ComputeBoundingBox  )  [virtual]
 

Computes the bounding box.

Implements VPGraphicObj.

Definition at line 41 of file vpsphere.cpp.

References VPGraphicObj::bBox, VPBoundingBox::SetGreaterX(), VPBoundingBox::SetGreaterY(), VPBoundingBox::SetGreaterZ(), VPBoundingBox::SetSmallerX(), VPBoundingBox::SetSmallerY(), and VPBoundingBox::SetSmallerZ().

bool VPSphere::DrawInstanceOGL  )  const [virtual]
 

Draws the sphere using OpenGL engine.

Returns:
false if VPAT has not been compiled with OpenGL support.

Reimplemented from VPSceneNode.

Definition at line 50 of file vpsphere.cpp.

References VPMaterial::DrawOGL().

VPMaterial VPSphere::GetMaterial  )  const [inline]
 

Returns of copy of the cylinder's material.

Definition at line 25 of file vpsphere.h.

float VPSphere::GetRadius  ) 
 

Definition at line 37 of file vpsphere.cpp.

void VPSphere::SetMaterial const VPMaterial mat  )  [inline]
 

Material assignment.

Definition at line 23 of file vpsphere.h.

void VPSphere::SetRadius float  r  ) 
 

Definition at line 33 of file vpsphere.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 10:00:19 2005 for VPAT by  doxygen 1.4.4