#include <RawObject.h>
Inheritance diagram for RawObject:
Public Member Functions | |
RawObject () | |
~RawObject () | |
virtual void | Draw () |
virtual double | GetBoundingRadius () |
virtual BoundingBox | GetBoundingBox () |
void | SetColor (float red, float green, float blue, float alpha) |
void | SetEmission (float red, float green, float blue, float alpha) |
Protected Attributes | |
float | color [4] |
float | emission [4] |
A RawObject defines the appearance of an object and contains all its geometric data. The object itself no knowledge about its position and orientation, this information is contained within the GraphicalObjects to which RawObjects get tied to.
Definition at line 20 of file RawObject.h.
|
Constructor: Initializes its members to some default values. Definition at line 3 of file RawObject.cpp. |
|
Destructor. Definition at line 16 of file RawObject.cpp. |
|
Draws the object. This routine has to be implemented by the descendants of this class. Reimplemented in ComposedObject, Cube, TexturedCube, Icosahedron, SimpleArrow, Teapot, Torus, and VertexArrayObject. |
|
Returns the bounding box of the object. This routine has to be implemented by the descendants of this class.
Reimplemented in Cube, TexturedCube, Icosahedron, SimpleArrow, Teapot, Torus, Torus2, and VertexArrayObject. |
|
Returns the bounding radius of the object. This routine has to be implemented by the descendants of this class.
Reimplemented in Cube, TexturedCube, Icosahedron, SimpleArrow, Teapot, Torus, Torus2, and VertexArrayObject. |
|
Set the color of the the object. There is, however, no guarantee that an object will be displayed with that color, because the descendants have full responsibility over the appearance of an object.
Definition at line 21 of file RawObject.cpp. |
|
Set the emission color of the object. There is, however, no guarantee that an object will be displayed with that color, because the descendants have full responsibility over the appearance of an object.
Definition at line 29 of file RawObject.cpp. |
|
Internally stores the color of the object. Definition at line 76 of file RawObject.h. |
|
Internally stores the color of the light emitted by this object. Definition at line 79 of file RawObject.h. |