BALL
1.4.2
|
#include <BALL/VIEW/PRIMITIVES/label.h>
Public Member Functions | |
Constructors | |
Label () | |
Label (const Label &label) | |
Destructors | |
virtual | ~Label () |
virtual void | clear () |
Assignment methods | |
void | set (const Label &label) |
const Label & | operator= (const Label &label) |
void | swap (Label &label) |
Inspectors, Mutators, Accessors | |
void | setText (const String &text) |
String | getText () const |
String | getExpandedText () const |
const QFont & | getFont () const |
void | setFont (const QFont &font) |
void | setFontSize (Size size) |
![]() | |
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... | |
![]() | |
Vertex () | |
Vertex (const Vertex &vertex) | |
virtual | ~Vertex () |
void | set (const Vertex &v) |
const Vertex & | operator= (const Vertex &v) |
void | swap (Vertex &v) |
void | setVertex (const Vector3 &v) |
void | setVertex (const float x, const float y, const float z) |
Vector3 & | getVertex () |
const Vector3 & | getVertex () const |
void | getVertex (Vector3 &v) const |
void | getVertex (float &x, float &y, float &z) const |
void | setVertexAddress (const Vector3 &v) |
void | setDefaultVertexAddress () |
Vector3 * | getVertexAddress () const |
bool | isDefaultVertexAddress () const |
debuggers and diagnostics | |
String | text_ |
QFont | font_ |
virtual bool | isValid () const |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
virtual void | getVertices (vector< Vector3 > &vertices) const |
Label class. An instance of Label represents an instance of the geometric representation "label". A label is an information text that can be pinned to another Composite or GeometricObject. A label is both visible in the dynamic and static render mode of the Scene. A label has the following properties.
BALL::VIEW::Label::Label | ( | ) |
Default Constructor. Construct new label. The properties of this label are set to:
BALL::VIEW::Label::Label | ( | const Label & | label | ) |
Copy constructor with cloning facility.
label | the label to be copied (cloned) |
|
virtual |
Destructor.
|
virtual |
Explicit default initialization. Calls GeometricObject::clear Calls Vertex::clear
Reimplemented from BALL::VIEW::Vertex.
|
virtual |
Internal value dump. Dump the current value of this label to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Vertex::dump.
s | output stream where to output the value of this label |
depth | the dumping depth |
Reimplemented from BALL::VIEW::Vertex.
String BALL::VIEW::Label::getExpandedText | ( | ) | const |
Inspection of the expanded text of the label.
|
inline |
|
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 label. If the internal state of this label is correct (self-validated) and consistent true
is returned, false
otherwise. Calls GeometricObject::isValid. Calls Vertex::isValid.
true
if the internal state of this label is correct (self-validated) and consistent, false
otherwise Reimplemented from BALL::VIEW::Vertex.
void BALL::VIEW::Label::set | ( | const Label & | label | ) |
Assignment. Assign the label label to this label.
label | the label to be copied |
|
inline |
|
inline |
void BALL::VIEW::Label::swap | ( | Label & | label | ) |
Swapping of label's.