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

ThyrixMainFrame Class Reference

#include <ThyrixMainFrame.h>

List of all members.

Public Types

Public Member Functions

Public Attributes

Private Member Functions

Private Attributes


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
Unused 
kMenuTimePause 
kMenuTimeDiv10 
kMenuTimeX1 
kMenuTimeX3 
kMenuTimeX10 
kMenuTimeX30 
kMenuTimeX100 
kMenuTimeMax 
kMenuFps30 
kMenuFps60 
kMenuFps90 
kMenuStep 
kMenuCapture 

Definition at line 12 of file ThyrixMainFrame.h.


Constructor & Destructor Documentation

ThyrixMainFrame::ThyrixMainFrame const wxString &  title,
World world,
int  bufferWidth = 600,
int  bufferHeight = 400,
int  zoom = 100
 

ThyrixMainFrame::~ThyrixMainFrame  )  [virtual]
 

Definition at line 90 of file ThyrixMainFrame.cpp.

References gui, and thread.


Member Function Documentation

void ThyrixMainFrame::buildMenu  ) 
 

Definition at line 96 of file ThyrixMainFrame.cpp.

References kMenuFps30, kMenuFps60, kMenuFps90, kMenuTimeDiv10, kMenuTimeMax, kMenuTimePause, kMenuTimeX1, kMenuTimeX10, kMenuTimeX100, kMenuTimeX3, and kMenuTimeX30.

ThyrixMainFrame::DECLARE_CLASS ThyrixMainFrame   )  [private]
 

ThyrixMainFrame::DECLARE_EVENT_TABLE  )  [private]
 

void ThyrixMainFrame::onCapture wxCommandEvent &  event  ) 
 

Definition at line 130 of file ThyrixMainFrame.cpp.

References bufferHeight, bufferWidth, and paintDC().

void ThyrixMainFrame::OnClose wxCloseEvent &  event  ) 
 

Definition at line 196 of file ThyrixMainFrame.cpp.

void ThyrixMainFrame::onLeftDown wxMouseEvent &  event  ) 
 

Captures pressing of mouse left button.

Definition at line 249 of file ThyrixMainFrame.cpp.

References gui, GUI::inverseMapX(), GUI::inverseMapY(), World::onMouseLeftDown(), and world.

void ThyrixMainFrame::onLeftUp wxMouseEvent &  event  ) 
 

Captures release of mouse left button.

Definition at line 257 of file ThyrixMainFrame.cpp.

References gui, GUI::inverseMapX(), GUI::inverseMapY(), World::onMouseLeftUp(), and world.

void ThyrixMainFrame::onMotion wxMouseEvent &  event  ) 
 

Captures mouse motion.

Definition at line 243 of file ThyrixMainFrame.cpp.

References gui, GUI::inverseMapX(), GUI::inverseMapY(), World::setMouseCoordinates(), and world.

void ThyrixMainFrame::onRightDown wxMouseEvent &  event  ) 
 

Definition at line 264 of file ThyrixMainFrame.cpp.

References gui, GUI::inverseMapX(), GUI::inverseMapY(), World::onMouseRightDown(), and world.

void ThyrixMainFrame::onRightUp wxMouseEvent &  event  ) 
 

Definition at line 270 of file ThyrixMainFrame.cpp.

References gui, GUI::inverseMapX(), GUI::inverseMapY(), World::onMouseRightUp(), and world.

void ThyrixMainFrame::onSetFps wxCommandEvent &  event  ) 
 

Definition at line 140 of file ThyrixMainFrame.cpp.

References kMenuFps30, kMenuFps60, kMenuFps90, SimulatorThread::setFramesPerSecond(), and thread.

void ThyrixMainFrame::onSetSpeed wxCommandEvent &  event  ) 
 

Definition at line 154 of file ThyrixMainFrame.cpp.

References kMenuTimeDiv10, kMenuTimeMax, kMenuTimePause, kMenuTimeX1, kMenuTimeX10, kMenuTimeX100, kMenuTimeX3, kMenuTimeX30, SimulatorThread::setPause(), SimulatorThread::setTimeFactor(), and thread.

void ThyrixMainFrame::onStep wxCommandEvent &  event  ) 
 

Definition at line 126 of file ThyrixMainFrame.cpp.

References SimulatorThread::step(), and thread.

void ThyrixMainFrame::paint  ) 
 

Paints the image to the memory buffer and then to the screen.

Definition at line 229 of file ThyrixMainFrame.cpp.

References buffer, bufferHeight, bufferWidth, and paintDC().

Referenced by SimulatorThread::Entry().

void ThyrixMainFrame::paintDC wxDC *  dc  ) 
 

Paints the simulator generated image to the specified device context.

Definition at line 277 of file ThyrixMainFrame.cpp.

References World::draw(), gui, GUIWx::setDC(), and world.

Referenced by onCapture(), and paint().

void ThyrixMainFrame::start  ) 
 

Creates the GUI object (needed by the simulator) and starts the thread.

Definition at line 121 of file ThyrixMainFrame.cpp.

References bufferHeight, gui, thread, and zoom.


Member Data Documentation

wxBitmap ThyrixMainFrame::bitmap [private]
 

Bitmap used for graphical buffering.

Definition at line 101 of file ThyrixMainFrame.h.

wxMemoryDC ThyrixMainFrame::buffer [private]
 

Memory device context used as a graphical buffer. It provides a means to draw on a bitmap.

Definition at line 98 of file ThyrixMainFrame.h.

Referenced by paint().

int ThyrixMainFrame::bufferHeight [private]
 

The dimensions of the graphical buffer.

Definition at line 104 of file ThyrixMainFrame.h.

Referenced by onCapture(), paint(), and start().

int ThyrixMainFrame::bufferWidth [private]
 

The dimensions of the graphical buffer.

Definition at line 104 of file ThyrixMainFrame.h.

Referenced by onCapture(), and paint().

GUIWx* ThyrixMainFrame::gui [private]
 

The GUI object (an interface to the GUI which is available to the simulator).

Definition at line 107 of file ThyrixMainFrame.h.

Referenced by onLeftDown(), onLeftUp(), onMotion(), onRightDown(), onRightUp(), paintDC(), start(), and ~ThyrixMainFrame().

SimulatorThread ThyrixMainFrame::thread [private]
 

Definition at line 95 of file ThyrixMainFrame.h.

Referenced by onSetFps(), onSetSpeed(), onStep(), start(), and ~ThyrixMainFrame().

World* ThyrixMainFrame::world
 

Definition at line 83 of file ThyrixMainFrame.h.

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

int ThyrixMainFrame::zoom [private]
 

The zoom applied by the GUI object.

Definition at line 110 of file ThyrixMainFrame.h.

Referenced by start().


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005