Open CASCADE Technology 6.6.0
Public Member Functions
OpenGl_PrinterContext Class Reference

Class provides specific information for redrawing view to offscreen buffer on printing. The information is: projection matrixes for tiling, scaling factors for text/markers and layer viewport dimensions.

#include <OpenGl_PrinterContext.hxx>

Inheritance diagram for OpenGl_PrinterContext:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_PrinterContext ()
 Constructor.
virtual ~OpenGl_PrinterContext ()
 Destructor.
const TColStd_Array2OfRealGetProjTransformation () const
 Get view projection transformation matrix.
bool SetProjTransformation (const TColStd_Array2OfReal &theProjTransform)
 Set view projection transformation matrix for printing/tiling purposes theProjTransform parameter should be an 4x4 array.
void LoadProjTransformation ()
 Setup view projection transformation matrix (glLoadMatrixf).
void GetScale (Standard_ShortReal &theScaleX, Standard_ShortReal &theScaleY) const
 Get text/markers scale factor.
void SetScale (const Standard_ShortReal theScaleX, const Standard_ShortReal theScaleY)
 Set text scale factor.
void GetLayerViewport (Standard_Integer &theViewportX, Standard_Integer &theViewportY) const
 Get layer viewport dimensions.
void SetLayerViewport (const Standard_Integer theViewportX, const Standard_Integer theViewportY)
 Set layer viewport dimensions.

Constructor & Destructor Documentation

OpenGl_PrinterContext::OpenGl_PrinterContext ( )
virtual OpenGl_PrinterContext::~OpenGl_PrinterContext ( ) [virtual]

Member Function Documentation

void OpenGl_PrinterContext::GetLayerViewport ( Standard_Integer theViewportX,
Standard_Integer theViewportY 
) const [inline]
const TColStd_Array2OfReal& OpenGl_PrinterContext::GetProjTransformation ( ) const [inline]
void OpenGl_PrinterContext::GetScale ( Standard_ShortReal theScaleX,
Standard_ShortReal theScaleY 
) const [inline]
void OpenGl_PrinterContext::LoadProjTransformation ( )
void OpenGl_PrinterContext::SetLayerViewport ( const Standard_Integer  theViewportX,
const Standard_Integer  theViewportY 
)
bool OpenGl_PrinterContext::SetProjTransformation ( const TColStd_Array2OfReal theProjTransform)
void OpenGl_PrinterContext::SetScale ( const Standard_ShortReal  theScaleX,
const Standard_ShortReal  theScaleY 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines