ParaView
vtkCompositeDataToUnstructuredGridFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCompositeDataToUnstructuredGridFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkCompositeDataToUnstructuredGridFilter_h
28 #define vtkCompositeDataToUnstructuredGridFilter_h
29 
30 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
31 #include "vtkUnstructuredGridAlgorithm.h"
32 
33 class vtkCompositeDataSet;
34 class vtkAppendFilter;
35 
36 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkCompositeDataToUnstructuredGridFilter
37  : public vtkUnstructuredGridAlgorithm
38 {
39 public:
41  vtkTypeMacro(vtkCompositeDataToUnstructuredGridFilter, vtkUnstructuredGridAlgorithm);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
49  vtkSetMacro(SubTreeCompositeIndex, unsigned int);
50  vtkGetMacro(SubTreeCompositeIndex, unsigned int);
52 
54 
58  vtkSetMacro(MergePoints, bool);
59  vtkGetMacro(MergePoints, bool);
60  vtkBooleanMacro(MergePoints, bool);
62 
63 protected:
66 
71  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
73 
74  virtual int FillInputPortInformation(int port, vtkInformation* info);
75 
79  void RemovePartialArrays(vtkUnstructuredGrid* data);
80 
81  void AddDataSet(vtkDataSet* ds, vtkAppendFilter* appender);
82 
83  void ExecuteSubTree(vtkCompositeDataSet* cd, vtkAppendFilter* output);
84  unsigned int SubTreeCompositeIndex;
86 
87 private:
89  const vtkCompositeDataToUnstructuredGridFilter&) VTK_DELETE_FUNCTION;
90  void operator=(const vtkCompositeDataToUnstructuredGridFilter&) VTK_DELETE_FUNCTION;
91 };
92 
93 #endif
appends all vtkUnstructuredGrid leaves of the input composite dataset to a single vtkUnstructuredGrid...