VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageSlabReslice.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSlabReslice.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 =========================================================================*/
46 #ifndef __vtkImageSlabReslice_h
47 #define __vtkImageSlabReslice_h
48 
49 #include "vtkImagingGeneralModule.h" // For export macro
50 #include "vtkImageReslice.h"
51 
52 // For backwards compatibility
53 #define VTK_IMAGESLAB_BLEND_MIN VTK_IMAGE_SLAB_MIN
54 #define VTK_IMAGESLAB_BLEND_MAX VTK_IMAGE_SLAB_MAX
55 #define VTK_IMAGESLAB_BLEND_MEAN VTK_IMAGE_SLAB_MEAN
56 
57 class VTKIMAGINGGENERAL_EXPORT vtkImageSlabReslice : public vtkImageReslice
58 {
59 public:
60 
61  static vtkImageSlabReslice *New();
63 
65  virtual void PrintSelf(ostream& os, vtkIndent indent);
66 
68 
69  vtkSetMacro( BlendMode, int );
70  vtkGetMacro( BlendMode, int );
71  void SetBlendModeToMin() { this->SetBlendMode(VTK_IMAGE_SLAB_MIN ); }
72  void SetBlendModeToMax() { this->SetBlendMode(VTK_IMAGE_SLAB_MAX ); }
73  void SetBlendModeToMean() { this->SetBlendMode(VTK_IMAGE_SLAB_MEAN); }
75 
77 
80  vtkGetMacro( NumBlendSamplePoints, int );
82 
84 
86  vtkSetMacro( SlabThickness, double );
87  vtkGetMacro( SlabThickness, double );
89 
91 
93  vtkSetMacro( SlabResolution, double );
94  vtkGetMacro( SlabResolution, double );
96 
97 protected:
100 
102 
105  virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
106  vtkInformationVector *);
108 
109  int BlendMode; // can be MIN, MIP, MAX
113 
114 private:
115  vtkImageSlabReslice(const vtkImageSlabReslice&); // Not implemented.
116  void operator=(const vtkImageSlabReslice&); // Not implemented.
117 };
118 
119 #endif
Thick slab reformat through data.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkImageReslice * New()
Reslices a volume along a new set of axes.
virtual void PrintSelf(ostream &os, vtkIndent indent)