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

GraphicalObject Class Reference

#include <GraphicalObject.h>

Inheritance diagram for GraphicalObject:

PhysicalObject Border CappedRectangle Circle ComposedPhysicalObject Elastoid Spherus VisualSensor ArticulatedComponent Pac ArticulatedAgentBase ArticulatedLink ArticulatedAgentQuasistatic Iunctus List of all members.

Public Member Functions

Public Attributes


Detailed Description

Base class for all objects that can be drawn (including physical objects, but eventually also elements like markers, contacts, forces, etc.). It is characterized by an outline color and a fill color.

Definition at line 9 of file GraphicalObject.h.


Constructor & Destructor Documentation

GraphicalObject::GraphicalObject Color  outlineColor = GUI::colorBlack,
Color  fillColor = GUI::colorTransparent
 

Definition at line 3 of file GraphicalObject.cpp.

GraphicalObject::~GraphicalObject  )  [virtual]
 

Destructor, does nothing.

Definition at line 8 of file GraphicalObject.cpp.


Member Function Documentation

virtual void GraphicalObject::draw GUI gui  )  [pure virtual]
 

Draw the object to the graphical user interface.

Implemented in Iunctus, Spherus, Border, CappedRectangle, Circle, ComposedPhysicalObject, Elastoid, VisualSensor, ArticulatedAgentBase, and ArticulatedLink.

Referenced by ComposedPhysicalObject::draw().

void GraphicalObject::setColor Color  color  )  [inline]
 

Sets both outline and fill color to the same color.

Definition at line 26 of file GraphicalObject.h.

Referenced by Pac::Pac().

virtual void GraphicalObject::setFillColor Color  color  )  [inline, virtual]
 

Sets fill color.

Reimplemented in ComposedPhysicalObject, and ArticulatedAgentBase.

Definition at line 23 of file GraphicalObject.h.

virtual void GraphicalObject::setOutlineColor Color  color  )  [inline, virtual]
 

Sets outline color.

Reimplemented in ComposedPhysicalObject, and ArticulatedAgentBase.

Definition at line 20 of file GraphicalObject.h.


Member Data Documentation

Color GraphicalObject::fillColor
 

The fill color of the object.

Definition at line 35 of file GraphicalObject.h.

Color GraphicalObject::outlineColor
 

The outline color of the object.

Definition at line 32 of file GraphicalObject.h.


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005