class GmDrawable |
The GmDrawable class is the base class for all render-able objects.
GmDrawable () Standard constructor | |
virtual void | applyLayout (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Repositions and resizes this component based on parameters passed into the method. |
virtual GlmColor4* | getBaseColor () Gets the base color of the object. |
virtual GmTypes::CoordinateType | getCoordType () Gets the coordinate type for this object. |
virtual float | getDepth () Gets the depth of the drawable object. |
virtual float | getGlDepth () Gets the OpenGL depth of the drawable object. |
virtual void | getGlExtents (float& width, float& height) Gets the ideal extents of the drawable in OpenGL units. |
virtual float | getGlHeight () Gets the OpenGL height of the drawable object. |
virtual GlmPoint3* | getGlPosition () Gets the OpenGL position of the drawable object. |
virtual float | getGlWidth () Gets the OpenGL width of the drawable object. |
virtual float | getHeight () Gets the height of the drawable object. |
virtual void | getMinimumGeometry (float& width, float& height, float& depth) Get the minimum dimensions of this drawable object. |
virtual GlmPoint3* | getPosition () Gets the position of the drawable object. |
virtual bool | getVisible () Gets the visibility status of this drawable object. |
virtual float | getWidth () Gets the width of the drawable object. |
virtual void | render (GmTypes::RenderOptionType renderOptions) Renders the current drawable given the rendering options. |
virtual void | setAbsoluteGeometry (float x, float y, float z, float width, float height, float depth) Sets the absolute geometry to use for this drawable object. |
virtual void | setBaseColor (GlmColor4* color) Sets the base color of the object. |
virtual void | setBaseColor (float r, float g, float b, float a) Sets the base color of the object. |
virtual void | setCoordType (GmTypes::CoordinateType coordType) Sets the coordinate type for this object. |
virtual void | setDepth (float depth) Sets the depth of the drawable object in units. |
virtual void | setHeight (float height) Sets the height of the drawable object in units. |
virtual void | setPosition (GlmPoint3* point) Sets the position of the drawable. |
virtual void | setPosition (float x, float y, float z) Sets the position of the drawable. |
virtual void | setRelativeGeometry (float x, float y, float width, float height) Sets the relative geometry to use for this drawable object. |
virtual void | setRelativeGeometry (float x, float y, float z, float width, float height, float depth) Sets the relative geometry to use for this drawable object. |
virtual void | setVisible (bool visible) Sets the visibility of the drawable object. |
virtual void | setWidth (float width) Sets the width of the drawable object in units. |
virtual | ~GmDrawable () Standard destructor |
GlmColor4 | mBaseColor The base color of the drawable object |
GmTypes::CoordinateType | mCoordType The coordinate type to use CT_RELATIVE or CT_ABSOLUTE. |
float | mDepth The physical depth of the drawable object in units. |
bool | mDisplayListGenerate A flag to inform render methods of their displaylist's state. |
int | mDisplayListId An OpenGL-assigned displaylist id for this object. |
float | mGlDepth The depth of this drawable in OpenGL units. |
float | mGlHeight The height of this drawable in OpenGL units. |
GlmPoint3 | mGlPosition The OpenGL position of this object. |
float | mGlWidth The width of this drawable in OpenGL units. |
float | mHeight The physical height of the drawable object in units. |
GlmPoint3 | mPosition The position of the drawable object. |
bool | mVisible The visible status of the object, if true the drawable is visible and will be rendered. |
float | mWidth The physical width of the drawable object in units. |
virtual bool | getDisplayListGenerate () Gets the flag which informs the render functions that their display list needs to be generated. |
virtual int | getDisplayListId () Gets the current displaylist id for the object. |
virtual void | render2d (GmTypes::RenderOptionType renderOptions) Renders this drawable to a 2D image buffer. |
virtual void | render2dSelect (GmTypes::RenderOptionType renderOptions) Renders this drawable to a selection buffer. |
virtual void | setDisplayListGenerate (bool generate) Sets the flag which informs the render functions that their display list needs to be generated. |
virtual void | setDisplayListId (int id) Sets the displaylist id for this component. |
The GmDrawable class is the base class for all render-able objects. It contains basic information such as the height and width of the drawable object as well as whether it is visible or not.
Alphabetic index HTML hierarchy of classes or Java