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 =========================================================================*/
34 #ifndef vtkImageClip_h
35 #define vtkImageClip_h
36 
37 // I did not make this a subclass of in place filter because
38 // the references on the data do not matter. I make no modifications
39 // to the data.
40 #include "vtkImagingCoreModule.h" // For export macro
41 #include "vtkImageAlgorithm.h"
42 
43 class VTKIMAGINGCORE_EXPORT vtkImageClip : public vtkImageAlgorithm
44 {
45 public:
46  static vtkImageClip *New();
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
51 
54  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
55  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
56  int minZ, int maxZ);
58  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
60 
62 
64 
69  vtkSetMacro(ClipData, int);
70  vtkGetMacro(ClipData, int);
71  vtkBooleanMacro(ClipData, int);
73 
74 protected:
77 
78  // Time when OutputImageExtent was computed.
80  int Initialized; // Set the OutputImageExtent for the first time.
81  int OutputWholeExtent[6];
82 
83  int ClipData;
84 
87  vtkInformationVector *) VTK_OVERRIDE;
88 
89  void CopyData(vtkImageData *inData, vtkImageData *outData, int *ext);
90 
91  virtual int RequestData(vtkInformation *,
93  vtkInformationVector *) VTK_OVERRIDE;
94 
95 private:
96  vtkImageClip(const vtkImageClip&) VTK_DELETE_FUNCTION;
97  void operator=(const vtkImageClip&) VTK_DELETE_FUNCTION;
98 };
99 
100 
101 
102 #endif
103 
104 
105 
vtkImageClip::Initialized
int Initialized
Definition: vtkImageClip.h:80
vtkImageClip::ResetOutputWholeExtent
void ResetOutputWholeExtent()
vtkImageClip::New
static vtkImageClip * New()
vtkImageClip::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageClip::GetOutputWholeExtent
void GetOutputWholeExtent(int extent[6])
vtkImageClip::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
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:42
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageClip::vtkImageClip
vtkImageClip()
vtkImageClip::CopyData
void CopyData(vtkImageData *inData, vtkImageData *outData, int *ext)
vtkImageClip::ClipData
int ClipData
Definition: vtkImageClip.h:83
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageClip
Reduces the image extent of the input.
Definition: vtkImageClip.h:44
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImageClip::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageClip::~vtkImageClip
~vtkImageClip()
Definition: vtkImageClip.h:76
vtkImageClip::GetOutputWholeExtent
int * GetOutputWholeExtent()
Definition: vtkImageClip.h:58
vtkImageClip::CTime
vtkTimeStamp CTime
Definition: vtkImageClip.h:79
vtkImageClip::SetOutputWholeExtent
void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0)
The whole extent of the output has to be set explicitly.