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

Public Member Functions | |
| Cylinder (const Vector &top=Vector(0, 1, 0), const Vector &bottom=Vector(0, 0, 0), double radius=0.5, double theta=360.) | |
| Constructs a cylinder by its top and bottom points and its radius. | |
| Cylinder (double Radius, double yMin, double yMax, double theta=360.0) | |
| Constructs a cylinder along the y axis from yMin to yMax and its radius. | |
| void | setTopPoint (const Vector &) |
| Sets the top-point. | |
| Vector | getTopPoint () const |
| Returns the top-point. | |
| void | setBottomPoint (const Vector &) |
| Sets the bottom-point. | |
| Vector | getBottomPoint () const |
| Returns the bottom-point. | |
| void | setRadius (double) |
| Sets the radius. | |
| double | getRadius () const |
| Returns the radius. | |
| void | setTheta (double) |
| Sets the theta value, see Cone. | |
| double | getTheta () const |
| Sets the theta value, see Cone. | |
| Matrix | thetaTransform () const |
| Sets the theta value, see Cone. | |
| virtual Bounds | boundingBox () const |
| Bounding-box of the cylinder. | |
| VRS_TYPEINFO (Cylinder, Shape) | |
| VRS_SERIALIZABLE (Cylinder) | |
| VRS::Cylinder::Cylinder | ( | const Vector & | top = Vector(0, 1, 0), |
|
| const Vector & | bottom = Vector(0, 0, 0), |
|||
| double | radius = 0.5, |
|||
| double | theta = 360. | |||
| ) |
Constructs a cylinder by its top and bottom points and its radius.
See Cone for a description of theta.
| VRS::Cylinder::Cylinder | ( | double | Radius, | |
| double | yMin, | |||
| double | yMax, | |||
| double | theta = 360.0 | |||
| ) |
Constructs a cylinder along the y axis from yMin to yMax and its radius.
| void VRS::Cylinder::setTopPoint | ( | const Vector & | ) |
Sets the top-point.
| Vector VRS::Cylinder::getTopPoint | ( | ) | const [inline] |
Returns the top-point.
| void VRS::Cylinder::setBottomPoint | ( | const Vector & | ) |
Sets the bottom-point.
| Vector VRS::Cylinder::getBottomPoint | ( | ) | const [inline] |
Returns the bottom-point.
| void VRS::Cylinder::setRadius | ( | double | ) |
Sets the radius.
| double VRS::Cylinder::getRadius | ( | ) | const [inline] |
Returns the radius.
| void VRS::Cylinder::setTheta | ( | double | ) |
Sets the theta value, see Cone.
| double VRS::Cylinder::getTheta | ( | ) | const [inline] |
Sets the theta value, see Cone.
| virtual Bounds VRS::Cylinder::boundingBox | ( | ) | const [virtual] |
| VRS::Cylinder::VRS_SERIALIZABLE | ( | Cylinder | ) |