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.
34 
36 {
37 public:
38  static vtkRectilinearGridClip *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
45  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
46  int minZ, int maxZ);
47  void GetOutputWholeExtent(int extent[6]);
48  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
50 
51  void ResetOutputWholeExtent();
52 
54 
57  vtkSetMacro(ClipData, int);
58  vtkGetMacro(ClipData, int);
59  vtkBooleanMacro(ClipData, int);
61 
63  void SetOutputWholeExtent(int piece, int numPieces);
64 
65 protected:
68 
69  // Time when OutputImageExtent was computed.
70  vtkTimeStamp CTime;
71  int Initialized; // Set the OutputImageExtent for the first time.
72  int OutputWholeExtent[6];
73 
74  int ClipData;
75 
76  virtual int RequestInformation (vtkInformation *,
79 
80  void CopyData(vtkRectilinearGrid *inData, vtkRectilinearGrid *outData, int *ext);
81 
82  virtual int RequestData(vtkInformation *,
85 
86 private:
87  vtkRectilinearGridClip(const vtkRectilinearGridClip&); // Not implemented.
88  void operator=(const vtkRectilinearGridClip&); // Not implemented.
89 };
90 
91 
92 
93 #endif
94 
95 
96 
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
#define VTK_GRAPHICS_EXPORT
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:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Reduces the image extent of the input.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)