BALL 1.5.0
|
#include <BALL/VIEW/PRIMITIVES/twoColoredTube.h>
Public Member Functions | |
Constructors | |
TwoColoredTube () | |
TwoColoredTube (const TwoColoredTube &two_colored_tube) | |
Destructors | |
virtual | ~TwoColoredTube () |
virtual void | clear () |
Assignment methods | |
void | set (const TwoColoredTube &two_colored_tube) |
const TwoColoredTube & | operator= (const TwoColoredTube &two_colored_tube) |
void | swap (TwoColoredTube &two_colored_tube) |
Accessors: inspectors and mutators | |
float | getLength () const |
Vector3 | getMiddleVertex () const |
debuggers and diagnostics | |
virtual bool | isValid () const |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
![]() | |
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. | |
bool | operator== (const GeometricObject &object) const |
Needed for MSVC. | |
bool | operator< (const GeometricObject &object) const |
Needed for MSVC. | |
![]() | |
ColorExtension2 () | |
ColorExtension2 (const ColorExtension2 &color_extension) | |
virtual | ~ColorExtension2 () |
void | set (const ColorExtension2 &color_extension) |
const ColorExtension2 & | operator= (const ColorExtension2 &color_extension) |
void | swap (ColorExtension2 &color_extension) |
void | setColor2 (const ColorRGBA &color) |
ColorRGBA & | getColor2 () |
const ColorRGBA & | getColor2 () const |
void | getColor2 (ColorRGBA &color) const |
![]() | |
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 |
Storers | |
float | getRadius () const |
Get the radius. | |
void | setRadius (float radius) |
Set the radius. | |
virtual void | getVertices (vector< Vector3 > &vertices) const |
TwoColoredTube class. An instance of TwoColoredTube represents an instance of the geometric representation of a two colored "tube". A twoColoredTube has the following properties.
Definition at line 45 of file twoColoredTube.h.
BALL::VIEW::TwoColoredTube::TwoColoredTube | ( | ) |
Default Constructor. Construct new twoColoredTube. The properties of this twoColoredTube are set to:
BALL::VIEW::TwoColoredTube::TwoColoredTube | ( | const TwoColoredTube & | two_colored_tube | ) |
Copy constructor with cloning facility.
|
virtual |
Destructor. Default destruction of this twoColoredTube.
|
virtual |
Explicit default initialization. Calls GeometricObject::clear. Calls ColorExtension2::clear. Calls Vertex2::clear.
Reimplemented from BALL::VIEW::GeometricObject.
|
virtual |
Internal value dump. Dump the current value of this twoColoredTube to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls ColorExtension2::dump. Calls Radius::dump. Calls Vertex2::dump.
s | output stream where to output the value of this twoColoredTube |
depth | the dumping depth |
Reimplemented from BALL::VIEW::GeometricObject.
float BALL::VIEW::TwoColoredTube::getLength | ( | ) | const |
Inspection of the length of the tube. Access the length of this tube.
Vector3 BALL::VIEW::TwoColoredTube::getMiddleVertex | ( | ) | const |
Inspection of the middle vector. Access the geometric middle vertex between vertex1 and vertex2 of this twoColoredTube.
|
inline |
Get the radius.
Definition at line 179 of file twoColoredTube.h.
|
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 twoColoredTube. If the internal state of this twoColoredTube is correct (self-validated) and consistent true
is returned, false
otherwise. Calls {GeometricObject::isValid}.
true
if the internal state of this twoColoredTube is correct (self-validated) and consistent, false
otherwise Reimplemented from BALL::VIEW::GeometricObject.
const TwoColoredTube & BALL::VIEW::TwoColoredTube::operator= | ( | const TwoColoredTube & | two_colored_tube | ) |
Assignment operator.
void BALL::VIEW::TwoColoredTube::set | ( | const TwoColoredTube & | two_colored_tube | ) |
Assignment. Calls GeometricObject::set. Calls ColorExtension2::set. Calls Vertex2::set.
|
inline |
Set the radius.
Definition at line 183 of file twoColoredTube.h.
void BALL::VIEW::TwoColoredTube::swap | ( | TwoColoredTube & | two_colored_tube | ) |
Swapping of two_colored_tube's.