OpenCOVER
|
#include <coButtonGeometry.h>
Public Types | |
enum | ActiveGeometry { NORMAL = 0, PRESSED, HIGHLIGHT, HIGHLIGHT_PRESSED, DISABLED } |
Public Member Functions | |
coButtonGeometry (const std::string &texture) | |
virtual | ~coButtonGeometry () |
virtual float | getWidth () const |
get width of this geometry More... | |
virtual float | getHeight () const |
Switch the shown geometry. More... | |
virtual void | switchGeometry (ActiveGeometry active) |
virtual const std::string & | getTextureName () const |
virtual void | createGeometry () |
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... | |
virtual vruiTransformNode * | getDCS () |
virtual vruiButtonProvider * | getButtonProvider () const |
Protected Attributes | |
std::string | texture |
name of the texture file More... | |
vruiButtonProvider * | buttonGeometryProvider |
this class describes an abstract bas for Button geometries new button shapes can be created by deriving from this class
vrui::coButtonGeometry::coButtonGeometry | ( | const std::string & | texture | ) |
|
virtual |
|
virtual |
Reimplemented in vrui::coToggleButtonGeometry.
|
inlinevirtual |
|
virtual |
get the Element's classname
Reimplemented in vrui::coRectButtonGeometry, vrui::coTextButtonGeometry, vrui::coToggleButtonGeometry, vrui::coFlatButtonGeometry, vrui::coSquareButtonGeometry, and vrui::coDefaultButtonGeometry.
|
virtual |
|
virtual |
Switch the shown geometry.
get height of this geometry
Reimplemented in vrui::coToggleButtonGeometry.
|
inlinevirtual |
|
virtual |
get width of this geometry
Reimplemented in vrui::coToggleButtonGeometry.
|
virtual |
check if the Element or any ancestor is this classname
Reimplemented in vrui::coRectButtonGeometry, vrui::coTextButtonGeometry, vrui::coToggleButtonGeometry, vrui::coFlatButtonGeometry, vrui::coSquareButtonGeometry, and vrui::coDefaultButtonGeometry.
|
virtual |
Reimplemented in vrui::coToggleButtonGeometry.
|
virtual |
|
mutableprotected |
|
protected |
name of the texture file