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 
48 
56 
64 
66 
70  void SetPassCellArrays(bool arg);
72  vtkBooleanMacro(PassCellArrays, bool);
74 
76 
80  void SetPassPointArrays(bool arg);
82  vtkBooleanMacro(PassPointArrays, bool);
84 
86 
90  void SetPassFieldArrays(bool arg);
92  vtkBooleanMacro(PassFieldArrays, bool);
94 
95  vtkMTimeType GetMTime() VTK_OVERRIDE;
96 
97 protected:
99  ~vtkResampleWithDataSet() VTK_OVERRIDE;
100 
101  // Usual data generation method
102  int RequestData(vtkInformation *, vtkInformationVector **,
103  vtkInformationVector *) VTK_OVERRIDE;
104  //virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
105  // vtkInformationVector *);
106  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
107  vtkInformationVector *) VTK_OVERRIDE;
108  int FillInputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
109  int FillOutputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
110 
114  const char* GetMaskArrayName() const;
115 
119  void SetBlankPointsAndCells(vtkDataSet *data);
120 
122 
123 private:
124  vtkResampleWithDataSet(const vtkResampleWithDataSet&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkResampleWithDataSet&) VTK_DELETE_FUNCTION;
126 };
127 
128 #endif // vtkResampleWithDataSet_h
vtkResampleWithDataSet::GetMTime
vtkMTimeType GetMTime() override
Return this object's modified time.
vtkResampleWithDataSet::GetPassFieldArrays
bool GetPassFieldArrays()
vtkResampleWithDataSet::SetPassCellArrays
void SetPassCellArrays(bool arg)
Shallow copy the input cell data arrays to the output.
vtkResampleWithDataSet::New
static vtkResampleWithDataSet * New()
vtkPassInputTypeAlgorithm.h
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkResampleWithDataSet::SetSourceConnection
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the data set that will be probed at the input points.
vtkResampleWithDataSet::SetPassPointArrays
void SetPassPointArrays(bool arg)
Shallow copy the input point data arrays to the output Off by default.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:822
vtkResampleWithDataSet::SetPassFieldArrays
void SetPassFieldArrays(bool arg)
Set whether to pass the field-data arrays from the Input i.e.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkResampleWithDataSet::SetSourceData
void SetSourceData(vtkDataObject *source)
Specify the data set that will be probed at the input points.
vtkNew
Allocate and hold a VTK object.
Definition: vtkNew.h:68
vtkResampleWithDataSet::GetPassPointArrays
bool GetPassPointArrays()
vtkCompositeDataProbeFilter
subclass of vtkProbeFilter which supports composite datasets in the input.
Definition: vtkCompositeDataProbeFilter.h:46
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkResampleWithDataSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew.h
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkResampleWithDataSet::GetPassCellArrays
bool GetPassCellArrays()
vtkResampleWithDataSet
Definition: vtkResampleWithDataSet.h:42
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51