Salome HOME
Update copyright information
[modules/visu.git] / src / CONVERTOR / VISU_AppendFilterUtilities.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 #ifndef VISU_APPENDFILTERUTILITIES_H
21 #define VISU_APPENDFILTERUTILITIES_H
22
23 class vtkInformationVector;
24 class vtkPointSet;
25 class vtkObject;
26
27 #include "VISU_Convertor.hxx"
28 #include <vtkSmartPointer.h>
29
30 namespace VISU
31 {
32   //---------------------------------------------------------------
33   class VISU_CONVERTOR_EXPORT TAppendFilterHelper
34   {
35     TAppendFilterHelper(TAppendFilterHelper&);
36
37   public:
38         void
39     SetSharedPointSet(vtkPointSet* thePointSet);
40     
41     vtkPointSet*
42     GetSharedPointSet();
43     
44     void 
45     SetMappingInputs(bool theMappingInputs);
46     
47     bool
48     IsMappingInputs();
49     
50     void
51     SetMergingInputs(bool theIsMergingInputs);
52     
53     bool
54     IsMergingInputs();
55
56   protected:
57     TAppendFilterHelper(vtkObject* theParent);
58
59     vtkSmartPointer<vtkPointSet> mySharedPointSet;
60     bool myIsMergingInputs;
61     bool myIsMappingInputs;
62     vtkObject& myParent;
63   };
64
65
66   //---------------------------------------------------------------
67   bool
68   UnstructuredGridRequestData(vtkInformationVector **theInputVector,
69                               vtkIdType theNumberOfInputConnections,
70                               vtkInformationVector *theOutputVector,
71                               vtkPointSet* theSharedPointSet,
72                               bool theIsMergingInputs,
73                               bool theIsMappingInputs);
74
75   //---------------------------------------------------------------
76   bool
77   PolyDataRequestData(vtkInformationVector **theInputVector,
78                       vtkIdType theNumberOfInputConnections,
79                       vtkInformationVector *theOutputVector,
80                       vtkPointSet* theSharedPointSet,
81                       bool theIsMergingInputs,
82                       bool theIsMappingInputs);
83 }
84
85 #endif