VTK
vtkImageClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageClip.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 =========================================================================*/
33 #ifndef vtkImageClip_h
34 #define vtkImageClip_h
35 
36 // I did not make this a subclass of in place filter because
37 // the references on the data do not matter. I make no modifications
38 // to the data.
39 #include "vtkImagingCoreModule.h" // For export macro
40 #include "vtkImageAlgorithm.h"
41 
43 {
44 public:
45  static vtkImageClip *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
52  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
53  int minZ, int maxZ);
54  void GetOutputWholeExtent(int extent[6]);
55  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
57 
58  void ResetOutputWholeExtent();
59 
61 
64  vtkSetMacro(ClipData, int);
65  vtkGetMacro(ClipData, int);
66  vtkBooleanMacro(ClipData, int);
68 
69 protected:
70  vtkImageClip();
72 
73  // Time when OutputImageExtent was computed.
75  int Initialized; // Set the OutputImageExtent for the first time.
76  int OutputWholeExtent[6];
77 
78  int ClipData;
79 
80  virtual int RequestInformation (vtkInformation *,
83 
84  void CopyData(vtkImageData *inData, vtkImageData *outData, int *ext);
85 
86  virtual int RequestData(vtkInformation *,
89 
90 private:
91  vtkImageClip(const vtkImageClip&); // Not implemented.
92  void operator=(const vtkImageClip&); // Not implemented.
93 };
94 
95 
96 
97 #endif
98 
99 
100 
vtkTimeStamp CTime
Definition: vtkImageClip.h:74
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
int * GetOutputWholeExtent()
Definition: vtkImageClip.h:55
a simple class to control print indentation
Definition: vtkIndent.h:38
Reduces the image extent of the input.
Definition: vtkImageClip.h:42
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)