Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

SfArtifact Class Reference

SfArtifact objects are Local Perceptual Space objects Inherit from this class if you want to be drawn on the LPS graphics window. More...

#include <SfLps.h>

Inheritance diagram for SfArtifact::

SfDrawable SfCorridor SfGoal SfPoint SfRobot SfWall List of all members.

Public Types

enum  Type {
  Robot, Point, Wall, Wallset,
  Corridor, Goal
}

Public Methods

void draw (SfWin *w)
 This function is overridden by the artifact subclass to draw a particular artifact.

 SfArtifact ()
 Constructor, adds the artifact object to the artifact list.

virtual ~SfArtifact ()
 Destructor, removes the artifact from the artifact list.


Public Attributes

ArPose p
 Current pose of the object.


Detailed Description

SfArtifact objects are Local Perceptual Space objects Inherit from this class if you want to be drawn on the LPS graphics window.

The SfArtifact class is the standard way to draw objects on the LPS graphcis window. Inheriting from this class lets a subclass define the draw(SfWin *) function, which is called every time the graphics window is refreshed. The SfArtifact class adds its objects to the artifact list, and removes them on destruction. To turn off drawing of an artifact, use the visible flag (inherited from the SfDrawable class).

See also:
SfWin , SfArtifactList


Member Enumeration Documentation

enum SfArtifact::Type
 

Enumeration values:
Robot  Robot object.
Point  Point object, draws as a circle.
Wall  Wall object, draws as a line.
Wallset  Wall set object, not currently used.
Corridor  Corridor object, draws as a parallel pair of double lines.
Goal  Goal object, draws as a circle for now.


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