VTK  9.1.0
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=========================================================================*/
37#ifndef vtkImageProperty_h
38#define vtkImageProperty_h
39
40#include "vtkObject.h"
41#include "vtkRenderingCoreModule.h" // For export macro
42
44
45class VTKRENDERINGCORE_EXPORT vtkImageProperty : public vtkObject
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
55
60
62
65 vtkSetMacro(ColorWindow, double);
66 vtkGetMacro(ColorWindow, double);
68
70
73 vtkSetMacro(ColorLevel, double);
74 vtkGetMacro(ColorLevel, double);
76
78
84 vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
86
88
93 vtkSetMacro(UseLookupTableScalarRange, vtkTypeBool);
94 vtkGetMacro(UseLookupTableScalarRange, vtkTypeBool);
95 vtkBooleanMacro(UseLookupTableScalarRange, vtkTypeBool);
97
99
105 vtkSetClampMacro(Opacity, double, 0.0, 1.0);
106 vtkGetMacro(Opacity, double);
108
110
113 vtkSetClampMacro(Ambient, double, 0.0, 1.0);
114 vtkGetMacro(Ambient, double);
116
118
121 vtkSetClampMacro(Diffuse, double, 0.0, 1.0);
122 vtkGetMacro(Diffuse, double);
124
126
129 vtkSetClampMacro(InterpolationType, int, VTK_NEAREST_INTERPOLATION, VTK_CUBIC_INTERPOLATION);
130 vtkGetMacro(InterpolationType, int);
131 void SetInterpolationTypeToNearest() { this->SetInterpolationType(VTK_NEAREST_INTERPOLATION); }
132 void SetInterpolationTypeToLinear() { this->SetInterpolationType(VTK_LINEAR_INTERPOLATION); }
133 void SetInterpolationTypeToCubic() { this->SetInterpolationType(VTK_CUBIC_INTERPOLATION); }
134 virtual const char* GetInterpolationTypeAsString();
136
138
142 vtkSetMacro(LayerNumber, int);
143 int GetLayerNumber() { return this->LayerNumber; }
145
147
151 vtkSetMacro(Checkerboard, vtkTypeBool);
152 vtkBooleanMacro(Checkerboard, vtkTypeBool);
153 vtkGetMacro(Checkerboard, vtkTypeBool);
155
157
160 vtkSetVector2Macro(CheckerboardSpacing, double);
161 vtkGetVector2Macro(CheckerboardSpacing, double);
163
165
169 vtkSetVector2Macro(CheckerboardOffset, double);
170 vtkGetVector2Macro(CheckerboardOffset, double);
172
174
180 vtkSetMacro(Backing, vtkTypeBool);
181 vtkBooleanMacro(Backing, vtkTypeBool);
182 vtkGetMacro(Backing, vtkTypeBool);
184
186
189 vtkSetVector3Macro(BackingColor, double);
190 vtkGetVector3Macro(BackingColor, double);
192
198
199protected:
202
209 double Opacity;
210 double Ambient;
211 double Diffuse;
213 double CheckerboardSpacing[2];
214 double CheckerboardOffset[2];
216 double BackingColor[3];
217
218private:
219 vtkImageProperty(const vtkImageProperty&) = delete;
220 void operator=(const vtkImageProperty&) = delete;
221};
222
223#endif
image display properties
vtkTypeBool Checkerboard
void DeepCopy(vtkImageProperty *p)
Assign one property to another.
virtual void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the data.
virtual const char * GetInterpolationTypeAsString()
The interpolation type (default: VTK_LINEAR_INTERPOLATION).
void SetInterpolationTypeToLinear()
The interpolation type (default: VTK_LINEAR_INTERPOLATION).
vtkScalarsToColors * LookupTable
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetLayerNumber()
Set the layer number.
~vtkImageProperty() override
static vtkImageProperty * New()
Construct a property with no lookup table.
vtkTypeBool UseLookupTableScalarRange
vtkMTimeType GetMTime() override
Get the MTime for this property.
void SetInterpolationTypeToCubic()
The interpolation type (default: VTK_LINEAR_INTERPOLATION).
void SetInterpolationTypeToNearest()
The interpolation type (default: VTK_LINEAR_INTERPOLATION).
a simple class to control print indentation
Definition: vtkIndent.h:43
abstract base class for most VTK objects
Definition: vtkObject.h:63
Superclass for mapping scalar values to colors.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_CUBIC_INTERPOLATION
#define VTK_NEAREST_INTERPOLATION
#define VTK_LINEAR_INTERPOLATION
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287