Salome HOME
f34504d585bf331f0ea5500d0e95b4ee27caa216
[modules/visu.git] / src / PIPELINE / VISU_CutLinesPL.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU OBJECT : interactive object for VISU entities implementation
23 // File:    VISU_PipeLine.hxx
24 // Author:  Alexey PETROV
25 // Module : VISU
26 //
27 #ifndef VISU_CutLinesPL_HeaderFile
28 #define VISU_CutLinesPL_HeaderFile
29
30 #include "VISUPipeline.hxx"
31 #include "VISU_CutLinesBasePL.hxx"
32
33 class vtkAppendPolyData;
34
35
36 //----------------------------------------------------------------------------
37 class VISU_PIPELINE_EXPORT VISU_CutLinesPL : public VISU_CutLinesBasePL
38 {
39 public:
40   vtkTypeMacro(VISU_CutLinesPL,VISU_CutLinesBasePL);
41
42   static 
43   VISU_CutLinesPL* 
44   New();
45
46   virtual
47   void
48   SetPosition(vtkFloatingPointType thePosition);
49
50   virtual
51   vtkFloatingPointType 
52   GetPosition();
53
54   virtual
55   void
56   SetDefault();
57
58   virtual
59   int
60   IsDefault();
61
62 public:
63   virtual
64   void
65   Init();
66
67   vtkDataSet*
68   InsertCustomPL();
69
70   virtual
71   void
72   Update();
73
74   static
75   void
76   CutWithPlanes(vtkAppendPolyData* theAppendPolyData, 
77                 vtkDataSet* theDataSet,
78                 int theNbPlanes, 
79                 vtkFloatingPointType theDir[3], 
80                 vtkFloatingPointType theBounds[6], 
81                 vtkFloatingPointType thePlanePosition, 
82                 int thePlaneCondition,
83                 vtkFloatingPointType theDisplacement);
84
85 protected:
86   VISU_CutLinesPL();
87
88   virtual
89   void
90   DoShallowCopy(VISU_PipeLine *thePipeLine,
91                 bool theIsCopyInput);
92
93   vtkFloatingPointType myPosition;
94   int myCondition;
95
96 private:
97   VISU_CutLinesPL(const VISU_CutLinesPL&);  // Not implemented.
98   void operator=(const VISU_CutLinesPL&);  // Not implemented.
99 };
100
101
102 #endif