]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_IsoSurfacesPL.hxx
Salome HOME
2b62fb188d2c337da545f014c7890d8de158d45a
[modules/visu.git] / src / PIPELINE / VISU_IsoSurfacesPL.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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 // File:    VISU_PipeLine.hxx
24 // Author:  Alexey PETROV
25 // Module : VISU
26
27 #ifndef VISU_IsoSurfacesPL_HeaderFile
28 #define VISU_IsoSurfacesPL_HeaderFile
29
30 #include "VISU_ScalarMapPL.hxx"
31
32 class vtkContourFilter;
33 class vtkCellDataToPointData;
34
35 class VISU_IsoSurfacesPL : public VISU_ScalarMapPL
36 {
37 protected:
38   VISU_IsoSurfacesPL();
39   VISU_IsoSurfacesPL(const VISU_IsoSurfacesPL&);
40
41   virtual
42   ~VISU_IsoSurfacesPL();
43
44 public:
45   vtkTypeMacro(VISU_IsoSurfacesPL,VISU_ScalarMapPL);
46
47   static
48   VISU_IsoSurfacesPL* 
49   New();
50
51   virtual
52   void
53   ShallowCopy(VISU_PipeLine *thePipeLine);
54
55   virtual
56   int
57   GetNbParts();
58
59   virtual
60   void
61   SetNbParts(int theNb = 10);
62
63   virtual
64   void
65   SetScaling(int theScaling = VTK_SCALE_LINEAR);
66
67   virtual
68   void
69   SetRange(vtkFloatingPointType theRange[2]);
70
71   virtual
72   vtkFloatingPointType
73   GetMin();
74
75   virtual
76   vtkFloatingPointType
77   GetMax();
78   
79 public:
80   virtual
81   void
82   Init();
83
84   virtual
85   void
86   Update();
87
88   virtual
89   THook* 
90   DoHook();
91
92   virtual
93   void
94   SetMapScale(vtkFloatingPointType theMapScale = 1.0);
95
96 protected:
97   int myNbParts;
98   vtkFloatingPointType myRange[2];
99   vtkCellDataToPointData* myCellDataToPointData;
100   vtkContourFilter *myContourFilter;
101 };
102
103
104 #endif