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 
34 
36 {
37 public:
38  static vtkImageSlab *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
45  vtkSetClampMacro(Orientation, int, 0, 2);
47  this->SetOrientation(0); };
49  this->SetOrientation(1); };
51  this->SetOrientation(2); };
52  vtkGetMacro(Orientation, int);
54 
56 
58  vtkSetVector2Macro(SliceRange, int);
59  vtkGetVector2Macro(SliceRange, int);
61 
63 
65  vtkSetClampMacro(Operation, int, VTK_IMAGE_SLAB_MIN, VTK_IMAGE_SLAB_SUM);
67  this->SetOperation(VTK_IMAGE_SLAB_MIN); };
69  this->SetOperation(VTK_IMAGE_SLAB_MAX); };
71  this->SetOperation(VTK_IMAGE_SLAB_MEAN); };
73  this->SetOperation(VTK_IMAGE_SLAB_SUM); };
74  vtkGetMacro(Operation, int);
75  const char *GetOperationAsString();
77 
79 
83  vtkSetMacro(TrapezoidIntegration, int);
84  vtkBooleanMacro(TrapezoidIntegration, int);
85  vtkGetMacro(TrapezoidIntegration, int);
87 
89 
94  vtkSetMacro(MultiSliceOutput, int);
95  vtkBooleanMacro(MultiSliceOutput, int);
96  vtkGetMacro(MultiSliceOutput, int);
98 
100 
105  this->SetOutputScalarType(VTK_FLOAT); };
107  this->SetOutputScalarType(VTK_DOUBLE); };
109  this->SetOutputScalarType(0); };
110  vtkGetMacro(OutputScalarType, int);
112 
113 protected:
114  vtkImageSlab();
115  ~vtkImageSlab();
116 
121  virtual void ThreadedRequestData(vtkInformation *request,
122  vtkInformationVector **inputVector,
123  vtkInformationVector *outputVector,
124  vtkImageData ***inData,
125  vtkImageData **outData, int ext[6], int id);
126 
127  vtkSetMacro(OutputScalarType, int);
128 
129  int Operation;
131  int SliceRange[2];
135 
136 private:
137  vtkImageSlab(const vtkImageSlab&); // Not implemented.
138  void operator=(const vtkImageSlab&); // Not implemented.
139 };
140 
141 #endif