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 "vtkObject.h"
37 
38 class vtkScalarsToColors;
39 
41 {
42 public:
43  vtkTypeMacro(vtkImageProperty,vtkObject);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  static vtkImageProperty *New();
48 
50  void DeepCopy(vtkImageProperty *p);
51 
53 
54  vtkSetMacro(ColorWindow, double);
55  vtkGetMacro(ColorWindow, double);
57 
59 
60  vtkSetMacro(ColorLevel, double);
61  vtkGetMacro(ColorLevel, double);
63 
65 
68  virtual void SetLookupTable(vtkScalarsToColors *lut);
69  vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
71 
73 
75  vtkSetMacro(UseLookupTableScalarRange, int);
76  vtkGetMacro(UseLookupTableScalarRange, int);
77  vtkBooleanMacro(UseLookupTableScalarRange, int);
79 
81 
84  vtkSetClampMacro(Opacity, double, 0.0, 1.0);
85  vtkGetMacro(Opacity, double);
87 
89 
90  vtkSetClampMacro(Ambient, double, 0.0, 1.0);
91  vtkGetMacro(Ambient, double);
93 
95 
96  vtkSetClampMacro(Diffuse, double, 0.0, 1.0);
97  vtkGetMacro(Diffuse, double);
99 
101 
102  vtkSetClampMacro(InterpolationType, int,
104  vtkGetMacro(InterpolationType, int);
106  this->SetInterpolationType(VTK_NEAREST_INTERPOLATION); };
108  this->SetInterpolationType(VTK_LINEAR_INTERPOLATION); };
110  this->SetInterpolationType(VTK_CUBIC_INTERPOLATION); };
111  virtual const char *GetInterpolationTypeAsString();
113 
115 
117  vtkSetMacro(LayerNumber, int);
118  int GetLayerNumber() { return this->LayerNumber; }
120 
122 
124  vtkSetMacro(Checkerboard, int);
125  vtkBooleanMacro(Checkerboard, int);
126  vtkGetMacro(Checkerboard, int);
128 
130 
131  vtkSetVector2Macro(CheckerboardSpacing, double);
132  vtkGetVector2Macro(CheckerboardSpacing, double);
134 
136 
138  vtkSetVector2Macro(CheckerboardOffset, double);
139  vtkGetVector2Macro(CheckerboardOffset, double);
141 
143 
147  vtkSetMacro(Backing, int);
148  vtkBooleanMacro(Backing, int);
149  vtkGetMacro(Backing, int);
151 
153 
154  vtkSetVector3Macro(BackingColor, double);
155  vtkGetVector3Macro(BackingColor, double);
157 
160  unsigned long GetMTime();
161 
162 protected:
164  ~vtkImageProperty();
165 
167  double ColorWindow;
168  double ColorLevel;
172  double Opacity;
173  double Ambient;
174  double Diffuse;
176  double CheckerboardSpacing[2];
177  double CheckerboardOffset[2];
178  int Backing;
179  double BackingColor[3];
180 
181 private:
182  vtkImageProperty(const vtkImageProperty&); // Not implemented.
183  void operator=(const vtkImageProperty&); // Not implemented.
184 };
185 
186 #endif