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 
70  void SetPassCellArrays(bool arg);
71  bool GetPassCellArrays();
72  vtkBooleanMacro(PassCellArrays, bool);
74 
76 
80  void SetPassPointArrays(bool arg);
81  bool GetPassPointArrays();
82  vtkBooleanMacro(PassPointArrays, bool);
84 
86 
90  void SetPassFieldArrays(bool arg);
91  bool GetPassFieldArrays();
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
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
subclass of vtkProbeFilter which supports composite datasets in the input.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
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:67
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
static vtkPassInputTypeAlgorithm * New()