version 3.3

VRS::Sphere Class Reference

#include <vrs/sphere.h>

Inheritance diagram for VRS::Sphere:

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

List of all members.

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)


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Bouning box of the Sphere.

Implements VRS::Shape.

VRS::Sphere::VRS_TYPEINFO ( Sphere  ,
Shape   
)

VRS::Sphere::VRS_SERIALIZABLE ( Sphere   ) 


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

Generated on Sun May 19 06:00:45 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact