Robotcode  1.0
TextDisplay Class Reference

Provides the Window which which the Experimenter can commicate with the program. More...

#include <TextDisplay.h>

List of all members.

Public Member Functions

void init (HINSTANCE hInst, int xPos, int yPos, int width, int rows, int scrollrows, int columns, void(*onRet)(string))
 initialize the textdisplay
void setText (string text, int row, int column)
 sets the text to a certain row / column
void printVector3 (string text, double *vec, int row, int column)
 prints out a 3D vector
void printMatrix4 (double *M, int row, int column)
 prints a 4x4 Matrix
void printDouble (string text, double d, int row, int column)
 prints a single double value
void scroll ()
 Scrolls the command line one up.
void print (string x)
 give out unformated text at command line and scrolls up
void lock ()
 No more keystrokes are accepted.
void unlock ()
 allow input again
void close ()

Static Public Member Functions

static void display (HWND hwnd)
 Display.
static void onKey (unsigned char k, int x, int y)
 on key callback
static void resetOnRet (void(*onRet)(string))
 callback on return
static LRESULT CALLBACK messageCallback (HWND, UINT, WPARAM, LPARAM)

Static Public Attributes

static int cursorCol
 Where is the cursor.
static HWND windowHnd
static WNDCLASSEX wcl
static bool keyPressed = 0
static char key

Detailed Description

Provides the Window which which the Experimenter can commicate with the program.

The upper part of the text display is dedicated to the output the lower part to the input from the experimenter

See also:
MyExperiment:parseCommands()

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