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

GUIWx.h

Go to the documentation of this file.
00001 // GUIWx.h: interface for the GUIWx class.
00002 //
00004 
00005 #ifndef GUIWX_H
00006 #define GUIWX_H
00007 
00008 
00009 #include "GUI.h"
00010 #include "wxIncludes.h"
00011 #include <map>
00012 
00013 class wxDC;
00014 class wxTextCtrl;
00015 class wxStatusBar;
00016 class wxPen;
00017 
00018 class GUIWx : public GUI  {
00019 public:
00021    GUIWx(int iniPanX, int iniPanY, float zoom, wxStatusBar *iniStatusBar);
00022    virtual ~GUIWx();
00023 
00024    void setDC(wxDC *iniDC);
00025 
00026    virtual void clear();
00027 
00029    void drawCircle(float x, float y, float r);
00030 
00032    void drawLine(float x1, float y1, float x2, float y2);
00033 
00035    void drawRectangle(float x, float y, float w, float h);
00036    void drawCappedRectangle(float x, float y, float l, float R, float alpha);
00037    void setBrushColor(Color color);
00038    void setPenColor(Color color);
00039    virtual void drawArrow(float x1, float x2, float y1, float y2);
00040 
00042    void drawForce(const Vector2& r, const Vector2& force);
00043 
00046       void drawTorque(const Vector2& r, const real alpha, const real torque);
00047 
00049    void outText(const char* s);
00050 
00052    void outTextStatusBar(const char* s, int pos=0);
00053 
00055    wxDC *dc;
00056    
00057 private: 
00058 
00060    wxStatusBar *statusBar;
00061 };
00062 
00063 #endif //GUIWX_H

Thyrix homepageUsers' guide

(C) Arxia 2004-2005