OpenCOVER
Public Types | Public Member Functions | Protected Attributes | List of all members
vrui::coButtonGeometry Class Reference

#include <coButtonGeometry.h>

Inheritance diagram for vrui::coButtonGeometry:
Inheritance graph
[legend]
Collaboration diagram for vrui::coButtonGeometry:
Collaboration graph
[legend]

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 vruiTransformNodegetDCS ()
 
virtual vruiButtonProvidergetButtonProvider () const
 

Protected Attributes

std::string texture
 name of the texture file More...
 
vruiButtonProviderbuttonGeometryProvider
 

Detailed Description

this class describes an abstract bas for Button geometries new button shapes can be created by deriving from this class

Member Enumeration Documentation

◆ ActiveGeometry

Enumerator
NORMAL 
PRESSED 
HIGHLIGHT 
HIGHLIGHT_PRESSED 
DISABLED 

Constructor & Destructor Documentation

◆ coButtonGeometry()

vrui::coButtonGeometry::coButtonGeometry ( const std::string &  texture)

◆ ~coButtonGeometry()

virtual vrui::coButtonGeometry::~coButtonGeometry ( )
virtual

Member Function Documentation

◆ createGeometry()

virtual void vrui::coButtonGeometry::createGeometry ( )
virtual

Reimplemented in vrui::coToggleButtonGeometry.

◆ getButtonProvider()

virtual vruiButtonProvider * vrui::coButtonGeometry::getButtonProvider ( ) const
inlinevirtual

◆ getClassName()

virtual const char * vrui::coButtonGeometry::getClassName ( ) const
virtual

◆ getDCS()

virtual vruiTransformNode * vrui::coButtonGeometry::getDCS ( )
virtual

◆ getHeight()

virtual float vrui::coButtonGeometry::getHeight ( ) const
virtual

Switch the shown geometry.

get height of this geometry

Reimplemented in vrui::coToggleButtonGeometry.

◆ getTextureName()

virtual const std::string & vrui::coButtonGeometry::getTextureName ( ) const
inlinevirtual

◆ getWidth()

virtual float vrui::coButtonGeometry::getWidth ( ) const
virtual

get width of this geometry

Reimplemented in vrui::coToggleButtonGeometry.

◆ isOfClassName()

virtual bool vrui::coButtonGeometry::isOfClassName ( const char *  ) const
virtual

◆ resizeGeometry()

virtual void vrui::coButtonGeometry::resizeGeometry ( )
virtual

Reimplemented in vrui::coToggleButtonGeometry.

◆ switchGeometry()

virtual void vrui::coButtonGeometry::switchGeometry ( ActiveGeometry  active)
virtual

Member Data Documentation

◆ buttonGeometryProvider

vruiButtonProvider* vrui::coButtonGeometry::buttonGeometryProvider
mutableprotected

◆ texture

std::string vrui::coButtonGeometry::texture
protected

name of the texture file


The documentation for this class was generated from the following file: