DrawableObject Class Reference

#include <DrawableObject.h>

Inheritance diagram for DrawableObject:

SimObject Cylinder Polyeder Sphere List of all members.

Public Member Functions

 DrawableObject ()
virtual std::string getKind () const
void setSurface (const Surface *surface)
virtual void invertColors ()

Protected Attributes

const Surfacesurface
bool inverted

Detailed Description

An abstract class representing a drawable object

Definition at line 21 of file DrawableObject.h.


Constructor & Destructor Documentation

DrawableObject::DrawableObject (  )  [inline]

Constructor

Definition at line 31 of file DrawableObject.h.

References inverted, and surface.


Member Function Documentation

virtual std::string DrawableObject::getKind (  )  const [inline, virtual]

Returns a string describing the kind of object

Returns:
The kind

Reimplemented from SimObject.

Reimplemented in Cylinder, Polyeder, and Sphere.

Definition at line 36 of file DrawableObject.h.

virtual void DrawableObject::invertColors (  )  [inline, virtual]

Inverts the colors of the object and all subobjects Used for displaying selections.

Reimplemented from SimObject.

Definition at line 46 of file DrawableObject.h.

References SimObject::invertColors(), and inverted.

void DrawableObject::setSurface ( const Surface surface  )  [inline]

Sets the surface of the drawable object

Parameters:
surface The surface

Definition at line 41 of file DrawableObject.h.

References surface.

Referenced by SAX2Handler::parseCylinderAttributes(), SAX2Handler::parsePolyederAttributes(), and SAX2Handler::parseSphereAttributes().


Member Data Documentation

bool DrawableObject::inverted [protected]

Flag: Invert colors, if true

Definition at line 27 of file DrawableObject.h.

Referenced by Sphere::draw(), Polyeder::draw(), Cylinder::draw(), DrawableObject(), and invertColors().

const Surface* DrawableObject::surface [protected]

A pointer to a surface object

Definition at line 25 of file DrawableObject.h.

Referenced by Sphere::clone(), Polyeder::clone(), Cylinder::clone(), Sphere::draw(), Polyeder::draw(), Cylinder::draw(), DrawableObject(), Polyeder::setPointsAndSurfaces(), and setSurface().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:30:07 2006 for DT2005.panorama by  doxygen 1.4.7