OpenCOVER
coToggleButtonGeometry.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef CO_TOGGLE_BUTTON_GEOMETRY_H
9#define CO_TOGGLE_BUTTON_GEOMETRY_H
10
12
13#include <string>
14
15namespace vrui
16{
17
18class OPENVRUIEXPORT coToggleButtonGeometry : public coButtonGeometry
19{
20public:
21 coToggleButtonGeometry(const std::string &name = "UI/haken");
23 virtual float getWidth() const;
24 virtual float getHeight() const;
25
26 virtual void createGeometry();
27 virtual void resizeGeometry();
28
30 virtual const char *getClassName() const;
32 virtual bool isOfClassName(const char *) const;
33};
34}
35#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coButtonGeometry.h:27
Definition: coToggleButtonGeometry.h:19
virtual float getWidth() const
get width of this geometry
coToggleButtonGeometry(const std::string &name="UI/haken")
virtual const char * getClassName() const
get the Element's classname
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
virtual float getHeight() const
Switch the shown geometry.