Salome HOME
Bug IPAL22927: TC6.5.0: bounding box is not updated for Point Map 3D
[modules/visu.git] / src / PIPELINE / VISU_PlanesWidget.hxx
index 5c00c895383c4d8aea8265872e67ae2904a65fdc..272918272af8a3eb033d73d7ee686ebbba1c221d 100644 (file)
@@ -1,34 +1,35 @@
-//  SALOME VTKViewer : build VTK viewer into Salome desktop
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
+//  SALOME VTKViewer : build VTK viewer into Salome desktop
 //  File   : VISU_PlanesWidget.h
 //  Author : Peter KURNEV
 //  Module : SALOME
 //  $Header$
-
+//
 #ifndef __VISU_PlanesWidget_h
 #define __VISU_PlanesWidget_h
 
+#include "VISUPipeline.hxx"
 #include "VISU_ImplicitFunctionWidget.hxx"
 class vtkActor;
 class vtkPolyDataMapper;
@@ -37,7 +38,7 @@ class vtkConeSource;
 class vtkLineSource;
 class vtkSphereSource;
 class vtkPlane;
-class vtkCutter;
+class vtkEDFCutter;
 class vtkProperty;
 class vtkImageData;
 class vtkOutlineFilter;
@@ -49,7 +50,7 @@ class vtkImplicitFunction;
 class VISU_UnScaledActor;
 class vtkDataSet;
 
-class  VISU_PlanesWidget : public VISU_ImplicitFunctionWidget
+class VISU_PIPELINE_EXPORT VISU_PlanesWidget : public VISU_ImplicitFunctionWidget
 {
 public:
   // Description:
@@ -85,8 +86,8 @@ public:
   // Get the origin of the plane.
   void
   SetOrigin(vtkFloatingPointType x, 
-           vtkFloatingPointType y, 
-           vtkFloatingPointType z);
+            vtkFloatingPointType y, 
+            vtkFloatingPointType z);
 
   void
   SetOrigin(vtkFloatingPointType x[3]);
@@ -101,8 +102,8 @@ public:
   // Get the normal to the plane.
   void 
   SetNormal(vtkFloatingPointType x, 
-           vtkFloatingPointType y, 
-           vtkFloatingPointType z);
+            vtkFloatingPointType y, 
+            vtkFloatingPointType z);
 
   void 
   SetNormal(vtkFloatingPointType x[3]);
@@ -237,7 +238,7 @@ protected:
   static
   void
   ProcessEvents(vtkObject* object, unsigned long event,
-               void* clientdata, void* calldata);
+                void* clientdata, void* calldata);
 
   // ProcessEvents() dispatches to these methods.
   void OnLeftButtonDown();
@@ -294,12 +295,12 @@ protected:
   
   int OutlineTranslation; //whether the outline can be moved
   
-  // The cut plane is produced with a vtkCutter
-  vtkCutter         *myCutter1;
+  // The cut plane is produced with a vtkEDFCutter
+  vtkEDFCutter         *myCutter1;
   vtkPolyDataMapper *myCutMapper1;
   vtkActor          *myCutActor1;
 
-  vtkCutter         *myCutter2;
+  vtkEDFCutter         *myCutter2;
   vtkPolyDataMapper *myCutMapper2;
   vtkActor          *myCutActor2;