VTK
vtkPResampleFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPResampleFilter.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 =========================================================================*/
24 #ifndef vtkPResampleFilter_h
25 #define vtkPResampleFilter_h
26 
27 #include "vtkFiltersParallelModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
29 
31 
32 class VTKFILTERSPARALLEL_EXPORT vtkPResampleFilter : public vtkImageAlgorithm
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
38  static vtkPResampleFilter *New();
39 
41 
44  virtual void SetController(vtkMultiProcessController*);
45  vtkGetObjectMacro(Controller, vtkMultiProcessController);
47 
49 
53  vtkSetMacro(UseInputBounds, int);
54  vtkGetMacro(UseInputBounds, int);
55  vtkBooleanMacro(UseInputBounds, int);
57 
59 
63  vtkSetVector6Macro(CustomSamplingBounds, double);
64  vtkGetVector6Macro(CustomSamplingBounds, double);
66 
68 
71  vtkSetVector3Macro(SamplingDimension, int);
72  vtkGetVector3Macro(SamplingDimension, int);
74 
75 protected:
78 
79  // Usual data generation method
84 
85  double* CalculateBounds(vtkDataSet* input);
86 
89  double CustomSamplingBounds[6];
90  int SamplingDimension[3];
91  double Bounds[6];
92 
93 private:
94  vtkPResampleFilter(const vtkPResampleFilter&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkPResampleFilter&) VTK_DELETE_FUNCTION;
96 
97 };
98 
99 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkMultiProcessController * Controller
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
probe dataset in parallel using a vtkImageData
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
Multiprocessing communication superclass.