VTK
vtkImageSlab.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSlab.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 =========================================================================*/
30 #ifndef vtkImageSlab_h
31 #define vtkImageSlab_h
32 
33 #include "vtkImagingGeneralModule.h" // For export macro
35 
37 {
38 public:
39  static vtkImageSlab *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  vtkSetClampMacro(Orientation, int, 0, 2);
48  this->SetOrientation(0); };
50  this->SetOrientation(1); };
52  this->SetOrientation(2); };
53  vtkGetMacro(Orientation, int);
55 
57 
59  vtkSetVector2Macro(SliceRange, int);
60  vtkGetVector2Macro(SliceRange, int);
62 
64 
66  vtkSetClampMacro(Operation, int, VTK_IMAGE_SLAB_MIN, VTK_IMAGE_SLAB_SUM);
68  this->SetOperation(VTK_IMAGE_SLAB_MIN); };
70  this->SetOperation(VTK_IMAGE_SLAB_MAX); };
72  this->SetOperation(VTK_IMAGE_SLAB_MEAN); };
74  this->SetOperation(VTK_IMAGE_SLAB_SUM); };
75  vtkGetMacro(Operation, int);
76  const char *GetOperationAsString();
78 
80 
84  vtkSetMacro(TrapezoidIntegration, int);
85  vtkBooleanMacro(TrapezoidIntegration, int);
86  vtkGetMacro(TrapezoidIntegration, int);
88 
90 
95  vtkSetMacro(MultiSliceOutput, int);
96  vtkBooleanMacro(MultiSliceOutput, int);
97  vtkGetMacro(MultiSliceOutput, int);
99 
101 
106  this->SetOutputScalarType(VTK_FLOAT); };
108  this->SetOutputScalarType(VTK_DOUBLE); };
110  this->SetOutputScalarType(0); };
111  vtkGetMacro(OutputScalarType, int);
113 
114 protected:
115  vtkImageSlab();
116  ~vtkImageSlab();
117 
122  virtual void ThreadedRequestData(vtkInformation *request,
123  vtkInformationVector **inputVector,
124  vtkInformationVector *outputVector,
125  vtkImageData ***inData,
126  vtkImageData **outData, int ext[6], int id);
127 
128  vtkSetMacro(OutputScalarType, int);
129 
130  int Operation;
132  int SliceRange[2];
136 
137 private:
138  vtkImageSlab(const vtkImageSlab&); // Not implemented.
139  void operator=(const vtkImageSlab&); // Not implemented.
140 };
141 
142 #endif
void SetOperationToMin()
Definition: vtkImageSlab.h:67
#define VTK_IMAGE_SLAB_MAX
void SetOperationToMean()
Definition: vtkImageSlab.h:71
#define VTK_IMAGE_SLAB_MIN
Store vtkAlgorithm input/output information.
void SetOperationToMax()
Definition: vtkImageSlab.h:69
void SetOrientationToZ()
Definition: vtkImageSlab.h:51
#define VTK_IMAGE_SLAB_SUM
#define VTK_IMAGE_SLAB_MEAN
void SetOrientationToY()
Definition: vtkImageSlab.h:49
void SetOperationToSum()
Definition: vtkImageSlab.h:73
void SetOrientationToX()
Definition: vtkImageSlab.h:47
void SetOutputScalarTypeToFloat()
Definition: vtkImageSlab.h:105
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTK_DOUBLE
Definition: vtkType.h:36
Generic filter that has one input..
combine image slices to form a slab image
Definition: vtkImageSlab.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
void SetOutputScalarTypeToDouble()
Definition: vtkImageSlab.h:107
int MultiSliceOutput
Definition: vtkImageSlab.h:134
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
#define VTKIMAGINGGENERAL_EXPORT
void SetOutputScalarTypeToInputScalarType()
Definition: vtkImageSlab.h:109
Store zero or more vtkInformation instances.
int OutputScalarType
Definition: vtkImageSlab.h:133
static vtkAlgorithm * New()
int TrapezoidIntegration
Definition: vtkImageSlab.h:135