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 | OpenGl_Workspace::Print (const Graphic3d_CView &ACView, const Aspect_CLayer2d &ACUnderLayer, const Aspect_CLayer2d &ACOverLayer, const Aspect_Handle hPrintDC, const Standard_Boolean showBackground, const Standard_CString filename, const Aspect_PrintAlgo printAlgorithm, const Standard_Real theScaleFactor) |
Member Function Documentation
Friends And Related Function Documentation
The documentation for this class was generated from the following file: