VTK
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 "vtkImageReslice.h"
50 
51 // For backwards compatibility
52 #define VTK_IMAGESLAB_BLEND_MIN VTK_IMAGE_SLAB_MIN
53 #define VTK_IMAGESLAB_BLEND_MAX VTK_IMAGE_SLAB_MAX
54 #define VTK_IMAGESLAB_BLEND_MEAN VTK_IMAGE_SLAB_MEAN
55 
57 {
58 public:
59 
60  static vtkImageSlabReslice *New();
62 
64  virtual void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
68  vtkSetMacro( BlendMode, int );
69  vtkGetMacro( BlendMode, int );
70  void SetBlendModeToMin() { this->SetBlendMode(VTK_IMAGE_SLAB_MIN ); }
71  void SetBlendModeToMax() { this->SetBlendMode(VTK_IMAGE_SLAB_MAX ); }
72  void SetBlendModeToMean() { this->SetBlendMode(VTK_IMAGE_SLAB_MEAN); }
74 
76 
79  vtkGetMacro( NumBlendSamplePoints, int );
81 
83 
85  vtkSetMacro( SlabThickness, double );
86  vtkGetMacro( SlabThickness, double );
88 
90 
92  vtkSetMacro( SlabResolution, double );
93  vtkGetMacro( SlabResolution, double );
95 
96 protected:
99 
101 
107 
108  int BlendMode; // can be MIN, MIP, MAX
112 
113 private:
114  vtkImageSlabReslice(const vtkImageSlabReslice&); // Not implemented.
115  void operator=(const vtkImageSlabReslice&); // Not implemented.
116 };
117 
118 #endif