Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

SfWin Class Reference

Abstract window class Purpose of this class is to make drawing fns available without specifying any implementation E.g., could use FLTK, or a null implementation for no drawing. More...

#include <SfClass.h>

List of all members.

Public Types

enum  { FIRST, LAST, REMOVE }

Public Methods

virtual void Vector (double, double, double, double)
 draws a line.

virtual void Vector (double, double, double, double, ArPose *)
 draws a line relative to a pose; use NULL for the robot.

virtual void Rectangle (double, double, double, double)
 draws a rectangle.

virtual void CRectangle (double, double, double, double)
 draws a centered rectangle.

virtual void CRectangle (double, double, double, double, ArPose *)
 draws a centered rectangle relative to a pose; use NULL for the robot.

virtual void Point (double, double)
 draws a point.

virtual void Point (double, double, ArPose *)
 draws a point relative to a pose; use NULL for the robot.

virtual void Polygon (int, double *, double *)
 draws a polygon, using an array of points.

virtual void Circle (double x, double y, double r)
 draws a circle at x,y, with radius r.

virtual void Circle (double x, double y, double r, ArPose *)
 draws a circle relative to a pose; use NULL for the robot.

virtual void Text (char *str, double x, double y)
 draws a text string at location x,y.

virtual void Text (char *str, double x, double y, ArPose *)
 draws a text string at location x,y relative to a pose; use NULL for the robot.

virtual void PenColor (int)
 Sets the drawing pen color This holds until another pen color is set.

virtual void Coords (double *x, double *y, int i, int j)
 returns RW coords from screen i,j.

void AddKeyHandler (int(*fn)(int, int, SfWin *), int which=FIRST)
 adds a keystroke handler to the window.

void AddButtonHandler (int(*fn)(int, int, int, int, SfWin *), int which=FIRST)
 adds a button press handler.


Detailed Description

Abstract window class Purpose of this class is to make drawing fns available without specifying any implementation E.g., could use FLTK, or a null implementation for no drawing.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
FIRST  Put a button or key handler at the beginning of the callback list.
LAST  At the end.
REMOVE  Remove it.


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:49:38 2002 for Saphira by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001