VTK  9.4.20251007
vtkImageProperty.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
18
19#ifndef vtkImageProperty_h
20#define vtkImageProperty_h
21
22#include "vtkObject.h"
23#include "vtkRenderingCoreModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25
26VTK_ABI_NAMESPACE_BEGIN
28
29class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkImageProperty : public vtkObject
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
39
44
46
49 vtkSetMacro(ColorWindow, double);
50 vtkGetMacro(ColorWindow, double);
52
54
57 vtkSetMacro(ColorLevel, double);
58 vtkGetMacro(ColorLevel, double);
60
62
68 vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
70
72
81
83
89 vtkSetClampMacro(Opacity, double, 0.0, 1.0);
90 vtkGetMacro(Opacity, double);
92
94
97 vtkSetClampMacro(Ambient, double, 0.0, 1.0);
98 vtkGetMacro(Ambient, double);
100
102
105 vtkSetClampMacro(Diffuse, double, 0.0, 1.0);
106 vtkGetMacro(Diffuse, double);
108
110
114 vtkGetMacro(InterpolationType, int);
118 virtual const char* GetInterpolationTypeAsString();
120
122
126 vtkSetMacro(LayerNumber, int);
127 int GetLayerNumber() { return this->LayerNumber; }
129
131
136 vtkBooleanMacro(Checkerboard, vtkTypeBool);
139
141
144 vtkSetVector2Macro(CheckerboardSpacing, double);
145 vtkGetVector2Macro(CheckerboardSpacing, double);
147
149
153 vtkSetVector2Macro(CheckerboardOffset, double);
154 vtkGetVector2Macro(CheckerboardOffset, double);
156
158
164 vtkSetMacro(Backing, vtkTypeBool);
165 vtkBooleanMacro(Backing, vtkTypeBool);
166 vtkGetMacro(Backing, vtkTypeBool);
168
170
173 vtkSetVector3Macro(BackingColor, double);
174 vtkGetVector3Macro(BackingColor, double);
176
182
183protected:
186
193 double Opacity;
194 double Ambient;
195 double Diffuse;
200 double BackingColor[3];
201
202private:
203 vtkImageProperty(const vtkImageProperty&) = delete;
204 void operator=(const vtkImageProperty&) = delete;
205};
206
207VTK_ABI_NAMESPACE_END
208#endif
vtkTypeBool Checkerboard
void DeepCopy(vtkImageProperty *p)
Assign one property to another.
double CheckerboardOffset[2]
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.
double CheckerboardSpacing[2]
virtual void SetInterpolationType(int)
The interpolation type (default: VTK_LINEAR_INTERPOLATION).
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:29
Superclass for mapping scalar values to colors.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_CUBIC_INTERPOLATION
#define VTK_NEAREST_INTERPOLATION
#define VTK_LINEAR_INTERPOLATION
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_MARSHALAUTO