MeVisLabToolboxReference
ml::Sphere Class Reference

Defines the class to handle the geometry primitive "Sphere" with a radius and a center point. More...

#include <mlSphere.h>

List of all members.

Public Member Functions

 Sphere ()
 Constructor. Default is center at (0,0,0) and radius 0.
 Sphere (const Vector3 &c, double r)
 Constructor which defines a sphere with center point c and radius r.
double getRadius () const
 Returns the current radius of the sphere.
const Vector3getCenter () const
 Returns the current center of the sphere.
void setRadius (double r)
 Set radius of the sphere to r.
void setCenter (const Vector3 &c)
 Set center of the sphere to c.

Detailed Description

Defines the class to handle the geometry primitive "Sphere" with a radius and a center point.

Definition at line 25 of file mlSphere.h.


Constructor & Destructor Documentation

ml::Sphere::Sphere ( ) [inline]

Constructor. Default is center at (0,0,0) and radius 0.

Definition at line 29 of file mlSphere.h.

ml::Sphere::Sphere ( const Vector3 c,
double  r 
) [inline]

Constructor which defines a sphere with center point c and radius r.

Definition at line 33 of file mlSphere.h.


Member Function Documentation

const Vector3& ml::Sphere::getCenter ( ) const [inline]

Returns the current center of the sphere.

Definition at line 39 of file mlSphere.h.

double ml::Sphere::getRadius ( ) const [inline]

Returns the current radius of the sphere.

Definition at line 36 of file mlSphere.h.

void ml::Sphere::setCenter ( const Vector3 c) [inline]

Set center of the sphere to c.

Definition at line 45 of file mlSphere.h.

void ml::Sphere::setRadius ( double  r) [inline]

Set radius of the sphere to r.

Definition at line 42 of file mlSphere.h.


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