#include <vpsphere.h>
Inheritance diagram for VPSphere:
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. |
Spheres are created with center at the origin.
Definition at line 17 of file vpsphere.h.
|
Definition at line 25 of file vpsphere.cpp. |
|
Definition at line 29 of file vpsphere.cpp. |
|
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(). |
|
Draws the sphere using OpenGL engine.
Reimplemented from VPSceneNode. Definition at line 50 of file vpsphere.cpp. References VPMaterial::DrawOGL(). |
|
Returns of copy of the cylinder's material.
Definition at line 25 of file vpsphere.h. |
|
Definition at line 37 of file vpsphere.cpp. |
|
Material assignment.
Definition at line 23 of file vpsphere.h. |
|
Definition at line 33 of file vpsphere.cpp. |