]> SALOME platform Git repositories - modules/visu.git/blob - src/PIPELINE/VISU_ScalarMapPL.hxx
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.git] / src / PIPELINE / VISU_ScalarMapPL.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 //
24 // File:    VISU_ScalarMapPL.hxx
25 // Author:  Alexey PETROV
26 // Module : VISU
27
28 #ifndef VISU_ScalarMapPL_HeaderFile
29 #define VISU_ScalarMapPL_HeaderFile
30
31 #include "VISUPipeline.hxx"
32 #include "VISU_ColoredPL.hxx"
33 #include "VISU_UnstructuredGridPL.hxx"
34
35 class VISU_DataSetMapperHolder;
36 class VISU_AppendFilter;
37 class VISU_MergeFilter;
38
39
40 //----------------------------------------------------------------------------
41 class VISU_PIPELINE_EXPORT VISU_ScalarMapPL : public VISU_ColoredPL,
42                                               public VISU_UnstructuredGridPL
43 {
44 public:
45   vtkTypeMacro(VISU_ScalarMapPL, VISU_ColoredPL);
46
47   static 
48   VISU_ScalarMapPL* 
49   New();
50
51   virtual
52   unsigned long int 
53   GetMTime();
54
55   //----------------------------------------------------------------------------
56   virtual
57   void
58   Update();
59
60   virtual
61   void
62   SetSourceGeometry();
63
64   virtual
65   int
66   AddGeometry(vtkDataSet* theGeometry);
67
68   virtual
69   vtkDataSet*
70   GetGeometry(int theGeomNumber);
71
72   virtual
73   int
74   GetNumberOfGeometry();
75
76   bool 
77   IsExternalGeometryUsed();
78
79   virtual
80   void
81   ClearGeometry();
82
83   //----------------------------------------------------------------------------
84   virtual 
85   vtkPointSet* 
86   GetMergedInput();
87
88 protected:
89   //----------------------------------------------------------------------------
90   VISU_ScalarMapPL();
91   
92   virtual
93   ~VISU_ScalarMapPL();
94
95   virtual
96   void
97   OnCreateMapperHolder();
98
99   virtual
100   vtkDataSet* 
101   InsertCustomPL();
102
103   virtual
104   void
105   Build();
106
107   virtual
108   void
109   DoShallowCopy(VISU_PipeLine *thePipeLine,
110                 bool theIsCopyInput);
111
112 private:
113   VISU_ScalarMapPL(const VISU_ScalarMapPL&);  // Not implemented.
114   void operator=(const VISU_ScalarMapPL&);  // Not implemented.
115
116   vtkSmartPointer<VISU_AppendFilter> myAppendFilter;
117   vtkSmartPointer<VISU_MergeFilter> myMergeFilter;
118 };
119   
120 #endif