Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Label Class Reference
[Geometric Objects]

Label class. More...

#include <label.h>

Inheritance diagram for VIEW::Label:

VIEW::GeometricObject VIEW::Vertex List of all members.

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.
virtual void getVertices (vector< Vector3 > &vertices) const
String text_
QFont font_

Public Member Functions

Constructors
 Label () throw ()
 Default Constructor.
 Label (const Label &label) throw ()
 Copy constructor with cloning facility.
Destructors
virtual ~Label () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const Label &label) throw ()
 Assignment.
const Labeloperator= (const Label &label) throw ()
 Assignment operator.
void swap (Label &label) throw ()
 Swapping of label's.
Inspectors, Mutators, Accessors
void setText (const String &text) throw ()
 Change the text of the label.
String getText () const throw ()
 Inspection of the text of the label.
String getExpandedText () const throw ()
 Inspection of the expanded text of the label.
const QFont & getFont () const
void setFont (const QFont &font)
void setFontSize (Size size)

Detailed Description

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.


Constructor & Destructor Documentation

VIEW::Label::Label  )  throw ()
 

Default Constructor.

Construct new label. The properties of this label are set to:

  • color - to the color black
  • text - to the text "unkown"
  • vertex - to the vector (0,0,0)
    Returns:
    Label new constructed label
    See also:
    GeometricObject

    Vertex

VIEW::Label::Label const Label label  )  throw ()
 

Copy constructor with cloning facility.

Parameters:
label the label to be copied (cloned)
See also:
GeometricObject

Vertex

virtual VIEW::Label::~Label  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void VIEW::Label::clear  )  throw () [virtual]
 

Explicit default initialization.

Calls GeometricObject::clear Calls Vertex::clear

See also:
GeometricObject::clear

Vertex::clear

Reimplemented from VIEW::Vertex.

virtual void VIEW::Label::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [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.

Parameters:
s output stream where to output the value of this label
depth the dumping depth
See also:
GeometricObject::dump

Vertex::dump

Reimplemented from VIEW::Vertex.

String VIEW::Label::getExpandedText  )  const throw ()
 

Inspection of the expanded text of the label.

String VIEW::Label::getText  )  const throw ()
 

Inspection of the text of the label.

virtual bool VIEW::Label::isValid  )  const throw () [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.

Returns:
bool true if the internal state of this label is correct (self-validated) and consistent, false otherwise
See also:
GeometricObject::isValid

Vertex::isValid

Reimplemented from VIEW::Vertex.

const Label& VIEW::Label::operator= const Label label  )  throw ()
 

Assignment operator.

Calls set.

void VIEW::Label::set const Label label  )  throw ()
 

Assignment.

Assign the label label to this label.

Parameters:
label the label to be copied

void VIEW::Label::setText const String text  )  throw ()
 

Change the text of the label.

void VIEW::Label::swap Label label  )  throw ()
 

Swapping of label's.