vtkPVExtractVOI.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkPVExtractVOI_h
16 #define vtkPVExtractVOI_h
17 
18 #include "vtkDataSetAlgorithm.h"
19 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
20 
21 class vtkDataObject;
22 class vtkDataSet;
23 class vtkExtractGrid;
25 class vtkExtractVOI;
26 
28 {
29 
30 public:
31  static vtkPVExtractVOI* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
41  vtkSetVector6Macro(VOI, int);
42  vtkGetVectorMacro(VOI, int, 6);
44 
46 
52  vtkSetVector3Macro(SampleRate, int);
53  vtkGetVectorMacro(SampleRate, int, 3);
55 
57 
60  void SetSampleRateI(int ratei);
61  void SetSampleRateJ(int ratej);
62  void SetSampleRateK(int ratek);
63  int GetSampleRateI() { return this->SampleRate[0]; }
64  int GetSampleRateJ() { return this->SampleRate[1]; }
65  int GetSampleRateK() { return this->SampleRate[2]; }
67 
69 
77  vtkSetMacro(IncludeBoundary, int);
78  vtkGetMacro(IncludeBoundary, int);
79  vtkBooleanMacro(IncludeBoundary, int);
81 
82 protected:
84  ~vtkPVExtractVOI() override;
85 
89 
90  int VOI[6];
91  int SampleRate[3];
93 
97 
98  void ReportReferences(vtkGarbageCollector*) override;
99 
100 private:
101  vtkPVExtractVOI(const vtkPVExtractVOI&) = delete;
102  void operator=(const vtkPVExtractVOI&) = delete;
103 };
104 
105 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkExtractRectilinearGrid * ExtractRG
int GetSampleRateJ()
Set/get the individual components of the sample rate.
select piece (e.g., volume of interest) and/or subsample structured dataset
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ReportReferences(vtkGarbageCollector *) VTK_OVERRIDE
int GetSampleRateI()
Set/get the individual components of the sample rate.
vtkExtractVOI * ExtractVOI
void operator=(const vtkObjectBase &)
static vtkDataSetAlgorithm * New()
int GetSampleRateK()
Set/get the individual components of the sample rate.
vtkExtractGrid * ExtractGrid