version 3.3

VRS::Disc Class Reference

Analytical Disc shape. More...

#include <vrs/disc.h>

Inheritance diagram for VRS::Disc:

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

List of all members.

Public Member Functions

 Disc (double height=0.0, double rad=1.0, double theta=360.0)
 Constructs a disc that is parallel to the xz-plane, lifted by height.
 Disc (const Vector &center, const Vector &normal, double rad=1.0, double theta=360.0)
 Constructs a disc specified by its center, normal and radius.
void setHeight (double heigth)
 Sets the height (y-component of the center) of the disc.
double getHeight () const
 Returns the height (y-component of the center) of the disc.
void setRadius (double rad)
 Sets the radius of the disc.
double getRadius () const
 Returns the radius of the disc.
void setCenter (const Vector &)
 Sets the center of the disc.
Vector getCenter () const
 Returns the center of the disc.
void setNormal (const Vector &)
 Sets the normal of the disc.
Vector getNormal () const
 Returns the normal of the disc.
void setTheta (double theta)
 Sets the theta value in degree.
double getTheta () const
 Sets the theta value in degree.
virtual Bounds boundingBox () const
 Bounding box of the disc.
 VRS_TYPEINFO (Disc, Shape)
 VRS_SERIALIZABLE (Disc)


Detailed Description

Analytical Disc shape.

Constructor & Destructor Documentation

VRS::Disc::Disc ( double  height = 0.0,
double  rad = 1.0,
double  theta = 360.0 
)

Constructs a disc that is parallel to the xz-plane, lifted by height.

theta is measured from the positive x-axis, counterclockwise when viewed from above.

VRS::Disc::Disc ( const Vector center,
const Vector normal,
double  rad = 1.0,
double  theta = 360.0 
)

Constructs a disc specified by its center, normal and radius.

theta is measured from the positive x-axis, counterclockwise when viewed from above.


Member Function Documentation

void VRS::Disc::setHeight ( double  heigth  ) 

Sets the height (y-component of the center) of the disc.

double VRS::Disc::getHeight (  )  const [inline]

Returns the height (y-component of the center) of the disc.

void VRS::Disc::setRadius ( double  rad  ) 

Sets the radius of the disc.

double VRS::Disc::getRadius (  )  const [inline]

Returns the radius of the disc.

void VRS::Disc::setCenter ( const Vector  ) 

Sets the center of the disc.

Vector VRS::Disc::getCenter (  )  const [inline]

Returns the center of the disc.

void VRS::Disc::setNormal ( const Vector  ) 

Sets the normal of the disc.

Vector VRS::Disc::getNormal (  )  const [inline]

Returns the normal of the disc.

void VRS::Disc::setTheta ( double  theta  ) 

Sets the theta value in degree.

theta is measured from the positive x-axis, counterclockwise when viewed from above.

double VRS::Disc::getTheta (  )  const [inline]

Sets the theta value in degree.

theta is measured from the positive x-axis, counterclockwise when viewed from above.

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

Bounding box of the disc.

Implements VRS::Shape.

VRS::Disc::VRS_TYPEINFO ( Disc  ,
Shape   
)

VRS::Disc::VRS_SERIALIZABLE ( Disc   ) 


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

Generated on Thu May 23 06:00:24 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact