| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sphere.h>

Public Member Functions | |
| Sphere (double r=1.0, const Vector &origin=Vector(0, 0, 0), double ymin=-1.0, double ymax=1.0, double theta=360.0) | |
| void | setCenter (const Vector &) |
| Vector | getCenter () const |
| Get/set the renter. | |
| void | setRadius (double) |
| double | getRadius () const |
| Get/set the radius. | |
| void | setYMinMax (double min, double max) |
| double | getYMin () const |
| double | getYMax () const |
| The y-boundaries can be set explicitely by 'setYMinMax'. | |
| void | setTheta (double) |
| double | getTheta () const |
| An angle theta may specify a sphere section. | |
| virtual Bounds | boundingBox () const |
| Bouning box of the Sphere. | |
| VRS_TYPEINFO (Sphere, Shape) | |
| VRS_SERIALIZABLE (Sphere) | |
| VRS::Sphere::Sphere | ( | double | r = 1.0, |
|
| const Vector & | origin = Vector(0, 0, 0), |
|||
| double | ymin = -1.0, |
|||
| double | ymax = 1.0, |
|||
| double | theta = 360.0 | |||
| ) |
The sphere is specified by its center and its radius The sphere is cut by 2 planes perpendicular to the y-axis given by factors ymin and ymax percentage of the radius. The hull is open for theta<360. As usual, `theta' is measured counterclockwise, starting from the positive x-axis when viewed from above.
| void VRS::Sphere::setCenter | ( | const Vector & | ) |
| Vector VRS::Sphere::getCenter | ( | ) | const [inline] |
Get/set the renter.
| void VRS::Sphere::setRadius | ( | double | ) |
| double VRS::Sphere::getRadius | ( | ) | const [inline] |
Get/set the radius.
| void VRS::Sphere::setYMinMax | ( | double | min, | |
| double | max | |||
| ) |
| double VRS::Sphere::getYMin | ( | ) | const [inline] |
| double VRS::Sphere::getYMax | ( | ) | const [inline] |
The y-boundaries can be set explicitely by 'setYMinMax'.
| void VRS::Sphere::setTheta | ( | double | ) |
| double VRS::Sphere::getTheta | ( | ) | const [inline] |
An angle theta may specify a sphere section.
| virtual Bounds VRS::Sphere::boundingBox | ( | ) | const [virtual] |
| VRS::Sphere::VRS_SERIALIZABLE | ( | Sphere | ) |