]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_CutLinesPL.hxx
Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/visu.git] / src / PIPELINE / VISU_CutLinesPL.hxx
1 //  VISU OBJECT : interactive object for VISU entities implementation
2 //
3 //  Copyright (C) 2003  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 // 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 "VISU_CutPlanesPL.hxx"
31
32 class vtkAppendPolyData;
33
34 class VISU_CutLinesPL : public VISU_CutPlanesPL{
35 protected:
36   VISU_CutLinesPL();
37   VISU_CutLinesPL(const VISU_CutLinesPL&);
38 public:
39   vtkTypeMacro(VISU_CutLinesPL,VISU_CutPlanesPL);
40
41   static 
42   VISU_CutLinesPL* 
43   New();
44
45   virtual
46   void
47   ShallowCopy(VISU_PipeLine *thePipeLine);
48
49   virtual
50   void
51   SetPosition(vtkFloatingPointType thePosition);
52
53   virtual
54   vtkFloatingPointType 
55   GetPosition();
56
57   virtual
58   void
59   SetDefault();
60
61   virtual
62   int
63   IsDefault();
64
65 public:
66   virtual
67   void
68   Init();
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   const vtkFloatingPointType* 
86   GetDirLn()
87   {
88     return myDirLn;
89   }
90
91   const vtkFloatingPointType* 
92   GetRealDirLn()
93   {
94     return myRealDirLn;
95   }
96
97   const vtkFloatingPointType* 
98   GetBoundPrjLn()
99   {
100     return myBoundPrjLn;
101   }
102
103   const vtkFloatingPointType* 
104   GetBasePnt()
105   { 
106     return myBasePnt;
107   }
108
109 protected:
110   vtkFloatingPointType myDirLn[3];
111   vtkFloatingPointType myRealDirLn[3];
112   vtkFloatingPointType myBoundPrjLn[3];
113   vtkFloatingPointType myBasePnt[3];
114   vtkFloatingPointType myPosition;
115   int myCondition;
116 };
117
118
119 #endif