#include <DrawableObject.h>
Inheritance diagram for DrawableObject:
Public Member Functions | |
DrawableObject () | |
virtual std::string | getKind () const |
void | setSurface (const Surface *surface) |
virtual void | invertColors () |
Protected Attributes | |
const Surface * | surface |
bool | inverted |
Definition at line 21 of file DrawableObject.h.
DrawableObject::DrawableObject | ( | ) | [inline] |
virtual std::string DrawableObject::getKind | ( | ) | const [inline, virtual] |
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
surface | The surface |
Definition at line 41 of file DrawableObject.h.
References surface.
Referenced by SAX2Handler::parseCylinderAttributes(), SAX2Handler::parsePolyederAttributes(), and SAX2Handler::parseSphereAttributes().
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().