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);
55  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
57 
59 
61 
64  vtkSetMacro(ClipData, int);
65  vtkGetMacro(ClipData, int);
66  vtkBooleanMacro(ClipData, int);
68 
69 protected:
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 
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 
vtkImageClip::Initialized
int Initialized
Definition: vtkImageClip.h:75
vtkImageClip::ResetOutputWholeExtent
void ResetOutputWholeExtent()
vtkImageClip::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageClip::New
static vtkImageClip * New()
vtkImageClip::GetOutputWholeExtent
void GetOutputWholeExtent(int extent[6])
vtkImageClip::SetOutputWholeExtent
void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageClip::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageClip::vtkImageClip
vtkImageClip()
vtkImageClip::CopyData
void CopyData(vtkImageData *inData, vtkImageData *outData, int *ext)
vtkImageClip::ClipData
int ClipData
Definition: vtkImageClip.h:78
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageClip
Reduces the image extent of the input.
Definition: vtkImageClip.h:43
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImagingCoreModule.h
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkImageClip::~vtkImageClip
~vtkImageClip()
Definition: vtkImageClip.h:71
vtkImageClip::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageClip::GetOutputWholeExtent
int * GetOutputWholeExtent()
Definition: vtkImageClip.h:55
vtkImageClip::CTime
vtkTimeStamp CTime
Definition: vtkImageClip.h:74
vtkImageClip::SetOutputWholeExtent
void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0)