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. The OpenGl_PrinterContext class allows to have only one global instance that can be accessed by GetPrinterContext() during printing operation. The class instance can be created only by call_togl_print().
#include <OpenGl_PrinterContext.hxx>
Public Member Functions |
| const TColStd_Array2OfReal & | GetProjTransformation () |
| | Get view projection transformation matrix.
|
| void | GetProjTransformation (GLfloat theMatrix[16]) |
| | Get view projection transformation matrix.
|
| void | GetScale (GLfloat &theScaleX, GLfloat &theScaleY) |
| | Get text/markers scale factor.
|
| void | GetLayerViewport (GLsizei &theViewportX, GLsizei &theViewportY) |
| | Get layer viewport dimensions.
|
Static Public Member Functions |
| static OpenGl_PrinterContext * | GetPrinterContext (GLCONTEXT theCtx) |
| | Get the PrinterContext instance assigned for OpenGl context. Return NULL, if there is no current printing operation and there is no assigned instance for "theCtx" OpenGl context.
|
Friends |
| Standard_Boolean | call_togl_print (CALL_DEF_VIEW *, CALL_DEF_LAYER *, CALL_DEF_LAYER *, const Aspect_Drawable, const int, const char *, const int, const float) |
Member Function Documentation
| void OpenGl_PrinterContext::GetLayerViewport |
( |
GLsizei & |
theViewportX, |
|
|
GLsizei & |
theViewportY |
|
) |
| [inline] |
| void OpenGl_PrinterContext::GetProjTransformation |
( |
GLfloat |
theMatrix[16] | ) |
|
| void OpenGl_PrinterContext::GetScale |
( |
GLfloat & |
theScaleX, |
|
|
GLfloat & |
theScaleY |
|
) |
| [inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file: