Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef GLVIEWER_COMPASS_H
00028 #define GLVIEWER_COMPASS_H
00029
00030 #include "GLViewer.h"
00031
00032 #include <QColor>
00033
00034 class QFont;
00035
00036 #ifdef WIN32
00037 #pragma warning( disable:4251 )
00038 #endif
00039
00040 class GLViewer_TexFont;
00041
00047 class GLVIEWER_API GLViewer_Compass
00048 {
00049 public:
00051 enum Position
00052 {
00053 TopLeft,
00054 TopRight,
00055 BottomLeft,
00056 BottomRight
00057 };
00058
00060
00069 GLViewer_Compass( const QColor& color = QColor ( 0, 255, 0 ),
00070 const int size = 60,
00071 const Position pos = TopRight,
00072 const int WidthTop = 20,
00073 const int WidthBottom = 10,
00074 const int HeightTop = 25,
00075 const int HeightBottom = 7 );
00077 ~GLViewer_Compass();
00078
00080 void setCompass( const QColor& color, const int size, const Position pos );
00082 void setVisible( const bool vis = true );
00084 bool getVisible(){ return myIsVisible; };
00085
00087 void setSize( const int size );
00089 int getSize(){ return mySize; }
00090
00092 void setPos( const Position pos ){ myPos = pos; }
00094 int getPos(){ return myPos; }
00095
00097 void setColor( const QColor& color ){ myCol = color; }
00099 QColor getColor(){ return myCol; }
00100
00102 void setArrowWidthTop( const int WidthTop );
00104 int getArrowWidthTop(){ return myArrowWidthTop; }
00105
00107 void setArrowWidthBottom( const int WidthBot );
00109 int getArrowWidthBottom(){return myArrowWidthBottom;};
00110
00112 void setArrowHeightTop( const int HeightTop );
00114 int getArrowHeightTop(){return myArrowHeightTop;};
00115
00117 void setArrowHeightBottom( const int HeightBot );
00119 int getArrowHeightBottom(){return myArrowHeightBottom;};
00120
00122 void setFont( QFont theFont );
00124 GLViewer_TexFont* getFont();
00125
00126 protected:
00128 QColor myCol;
00130 int mySize;
00132 int myPos;
00134 bool myIsVisible;
00136 int myArrowWidthTop;
00138 int myArrowWidthBottom;
00140 int myArrowHeightTop;
00142 int myArrowHeightBottom;
00144 GLViewer_TexFont* myFont;
00146 bool isGenereted;
00147 };
00148
00149 #ifdef WIN32
00150 #pragma warning ( default:4251 )
00151 #endif
00152
00153 #endif