MeVisLab Toolbox Reference
ml::Sphere Class Reference

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

#include <mlSphere.h>

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 Vector3 & getCenter () 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 28 of file mlSphere.h.

Constructor & Destructor Documentation

◆ Sphere() [1/2]

ml::Sphere::Sphere ( )
inline

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

Definition at line 32 of file mlSphere.h.

◆ Sphere() [2/2]

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

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

Definition at line 36 of file mlSphere.h.

Member Function Documentation

◆ getCenter()

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

Returns the current center of the sphere.

Definition at line 42 of file mlSphere.h.

◆ getRadius()

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

Returns the current radius of the sphere.

Definition at line 39 of file mlSphere.h.

◆ setCenter()

void ml::Sphere::setCenter ( const Vector3 &  c)
inline

Set center of the sphere to c.

Definition at line 48 of file mlSphere.h.

◆ setRadius()

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

Set radius of the sphere to r.

Definition at line 45 of file mlSphere.h.


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