1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // SALOME VTKViewer : build VTK viewer into Salome desktop
28 #ifndef VISU_MergeFilter_H
29 #define VISU_MergeFilter_H
31 #include "VISU_Convertor.hxx"
33 //#include <vtkDataSetAlgorithm.h>
34 #include <vtkPointSetAlgorithm.h>
42 //------------------------------------------------------------------------------
43 class VISU_CONVERTOR_EXPORT VISU_MergeFilter : public vtkPointSetAlgorithm
46 static VISU_MergeFilter *New();
47 vtkTypeMacro(VISU_MergeFilter, vtkPointSetAlgorithm);
50 // Specify object from which to extract geometry information.
51 void SetGeometry(vtkDataSet *input);
52 vtkDataSet *GetGeometry();
55 // Specify object from which to extract scalar information.
56 void SetScalars(vtkDataSet *);
57 vtkDataSet *GetScalars();
60 // Set / get the object from which to extract vector information.
61 void SetVectors(vtkDataSet *);
62 vtkDataSet *GetVectors();
65 // Set / get the object from which to extract normal information.
66 void SetNormals(vtkDataSet *);
67 vtkDataSet *GetNormals();
70 // Set / get the object from which to extract texture coordinates
72 void SetTCoords(vtkDataSet *);
73 vtkDataSet *GetTCoords();
76 // Set / get the object from which to extract tensor data.
77 void SetTensors(vtkDataSet *);
78 vtkDataSet *GetTensors();
81 // Set the object from which to extract a field and the name
83 void AddField(const char* name, vtkDataSet* input);
86 // Removes all previously added fields
90 // Defines whether to perform merging of data with the geometry according to
91 // the ids of the cell or not
93 SetMergingInputs(bool theIsMergingInputs);
104 RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
107 RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
110 FillInputPortInformation(int port, vtkInformation *info);
112 VISU::TFieldList* FieldList;
113 bool myIsMergingInputs;
116 VISU_MergeFilter(const VISU_MergeFilter&); // Not implemented.
117 void operator=(const VISU_MergeFilter&); // Not implemented.