version 3.3

VRS::Cylinder Class Reference

Cylinder shape. More...

#include <vrs/cylinder.h>

Inheritance diagram for VRS::Cylinder:

VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

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)


Detailed Description

Cylinder shape.

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Matrix VRS::Cylinder::thetaTransform (  )  const

Sets the theta value, see Cone.

virtual Bounds VRS::Cylinder::boundingBox (  )  const [virtual]

Bounding-box of the cylinder.

Implements VRS::Shape.

VRS::Cylinder::VRS_TYPEINFO ( Cylinder  ,
Shape   
)

VRS::Cylinder::VRS_SERIALIZABLE ( Cylinder   ) 


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:17 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact