OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
15 namespace vrui
16 {
17 
18 class OPENVRUIEXPORT coRectButtonGeometry : public coButtonGeometry
19 {
20 public:
21  coRectButtonGeometry(float width, float height, const std::string &name);
22  virtual ~coRectButtonGeometry();
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 
38 private:
39  float width;
40  float height;
41 };
42 }
43 #endif
Definition: coRectButtonGeometry.h:18
Definition: coButtonGeometry.h:26
float getInnerWidth() const
Definition: coRectButtonGeometry.h:24
float getInnerHeight() const
Definition: coRectButtonGeometry.h:28