BALL::VIEW::Sphere Class Reference
[Geometric Objects]

#include <BALL/VIEW/PRIMITIVES/sphere.h>

Inheritance diagram for BALL::VIEW::Sphere:
BALL::VIEW::GeometricObject BALL::TSphere3< float >

List of all members.


Public Member Functions

Constructors
 Sphere ()
 Sphere (const Sphere &sphere)
Destructors


virtual ~Sphere ()
virtual void clear ()
Assignment methods
void set (const Sphere &sphere)
const Sphereoperator= (const Sphere &sphere)
void swap (Sphere &sphere)
void setRadius (float new_radius)
float getRadius () const
void setPosition (const Vector3 &v3)
const Vector3getPosition () const
void setPositionAddress (const Vector3 &v3)
Vector3getPositionAddress ()
bool isDefaultPositionAddress ()
void setDefaultPositionAddress ()
debuggers and diagnostics
virtual bool isValid () const
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
virtual void getVertices (vector< Vector3 > &vertices) const

Protected Attributes

Vector3point_ptr_

Detailed Description

Sphere class. An instance of Sphere represents an instance of the geometric representation "sphere". The class Sphere is derived from the classes GeometricObject and Sphere3. See these classes for further information concerning interface and additional methods.


Constructor & Destructor Documentation

BALL::VIEW::Sphere::Sphere (  ) 

Default Constructor.

BALL::VIEW::Sphere::Sphere ( const Sphere sphere  ) 

Copy constructor with cloning facility.

virtual BALL::VIEW::Sphere::~Sphere (  )  [virtual]

Destructor.


Member Function Documentation

virtual void BALL::VIEW::Sphere::clear (  )  [virtual]

Explicit default initialization.

See also:

GeometricObject::clear

Sphere3::clear

Reimplemented from BALL::VIEW::GeometricObject.

virtual void BALL::VIEW::Sphere::dump ( std::ostream &  s = std::cout,
Size  depth = 0 
) const [virtual]

Internal value dump. Dump the current value of this sphere to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Sphere3::dump.

Parameters:
s output stream where to output the value of this sphere
depth the dumping depth
See also:

GeometricObject::dump

Sphere3::dump

Reimplemented from BALL::VIEW::GeometricObject.

const Vector3& BALL::VIEW::Sphere::getPosition (  )  const [inline]
Vector3* BALL::VIEW::Sphere::getPositionAddress (  )  [inline]
float BALL::VIEW::Sphere::getRadius (  )  const [inline]
virtual void BALL::VIEW::Sphere::getVertices ( vector< Vector3 > &  vertices  )  const [virtual]

Reimplemented from BALL::VIEW::GeometricObject.

bool BALL::VIEW::Sphere::isDefaultPositionAddress (  )  [inline]
virtual bool BALL::VIEW::Sphere::isValid (  )  const [virtual]

Internal state and consistency self-validation. Initiate self-validation of the internal state and data structure consistencies of this sphere. If the internal state of this sphere is correct (self-validated) and consistent true is returned, false otherwise. Calls GeometricObject::isValid.

Returns:
bool true if the internal state of this sphere is correct (self-validated) and consistent, false otherwise
See also:
GeometricObject::isValid

Reimplemented from BALL::VIEW::GeometricObject.

const Sphere& BALL::VIEW::Sphere::operator= ( const Sphere sphere  ) 

Assignment operator.

void BALL::VIEW::Sphere::set ( const Sphere sphere  ) 

Assignment.

void BALL::VIEW::Sphere::setDefaultPositionAddress (  )  [inline]
void BALL::VIEW::Sphere::setPosition ( const Vector3 v3  )  [inline]
void BALL::VIEW::Sphere::setPositionAddress ( const Vector3 v3  )  [inline]
void BALL::VIEW::Sphere::setRadius ( float  new_radius  )  [inline]
void BALL::VIEW::Sphere::swap ( Sphere sphere  ) 

Swapping of sphere's.


Member Data Documentation