|
GL Studio Safety Critical Embedded C++ Runtime Library
|
#include <gls_clipping_group.h>
Inheritance diagram for GlsClippingGroup:Classes | |
| struct | InitParameters |
Public Member Functions | |
| GlsClippingGroup (InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
| virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time) |
| virtual GlsDisplayObject * | PickTest (const GlsVector2D &windowCoord, GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
| GlsBool | GetClippingActive () |
| void | SetClippingActive (const GlsBool value) |
| GlsVector3D | GetBlc () |
| void | SetBlc (const GlsVector3D &value) |
| GlsVector3D | GetTrc () |
| void | SetTrc (const GlsVector3D &value) |
Public Member Functions inherited from GlsGroup | |
| 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) |
| virtual void | SetChildrenAlphaMode (const GlsAlphaMode alphaMode)=0 |
| virtual void | SetChildrenFillColor (const GlsColor &fillColor)=0 |
| virtual void | SetChildrenLineColor (const GlsColor &lineColor)=0 |
| virtual void | SetChildrenLineWidth (const GlsFloat32 lineWidth)=0 |
| virtual void | SetChildrenPolygonMode (const GlsPolygonMode polygonMode)=0 |
Public Member Functions inherited from GlsDisplayObject | |
| virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time)=0 |
| virtual void | Calculate (const GlsFloat64 time) |
| virtual GlsDisplayObject * | PickTest (const GlsVector2D &windowCoord, GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
| 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 | ~GlsClippingGroup () |
| virtual void | CalcWindowPickRegion (GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
| void | DrawClippingPolygon (GlsStateManager &gl) |
Protected Member Functions inherited from GlsGroup | |
| 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 facilitates regions that clip geometry within a given boundary
| GlsClippingGroup::GlsClippingGroup | ( | 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
|
protectedvirtual |
Recalculates the window picking region if needed
| inputManager | input manager managing input for this object |
| parentDrawMatrix | draw matrix used when rendering parent object |
Reimplemented from GlsDisplayObject.
|
virtual |
Draws the objects in the clipping group.
| gl | GL State manager for OpenGL into which object is drawn |
| time | the elaspsed time in seconds since program start |
Reimplemented from GlsGroup.
|
protected |
Draws the clipping polygon to the stencil buffer.
| gl | GL State manager for OpenGL into which object is drawn |
| GlsVector3D GlsClippingGroup::GetBlc | ( | ) |
Get the bottom left corner of the clipping region
| GlsBool GlsClippingGroup::GetClippingActive | ( | ) |
Get the current active state for the clipping region
| GlsVector3D GlsClippingGroup::GetTrc | ( | ) |
Get the top right corner of the clipping region
|
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 GlsGroup.
| void GlsClippingGroup::SetBlc | ( | const GlsVector3D & | value | ) |
Set the bottom left corner of the clipping region
| value | GlsVector3D new bottom left corner to set |
| void GlsClippingGroup::SetClippingActive | ( | const GlsBool | value | ) |
Set the current active state for the clipping region
| value | GlsBool new active state to set |
| void GlsClippingGroup::SetTrc | ( | const GlsVector3D & | value | ) |
Set the top right corner of the clipping region
| value | GlsVector3D new top right corner to set |
|
protected |
bottom left corner of the clip region in logical units
|
protected |
determines if geometry will be clipped between blc and trc
|
protected |
top right corner of the clip region in logical units