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

GUI Class Reference

#include <GUI.h>

Inheritance diagram for GUI:

GUIWx List of all members.

Public Member Functions

Public Attributes

Static Public Attributes


Constructor & Destructor Documentation

GUI::GUI float  iniPanX = 0,
float  iniPanY = 400,
float  zoom = 100.0f,
int  signX = 1,
int  signY = -1
 

Definition at line 16 of file GUI.cpp.

GUI::~GUI  )  [virtual]
 

Definition at line 27 of file GUI.cpp.


Member Function Documentation

virtual void GUI::clear  )  [pure virtual]
 

Erases everything.

Implemented in GUIWx.

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

Implemented in GUIWx.

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

Implemented in GUIWx.

Referenced by CappedRectangle::draw().

void GUI::drawCircle const Vector2 r,
float  R
[inline]
 

Definition at line 29 of file GUI.h.

References Vector2::x, and Vector2::y.

virtual void GUI::drawCircle float  x,
float  y,
float  r
[pure virtual]
 

Implemented in GUIWx.

Referenced by Circle::draw(), and ArticulatedLink::draw().

virtual void GUI::drawForce const Vector2 r,
const Vector2 force
[pure virtual]
 

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

Implemented in GUIWx.

Referenced by Spherus::draw(), and PhysicalObject::drawContactForces().

void GUI::drawLine const Vector2 r1,
float  x2,
float  y2
[inline]
 

Definition at line 35 of file GUI.h.

References Vector2::x, and Vector2::y.

void GUI::drawLine const Vector2 r1,
const Vector2 r2
[inline]
 

Definition at line 32 of file GUI.h.

References Vector2::x, and Vector2::y.

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

Implemented in GUIWx.

Referenced by VisualSensor::draw(), Spherus::draw(), Iunctus::draw(), ElasticLink::draw(), Circle::drawSensors(), and CappedRectangle::drawSensors().

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

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

Implemented in GUIWx.

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

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

Implemented in GUIWx.

float GUI::inverseMapX float  x  )  [inline]
 

Definition at line 70 of file GUI.h.

Referenced by ThyrixMainFrame::onLeftDown(), ThyrixMainFrame::onLeftUp(), ThyrixMainFrame::onMotion(), ThyrixMainFrame::onRightDown(), and ThyrixMainFrame::onRightUp().

float GUI::inverseMapY float  y  )  [inline]
 

Definition at line 74 of file GUI.h.

Referenced by ThyrixMainFrame::onLeftDown(), ThyrixMainFrame::onLeftUp(), ThyrixMainFrame::onMotion(), ThyrixMainFrame::onRightDown(), and ThyrixMainFrame::onRightUp().

float GUI::mapLen float  len  )  [inline]
 

Definition at line 78 of file GUI.h.

Referenced by GUIWx::drawCircle().

float GUI::mapX float  x  )  [inline]
 

Definition at line 60 of file GUI.h.

Referenced by GUIWx::drawCappedRectangle(), GUIWx::drawCircle(), GUIWx::drawLine(), GUIWx::drawRectangle(), and GUIWx::drawTorque().

float GUI::mapY float  y  )  [inline]
 

Definition at line 65 of file GUI.h.

Referenced by GUIWx::drawCappedRectangle(), GUIWx::drawCircle(), GUIWx::drawLine(), GUIWx::drawRectangle(), and GUIWx::drawTorque().

virtual void GUI::outText const char *  s  )  [pure virtual]
 

Outputs a text string.

Implemented in GUIWx.

virtual void GUI::outTextStatusBar const char *  s,
int  pos
[pure virtual]
 

Outputs a text to the statusbar, at position pos.

Implemented in GUIWx.

Referenced by World::draw().

virtual void GUI::setBrushColor Color  color  )  [pure virtual]
 

Implemented in GUIWx.

Referenced by Spherus::draw(), Simulator::draw(), Circle::draw(), and CappedRectangle::draw().

virtual void GUI::setPenColor Color  color  )  [pure virtual]
 

Implemented in GUIWx.

Referenced by VisualSensor::draw(), Spherus::draw(), Elastoid::draw(), Circle::draw(), CappedRectangle::draw(), and ArticulatedLink::draw().

void GUI::setZoom float  newZoom  ) 
 

Definition at line 30 of file GUI.cpp.

References zoom, zoomX, and zoomY.


Member Data Documentation

const Color GUI::colorBlack = Color(0,0,0) [static]
 

Definition at line 13 of file GUI.cpp.

const Color GUI::colorTransparent = Color(0,0,0,true) [static]
 

Definition at line 11 of file GUI.cpp.

const Color GUI::colorWhite = Color(255,255,255) [static]
 

Definition at line 12 of file GUI.cpp.

float GUI::panX
 

Definition at line 83 of file GUI.h.

float GUI::panY
 

Definition at line 84 of file GUI.h.

int GUI::signX
 

Definition at line 86 of file GUI.h.

int GUI::signY
 

Definition at line 87 of file GUI.h.

float GUI::zoom
 

Definition at line 85 of file GUI.h.

Referenced by setZoom().

float GUI::zoomX
 

Definition at line 88 of file GUI.h.

Referenced by setZoom().

float GUI::zoomY
 

Definition at line 89 of file GUI.h.

Referenced by setZoom().


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005