]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_DeformedGridPL.hxx
Salome HOME
Issue 0019818: EDF 703 SMESH VISU : Display Mesh Groups names in viewer (as a caption)
[modules/visu.git] / src / PIPELINE / VISU_DeformedGridPL.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_ScalarMapPL.hxx
24 // Author:  Alexey PETROV
25 // Module : VISU
26 //
27 #ifndef VISU_DeformedGridPL_HeaderFile
28 #define VISU_DeformedGridPL_HeaderFile
29
30 #include "VISUPipeline.hxx"
31 #include "VISU_PolyDataPL.hxx"
32
33 class vtkWarpScalar;
34 class vtkContourFilter;
35
36
37 //----------------------------------------------------------------------------
38 class VISU_PIPELINE_EXPORT VISU_DeformedGridPL : public VISU_PolyDataPL
39 {
40 public:
41   vtkTypeMacro(VISU_DeformedGridPL, VISU_PolyDataPL);
42
43   static 
44   VISU_DeformedGridPL* 
45   New();
46
47   //----------------------------------------------------------------------------
48   virtual
49   unsigned long int 
50   GetMTime();
51
52   //! Gets memory size used by the instance (bytes).
53   virtual
54   unsigned long int
55   GetMemorySize();
56
57   //----------------------------------------------------------------------------
58   void
59   SetScaleFactor( vtkFloatingPointType theScaleFactor );
60
61   vtkFloatingPointType
62   GetScaleFactor();
63
64   void
65   SetContourPrs( bool theIsContourPrs );
66
67   bool
68   GetIsContourPrs();
69
70   void
71   SetNumberOfContours( int theNumber );
72
73   int
74   GetNumberOfContours();
75
76   virtual
77   void
78   SetMapScale(vtkFloatingPointType theMapScale = 1.0);
79
80   //----------------------------------------------------------------------------
81   virtual
82   void
83   Init();
84
85   virtual
86   void
87   Update();
88
89 protected:
90   //----------------------------------------------------------------------------
91   VISU_DeformedGridPL();
92   
93   virtual
94   ~VISU_DeformedGridPL();
95
96   virtual
97   void
98   Build();
99
100   virtual
101   void
102   DoShallowCopy(VISU_PipeLine *thePipeLine,
103                 bool theIsCopyInput);
104
105 private:
106   VISU_DeformedGridPL(const VISU_DeformedGridPL&);  // Not implemented.
107   void operator=(const VISU_DeformedGridPL&);  // Not implemented.
108
109   vtkFloatingPointType myScaleFactor;
110   vtkFloatingPointType myMapScaleFactor;
111   vtkContourFilter* myContourFilter;
112   vtkWarpScalar *myWarpScalar;
113   bool myIsContour;
114 };
115   
116 #endif