Salome HOME
Merge from V5_1_main 10/06/2010
[modules/visu.git] / src / PIPELINE / VISU_CutLinesPL.hxx
index cc316781bbbddb25a4591fb0b54ffee054522670..39770a0e51ad736a3efc7c48f57f313e0e3173a9 100644 (file)
-//  VISU OBJECT : interactive object for VISU entities implementation
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  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.
 //
-//  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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  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
+//
+
+//  VISU OBJECT : interactive object for VISU entities implementation
 // File:    VISU_PipeLine.hxx
 // Author:  Alexey PETROV
 // Module : VISU
-
+//
 #ifndef VISU_CutLinesPL_HeaderFile
 #define VISU_CutLinesPL_HeaderFile
 
-#include "VISU_CutPlanesPL.hxx"
+#include "VISUPipeline.hxx"
+#include "VISU_CutLinesBasePL.hxx"
 
 class vtkAppendPolyData;
 
-class VISU_CutLinesPL : public VISU_CutPlanesPL{
-protected:
-  VISU_CutLinesPL();
-  VISU_CutLinesPL(const VISU_CutLinesPL&);
+
+//----------------------------------------------------------------------------
+class VISU_PIPELINE_EXPORT VISU_CutLinesPL : public VISU_CutLinesBasePL
+{
 public:
-  vtkTypeMacro(VISU_CutLinesPL,VISU_CutPlanesPL);
-  static VISU_CutLinesPL* New();
-  virtual void ShallowCopy(VISU_PipeLine *thePipeLine);
+  vtkTypeMacro(VISU_CutLinesPL,VISU_CutLinesBasePL);
+
+  static 
+  VISU_CutLinesPL* 
+  New();
+
+  virtual
+  void
+  SetPosition(vtkFloatingPointType thePosition);
 
-  virtual void SetPosition(float thePosition);
-  virtual float GetPosition();
+  virtual
+  vtkFloatingPointType 
+  GetPosition();
 
-  virtual void SetDefault();
-  virtual int IsDefault();
+  virtual
+  void
+  SetDefault();
+
+  virtual
+  int
+  IsDefault();
 
 public:
-  virtual void Init();
-  virtual void Update();
+  virtual
+  void
+  Init();
+
+  vtkDataSet*
+  InsertCustomPL();
 
-  static void CutWithPlanes(vtkAppendPolyData* theAppendPolyData, vtkDataSet* theDataSet,
-                           int theNbPlanes, float theDir[3], float theBounds[6], 
-                           float thePlanePosition, int thePlaneCondition,
-                           float theDisplacement);
+  virtual
+  void
+  Update();
 
-  const float* GetDirLn(){ return myDirLn;}
-  const float* GetBoundPrjLn(){ return myBoundPrjLn;}
-  const float* GetBasePnt(){ return myBasePnt;}
+  static
+  void
+  CutWithPlanes(vtkAppendPolyData* theAppendPolyData, 
+                vtkDataSet* theDataSet,
+                int theNbPlanes, 
+                vtkFloatingPointType theDir[3], 
+                vtkFloatingPointType theBounds[6], 
+                vtkFloatingPointType thePlanePosition, 
+                int thePlaneCondition,
+                vtkFloatingPointType theDisplacement);
 
 protected:
-  float myDirLn[3], myBoundPrjLn[3], myBasePnt[3];
-  float myPosition;
+  VISU_CutLinesPL();
+
+  virtual
+  void
+  DoShallowCopy(VISU_PipeLine *thePipeLine,
+                bool theIsCopyInput);
+
+  vtkFloatingPointType myPosition;
   int myCondition;
+
+private:
+  VISU_CutLinesPL(const VISU_CutLinesPL&);  // Not implemented.
+  void operator=(const VISU_CutLinesPL&);  // Not implemented.
 };