OpenCOVER
|
#include <coLabel.h>
Public Types | |
enum | DirectionsType { HORIZONTAL = 0, VERTICAL } |
valid orientations for text string More... | |
enum | Justify { LEFT = 0, CENTER, RIGHT } |
Public Types inherited from vrui::coUIElement | |
enum | Material { RED = 0, GREEN, BLUE, YELLOW, GREY, WHITE, BLACK, DARK_YELLOW, WHITE_NL, ITEM_BACKGROUND_NORMAL, ITEM_BACKGROUND_HIGHLIGHTED, ITEM_BACKGROUND_DISABLED, HANDLE_BACKGROUND_NORMAL, HANDLE_BACKGROUND_HIGHLIGHTED, HANDLE_BACKGROUND_DISABLED, NUM_MATERIALS } |
Color definitions, to be used whenever a material is needed. More... | |
enum | { LEFT = 0, TOP, RIGHT, BOTTOM, REPLACE } |
Public Member Functions | |
coLabel (const std::string &labelText="") | |
virtual | ~coLabel () |
void | resize () |
virtual void | setPos (float x, float y, float z=0.0f) |
virtual void | setFontSize (float size) |
virtual void | setString (const std::string &text) |
virtual void | setSize (float size) |
virtual void | setSize (float xs, float ys, float zs) |
virtual float | getWidth () const |
Returns element width. More... | |
virtual float | getHeight () const |
Returns element height. More... | |
virtual float | getDepth () const |
virtual float | getXpos () const |
Returns element x position. More... | |
virtual float | getYpos () const |
Returns element y position. More... | |
virtual float | getZpos () const |
virtual float | getFontSize () const |
virtual Justify | getJustify () const |
virtual DirectionsType | getDirection () const |
virtual const char * | getString () const |
virtual void | setHighlighted (bool highlighted) |
virtual void | resizeGeometry () |
virtual const char * | getClassName () const |
get the Element's classname More... | |
virtual bool | isOfClassName (const char *) const |
check if the Element or any ancestor is this classname More... | |
Public Member Functions inherited from vrui::coUIElement | |
coUIElement () | |
virtual | ~coUIElement () |
virtual void | createGeometry () |
virtual void | setParent (coUIContainer *) |
virtual coUIContainer * | getParent () |
virtual void | setEnabled (bool enabled) |
virtual void | setVisible (bool visible) |
virtual bool | isEnabled () const |
virtual bool | isHighlighted () const |
virtual bool | isVisible () const |
virtual void | childResized (bool shrink=true) |
virtual void | resizeToParent (float, float, float, bool shrink=true) |
virtual void | shrinkToMin () |
Set element location in space. More... | |
virtual float | getResizePref () |
virtual void | setUserData (coUIUserData *) |
virtual coUIUserData * | getUserData () const |
virtual vruiTransformNode * | getDCS () |
virtual vruiUIElementProvider * | getUIElementProvider () const |
virtual void | setAttachment (int) |
sets the attachment border More... | |
virtual int | getAttachment () const |
returns the attachment border More... | |
void | setUniqueName (const char *) |
const char * | getUniqueName () const |
Protected Attributes | |
float | myX |
x position of label in object space [mm] More... | |
float | myY |
y position of label in object space [mm] More... | |
float | myZ |
z position of label in object space [mm] More... | |
float | myHeight |
label size in z direction [mm] More... | |
float | myWidth |
label size in x direction [mm] More... | |
float | myDepth |
label size in y direction [mm] More... | |
std::string | labelString |
text string which is displayed on the label More... | |
Justify | justify |
string justification, using Performer format. Default is left alignment. More... | |
float | fontSize |
label text size in mm More... | |
DirectionsType | direction |
direction into which the text string is written on the label More... | |
Protected Attributes inherited from vrui::coUIElement | |
float | xScaleFactor |
UI element x axis scale factor. More... | |
float | yScaleFactor |
UI element y axis scale factor. More... | |
float | zScaleFactor |
UI element z axis scale factor. More... | |
bool | enabled |
true if UI element is enabled, false if UI element cannot be used More... | |
bool | highlighted |
true if highlighted More... | |
bool | visible |
true if UI element is visible, false if not visible but still present in scene tree More... | |
vruiUIElementProvider * | uiElementProvider |
Additional Inherited Members | |
Public Attributes inherited from vrui::coUIElement | |
enum vrui::coUIElement:: { ... } | Attachments |
Protected Member Functions inherited from vrui::coUIElement | |
virtual const vruiMatrix * | getTransformMatrix () |
Label element. A label consists of a text string and a background texture.
vrui::coLabel::coLabel | ( | const std::string & | labelText = "" | ) |
|
virtual |
|
virtual |
get the Element's classname
Reimplemented from vrui::coUIElement.
|
inlinevirtual |
Reimplemented from vrui::coUIElement.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Returns element height.
Implements vrui::coUIElement.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Returns element width.
Implements vrui::coUIElement.
|
inlinevirtual |
Returns element x position.
Implements vrui::coUIElement.
|
inlinevirtual |
Returns element y position.
Implements vrui::coUIElement.
|
inlinevirtual |
Reimplemented from vrui::coUIElement.
|
virtual |
check if the Element or any ancestor is this classname
Reimplemented from vrui::coUIElement.
void vrui::coLabel::resize | ( | ) |
|
virtual |
Reimplemented from vrui::coUIElement.
|
virtual |
|
virtual |
Reimplemented from vrui::coUIElement.
|
virtual |
Implements vrui::coUIElement.
|
virtual |
Reimplemented from vrui::coUIElement.
|
virtual |
Reimplemented from vrui::coUIElement.
|
virtual |
|
protected |
direction into which the text string is written on the label
|
protected |
label text size in mm
|
protected |
string justification, using Performer format. Default is left alignment.
|
protected |
text string which is displayed on the label
|
protected |
label size in y direction [mm]
|
protected |
label size in z direction [mm]
|
protected |
label size in x direction [mm]
|
protected |
x position of label in object space [mm]
|
protected |
y position of label in object space [mm]
|
protected |
z position of label in object space [mm]