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 
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);
120  { return this->LayerNumber; }
122 
124 
126  vtkSetMacro(Checkerboard, int);
127  vtkBooleanMacro(Checkerboard, int);
128  vtkGetMacro(Checkerboard, int);
130 
132 
133  vtkSetVector2Macro(CheckerboardSpacing, double);
134  vtkGetVector2Macro(CheckerboardSpacing, double);
136 
138 
140  vtkSetVector2Macro(CheckerboardOffset, double);
141  vtkGetVector2Macro(CheckerboardOffset, double);
143 
145 
149  vtkSetMacro(Backing, int);
150  vtkBooleanMacro(Backing, int);
151  vtkGetMacro(Backing, int);
153 
155 
156  vtkSetVector3Macro(BackingColor, double);
157  vtkGetVector3Macro(BackingColor, double);
159 
162  unsigned long GetMTime();
163 
164 protected:
166  ~vtkImageProperty();
167 
169  double ColorWindow;
170  double ColorLevel;
174  double Opacity;
175  double Ambient;
176  double Diffuse;
178  double CheckerboardSpacing[2];
179  double CheckerboardOffset[2];
180  int Backing;
181  double BackingColor[3];
182 
183 private:
184  vtkImageProperty(const vtkImageProperty&); // Not implemented.
185  void operator=(const vtkImageProperty&); // Not implemented.
186 };
187 
188 #endif
vtkScalarsToColors * LookupTable
abstract base class for most VTK objects
Definition: vtkObject.h:61
void SetInterpolationTypeToCubic()
#define VTK_LINEAR_INTERPOLATION
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
image display properties
#define VTK_CUBIC_INTERPOLATION
Superclass for mapping scalar values to colors.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGCORE_EXPORT
void SetInterpolationTypeToLinear()
void SetInterpolationTypeToNearest()
static vtkObject * New()
#define VTK_NEAREST_INTERPOLATION