GL Studio Safety Critical Embedded C++ Runtime Library
|
#include <gls_group.h>
Classes | |
struct | InitParameters |
Public Member Functions | |
GlsGroup (InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time) |
virtual void | Calculate (const GlsFloat64 time) |
virtual GlsDisplayObject * | PickTest (const GlsVector2D &windowCoord, GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
virtual void | SetChildrenAlphaMode (const GlsAlphaMode alphaMode) |
virtual void | SetChildrenFillColor (const GlsColor &fillColor) |
virtual void | SetChildrenLineColor (const GlsColor &lineColor) |
virtual void | SetChildrenLineWidth (const GlsFloat32 lineWidth) |
virtual void | SetChildrenPolygonMode (const GlsPolygonMode polygonMode) |
Public Member Functions inherited from GlsDisplayObject | |
GlsDisplayObject * | HandleEvent (GlsEvent &event) |
ObjectType | GetObjectType (void) const |
void | SetBlinking (const GlsBool blinking) |
void | SetBlinkRate (const GlsFloat32 blinkRate) |
void | SetDynamicRotation (const GlsVector3D &dynamicRotation) |
void | SetDynamicScale (const GlsVector3D &dynamicScale) |
void | SetDynamicTranslation (const GlsVector3D &dynamicTranslation) |
void | SetVisibility (const GlsBool visible) |
void | SetParent (GlsDisplayObject *const parent) |
void | SetPickMode (const PickMode pickMode) |
GlsBool | NeedCalculate (void) const |
void | InvalidatePickCache (void) |
Protected Member Functions | |
virtual | ~GlsGroup () |
Protected Member Functions inherited from GlsCompositeObject | |
GlsCompositeObject (const InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
virtual | ~GlsCompositeObject () |
Protected Member Functions inherited from GlsDisplayObject | |
GlsDisplayObject (const InitParameters &initParameters, const ObjectType objectType, GlsEventDispatcher *const eventDispatcher) | |
virtual | ~GlsDisplayObject () |
GlsBool | CalcDrawMatrix (const GlsMatrixAffineD *const additionalTransform, const GlsBool includeLocation) |
virtual void | CalcWindowPickRegion (GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
GlsBool | IsBlinkedOff (const GlsFloat64 time) const |
Additional Inherited Members | |
Public Types inherited from GlsDisplayObject | |
enum | ObjectType { OBJECT_TYPE_COMPOSITE, OBJECT_TYPE_RENDERABLE } |
enum | PickMode { PICK_MODE_NEVER, PICK_MODE_FIRST, PICK_MODE_ALWAYS } |
This class implements a group of display objects.
GlsGroup::GlsGroup | ( | InitParameters & | initParameters, |
GlsEventDispatcher *const | eventDispatcher | ||
) |
Constructor - create an instance
initParameters | initialization parameters |
eventDispatcher | event dispatcher for this object else GLS_NULL |
|
protectedvirtual |
Destructor - shall never be called
|
virtual |
Provides a mechanism for performing regular calculations, separate from drawing.
time | The elaspsed time in seconds since program start |
Reimplemented from GlsDisplayObject.
|
virtual |
Draws the objects in the group.
gl | GL State manager for OpenGL into which object is drawn |
time | the elaspsed time in seconds since program start |
Implements GlsDisplayObject.
|
virtual |
Perform a pick test of the given point in window coordinates against this object
windowCoord | point in question |
inputManager | input manager managing input for this object |
parentDrawMatrix | draw matrix used when rendering parent object |
Reimplemented from GlsDisplayObject.
|
virtual |
Set the alpha mode of the contained objects
alphaMode | desired alpha mode |
Implements GlsCompositeObject.
|
virtual |
Set the fill color of the contained objects
fillColor | desired fill color |
Implements GlsCompositeObject.
|
virtual |
Set the line color of the contained objects
lineColor | desired line color |
Implements GlsCompositeObject.
|
virtual |
Set the line width of the contained objects
lineWidth | new line width, GlsRenderObject::LINE_WIDTH_MIN <= lineWidth <= GlsRenderObject::LINE_WIDTH_MAX |
Implements GlsCompositeObject.
|
virtual |
Set the polygon mode of the contained objects
polygonMode | new polygon mode |
Implements GlsCompositeObject.
|
protected |
array of display objects