OpenCOVER
coRectButtonGeometry.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_RECT_BUTTON_GEOMETRY_H
9#define CO_RECT_BUTTON_GEOMETRY_H
10
11#include "coButtonGeometry.h"
12
13#include <string>
14
15namespace vrui
16{
17
18class OPENVRUIEXPORT coRectButtonGeometry : public coButtonGeometry
19{
20public:
21 coRectButtonGeometry(float width, float height, const std::string &name);
23
24 float getInnerWidth() const
25 {
26 return width;
27 }
28 float getInnerHeight() const
29 {
30 return height;
31 }
32
34 virtual const char *getClassName() const;
36 virtual bool isOfClassName(const char *) const;
37
38private:
39 float width;
40 float height;
41};
42}
43#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coButtonGeometry.h:27
Definition: coRectButtonGeometry.h:19
coRectButtonGeometry(float width, float height, const std::string &name)
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
float getInnerWidth() const
Definition: coRectButtonGeometry.h:24
float getInnerHeight() const
Definition: coRectButtonGeometry.h:28