#include <geometricObject.h>

Public Member Functions |
|
| GeometricObject () | |
| Default Constructor. |
|
| GeometricObject (const GeometricObject &object) | |
| Copy constructor. |
|
| virtual | ~GeometricObject () |
| Destructor. |
|
| virtual void | clear () |
| Explicit default initialization.
|
|
|
Assignment methods
|
|
| void | set (const GeometricObject &object) |
| Assignment. |
|
| GeometricObject & | operator= (const GeometricObject &object) |
| Assignment operator. |
|
| void | swap (GeometricObject &object) |
| Swapping of geometricObjects.
|
|
|
Accessors: inspectors and mutators
|
|
| void | setComposite (const Composite *composite) |
| const Composite * | getComposite () const |
|
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. |
|
| void | setColor (const ColorRGBA &color) |
| void | setColor (const ColorUnit &red, const ColorUnit &green, const ColorUnit &blue, const ColorUnit &alpha=(float) 1) |
| const ColorRGBA & | getColor () const |
| ColorRGBA & | getColor () |
| void | getColor (ColorUnit &red, ColorUnit &green, ColorUnit &blue, ColorUnit &alpha) const |
| void | getColors (HashSet< String > &colors) |
| Insert the colors of this object
into the hashset. |
|
| bool | operator== (const GeometricObject &object) const |
| Needed for MSVC. |
|
| bool | operator< (const GeometricObject &object) const |
| Needed for MSVC. |
|
| virtual void | getVertices (std::vector< Vector3 > &) const |
The class GeometricObject is the most important base class for a geometric primitive. All geometric primitives must be derived from this class. This class contains only the general information like color, name and the composite pointer.
| BALL::VIEW::GeometricObject::GeometricObject | ( | ) |
Default Constructor.
The state of this geometricObject is:
| BALL::VIEW::GeometricObject::GeometricObject | ( | const GeometricObject & | object | ) |
Copy constructor.
| object | the geometricObject to be copied (cloned) |
| virtual void BALL::VIEW::GeometricObject::clear | ( | ) | [virtual] |
Explicit default initialization.
Set the state of this geometricObject to the default values. The state of this geometricObject is:
Reimplemented in BALL::VIEW::Box, BALL::VIEW::Disc, BALL::VIEW::Label, BALL::VIEW::Line, BALL::VIEW::Mesh, BALL::VIEW::MultiLine, BALL::VIEW::Point, BALL::VIEW::SimpleBox, BALL::VIEW::Sphere, BALL::VIEW::Tube, BALL::VIEW::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
| virtual void BALL::VIEW::GeometricObject::dump | ( | std::ostream & | s =
std::cout, |
|
| Size | depth =
0 |
|||
| ) | const [virtual] |
Internal value dump.
Dump the current state of this geometricObject to the output ostream s with dumping depth depth.
| s | output stream where to output the state of this geometricObject | |
| depth | the dumping depth |
Reimplemented in BALL::VIEW::Box, BALL::VIEW::Disc, BALL::VIEW::Label, BALL::VIEW::Line, BALL::VIEW::Mesh, BALL::VIEW::MultiLine, BALL::VIEW::Point, BALL::VIEW::SimpleBox, BALL::VIEW::Sphere, BALL::VIEW::Tube, BALL::VIEW::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
| virtual bool BALL::VIEW::GeometricObject::isValid | ( | ) | const [virtual] |
Internal state and consistency self-validation.
Initiate self-validation of the internal state and data
structure consistencies of this geometricObject. If the
internal state of this geometricObject is correct
(self-validated) and consistent true is
returned, false otherwise.
true if the internal state of this
geometricObject is correctReimplemented in BALL::VIEW::Box, BALL::VIEW::Disc, BALL::VIEW::Label, BALL::VIEW::Line, BALL::VIEW::Mesh, BALL::VIEW::MultiLine, BALL::VIEW::Point, BALL::VIEW::SimpleBox, BALL::VIEW::Sphere, BALL::VIEW::Tube, BALL::VIEW::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
| GeometricObject& BALL::VIEW::GeometricObject::operator= | ( | const GeometricObject & | object | ) |
Assignment operator.
Calls set.
| void BALL::VIEW::GeometricObject::swap | ( | GeometricObject & | object | ) |
Swapping of geometricObjects.
| object | the geometricObject being swapped with this geometricObject |
1.5.8