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 =========================================================================*/
33 #ifndef vtkResampleWithDataSet_h
34 #define vtkResampleWithDataSet_h
35 
36 
37 #include "vtkFiltersCoreModule.h" // For export macro
38 #include "vtkNew.h" // For vtkCompositeDataProbeFilter member variable
40 
42 class vtkDataSet;
43 
44 class VTKFILTERSCORE_EXPORT vtkResampleWithDataSet : public vtkPassInputTypeAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
50  static vtkResampleWithDataSet *New();
51 
58  void SetSourceData(vtkDataObject *source);
59 
66  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
67 
69 
74  void SetCategoricalData(bool arg);
75  bool GetCategoricalData();
77 
79 
83  void SetPassCellArrays(bool arg);
84  bool GetPassCellArrays();
85  vtkBooleanMacro(PassCellArrays, bool);
87 
89 
93  void SetPassPointArrays(bool arg);
94  bool GetPassPointArrays();
95  vtkBooleanMacro(PassPointArrays, bool);
97 
99 
103  void SetPassFieldArrays(bool arg);
104  bool GetPassFieldArrays();
105  vtkBooleanMacro(PassFieldArrays, bool);
107 
109 
114  void SetTolerance(double arg);
115  double GetTolerance();
117 
119 
124  void SetComputeTolerance(bool arg);
125  bool GetComputeTolerance();
126  vtkBooleanMacro(ComputeTolerance, bool);
128 
130 
134  vtkSetMacro(MarkBlankPointsAndCells, bool);
135  vtkGetMacro(MarkBlankPointsAndCells, bool);
136  vtkBooleanMacro(MarkBlankPointsAndCells, bool);
138 
139  vtkMTimeType GetMTime() override;
140 
141 protected:
143  ~vtkResampleWithDataSet() override;
144 
145  // Usual data generation method
147  vtkInformationVector *) override;
149  vtkInformationVector *) override;
151  vtkInformationVector *) override;
152  int FillInputPortInformation(int, vtkInformation *) override;
153  int FillOutputPortInformation(int, vtkInformation *) override;
154 
158  const char* GetMaskArrayName() const;
159 
163  void SetBlankPointsAndCells(vtkDataSet *data);
164 
167 
168 private:
170  void operator=(const vtkResampleWithDataSet&) = delete;
171 };
172 
173 #endif // vtkResampleWithDataSet_h
sample point and cell data of a dataset on points from another dataset.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
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:62
subclass of vtkProbeFilter which supports composite datasets in the input.
Proxy object to connect input/output ports.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.
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:64
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()
vtkNew< vtkCompositeDataProbeFilter > Prober