#include <geometricObject.h>
Inheritance diagram for VIEW::GeometricObject:
Public Member Functions | |
GeometricObject () throw () | |
Default Constructor. | |
GeometricObject (const GeometricObject &object) throw () | |
Copy constructor. | |
virtual | ~GeometricObject () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
Assignment methods | |
void | set (const GeometricObject &object) throw () |
Assignment. | |
GeometricObject & | operator= (const GeometricObject &object) throw () |
Assignment operator. | |
void | swap (GeometricObject &object) throw () |
Swapping of geometricObjects. | |
Accessors: inspectors and mutators | |
void | setComposite (const Composite *composite) throw () |
const Composite * | getComposite () const throw () |
debuggers and diagnostics | |
virtual bool | isValid () const throw () |
Internal state and consistency self-validation. | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal value dump. | |
void | setColor (const ColorRGBA &color) throw () |
void | setColor (const ColorUnit &red, const ColorUnit &green, const ColorUnit &blue, const ColorUnit &alpha=(float) 1) throw () |
const ColorRGBA & | getColor () const throw () |
ColorRGBA & | getColor () throw () |
void | getColor (ColorUnit &red, ColorUnit &green, ColorUnit &blue, ColorUnit &alpha) const throw () |
void | getColors (HashSet< String > &colors) |
Insert the colors of this object into the hashset. | |
bool | operator== (const GeometricObject &object) const throw () |
Needed for MSVC. | |
bool | operator< (const GeometricObject &object) const throw () |
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.
|
Default Constructor. The state of this geometricObject is:
|
|
Copy constructor.
|
|
Destructor.
|
|
Explicit default initialization. Set the state of this geometricObject to the default values. The state of this geometricObject is:
Reimplemented in VIEW::Box, VIEW::Disc, VIEW::Label, VIEW::Line, VIEW::Mesh, VIEW::MultiLine, VIEW::Point, VIEW::SimpleBox, VIEW::Sphere, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
Internal value dump. Dump the current state of this geometricObject to the output ostream s with dumping depth depth.
Reimplemented in VIEW::Box, VIEW::Disc, VIEW::Label, VIEW::Line, VIEW::Mesh, VIEW::MultiLine, VIEW::Point, VIEW::SimpleBox, VIEW::Sphere, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
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
Reimplemented in VIEW::Box, VIEW::Disc, VIEW::Label, VIEW::Line, VIEW::Mesh, VIEW::MultiLine, VIEW::Point, VIEW::SimpleBox, VIEW::Sphere, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
Assignment operator. Calls set. |
|
Swapping of geometricObjects.
|