version 3.3

VRS::Paraboloid Class Reference

Paraboloid shape. More...

#include <vrs/paraboloid.h>

Inheritance diagram for VRS::Paraboloid:

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

List of all members.

Public Member Functions

 Paraboloid (double top=1.0, double bottom=0.0, double topRadius=1.0, double theta=360)
void setTopBottom (double top, double bottom)
double getTop () const
double getBottom () const
void setTopRadius (double r)
double getTopRadius () const
void setTheta (double)
double getTheta () const
virtual Bounds boundingBox () const
 Bounding box of the paraboloid.
 VRS_TYPEINFO (Paraboloid, Shape)
 VRS_SERIALIZABLE (Paraboloid)


Detailed Description

Paraboloid shape.

Constructor & Destructor Documentation

VRS::Paraboloid::Paraboloid ( double  top = 1.0,
double  bottom = 0.0,
double  topRadius = 1.0,
double  theta = 360 
)

A paraboloid is created by rotating a parabola centered at the origin about the y axis. The apex of the paraboloid is in (0,0,0). 'top' and 'bottom' define the clipping planes of the paraboloid (top > bottom >= 0.0). 'theta' defines by which angle the parabola is rotated, starting on the positive x-axis and rotated counterclockwise when viewed from above.


Member Function Documentation

void VRS::Paraboloid::setTopBottom ( double  top,
double  bottom 
)

double VRS::Paraboloid::getTop (  )  const [inline]

double VRS::Paraboloid::getBottom (  )  const [inline]

Set resp. get the top and bottom clipping planes of the paraboloid. VRS_Assertion: top > bottom >= 0.0.

void VRS::Paraboloid::setTopRadius ( double  r  ) 

double VRS::Paraboloid::getTopRadius (  )  const [inline]

Set resp. get the radius of the paraboloids top cap i.e. if the parabola is given by y = ax^2 => topCap = a * topRadius^2 VRS_Assertion: r >= 0.0.

void VRS::Paraboloid::setTheta ( double   ) 

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

Set resp get the angle about which the parabola is rotated. VRS_Assertion: theta >= 0.

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

Bounding box of the paraboloid.

Implements VRS::Shape.

VRS::Paraboloid::VRS_TYPEINFO ( Paraboloid  ,
Shape   
)

VRS::Paraboloid::VRS_SERIALIZABLE ( Paraboloid   ) 


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

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