|
Open CASCADE Technology 6.6.0
|
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>

Public Member Functions | |
| OpenGl_PrinterContext () | |
| Constructor. | |
| virtual | ~OpenGl_PrinterContext () |
| Destructor. | |
| const TColStd_Array2OfReal & | GetProjTransformation () 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. | |
| OpenGl_PrinterContext::OpenGl_PrinterContext | ( | ) |
| virtual OpenGl_PrinterContext::~OpenGl_PrinterContext | ( | ) | [virtual] |
| 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 | ||
| ) |
1.7.4