VTK
vtkRectilinearGridClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectilinearGridClip.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 =========================================================================*/
28 #ifndef vtkRectilinearGridClip_h
29 #define vtkRectilinearGridClip_h
30 
31 // I did not make this a subclass of in place filter because
32 // the references on the data do not matter. I make no modifications
33 // to the data.
34 #include "vtkFiltersGeneralModule.h" // For export macro
36 
37 class VTKFILTERSGENERAL_EXPORT vtkRectilinearGridClip : public vtkRectilinearGridAlgorithm
38 {
39 public:
40  static vtkRectilinearGridClip *New();
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
45 
48  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
49  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
50  int minZ, int maxZ);
51  void GetOutputWholeExtent(int extent[6]);
52  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
54 
55  void ResetOutputWholeExtent();
56 
58 
63  vtkSetMacro(ClipData, int);
64  vtkGetMacro(ClipData, int);
65  vtkBooleanMacro(ClipData, int);
67 
68 protected:
70  ~vtkRectilinearGridClip() VTK_OVERRIDE {}
71 
72  // Time when OutputImageExtent was computed.
74  int Initialized; // Set the OutputImageExtent for the first time.
75  int OutputWholeExtent[6];
76 
77  int ClipData;
78 
81  vtkInformationVector *) VTK_OVERRIDE;
82 
83  void CopyData(vtkRectilinearGrid *inData, vtkRectilinearGrid *outData, int *ext);
84 
85  int RequestData(vtkInformation *,
87  vtkInformationVector *) VTK_OVERRIDE;
88 
89 private:
90  vtkRectilinearGridClip(const vtkRectilinearGridClip&) VTK_DELETE_FUNCTION;
91  void operator=(const vtkRectilinearGridClip&) VTK_DELETE_FUNCTION;
92 };
93 
94 
95 
96 #endif
97 
98 
99 
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Superclass for algorithms that produce only rectilinear grid as output.
Store vtkAlgorithm input/output information.
static vtkRectilinearGridAlgorithm * New()
record modification and/or execution time
Definition: vtkTimeStamp.h:35
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Reduces the image extent of the input.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int * GetOutputWholeExtent()
The whole extent of the output has to be set explicitly.