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 
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:
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 
132  int SliceRange[2];
136 
137 private:
138  vtkImageSlab(const vtkImageSlab&); // Not implemented.
139  void operator=(const vtkImageSlab&); // Not implemented.
140 };
141 
142 #endif
vtkImageSlab::OutputScalarType
int OutputScalarType
Definition: vtkImageSlab.h:133
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition: vtkSetGet.h:254
vtkGetVector2Macro
#define vtkGetVector2Macro(name, type)
Definition: vtkSetGet.h:270
VTK_IMAGE_SLAB_MAX
#define VTK_IMAGE_SLAB_MAX
Definition: vtkSystemIncludes.h:109
vtkImageSlab::New
static vtkImageSlab * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageSlab::SetOutputScalarTypeToInputScalarType
void SetOutputScalarTypeToInputScalarType()
Definition: vtkImageSlab.h:109
vtkImageSlab::vtkImageSlab
vtkImageSlab()
vtkImageSlab::~vtkImageSlab
~vtkImageSlab()
vtkImageSlab::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThreadedImageAlgorithm
Generic filter that has one input..
Definition: vtkThreadedImageAlgorithm.h:37
vtkImageSlab::GetOperationAsString
const char * GetOperationAsString()
vtkImageSlab::SetOrientationToZ
void SetOrientationToZ()
Definition: vtkImageSlab.h:51
vtkThreadedImageAlgorithm.h
vtkImageSlab::TrapezoidIntegration
int TrapezoidIntegration
Definition: vtkImageSlab.h:135
VTK_IMAGE_SLAB_MEAN
#define VTK_IMAGE_SLAB_MEAN
Definition: vtkSystemIncludes.h:110
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkImageSlab
combine image slices to form a slab image
Definition: vtkImageSlab.h:37
vtkImageSlab::SetOutputScalarTypeToFloat
void SetOutputScalarTypeToFloat()
Definition: vtkImageSlab.h:105
VTK_IMAGE_SLAB_MIN
#define VTK_IMAGE_SLAB_MIN
Definition: vtkSystemIncludes.h:108
vtkImageSlab::SetOperationToMean
void SetOperationToMean()
Definition: vtkImageSlab.h:71
vtkImagingGeneralModule.h
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:35
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:36
vtkImageSlab::SetOperationToMax
void SetOperationToMax()
Definition: vtkImageSlab.h:69
VTKIMAGINGGENERAL_EXPORT
#define VTKIMAGINGGENERAL_EXPORT
Definition: vtkImagingGeneralModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageSlab::ThreadedRequestData
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageSlab::SetOrientationToX
void SetOrientationToX()
Definition: vtkImageSlab.h:47
vtkImageSlab::SetOrientationToY
void SetOrientationToY()
Definition: vtkImageSlab.h:49
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImageSlab::Operation
int Operation
Definition: vtkImageSlab.h:128
vtkImageSlab::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageSlab::SetOperationToSum
void SetOperationToSum()
Definition: vtkImageSlab.h:73
VTK_IMAGE_SLAB_SUM
#define VTK_IMAGE_SLAB_SUM
Definition: vtkSystemIncludes.h:111
vtkImageSlab::SetOperationToMin
void SetOperationToMin()
Definition: vtkImageSlab.h:67
vtkImageSlab::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageSlab::SetOutputScalarTypeToDouble
void SetOutputScalarTypeToDouble()
Definition: vtkImageSlab.h:107
vtkImageSlab::Orientation
int Orientation
Definition: vtkImageSlab.h:131
vtkImageSlab::MultiSliceOutput
int MultiSliceOutput
Definition: vtkImageSlab.h:134