Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CUI_CoordSys.h

Go to the documentation of this file.
00001 
00017 #ifndef CUI_COORDSYS_H
00018 #define CUI_COORDSYS_H
00019 
00020 #include "UI_Lib.h"
00021 #include "UI_types.h"
00022 #include "CUI_Resource.h"
00023 
00025 
00035 class GLGUI_ENTRY CUI_CoordSys : public CUI_Resource
00036 {
00037 public:
00039 
00048         CUI_CoordSys( float minx = 0, float miny = 0,
00049                                         float maxx = 1, float maxy = 1,
00050                                         float vminx = 0, float vminy = 0,
00051                                         float vmaxx = 1, float vmaxy = 1
00052                                         );
00053 
00055         virtual ~CUI_CoordSys();
00056 
00058 
00063         virtual bool SetCoord( float minx, float miny, float maxx, float maxy );
00064 
00066 
00071         virtual bool SetViewRange( float vminx, float vminy, float vmaxx, float vmaxy );
00072 
00074 
00077         virtual bool GetCoordinates( v4_f range, v4_f viewRange );
00078 
00080 
00084         virtual bool Convert( float &x, float &y );
00085 
00087 
00089         virtual bool TestHit( float x, float y );
00090 
00091 protected:
00093         v4_f m_range;
00095         v4_f m_viewRange;
00096 
00097 };
00098 
00099 #endif

Generated on Mon Sep 29 23:07:02 2003 for glGUI by doxygen 1.3.4