1 // Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef VTKVIEWER_APPENDFILTER_H
20 #define VTKVIEWER_APPENDFILTER_H
22 #include "VTKViewer.h"
24 #include <vtkAppendFilter.h>
25 #include <vtkSmartPointer.h>
33 #pragma warning ( disable:4251 )
36 /*! \brief This class used same as vtkAppendFilter. See documentation on VTK for more information.
38 class VTKVIEWER_EXPORT VTKViewer_AppendFilter : public vtkAppendFilter
41 /*! \fn static VTKViewer_AppendFilter *New()
43 static VTKViewer_AppendFilter *New();
45 /*! \fn vtkTypeRevisionMacro(VTKViewer_AppendFilter, vtkAppendFilter)
46 * \brief VTK type revision macros.
48 vtkTypeRevisionMacro(VTKViewer_AppendFilter, vtkAppendFilter);
50 void SetDoMappingFlag(const bool theFlag);
52 bool DoMappingFlag() const;
55 SetSharedPointsDataSet(vtkPointSet* thePointsDataSet);
58 GetSharedPointsDataSet();
61 GetPointOutputID(vtkIdType theInputID,
62 vtkIdType theInputDataSetID);
65 GetCellOutputID(vtkIdType theInputID,
66 vtkIdType theInputDataSetID);
69 GetPointInputID(vtkIdType theOutputID,
70 vtkIdType& theInputID,
71 vtkIdType& theStartID,
72 vtkIdType& theInputDataSetID);
75 GetCellInputID(vtkIdType theOutputID,
76 vtkIdType& theInputID,
77 vtkIdType& theStartID,
78 vtkIdType& theInputDataSetID);
80 typedef std::vector<vtkIdType> TVectorIds;
83 /*! \fn VTKViewer_AppendFilter();
86 VTKViewer_AppendFilter();
87 /*! \fn ~VTKViewer_AppendFilter();
90 ~VTKViewer_AppendFilter();
92 // Usual data generation method
93 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
95 virtual int FillInputPortInformation(int port, vtkInformation *info);
101 int MakeOutput(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
103 bool myDoMappingFlag;
104 TVectorIds myNodeRanges;
105 TVectorIds myCellRanges;
106 vtkSmartPointer<vtkPointSet> mySharedPointsDataSet;
110 #pragma warning ( default:4251 )