0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_GraphicDriver_print.cxx
1 // File:      OpenGl_GraphicDriver_print.cxx
2 // Created:   20 October 2011
3 // Author:    Sergey ZERCHANINOV
4 // Copyright: OPEN CASCADE 2011
5
6 #include <OpenGl_GraphicDriver.hxx>
7
8 #include <Standard_NotImplemented.hxx>
9 #include <OpenGl_CView.hxx>
10
11 Standard_Boolean OpenGl_GraphicDriver::Print
12   (const Graphic3d_CView& ACView, 
13    const Aspect_CLayer2d& ACUnderLayer, 
14    const Aspect_CLayer2d& ACOverLayer,
15    const Aspect_Handle    hPrintDC,
16    const Standard_Boolean showBackground,
17    const Standard_CString filename,
18    const Aspect_PrintAlgo printAlgorithm,
19    const Standard_Real theScaleFactor) const
20 {
21 #ifdef WNT
22   const OpenGl_CView *aCView = (const OpenGl_CView *)ACView.ptrView;
23   if (aCView)
24     return aCView->WS->Print(ACView,ACUnderLayer,ACOverLayer,hPrintDC,showBackground,filename,printAlgorithm,theScaleFactor);
25 #else
26   Standard_NotImplemented::Raise ("OpenGl_GraphicDriver::Print is implemented only on Windows");
27 #endif
28   return Standard_False;
29 }