Salome HOME
Update copyright information
[modules/visu.git] / src / PIPELINE / VISU_DeformedGridPL.hxx
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 //  VISU OBJECT : interactive object for VISU entities implementation
21 // File:    VISU_ScalarMapPL.hxx
22 // Author:  Alexey PETROV
23 // Module : VISU
24 //
25 #ifndef VISU_DeformedGridPL_HeaderFile
26 #define VISU_DeformedGridPL_HeaderFile
27
28 #include "VISUPipeline.hxx"
29 #include "VISU_PolyDataPL.hxx"
30
31 class vtkWarpScalar;
32 class vtkContourFilter;
33
34
35 //----------------------------------------------------------------------------
36 class VISU_PIPELINE_EXPORT VISU_DeformedGridPL : public VISU_PolyDataPL
37 {
38 public:
39   vtkTypeMacro(VISU_DeformedGridPL, VISU_PolyDataPL);
40
41   static 
42   VISU_DeformedGridPL* 
43   New();
44
45   //----------------------------------------------------------------------------
46   virtual
47   unsigned long int 
48   GetMTime();
49
50   //! Gets memory size used by the instance (bytes).
51   virtual
52   unsigned long int
53   GetMemorySize();
54
55   //----------------------------------------------------------------------------
56   void
57   SetScaleFactor( vtkFloatingPointType theScaleFactor );
58
59   vtkFloatingPointType
60   GetScaleFactor();
61
62   void
63   SetContourPrs( bool theIsContourPrs );
64
65   bool
66   GetIsContourPrs();
67
68   void
69   SetNumberOfContours( int theNumber );
70
71   int
72   GetNumberOfContours();
73
74   virtual
75   void
76   SetMapScale(vtkFloatingPointType theMapScale = 1.0);
77
78   //----------------------------------------------------------------------------
79   virtual
80   void
81   Init();
82
83   virtual
84   void
85   Update();
86
87 protected:
88   //----------------------------------------------------------------------------
89   VISU_DeformedGridPL();
90   
91   virtual
92   ~VISU_DeformedGridPL();
93
94   virtual
95   void
96   Build();
97
98   virtual
99   void
100   DoShallowCopy(VISU_PipeLine *thePipeLine,
101                 bool theIsCopyInput);
102
103 private:
104   VISU_DeformedGridPL(const VISU_DeformedGridPL&);  // Not implemented.
105   void operator=(const VISU_DeformedGridPL&);  // Not implemented.
106
107   vtkFloatingPointType myScaleFactor;
108   vtkFloatingPointType myMapScaleFactor;
109   vtkContourFilter* myContourFilter;
110   vtkWarpScalar *myWarpScalar;
111   bool myIsContour;
112 };
113   
114 #endif