#include <vertex2.h>
Inheritance diagram for VIEW::Vertex2:
Public Member Functions | |
Constructors | |
Vertex2 () throw () | |
Default Constructor. | |
Vertex2 (const Vertex2 &vertex) throw () | |
Copy constructor. | |
Destructors | |
virtual | ~Vertex2 () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
Assignment methods | |
void | set (const Vertex2 &vertex) throw () |
Assignment. | |
const Vertex2 & | operator= (const Vertex2 &vertex) throw () |
Assignment operator. | |
void | swap (Vertex2 &vertex) throw () |
Swapping of vertices. | |
Accessors: inspectors and mutators | |
void | setVertex1 (const Vector3 &v) throw () |
Change the first vector . | |
void | setVertex1 (const float x, const float y, const float z) throw () |
Change the first vector . | |
Vector3 & | getVertex1 () throw () |
Mutable inspection of the first vector. | |
const Vector3 & | getVertex1 () const throw () |
Non-mutable inspection of the first vector. | |
void | getVertex1 (Vector3 &v) const throw () |
Inspection of the first vector . | |
void | getVertex1 (float &x, float &y, float &z) const throw () |
Access the components of the first vector by using float. | |
void | setVertex1Address (const Vector3 &v) throw () |
Change the vector address of the first vector. | |
void | setDefaultVertex1Address () throw () |
Change the first vector address to the default address. | |
Vector3 * | getVertex1Address () const throw () |
Mutable inspection of the first vertex address. | |
void | setVertex2 (const Vector3 &v) throw () |
Change the second vector . | |
void | setVertex2 (const float x, const float y, const float z) throw () |
Change the second vector . | |
Vector3 & | getVertex2 () throw () |
Mutable inspection of the second vector. | |
const Vector3 & | getVertex2 () const throw () |
Non-mutable inspection of the second vector . | |
void | getVertex2 (Vector3 &v) const throw () |
Inspection of the second vector . | |
void | getVertex2 (float &x, float &y, float &z) const throw () |
Inspection of the components of the second vector . | |
void | setVertex2Address (const Vector3 &v) throw () |
Change the vector address of the second vector . | |
void | setDefaultVertex2Address () throw () |
Change the second vector address to the default address. | |
Vector3 * | getVertex2Address () const throw () |
Mutable inspection of the second vertex address . | |
void | setVertices (const Vector3 &vertex1, const Vector3 &vertex2) throw () |
Change the first and second vector . | |
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) throw () |
Change the first and second vector . | |
void | setVertexAddresses (const Vector3 &vertex1, const Vector3 &vertex2) throw () |
Change the vector addresses of the first and second vector. | |
void | getVertices (Vector3 &vertex1, Vector3 &vertex2) throw () |
Inspection of the first and second vector . | |
void | getVertices (float &vertex1_x, float &vertex1_y, float &vertex1_z, float &vertex2_x, float &vertex2_y, float &vertex2_z) throw () |
Access the components of the first and second vector of this vertex2 by using float. | |
void | setDefaultVertexAddresses () throw () |
Change the first and second vector address to the default addresses. | |
Predicates | |
bool | isDefaultVertex1Address () const throw () |
first vertex address test. | |
bool | isDefaultVertex2Address () const throw () |
second vertex address test. | |
bool | isDefaultVertexAddresses () const throw () |
both vertex addresses test. | |
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. |
It provides the derived class with methods for accessing that vertices. Further there is the possibility to give an address to a Vector3 as vertice. So if the values of these given vectors changes, the values of the vectors changes as well. To avoid segmentation faults these vector addresses must be valid as long as the Vertex2 exists.
|
Default Constructor. The vectors are set to (0.0, 0.0, 0.0). The vertex addresses are set to the addresses of the own vectors. |
|
Copy constructor.
|
|
Destructor.
|
|
Explicit default initialization. Set the vectors to the vector (0.0, 0.0, 0.0). The vertex addresses are set to the addresses of the own vectors . Reimplemented in VIEW::Line, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
Internal value dump. Dump the current state to the output ostream s with dumping depth depth.
Reimplemented in VIEW::Line, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
Access the components of the first vector by using float.
|
|
Inspection of the first vector . Access the first vector of this vertex by using Vector3.
|
|
Mutable inspection of the first vector.
|
|
Mutable inspection of the first vertex address.
|
|
Inspection of the components of the second vector .
|
|
Inspection of the second vector . Access the second vector of this vertex by using Vector3.
|
|
Non-mutable inspection of the second vector . For further information see getVertex2. |
|
Mutable inspection of the second vector.
|
|
Mutable inspection of the second vertex address .
|
|
Access the components of the first and second vector of this vertex2 by using float.
|
|
Inspection of the first and second vector .
|
|
first vertex address test. Tests if the first vertex address points to the first vector .
|
|
second vertex address test. Test if the second vertex address points to the second vector .
|
|
both vertex addresses test.
|
|
Internal state and consistency self-validation. Calls Vector3::isValid. Reimplemented in VIEW::Line, VIEW::Tube, VIEW::TwoColoredLine, and VIEW::TwoColoredTube. |
|
Assignment operator. Calls set. The vectors and the vertex addresses are initialized to the vectors and the vertex addresses of the vertex2 vertex. |
|
Assignment. The vectors and the vertex addresses are initialized to the vectors and vertex addresses of the vertex2 vertex. |
|
Change the first vector address to the default address. So the value of the first vector will no longer be ignored and all access methods will return it again. This method unhooks the object from any other objects prio connected with setVertex1Address.
|
|
Change the second vector address to the default address. This method resets the second vertex address to the second vector of this vertex2. So the value of the second vector of this vertex2 will no longer be ignored and all access methods will return it again. This method unhooks the object from any other objects prio connected with setVertex2Address.
|
|
Change the first and second vector address to the default addresses. This method resets the first and second vertex address to the first and second vector . So the value of the first and second vector will no longer be ignored and all access methods will return them again. This method unhooks the object from any other objects prio connected with setVertexAddresses.
|
|
Change the first vector .
|
|
Change the first vector .
|
|
Change the vector address of the first vector. If a vector address is given the value of the first vector of this vertex2 is ignored. Instead if the method getVertex1 (or any other access method concerning the first vector) are called the value of the vector given by the vertex address is returned. The vector to which the first vertex address points must exist and be valid as long as this vertex2 exists. An object that uses this method can hook itself onto another object (speaking in terms of position). If the object changes its first position so the object derived from this vertex2 changes its first position.
|
|
Change the second vector .
|
|
Change the second vector .
|
|
Change the vector address of the second vector . If a vector address is given the value of the first vector of this vertex2 is ignored. Instead if the method getVertex2 (or any other access method concerning the second vector) are called the value of the vector given by the vertex address is returned. The vector to which the second vertex address points must exist and be valid as long as this vertex2 exists. An object that uses this method can hook itself onto another object (speaking in terms of position). If the object changes its second position so the object derived from this vertex2 changes its second position.
|
|
Change the vector addresses of the first and second vector. See setVertex1Address or setVertex2Address for further information concerning vector addresses.
|
|
Change the first and second vector .
|
|
Change the first and second vector .
|
|
Swapping of vertices.
|