1 // File OpenGl_GraphicDriver_print.c
4 // e-mail t-hartl@muenchen.matra-dtv.fr
6 /************************************************************************/
8 /************************************************************************/
10 #include <OpenGl_GraphicDriver.jxx>
11 #include <Aspect_DriverDefinitionError.hxx>
12 #include <Standard_NotImplemented.hxx>
14 #include <OpenGl_tgl_funcs.hxx>
17 /************************************************************************/
19 /************************************************************************/
21 Standard_Boolean OpenGl_GraphicDriver::Print
22 (const Graphic3d_CView& ACView,
23 const Aspect_CLayer2d& ACUnderLayer,
24 const Aspect_CLayer2d& ACOverLayer,
25 const Aspect_Handle hPrintDC,
26 const Standard_Boolean showBackground,
27 const Standard_CString filename,
28 const Aspect_PrintAlgo printAlgorithm,
29 const Standard_Real theScaleFactor) const
33 Graphic3d_CView MyCView = ACView;
34 Aspect_CLayer2d MyCUnderLayer = ACUnderLayer;
35 Aspect_CLayer2d MyCOverLayer = ACOverLayer;
38 PrintFunction ("call_togl_print");
39 PrintCView (MyCView, 1);
41 return call_togl_print (&MyCView, &MyCUnderLayer, &MyCOverLayer,
42 hPrintDC, (int)showBackground, filename,
43 (int)printAlgorithm, (float)theScaleFactor);
45 Standard_NotImplemented::Raise ("OpenGl_GraphicDriver::Print is implemented "
47 return Standard_False;