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