0031713: Draw Harness, IVtkDraw - add commands ivtksetcolor, ivtkaxo, ivtkclose,...
[occt.git] / src / IVtkDraw / IVtkDraw.hxx
index 2f7643a..af14ad8 100644 (file)
@@ -26,19 +26,39 @@ class WNT_WClass;
 class IVtkDraw
 {
 public:
-
   DEFINE_STANDARD_ALLOC
 
-  Standard_EXPORT   static  void ViewerInit (Standard_Integer thePxLeft,
-                                             Standard_Integer thePxTop,
-                                             Standard_Integer thePxWidth,
-                                             Standard_Integer thePxHeight);
+  //! VTK window creation parameters.
+  struct IVtkWinParams
+  {
+    Graphic3d_Vec2i  TopLeft;
+    Graphic3d_Vec2i  Size;
+    Standard_Integer NbMsaaSample;
+    Standard_Boolean UseSRGBColorSpace;
+
+    IVtkWinParams() : NbMsaaSample (0), UseSRGBColorSpace (false) {}
+  };
+
+public:
+
+  Standard_EXPORT static void ViewerInit (const IVtkWinParams& theParams);
+
+  static void ViewerInit (Standard_Integer thePxLeft,
+                          Standard_Integer thePxTop,
+                          Standard_Integer thePxWidth,
+                          Standard_Integer thePxHeight)
+  {
+    IVtkWinParams aParams;
+    aParams.TopLeft.SetValues (thePxLeft, thePxTop);
+    aParams.Size.SetValues (thePxWidth, thePxHeight);
+    ViewerInit (aParams);
+  }
 
-  Standard_EXPORT   static  void Factory (Draw_Interpretor& theDI);
-  Standard_EXPORT   static  void Commands (Draw_Interpretor& theCommands);
+  Standard_EXPORT static void Factory (Draw_Interpretor& theDI);
+  Standard_EXPORT static void Commands (Draw_Interpretor& theCommands);
 
 private:
-  Standard_EXPORT   static const Handle(WNT_WClass)& WClass();
+  Standard_EXPORT static const Handle(WNT_WClass)& WClass();
 };
 
 #endif