VTK
vtkImageActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageActor.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 =========================================================================*/
36 #ifndef __vtkImageActor_h
37 #define __vtkImageActor_h
38 
39 #include "vtkImageSlice.h"
40 
41 class vtkPropCollection;
42 class vtkRenderer;
43 class vtkImageData;
44 
45 
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53  static vtkImageActor *New();
54 
56 
59  virtual void SetInput(vtkImageData *);
60  virtual vtkImageData *GetInput();
62 
64 
66  virtual void SetInterpolate(int);
67  virtual int GetInterpolate();
68  vtkBooleanMacro(Interpolate,int);
70 
72 
74  virtual void SetOpacity(double);
75  virtual double GetOpacity();
76  double GetOpacityMinValue() { return 0.0; }
77  double GetOpacityMaxValue() { return 1.0; }
79 
81 
83  void SetDisplayExtent(int extent[6]);
84  void SetDisplayExtent(int minX, int maxX, int minY, int maxY,
85  int minZ, int maxZ);
86  void GetDisplayExtent(int extent[6]);
87  int *GetDisplayExtent() {return this->DisplayExtent;}
89 
91 
95  double *GetBounds();
96  void GetBounds(double bounds[6]) { this->Superclass::GetBounds(bounds); };
98 
100 
103  double *GetDisplayBounds();
104  void GetDisplayBounds(double bounds[6]);
106 
108 
110  int GetSliceNumber();
111  int GetSliceNumberMax();
112  int GetSliceNumberMin();
114 
116 
123  void SetZSlice(int z) {this->SetDisplayExtent(
124  this->DisplayExtent[0], this->DisplayExtent[1],
125  this->DisplayExtent[2], this->DisplayExtent[3], z, z);
126  };
127  int GetZSlice() { return this->DisplayExtent[4];};
128  int GetWholeZMin();
129  int GetWholeZMax();
131 
134  virtual int HasTranslucentPolygonalGeometry();
135 
136 protected:
137  vtkImageActor();
138  ~vtkImageActor();
139 
142  static int GetOrientationFromExtent(const int extent[6]);
143 
144  int DisplayExtent[6];
145  double DisplayBounds[6];
146 
147 private:
148  vtkImageActor(const vtkImageActor&); // Not implemented.
149  void operator=(const vtkImageActor&); // Not implemented.
150 };
151 
152 #endif