Salome HOME
f82032dce54066a7049ae283600f7ba533963573
[modules/visu.git] / src / PIPELINE / VISU_CutLinesPL.hxx
1 // Copyright (C) 2007-2012  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
23 //  VISU OBJECT : interactive object for VISU entities implementation
24 // File:    VISU_PipeLine.hxx
25 // Author:  Alexey PETROV
26 // Module : VISU
27 //
28 #ifndef VISU_CutLinesPL_HeaderFile
29 #define VISU_CutLinesPL_HeaderFile
30
31 #include "VISUPipeline.hxx"
32 #include "VISU_CutLinesBasePL.hxx"
33
34 class vtkAppendPolyData;
35
36
37 //----------------------------------------------------------------------------
38 class VISU_PIPELINE_EXPORT VISU_CutLinesPL : public VISU_CutLinesBasePL
39 {
40 public:
41   vtkTypeMacro(VISU_CutLinesPL,VISU_CutLinesBasePL);
42
43   static 
44   VISU_CutLinesPL* 
45   New();
46
47   virtual
48   void
49   SetPosition(double thePosition);
50
51   virtual
52   double 
53   GetPosition();
54
55   virtual
56   void
57   SetDefault();
58
59   virtual
60   int
61   IsDefault();
62
63 public:
64   virtual
65   void
66   Init();
67
68   vtkDataSet*
69   InsertCustomPL();
70
71   virtual
72   void
73   Update();
74
75   static
76   void
77   CutWithPlanes(vtkAppendPolyData* theAppendPolyData, 
78                 vtkDataSet* theDataSet,
79                 int theNbPlanes, 
80                 double theDir[3], 
81                 double theBounds[6], 
82                 double thePlanePosition, 
83                 int thePlaneCondition,
84                 double theDisplacement);
85
86 protected:
87   VISU_CutLinesPL();
88
89   virtual
90   void
91   DoShallowCopy(VISU_PipeLine *thePipeLine,
92                 bool theIsCopyInput);
93
94   double myPosition;
95   int myCondition;
96
97 private:
98   VISU_CutLinesPL(const VISU_CutLinesPL&);  // Not implemented.
99   void operator=(const VISU_CutLinesPL&);  // Not implemented.
100 };
101
102
103 #endif