BALL
1.4.2
|
#include <BALL/VIEW/PRIMITIVES/line.h>
Public Member Functions | |
Constructors | |
Line () | |
Line (const Line &line) | |
Destructors | |
virtual | ~Line () |
virtual void | clear () |
Assignment methods | |
void | set (const Line &line) |
const Line & | operator= (const Line &line) |
void | swap (Line &line) |
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 |
Public Member Functions inherited from BALL::VIEW::GeometricObject | |
GeometricObject () | |
GeometricObject (const GeometricObject &object) | |
virtual | ~GeometricObject () |
void | set (const GeometricObject &object) |
GeometricObject & | operator= (const GeometricObject &object) |
void | swap (GeometricObject &object) |
void | setComposite (const Composite *composite) |
const Composite * | getComposite () const |
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. More... | |
bool | operator== (const GeometricObject &object) const |
Needed for MSVC. More... | |
bool | operator< (const GeometricObject &object) const |
Needed for MSVC. More... | |
Public Member Functions inherited from BALL::VIEW::Vertex2 | |
Vertex2 () | |
Vertex2 (const Vertex2 &vertex) | |
virtual | ~Vertex2 () |
void | set (const Vertex2 &vertex) |
const Vertex2 & | operator= (const Vertex2 &vertex) |
void | swap (Vertex2 &vertex) |
void | setVertex1 (const Vector3 &v) |
void | setVertex1 (const float x, const float y, const float z) |
Vector3 & | getVertex1 () |
const Vector3 & | getVertex1 () const |
void | getVertex1 (Vector3 &v) const |
void | getVertex1 (float &x, float &y, float &z) const |
void | setVertex1Address (const Vector3 &v) |
void | setDefaultVertex1Address () |
Vector3 * | getVertex1Address () const |
void | setVertex2 (const Vector3 &v) |
void | setVertex2 (const float x, const float y, const float z) |
Vector3 & | getVertex2 () |
const Vector3 & | getVertex2 () const |
void | getVertex2 (Vector3 &v) const |
void | getVertex2 (float &x, float &y, float &z) const |
void | setVertex2Address (const Vector3 &v) |
void | setDefaultVertex2Address () |
Vector3 * | getVertex2Address () const |
void | setVertices (const Vector3 &vertex1, const Vector3 &vertex2) |
void | setVertices (const float vertex1_x, const float vertex1_y, const float vertex1_z, const float vertex2_x, const float vertex2_y, const float vertex2_z) |
void | setVertexAddresses (const Vector3 &vertex1, const Vector3 &vertex2) |
void | getVertices (Vector3 &vertex1, Vector3 &vertex2) |
void | getVertices (float &vertex1_x, float &vertex1_y, float &vertex1_z, float &vertex2_x, float &vertex2_y, float &vertex2_z) |
void | setDefaultVertexAddresses () |
bool | isDefaultVertex1Address () const |
bool | isDefaultVertex2Address () const |
bool | isDefaultVertexAddresses () const |
Line class. An instance of Line represents an instance of the geometric representation "line". A line has the following properties.
BALL::VIEW::Line::Line | ( | ) |
Default Constructor. Construct new line. The properties of this line are set to:
BALL::VIEW::Line::Line | ( | const Line & | line | ) |
Copy constructor with cloning facility.
|
virtual |
Destructor
|
virtual |
Explicit default initialization. Calls GeometricObject::clear. Calls Vertex2::clear.
Reimplemented from BALL::VIEW::Vertex2.
|
virtual |
Internal value dump. Dump the current value of this line to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Vertex2::dump.
s | output stream where to output the value of this line |
depth | the dumping depth |
Reimplemented from BALL::VIEW::Vertex2.
|
virtual |
Reimplemented from BALL::VIEW::GeometricObject.
|
virtual |
Internal state and consistency self-validation. Initiate self-validation of the internal state and data structure consistencies of this line. If the internal state of this line is correct (self-validated) and consistent true
is returned, false
otherwise. Calls GeometricObject::isValid. Calls Vertex2::isValid.
true
if the internal state of this line is correct (self-validated) and consistent, false
otherwise Reimplemented from BALL::VIEW::Vertex2.
void BALL::VIEW::Line::set | ( | const Line & | line | ) |
Assign the line line to this line. the line line.