Commit | Line | Data |
---|---|---|
2166f0fa SK |
1 | // File: OpenGl_GraphicDriver_print.cxx |
2 | // Created: 20 October 2011 | |
3 | // Author: Sergey ZERCHANINOV | |
4 | // Copyright: OPEN CASCADE 2011 | |
7fd59977 | 5 | |
2166f0fa | 6 | #include <OpenGl_GraphicDriver.hxx> |
7fd59977 | 7 | |
7fd59977 | 8 | #include <Standard_NotImplemented.hxx> |
2166f0fa | 9 | #include <OpenGl_CView.hxx> |
7fd59977 | 10 | |
7edf74fd A |
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 | |
7fd59977 | 20 | { |
7fd59977 | 21 | #ifdef WNT |
2166f0fa SK |
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); | |
7fd59977 | 25 | #else |
2166f0fa | 26 | Standard_NotImplemented::Raise ("OpenGl_GraphicDriver::Print is implemented only on Windows"); |
7fd59977 | 27 | #endif |
2166f0fa | 28 | return Standard_False; |
7fd59977 | 29 | } |