VTK  9.0.1
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 =========================================================================*/
21 #ifndef vtkPResampleFilter_h
22 #define vtkPResampleFilter_h
23 
24 #include "vtkFiltersParallelModule.h" // For export macro
25 #include "vtkImageAlgorithm.h"
26 
28 
29 class VTKFILTERSPARALLEL_EXPORT vtkPResampleFilter : public vtkImageAlgorithm
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
38 
42  vtkGetObjectMacro(Controller, vtkMultiProcessController);
44 
46 
50  vtkSetMacro(UseInputBounds, vtkTypeBool);
51  vtkGetMacro(UseInputBounds, vtkTypeBool);
52  vtkBooleanMacro(UseInputBounds, vtkTypeBool);
54 
56 
60  vtkSetVector6Macro(CustomSamplingBounds, double);
61  vtkGetVector6Macro(CustomSamplingBounds, double);
63 
65 
68  vtkSetVector3Macro(SamplingDimension, int);
69  vtkGetVector3Macro(SamplingDimension, int);
71 
72 protected:
74  ~vtkPResampleFilter() override;
75 
76  // Usual data generation method
81 
82  double* CalculateBounds(vtkDataSet* input);
83 
86  double CustomSamplingBounds[6];
87  int SamplingDimension[3];
88  double Bounds[6];
89 
90 private:
91  vtkPResampleFilter(const vtkPResampleFilter&) = delete;
92  void operator=(const vtkPResampleFilter&) = delete;
93 };
94 
95 #endif
vtkPResampleFilter::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkPResampleFilter::CalculateBounds
double * CalculateBounds(vtkDataSet *input)
vtkImageAlgorithm.h
vtkPResampleFilter::SetController
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
vtkPResampleFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:38
vtkPResampleFilter::vtkPResampleFilter
vtkPResampleFilter()
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkPResampleFilter::~vtkPResampleFilter
~vtkPResampleFilter() override
vtkPResampleFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkPResampleFilter
probe dataset in parallel using a vtkImageData
Definition: vtkPResampleFilter.h:30
vtkPResampleFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkPResampleFilter::Controller
vtkMultiProcessController * Controller
Definition: vtkPResampleFilter.h:84
vtkPResampleFilter::New
static vtkPResampleFilter * New()
vtkPResampleFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPResampleFilter::UseInputBounds
vtkTypeBool UseInputBounds
Definition: vtkPResampleFilter.h:85