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

GUIWx Class Reference

#include <GUIWx.h>

Inheritance diagram for GUIWx:

GUI List of all members.

Public Member Functions

Public Attributes

Private Attributes


Constructor & Destructor Documentation

GUIWx::GUIWx int  iniPanX,
int  iniPanY,
float  zoom,
wxStatusBar *  iniStatusBar
 

Parameters: the width and height of the window, zoom applied to simulator values.

Definition at line 8 of file GUIWx.cpp.

GUIWx::~GUIWx  )  [virtual]
 

Definition at line 14 of file GUIWx.cpp.


Member Function Documentation

void GUIWx::clear  )  [virtual]
 

Erases everything.

Implements GUI.

Definition at line 21 of file GUIWx.cpp.

References dc.

void GUIWx::drawArrow float  x1,
float  y1,
float  x2,
float  y2
[virtual]
 

draws an arrow from x1,y1 to x2,y2

Implements GUI.

Definition at line 116 of file GUIWx.cpp.

References drawLine(), and M_PI.

Referenced by drawForce().

void GUIWx::drawCappedRectangle float  x,
float  y,
float  l,
float  R,
float  alpha
[virtual]
 

Implements GUI.

Definition at line 45 of file GUIWx.cpp.

References cosSum(), dc, M_PI, GUI::mapX(), GUI::mapY(), and sinSum().

void GUIWx::drawCircle float  x,
float  y,
float  r
[virtual]
 

Draws a circle.

Implements GUI.

Definition at line 25 of file GUIWx.cpp.

References dc, GUI::mapLen(), GUI::mapX(), and GUI::mapY().

void GUIWx::drawForce const Vector2 r,
const Vector2 force
[virtual]
 

Draws a force vector, having r as origin and force as magnitude.

Implements GUI.

Definition at line 150 of file GUIWx.cpp.

References drawArrow(), real, Vector2::x, and Vector2::y.

void GUIWx::drawLine float  x1,
float  y1,
float  x2,
float  y2
[virtual]
 

Draws a line

Implements GUI.

Definition at line 29 of file GUIWx.cpp.

References dc, GUI::mapX(), and GUI::mapY().

Referenced by drawArrow(), and drawTorque().

void GUIWx::drawRectangle float  x,
float  y,
float  w,
float  h
[virtual]
 

Draws a rectangle with the given bottom left corner, and with the given size

Implements GUI.

Definition at line 33 of file GUIWx.cpp.

References dc, GUI::mapX(), and GUI::mapY().

void GUIWx::drawTorque const Vector2 r,
const real  alpha,
const real  torque
[virtual]
 

Draws a torque, having r as rotation point, alpha as starting angle and torque as magnitude.

Implements GUI.

Definition at line 158 of file GUIWx.cpp.

References dc, drawLine(), M_PI, GUI::mapX(), GUI::mapY(), real, Vector2::x, and Vector2::y.

void GUIWx::outText const char *  s  )  [virtual]
 

Outputs a text string.

Implements GUI.

Definition at line 105 of file GUIWx.cpp.

References outTextStatusBar().

void GUIWx::outTextStatusBar const char *  s,
int  pos = 0
[virtual]
 

Outputs a text to the statusbar, at position pos.

Implements GUI.

Definition at line 109 of file GUIWx.cpp.

References statusBar.

Referenced by outText().

void GUIWx::setBrushColor Color  color  )  [virtual]
 

Implements GUI.

Definition at line 89 of file GUIWx.cpp.

References Color::b, dc, Color::g, Color::r, and Color::transparent.

void GUIWx::setDC wxDC *  iniDC  ) 
 

Definition at line 17 of file GUIWx.cpp.

References dc.

Referenced by ThyrixMainFrame::paintDC().

void GUIWx::setPenColor Color  color  )  [virtual]
 

Implements GUI.

Definition at line 97 of file GUIWx.cpp.

References Color::b, dc, Color::g, Color::r, and Color::transparent.


Member Data Documentation

wxDC* GUIWx::dc
 

The device context.

Definition at line 55 of file GUIWx.h.

Referenced by clear(), drawCappedRectangle(), drawCircle(), drawLine(), drawRectangle(), drawTorque(), setBrushColor(), setDC(), and setPenColor().

wxStatusBar* GUIWx::statusBar [private]
 

The status bar.

Definition at line 60 of file GUIWx.h.

Referenced by outTextStatusBar().


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005