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.
33 #include "vtkFiltersGeneralModule.h" // For export macro
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0);
46  void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY,
47  int minZ, int maxZ);
49  int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
51 
53 
55 
58  vtkSetMacro(ClipData, int);
59  vtkGetMacro(ClipData, int);
60  vtkBooleanMacro(ClipData, int);
62 
63 protected:
66 
67  // Time when OutputImageExtent was computed.
69  int Initialized; // Set the OutputImageExtent for the first time.
70  int OutputWholeExtent[6];
71 
72  int ClipData;
73 
77 
78  void CopyData(vtkStructuredGrid *inData, vtkStructuredGrid *outData, int *ext);
79 
80  virtual int RequestData(vtkInformation *,
83 
84 private:
85  vtkStructuredGridClip(const vtkStructuredGridClip&); // Not implemented.
86  void operator=(const vtkStructuredGridClip&); // Not implemented.
87 };
88 
89 
90 
91 #endif
92 
93 
94 
vtkStructuredGridClip::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStructuredGridAlgorithm.h
vtkStructuredGridClip::ClipData
int ClipData
Definition: vtkStructuredGridClip.h:72
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:41
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
vtkStructuredGridClip::GetOutputWholeExtent
void GetOutputWholeExtent(int extent[6])
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkStructuredGridClip::New
static vtkStructuredGridClip * New()
vtkStructuredGridClip::CopyData
void CopyData(vtkStructuredGrid *inData, vtkStructuredGrid *outData, int *ext)
vtkStructuredGridClip::SetOutputWholeExtent
void SetOutputWholeExtent(int extent[6], vtkInformation *outInfo=0)
vtkStructuredGridClip::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkFiltersGeneralModule.h
vtkStructuredGridClip::vtkStructuredGridClip
vtkStructuredGridClip()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkStructuredGridClip::ResetOutputWholeExtent
void ResetOutputWholeExtent()
vtkStructuredGridClip::CTime
vtkTimeStamp CTime
Definition: vtkStructuredGridClip.h:68
vtkStructuredGridClip::Initialized
int Initialized
Definition: vtkStructuredGridClip.h:69
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkStructuredGridClip
Reduces the image extent of the input.
Definition: vtkStructuredGridClip.h:37
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkStructuredGridClip::SetOutputWholeExtent
void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkStructuredGridClip::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkStructuredGridClip::~vtkStructuredGridClip
~vtkStructuredGridClip()
Definition: vtkStructuredGridClip.h:65
vtkStructuredGridClip::GetOutputWholeExtent
int * GetOutputWholeExtent()
Definition: vtkStructuredGridClip.h:49