#include <BALL/VIEW/KERNEL/geometricObject.h>
List of all members.
Detailed Description
GeometricObject class. 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.
Constructor & Destructor Documentation
BALL::VIEW::GeometricObject::GeometricObject |
( |
|
) |
|
Default Constructor. The state of this geometricObject is:
- selected color is set to yellow (1.0, 1.0, 0.0, 1.0)
- name is set to "unknown"
- typename is set to "GeometricObject"
- Returns:
- GeometricObject new constructed geometricObject
- See also:
- ColorRGBA
BALL::VIEW::GeometricObject::GeometricObject |
( |
const GeometricObject & |
object |
) |
|
Copy constructor.
- Parameters:
-
| object | the geometricObject to be copied (cloned) |
virtual BALL::VIEW::GeometricObject::~GeometricObject |
( |
|
) |
[virtual] |
Member Function Documentation
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:
- selected color is set to yellow (1.0, 1.0, 0.0, 1.0)
- name is set to "unknown"
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.
void BALL::VIEW::GeometricObject::clear_ |
( |
|
) |
[private] |
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.
- Parameters:
-
| s | output stream where to output the state of this geometricObject |
| depth | the dumping depth |
- See also:
- ColorRGBA::dump
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.
ColorRGBA& BALL::VIEW::GeometricObject::getColor |
( |
|
) |
[inline] |
const ColorRGBA& BALL::VIEW::GeometricObject::getColor |
( |
|
) |
const [inline] |
void BALL::VIEW::GeometricObject::getColors |
( |
HashSet< String > & |
colors |
) |
|
Insert the colors of this object into the hashset.
const Composite* BALL::VIEW::GeometricObject::getComposite |
( |
|
) |
const [inline] |
virtual void BALL::VIEW::GeometricObject::getVertices |
( |
std::vector< Vector3 > & |
|
) |
const [inline, virtual] |
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::QuadMesh, BALL::VIEW::SimpleBox, BALL::VIEW::Sphere, BALL::VIEW::Tube, BALL::VIEW::TwoColoredLine, and BALL::VIEW::TwoColoredTube.
virtual bool BALL::VIEW::GeometricObject::isValid |
( |
|
) |
const [inline, 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.
- Returns:
- bool
true
if the internal state of this geometricObject is correct
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.
Assignment operator. Calls set.
void BALL::VIEW::GeometricObject::setColor |
( |
const ColorRGBA & |
color |
) |
[inline] |
void BALL::VIEW::GeometricObject::setComposite |
( |
const Composite * |
composite |
) |
[inline] |
Swapping of geometricObjects.
- Parameters:
-
| object | the geometricObject being swapped with this geometricObject |
Member Data Documentation