Open CASCADE Technology  6.9.0
Public Member Functions | Data Fields | Protected Member Functions

OpenGl_Workspace Class Reference

Represents window with GL context. Provides methods to render primitives and maintain GL state. More...

#include <OpenGl_Workspace.hxx>

Inheritance diagram for OpenGl_Workspace:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_Workspace (const Handle< OpenGl_GraphicDriver > &theDriver, const CALL_DEF_WINDOW &theCWindow, Aspect_RenderingContext theGContext, const Handle< OpenGl_Caps > &theCaps, const Handle< OpenGl_Context > &theShareCtx)
 Main constructor - prepare GL context for specified window. More...
 
virtual ~OpenGl_Workspace ()
 Destructor. More...
 
void SetActiveView (const Handle< OpenGl_View > &theView, const Standard_Integer theViewId)
 
const Handle< OpenGl_View > & ActiveView () const
 
Standard_Integer ActiveViewId () const
 
void Redraw (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer)
 Redraw the window. More...
 
Standard_Boolean SetImmediateModeDrawToFront (const Standard_Boolean theDrawToFrontBuffer)
 
void RedrawImmediate (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer)
 
void Invalidate (const Graphic3d_CView &)
 
Standard_Boolean Print (const Handle< OpenGl_PrinterContext > &thePrintContext, const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer, const Aspect_Handle theHPrintDC, const Standard_Boolean theToShowBackground, const Standard_CString theFileName, const Aspect_PrintAlgo thePrintAlgorithm, const Standard_Real theScaleFactor)
 Special method to perform printing. System-specific and currently only Win platform implemented. More...
 
const Handle
< OpenGl_PrinterContext > & 
PrinterContext () const
 
void DisplayCallback (const Graphic3d_CView &theCView, int theReason)
 
Graphic3d_PtrFrameBuffer FBOCreate (const Standard_Integer theWidth, const Standard_Integer theHeight)
 
void FBORelease (Graphic3d_PtrFrameBuffer theFBOPtr)
 
Standard_Boolean BufferDump (OpenGl_FrameBuffer *theFBOPtr, Image_PixMap &theImage, const Graphic3d_BufferType &theBufferType)
 
Standard_BooleanUseZBuffer ()
 
Standard_BooleanUseDepthTest ()
 
Standard_BooleanUseGLLight ()
 
Standard_Integer AntiAliasingMode () const
 
const OpenGl_AspectLineSetAspectLine (const OpenGl_AspectLine *theAspect)
 
const OpenGl_AspectFaceSetAspectFace (const OpenGl_AspectFace *theAspect)
 
const OpenGl_AspectMarkerSetAspectMarker (const OpenGl_AspectMarker *theAspect)
 
const OpenGl_AspectTextSetAspectText (const OpenGl_AspectText *theAspect)
 
void SetTextParam (const OpenGl_TextParam *theParam)
 
const OpenGl_AspectLineAspectLine (const Standard_Boolean theWithApply)
 
const OpenGl_AspectFaceAspectFace (const Standard_Boolean theWithApply)
 
const OpenGl_AspectMarkerAspectMarker (const Standard_Boolean theWithApply)
 
const OpenGl_AspectTextAspectText (const Standard_Boolean theWithApply)
 
const OpenGl_TextParamAspectTextParams () const
 
void ResetAppliedAspect ()
 Clear the applied aspect state. More...
 
Handle< OpenGl_TextureDisableTexture ()
 
Handle< OpenGl_TextureEnableTexture (const Handle< OpenGl_Texture > &theTexture, const Handle< Graphic3d_TextureParams > &theParams=NULL)
 
const Handle< OpenGl_Texture > & ActiveTexture () const
 
void SetRenderFilter (const Handle< OpenGl_RenderFilter > &theFilter)
 Set filter for restricting rendering of particular elements. Filter can be applied for rendering passes used by recursive rendering algorithms for rendering elements of groups. More...
 
const Handle
< OpenGl_RenderFilter > & 
GetRenderFilter () const
 Get rendering filter. More...
 
const OpenGl_MatrixViewMatrix () const
 
const OpenGl_MatrixModelMatrix () const
 
void SetPolygonOffset (int theMode, Standard_ShortReal theFactor, Standard_ShortReal theUnits)
 Sets and applies current polygon offset. More...
 
const TEL_POFFSET_PARAMAppliedPolygonOffset ()
 Returns currently applied polygon offset params. More...
 
Standard_Boolean IsCullingEnabled () const
 
- Public Member Functions inherited from OpenGl_Window
 OpenGl_Window (const Handle< OpenGl_GraphicDriver > &theDriver, const CALL_DEF_WINDOW &theCWindow, Aspect_RenderingContext theGContext, const Handle< OpenGl_Caps > &theCaps, const Handle< OpenGl_Context > &theShareCtx)
 Main constructor - prepare GL context for specified window. More...
 
virtual ~OpenGl_Window ()
 Destructor. More...
 
void Resize (const CALL_DEF_WINDOW &theCWindow)
 Resizes the window. More...
 
void ReadDepths (const Standard_Integer theX, const Standard_Integer theY, const Standard_Integer theWidth, const Standard_Integer theHeight, float *theDepths)
 Reads depth component for current scene into specified buffer. More...
 
void SetBackgroundColor (const Standard_ShortReal theR, const Standard_ShortReal theG, const Standard_ShortReal theB)
 
Standard_Integer Width () const
 
Standard_Integer Height () const
 
const TEL_COLOURBackgroundColor () const
 
const Handle< OpenGl_Context > & GetGlContext () const
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Data Fields

Standard_Integer NamedStatus
 
const TEL_COLOURHighlightColor
 

Protected Member Functions

void copyBackToFront ()
 Copy content of Back buffer to the Front buffer. More...
 
bool blitBuffers (OpenGl_FrameBuffer *theReadFbo, OpenGl_FrameBuffer *theDrawFbo)
 Blit image from/to specified buffers. More...
 
virtual Standard_Boolean Activate ()
 Makes GL context for this window active in current thread. More...
 
void redraw1 (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer, OpenGl_FrameBuffer *theReadDrawFbo, const Graphic3d_Camera::Projection theProjection)
 
void bindDefaultFbo (OpenGl_FrameBuffer *theCustomFbo=NULL)
 Setup default FBO. More...
 
void drawStereoPair ()
 Blend together views pair into stereo image. More...
 
bool redrawImmediate (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer, OpenGl_FrameBuffer *theReadFbo, const Graphic3d_Camera::Projection theProjection, OpenGl_FrameBuffer *theDrawFbo, const Standard_Boolean theIsPartialUpdate=Standard_False)
 Blit snapshot containing main scene (myMainSceneFbos or BackBuffer) into presentation buffer (myMainSceneFbos -> offscreen FBO or myMainSceneFbos -> BackBuffer or BackBuffer -> FrontBuffer), and redraw immediate structures on top. More...
 
void updateMaterial (const int theFlag)
 
void setTextureParams (Handle< OpenGl_Texture > &theTexture, const Handle< Graphic3d_TextureParams > &theParams)
 
- Protected Member Functions inherited from OpenGl_Window
void Init ()
 Activates GL context and setup viewport. More...
 
void EnableFeatures () const
 
void DisableFeatures () const
 

Protected Attributes

protected fields
Handle< OpenGl_FrameBuffermyMainSceneFbos [2]
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Handle< OpenGl_FrameBuffermyImmediateSceneFbos [2]
 Additional buffers for immediate layer in stereo mode. More...
 
Standard_Boolean myHasFboBlit
 Special flag which is invalidated when myMainSceneFbos can not be blitted for some reason (e.g. driver bugs). More...
 
OpenGl_VertexBuffer myFullScreenQuad
 Vertices for full-screen quad rendering. More...
 
Handle< OpenGl_PrinterContextmyPrintContext
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Handle< OpenGl_ViewmyView
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Handle< OpenGl_LineAttributesmyLineAttribs
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Integer myViewId
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Integer myAntiAliasingMode
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Boolean myTransientDrawToFront
 optimization flag for immediate mode (to render directly to the front buffer) More...
 
Standard_Boolean myBackBufferRestored
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Boolean myIsImmediateDrawn
 flag indicates that immediate mode buffer contains some data More...
 
Standard_Boolean myUseZBuffer
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Boolean myUseDepthTest
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Boolean myUseGLLight
 Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers). More...
 
Standard_Boolean myIsCullingEnabled
 frustum culling flag More...
 
unsigned int myFrameCounter
 redraw counter, for debugging More...
 
fields related to status
Handle< OpenGl_RenderFiltermyRenderFilter
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
Handle< OpenGl_TexturemyTextureBound
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectLineAspectLine_set
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectLineAspectLine_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectFaceAspectFace_set
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectFaceAspectFace_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectMarkerAspectMarker_set
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectMarkerAspectMarker_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectTextAspectText_set
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_AspectTextAspectText_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_TextParamTextParam_set
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_TextParamTextParam_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_MatrixViewMatrix_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
const OpenGl_MatrixStructureMatrix_applied
 currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture) More...
 
OpenGl_Material myMatFront
 current front material state (cached to reduce GL context updates) More...
 
OpenGl_Material myMatBack
 current back material state More...
 
OpenGl_Material myMatTmp
 temporary variable More...
 
TelCullMode myCullingMode
 back face culling mode, applied from face aspect More...
 
OpenGl_Matrix myModelViewMatrix
 Model matrix with applied structure transformations. More...
 
TEL_POFFSET_PARAM PolygonOffset_applied
 Currently applied polygon offset. More...
 
OpenGl_AspectFace myAspectFaceHl
 Hiddenline aspect. More...
 
- Protected Attributes inherited from OpenGl_Window
Handle< OpenGl_ContextmyGlContext
 
Standard_Boolean myOwnGContext
 set to TRUE if GL context was not created by this class More...
 
Standard_Integer myWidth
 window width in pixels More...
 
Standard_Integer myHeight
 window height in pixels More...
 
TEL_COLOUR myBgColor
 background color More...
 

Detailed Description

Represents window with GL context. Provides methods to render primitives and maintain GL state.

Constructor & Destructor Documentation

OpenGl_Workspace::OpenGl_Workspace ( const Handle< OpenGl_GraphicDriver > &  theDriver,
const CALL_DEF_WINDOW theCWindow,
Aspect_RenderingContext  theGContext,
const Handle< OpenGl_Caps > &  theCaps,
const Handle< OpenGl_Context > &  theShareCtx 
)

Main constructor - prepare GL context for specified window.

virtual OpenGl_Workspace::~OpenGl_Workspace ( )
virtual

Destructor.

Member Function Documentation

virtual Standard_Boolean OpenGl_Workspace::Activate ( )
protectedvirtual

Makes GL context for this window active in current thread.

Reimplemented from OpenGl_Window.

const Handle< OpenGl_Texture >& OpenGl_Workspace::ActiveTexture ( ) const
inline
const Handle< OpenGl_View >& OpenGl_Workspace::ActiveView ( ) const
inline
Standard_Integer OpenGl_Workspace::ActiveViewId ( ) const
inline
Standard_Integer OpenGl_Workspace::AntiAliasingMode ( ) const
inline
const TEL_POFFSET_PARAM& OpenGl_Workspace::AppliedPolygonOffset ( )
inline

Returns currently applied polygon offset params.

const OpenGl_AspectFace* OpenGl_Workspace::AspectFace ( const Standard_Boolean  theWithApply)
const OpenGl_AspectLine* OpenGl_Workspace::AspectLine ( const Standard_Boolean  theWithApply)
const OpenGl_AspectMarker* OpenGl_Workspace::AspectMarker ( const Standard_Boolean  theWithApply)
const OpenGl_AspectText* OpenGl_Workspace::AspectText ( const Standard_Boolean  theWithApply)
const OpenGl_TextParam* OpenGl_Workspace::AspectTextParams ( ) const
inline
void OpenGl_Workspace::bindDefaultFbo ( OpenGl_FrameBuffer theCustomFbo = NULL)
protected

Setup default FBO.

bool OpenGl_Workspace::blitBuffers ( OpenGl_FrameBuffer theReadFbo,
OpenGl_FrameBuffer theDrawFbo 
)
protected

Blit image from/to specified buffers.

Standard_Boolean OpenGl_Workspace::BufferDump ( OpenGl_FrameBuffer theFBOPtr,
Image_PixMap theImage,
const Graphic3d_BufferType theBufferType 
)
void OpenGl_Workspace::copyBackToFront ( )
protected

Copy content of Back buffer to the Front buffer.

Handle< OpenGl_Texture > OpenGl_Workspace::DisableTexture ( )
void OpenGl_Workspace::DisplayCallback ( const Graphic3d_CView theCView,
int  theReason 
)
void OpenGl_Workspace::drawStereoPair ( )
protected

Blend together views pair into stereo image.

Handle< OpenGl_Texture > OpenGl_Workspace::EnableTexture ( const Handle< OpenGl_Texture > &  theTexture,
const Handle< Graphic3d_TextureParams > &  theParams = NULL 
)
Graphic3d_PtrFrameBuffer OpenGl_Workspace::FBOCreate ( const Standard_Integer  theWidth,
const Standard_Integer  theHeight 
)
void OpenGl_Workspace::FBORelease ( Graphic3d_PtrFrameBuffer  theFBOPtr)
const Handle< OpenGl_RenderFilter >& OpenGl_Workspace::GetRenderFilter ( ) const
inline

Get rendering filter.

Returns
filter instance.
void OpenGl_Workspace::Invalidate ( const Graphic3d_CView )
inline
Standard_Boolean OpenGl_Workspace::IsCullingEnabled ( ) const
inline
Returns
true if clipping algorithm enabled
const OpenGl_Matrix* OpenGl_Workspace::ModelMatrix ( ) const
inline
Returns
applied model structure matrix.
Standard_Boolean OpenGl_Workspace::Print ( const Handle< OpenGl_PrinterContext > &  thePrintContext,
const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer,
const Aspect_Handle  theHPrintDC,
const Standard_Boolean  theToShowBackground,
const Standard_CString  theFileName,
const Aspect_PrintAlgo  thePrintAlgorithm,
const Standard_Real  theScaleFactor 
)

Special method to perform printing. System-specific and currently only Win platform implemented.

const Handle< OpenGl_PrinterContext >& OpenGl_Workspace::PrinterContext ( ) const
inline
void OpenGl_Workspace::Redraw ( const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer 
)

Redraw the window.

void OpenGl_Workspace::redraw1 ( const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer,
OpenGl_FrameBuffer theReadDrawFbo,
const Graphic3d_Camera::Projection  theProjection 
)
protected
void OpenGl_Workspace::RedrawImmediate ( const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer 
)
bool OpenGl_Workspace::redrawImmediate ( const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer,
OpenGl_FrameBuffer theReadFbo,
const Graphic3d_Camera::Projection  theProjection,
OpenGl_FrameBuffer theDrawFbo,
const Standard_Boolean  theIsPartialUpdate = Standard_False 
)
protected

Blit snapshot containing main scene (myMainSceneFbos or BackBuffer) into presentation buffer (myMainSceneFbos -> offscreen FBO or myMainSceneFbos -> BackBuffer or BackBuffer -> FrontBuffer), and redraw immediate structures on top.

When scene caching is disabled (myTransientDrawToFront, no double buffer in window, etc.), the first step (blitting) will be skipped.

Returns
false if immediate structures has been rendered directly into FrontBuffer and Buffer Swap should not be called.
void OpenGl_Workspace::ResetAppliedAspect ( )

Clear the applied aspect state.

void OpenGl_Workspace::SetActiveView ( const Handle< OpenGl_View > &  theView,
const Standard_Integer  theViewId 
)
inline
const OpenGl_AspectFace* OpenGl_Workspace::SetAspectFace ( const OpenGl_AspectFace theAspect)
const OpenGl_AspectLine* OpenGl_Workspace::SetAspectLine ( const OpenGl_AspectLine theAspect)
const OpenGl_AspectMarker* OpenGl_Workspace::SetAspectMarker ( const OpenGl_AspectMarker theAspect)
const OpenGl_AspectText* OpenGl_Workspace::SetAspectText ( const OpenGl_AspectText theAspect)
Standard_Boolean OpenGl_Workspace::SetImmediateModeDrawToFront ( const Standard_Boolean  theDrawToFrontBuffer)
void OpenGl_Workspace::SetPolygonOffset ( int  theMode,
Standard_ShortReal  theFactor,
Standard_ShortReal  theUnits 
)

Sets and applies current polygon offset.

void OpenGl_Workspace::SetRenderFilter ( const Handle< OpenGl_RenderFilter > &  theFilter)
inline

Set filter for restricting rendering of particular elements. Filter can be applied for rendering passes used by recursive rendering algorithms for rendering elements of groups.

Parameters
theFilter[in] the filter instance.
void OpenGl_Workspace::SetTextParam ( const OpenGl_TextParam theParam)
inline
void OpenGl_Workspace::setTextureParams ( Handle< OpenGl_Texture > &  theTexture,
const Handle< Graphic3d_TextureParams > &  theParams 
)
protected
void OpenGl_Workspace::updateMaterial ( const int  theFlag)
protected
Standard_Boolean& OpenGl_Workspace::UseDepthTest ( )
inline
Standard_Boolean& OpenGl_Workspace::UseGLLight ( )
inline
Standard_Boolean& OpenGl_Workspace::UseZBuffer ( )
inline
const OpenGl_Matrix* OpenGl_Workspace::ViewMatrix ( ) const
inline
Returns
applied view matrix.

Field Documentation

const OpenGl_AspectFace * OpenGl_Workspace::AspectFace_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectFace* OpenGl_Workspace::AspectFace_set
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectLine * OpenGl_Workspace::AspectLine_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectLine* OpenGl_Workspace::AspectLine_set
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectMarker * OpenGl_Workspace::AspectMarker_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectMarker* OpenGl_Workspace::AspectMarker_set
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectText * OpenGl_Workspace::AspectText_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_AspectText* OpenGl_Workspace::AspectText_set
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const TEL_COLOUR* OpenGl_Workspace::HighlightColor
Standard_Integer OpenGl_Workspace::myAntiAliasingMode
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

OpenGl_AspectFace OpenGl_Workspace::myAspectFaceHl
protected

Hiddenline aspect.

Standard_Boolean OpenGl_Workspace::myBackBufferRestored
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

TelCullMode OpenGl_Workspace::myCullingMode
protected

back face culling mode, applied from face aspect

unsigned int OpenGl_Workspace::myFrameCounter
protected

redraw counter, for debugging

OpenGl_VertexBuffer OpenGl_Workspace::myFullScreenQuad
protected

Vertices for full-screen quad rendering.

Standard_Boolean OpenGl_Workspace::myHasFboBlit
protected

Special flag which is invalidated when myMainSceneFbos can not be blitted for some reason (e.g. driver bugs).

Handle< OpenGl_FrameBuffer > OpenGl_Workspace::myImmediateSceneFbos[2]
protected

Additional buffers for immediate layer in stereo mode.

Standard_Boolean OpenGl_Workspace::myIsCullingEnabled
protected

frustum culling flag

Standard_Boolean OpenGl_Workspace::myIsImmediateDrawn
protected

flag indicates that immediate mode buffer contains some data

Handle< OpenGl_LineAttributes > OpenGl_Workspace::myLineAttribs
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Handle< OpenGl_FrameBuffer > OpenGl_Workspace::myMainSceneFbos[2]
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

OpenGl_Material OpenGl_Workspace::myMatBack
protected

current back material state

OpenGl_Material OpenGl_Workspace::myMatFront
protected

current front material state (cached to reduce GL context updates)

OpenGl_Material OpenGl_Workspace::myMatTmp
protected

temporary variable

OpenGl_Matrix OpenGl_Workspace::myModelViewMatrix
protected

Model matrix with applied structure transformations.

Handle< OpenGl_PrinterContext > OpenGl_Workspace::myPrintContext
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Handle< OpenGl_RenderFilter > OpenGl_Workspace::myRenderFilter
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

Handle< OpenGl_Texture > OpenGl_Workspace::myTextureBound
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

Standard_Boolean OpenGl_Workspace::myTransientDrawToFront
protected

optimization flag for immediate mode (to render directly to the front buffer)

Standard_Boolean OpenGl_Workspace::myUseDepthTest
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Standard_Boolean OpenGl_Workspace::myUseGLLight
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Standard_Boolean OpenGl_Workspace::myUseZBuffer
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Handle< OpenGl_View > OpenGl_Workspace::myView
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Standard_Integer OpenGl_Workspace::myViewId
protected

Two framebuffers (left and right views) store cached main presentation of the view (without presentation of immediate layers).

Standard_Integer OpenGl_Workspace::NamedStatus
TEL_POFFSET_PARAM OpenGl_Workspace::PolygonOffset_applied
protected

Currently applied polygon offset.

const OpenGl_Matrix* OpenGl_Workspace::StructureMatrix_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_TextParam * OpenGl_Workspace::TextParam_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_TextParam* OpenGl_Workspace::TextParam_set
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)

const OpenGl_Matrix* OpenGl_Workspace::ViewMatrix_applied
protected

currently bound texture (managed by OpenGl_AspectFace and OpenGl_View environment texture)


The documentation for this class was generated from the following file: