VTK
vtkImageProperty.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageProperty.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 =========================================================================*/
33 #ifndef __vtkImageProperty_h
34 #define __vtkImageProperty_h
35 
36 #include "vtkRenderingCoreModule.h" // For export macro
37 #include "vtkObject.h"
38 
39 class vtkScalarsToColors;
40 
41 class VTKRENDERINGCORE_EXPORT vtkImageProperty : public vtkObject
42 {
43 public:
44  vtkTypeMacro(vtkImageProperty,vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48  static vtkImageProperty *New();
49 
51  void DeepCopy(vtkImageProperty *p);
52 
54 
55  vtkSetMacro(ColorWindow, double);
56  vtkGetMacro(ColorWindow, double);
58 
60 
61  vtkSetMacro(ColorLevel, double);
62  vtkGetMacro(ColorLevel, double);
64 
66 
69  virtual void SetLookupTable(vtkScalarsToColors *lut);
70  vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
72 
74 
76  vtkSetMacro(UseLookupTableScalarRange, int);
77  vtkGetMacro(UseLookupTableScalarRange, int);
78  vtkBooleanMacro(UseLookupTableScalarRange, int);
80 
82 
85  vtkSetClampMacro(Opacity, double, 0.0, 1.0);
86  vtkGetMacro(Opacity, double);
88 
90 
91  vtkSetClampMacro(Ambient, double, 0.0, 1.0);
92  vtkGetMacro(Ambient, double);
94 
96 
97  vtkSetClampMacro(Diffuse, double, 0.0, 1.0);
98  vtkGetMacro(Diffuse, double);
100 
102 
103  vtkSetClampMacro(InterpolationType, int,
105  vtkGetMacro(InterpolationType, int);
107  this->SetInterpolationType(VTK_NEAREST_INTERPOLATION); };
109  this->SetInterpolationType(VTK_LINEAR_INTERPOLATION); };
111  this->SetInterpolationType(VTK_CUBIC_INTERPOLATION); };
112  virtual const char *GetInterpolationTypeAsString();
114 
116 
118  vtkSetMacro(LayerNumber, int);
119  int GetLayerNumber() { return this->LayerNumber; }
121 
123 
125  vtkSetMacro(Checkerboard, int);
126  vtkBooleanMacro(Checkerboard, int);
127  vtkGetMacro(Checkerboard, int);
129 
131 
132  vtkSetVector2Macro(CheckerboardSpacing, double);
133  vtkGetVector2Macro(CheckerboardSpacing, double);
135 
137 
139  vtkSetVector2Macro(CheckerboardOffset, double);
140  vtkGetVector2Macro(CheckerboardOffset, double);
142 
144 
148  vtkSetMacro(Backing, int);
149  vtkBooleanMacro(Backing, int);
150  vtkGetMacro(Backing, int);
152 
154 
155  vtkSetVector3Macro(BackingColor, double);
156  vtkGetVector3Macro(BackingColor, double);
158 
161  unsigned long GetMTime();
162 
163 protected:
165  ~vtkImageProperty();
166 
168  double ColorWindow;
169  double ColorLevel;
173  double Opacity;
174  double Ambient;
175  double Diffuse;
177  double CheckerboardSpacing[2];
178  double CheckerboardOffset[2];
179  int Backing;
180  double BackingColor[3];
181 
182 private:
183  vtkImageProperty(const vtkImageProperty&); // Not implemented.
184  void operator=(const vtkImageProperty&); // Not implemented.
185 };
186 
187 #endif