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
Proxy object to connect input/output ports.
subclass of vtkProbeFilter which supports composite datasets in the input.
general representation of visualization data
Definition: vtkDataObject.h:65
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition: vtkNew.h:68
Superclass for algorithms that produce output of the same type as input.
void SetPassFieldArrays(bool arg)
Set whether to pass the field-data arrays from the Input i.e.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the data set that will be probed at the input points.
void SetPassCellArrays(bool arg)
Shallow copy the input cell data arrays to the output.
static vtkResampleWithDataSet * New()
void SetSourceData(vtkDataObject *source)
Specify the data set that will be probed at the input points.
vtkMTimeType GetMTime() override
Return this object's modified time.
void SetPassPointArrays(bool arg)
Shallow copy the input point data arrays to the output Off by default.
@ data
Definition: vtkX3D.h:315
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248