#include <sphere.h>
Public Member Functions |
|
Constructors
|
|
Sphere () | |
Default Constructor. |
|
Sphere (const Sphere &sphere) | |
Copy constructor with cloning
facility. |
|
Destructors
|
|
virtual | ~Sphere () |
Destructor. |
|
virtual void | clear () |
Explicit default initialization.
|
|
Assignment methods
|
|
void | set (const Sphere &sphere) |
Assignment. |
|
const Sphere & | operator= (const Sphere &sphere) |
Assignment operator. |
|
void | swap (Sphere &sphere) |
Swapping of sphere's. |
|
void | setRadius (float new_radius) |
float | getRadius () const |
void | setPosition (const Vector3 &v3) |
const Vector3 & | getPosition () const |
void | setPositionAddress (const Vector3 &v3) |
Vector3 * | getPositionAddress () |
bool | isDefaultPositionAddress () |
void | setDefaultPositionAddress () |
debuggers and diagnostics
|
|
virtual bool | isValid () const |
Internal state and consistency
self-validation. |
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Internal value dump. |
|
virtual void | getVertices (vector< Vector3 > &vertices) const |
Protected Attributes |
|
Vector3 * | point_ptr_ |
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.
virtual void BALL::VIEW::Sphere::clear | ( | ) | [virtual] |
Explicit default initialization.
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.
s | output stream where to output the value of this sphere | |
depth | the dumping depth |
Reimplemented from BALL::VIEW::GeometricObject.
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.
true
if the internal state of this
sphere is correct (self-validated) and consistent,
false
otherwiseReimplemented from BALL::VIEW::GeometricObject.