VTK
vtkStructuredGridClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridClip.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 __vtkStructuredGridClip_h
28 #define __vtkStructuredGridClip_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 vtkStructuredGridClip *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(vtkStructuredGrid *inData, vtkStructuredGrid *outData, int *ext);
81 
82  virtual int RequestData(vtkInformation *,
85 
86 private:
87  vtkStructuredGridClip(const vtkStructuredGridClip&); // Not implemented.
88  void operator=(const vtkStructuredGridClip&); // Not implemented.
89 };
90 
91 
92 
93 #endif
94 
95 
96