VTK
vtkResampleWithDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkResampleWithDataSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
30 #ifndef vtkResampleWithDataSet_h
31 #define vtkResampleWithDataSet_h
32 
33 
34 #include "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
37 
39 class vtkDataSet;
40 
41 class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
47  static vtkResampleWithDataSet *New();
48 
55  void SetSourceData(vtkDataObject *source);
56 
63  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
64 
66 
71  void SetCategoricalData(bool arg);
72  bool GetCategoricalData();
74 
76 
80  void SetPassCellArrays(bool arg);
81  bool GetPassCellArrays();
82  vtkBooleanMacro(PassCellArrays, bool);
84 
86 
90  void SetPassPointArrays(bool arg);
91  bool GetPassPointArrays();
92  vtkBooleanMacro(PassPointArrays, bool);
94 
96 
100  void SetPassFieldArrays(bool arg);
101  bool GetPassFieldArrays();
102  vtkBooleanMacro(PassFieldArrays, bool);
104 
106 
111  void SetTolerance(double arg);
112  double GetTolerance();
114 
116 
121  void SetComputeTolerance(bool arg);
122  bool GetComputeTolerance();
123  vtkBooleanMacro(ComputeTolerance, bool);
125 
127 
131  vtkSetMacro(MarkBlankPointsAndCells, bool);
132  vtkGetMacro(MarkBlankPointsAndCells, bool);
133  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
135 
136  vtkMTimeType GetMTime() VTK_OVERRIDE;
137 
138 protected:
140  ~vtkResampleWithDataSet() VTK_OVERRIDE;
141 
142  // Usual data generation method
143  int RequestData(vtkInformation *, vtkInformationVector **,
144  vtkInformationVector *) VTK_OVERRIDE;
145  int RequestInformation(vtkInformation *, vtkInformationVector **,
146  vtkInformationVector *) VTK_OVERRIDE;
147  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
148  vtkInformationVector *) VTK_OVERRIDE;
149  int FillInputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
150  int FillOutputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
151 
155  const char* GetMaskArrayName() const;
156 
160  void SetBlankPointsAndCells(vtkDataSet *data);
161 
163  bool MarkBlankPointsAndCells;
164 
165 private:
166  vtkResampleWithDataSet(const vtkResampleWithDataSet&) VTK_DELETE_FUNCTION;
167  void operator=(const vtkResampleWithDataSet&) VTK_DELETE_FUNCTION;
168 };
169 
170 #endif // vtkResampleWithDataSet_h
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
subclass of vtkProbeFilter which supports composite datasets in the input.
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Allocate and hold a VTK object.
Definition: vtkNew.h:61
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
Definition: vtkDataObject.h:58
static vtkPassInputTypeAlgorithm * New()