ParaView
vtkPVExtractVOI.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVExtractVOI.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
27 #ifndef vtkPVExtractVOI_h
28 #define vtkPVExtractVOI_h
29 
30 #include "vtkDataSetAlgorithm.h"
31 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
32 
33 class vtkDataObject;
34 class vtkDataSet;
35 class vtkExtractGrid;
36 class vtkExtractRectilinearGrid;
37 class vtkExtractVOI;
38 
39 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVExtractVOI : public vtkDataSetAlgorithm
40 {
41 
42 public:
43  static vtkPVExtractVOI* New();
44  vtkTypeMacro(vtkPVExtractVOI, vtkDataSetAlgorithm);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
53  vtkSetVector6Macro(VOI, int);
54  vtkGetVectorMacro(VOI, int, 6);
56 
58 
64  vtkSetVector3Macro(SampleRate, int);
65  vtkGetVectorMacro(SampleRate, int, 3);
67 
69 
72  void SetSampleRateI(int ratei);
73  void SetSampleRateJ(int ratej);
74  void SetSampleRateK(int ratek);
75  int GetSampleRateI() { return this->SampleRate[0]; }
76  int GetSampleRateJ() { return this->SampleRate[1]; }
77  int GetSampleRateK() { return this->SampleRate[2]; }
79 
81 
89  vtkSetMacro(IncludeBoundary, int);
90  vtkGetMacro(IncludeBoundary, int);
91  vtkBooleanMacro(IncludeBoundary, int);
93 
94 protected:
96  ~vtkPVExtractVOI();
97 
98  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
99  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
100  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
101 
102  int VOI[6];
103  int SampleRate[3];
105 
106  vtkExtractVOI* ExtractVOI;
107  vtkExtractGrid* ExtractGrid;
108  vtkExtractRectilinearGrid* ExtractRG;
109 
110  virtual void ReportReferences(vtkGarbageCollector*);
111 
112 private:
113  vtkPVExtractVOI(const vtkPVExtractVOI&) VTK_DELETE_FUNCTION;
114  void operator=(const vtkPVExtractVOI&) VTK_DELETE_FUNCTION;
115 };
116 
117 #endif
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
int GetSampleRateI()
Set/get the individual components of the sample rate.
vtkExtractVOI * ExtractVOI
int GetSampleRateK()
Set/get the individual components of the sample rate.
vtkExtractGrid * ExtractGrid