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 =========================================================================*/
27 #ifndef vtkRectilinearGridClip_h
28 #define vtkRectilinearGridClip_h
29 
30 // I did not make this a subclass of in place filter because
31 // the references on the data do not matter. I make no modifications
32 // to the data.
33 #include "vtkFiltersGeneralModule.h" // For export macro
35 
37 {
38 public:
39  static vtkRectilinearGridClip *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
46  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
47  int minZ, int maxZ);
48  void GetOutputWholeExtent(int extent[6]);
49  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
51 
52  void ResetOutputWholeExtent();
53 
55 
58  vtkSetMacro(ClipData, int);
59  vtkGetMacro(ClipData, int);
60  vtkBooleanMacro(ClipData, int);
62 
63 protected:
66 
67  // Time when OutputImageExtent was computed.
69  int Initialized; // Set the OutputImageExtent for the first time.
70  int OutputWholeExtent[6];
71 
72  int ClipData;
73 
74  virtual int RequestInformation (vtkInformation *,
77 
78  void CopyData(vtkRectilinearGrid *inData, vtkRectilinearGrid *outData, int *ext);
79 
80  virtual int RequestData(vtkInformation *,
83 
84 private:
85  vtkRectilinearGridClip(const vtkRectilinearGridClip&); // Not implemented.
86  void operator=(const vtkRectilinearGridClip&); // Not implemented.
87 };
88 
89 
90 
91 #endif
92 
93 
94 
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:34
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSGENERAL_EXPORT
Reduces the image extent of the input.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)