/usr/include/vtk-6.3/vtkImageProperty.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageProperty.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkImageProperty - image display properties
// .SECTION Description
// vtkImageProperty is an object that allows control of the display
// of an image slice.
// .SECTION Thanks
// Thanks to David Gobbi at the Seaman Family MR Centre and Dept. of Clinical
// Neurosciences, Foothills Medical Centre, Calgary, for providing this class.
// .SECTION See also
// vtkImage vtkImageMapper3D vtkImageSliceMapper vtkImageResliceMapper
#ifndef vtkImageProperty_h
#define vtkImageProperty_h
#include "vtkRenderingCoreModule.h" // For export macro
#include "vtkObject.h"
class vtkScalarsToColors;
class VTKRENDERINGCORE_EXPORT vtkImageProperty : public vtkObject
{
public:
vtkTypeMacro(vtkImageProperty,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Construct a property with no lookup table.
static vtkImageProperty *New();
// Description:
// Assign one property to another.
void DeepCopy(vtkImageProperty *p);
// Description:
// The window value for window/level.
vtkSetMacro(ColorWindow, double);
vtkGetMacro(ColorWindow, double);
// Description:
// The level value for window/level.
vtkSetMacro(ColorLevel, double);
vtkGetMacro(ColorLevel, double);
// Description:
// Specify a lookup table for the data. If the data is
// to be displayed as greyscale, or if the input data is
// already RGB, there is no need to set a lookup table.
virtual void SetLookupTable(vtkScalarsToColors *lut);
vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
// Description:
// Use the range that is set in the lookup table, instead
// of setting the range from the Window/Level settings.
// This is off by default.
vtkSetMacro(UseLookupTableScalarRange, int);
vtkGetMacro(UseLookupTableScalarRange, int);
vtkBooleanMacro(UseLookupTableScalarRange, int);
// Description:
// The opacity of the image, where 1.0 is opaque and 0.0 is
// transparent. If the image has an alpha component, then
// the alpha component will be multiplied by this value.
vtkSetClampMacro(Opacity, double, 0.0, 1.0);
vtkGetMacro(Opacity, double);
// Description:
// The ambient lighting coefficient. The default is 1.0.
vtkSetClampMacro(Ambient, double, 0.0, 1.0);
vtkGetMacro(Ambient, double);
// Description:
// The diffuse lighting coefficient. The default is 0.0.
vtkSetClampMacro(Diffuse, double, 0.0, 1.0);
vtkGetMacro(Diffuse, double);
// Description:
// The interpolation type (default: nearest neighbor).
vtkSetClampMacro(InterpolationType, int,
VTK_NEAREST_INTERPOLATION, VTK_CUBIC_INTERPOLATION);
vtkGetMacro(InterpolationType, int);
void SetInterpolationTypeToNearest() {
this->SetInterpolationType(VTK_NEAREST_INTERPOLATION); };
void SetInterpolationTypeToLinear() {
this->SetInterpolationType(VTK_LINEAR_INTERPOLATION); };
void SetInterpolationTypeToCubic() {
this->SetInterpolationType(VTK_CUBIC_INTERPOLATION); };
virtual const char *GetInterpolationTypeAsString();
// Description:
// Set the layer number. This is ignored unless the image is part
// of a vtkImageStack. The default layer number is zero.
vtkSetMacro(LayerNumber, int);
int GetLayerNumber()
{ return this->LayerNumber; }
// Description:
// Make a checkerboard pattern where the black squares are transparent.
// The pattern is aligned with the camera, and centered by default.
vtkSetMacro(Checkerboard, int);
vtkBooleanMacro(Checkerboard, int);
vtkGetMacro(Checkerboard, int);
// Description:
// The spacing for checkerboarding. This is in real units, not pixels.
vtkSetVector2Macro(CheckerboardSpacing, double);
vtkGetVector2Macro(CheckerboardSpacing, double);
// Description:
// The phase offset for checkerboarding, in units of spacing. Use a
// value between -1 and +1, where 1 is an offset of one squares.
vtkSetVector2Macro(CheckerboardOffset, double);
vtkGetVector2Macro(CheckerboardOffset, double);
// Description:
// Use an opaque backing polygon, which will be visible where the image
// is translucent. When images are in a stack, the backing polygons
// for all images will be drawn before any of the images in the stack,
// in order to allow the images in the stack to be composited.
vtkSetMacro(Backing, int);
vtkBooleanMacro(Backing, int);
vtkGetMacro(Backing, int);
// Description:
// Set the color of the backing polygon. The default color is black.
vtkSetVector3Macro(BackingColor, double);
vtkGetVector3Macro(BackingColor, double);
// Description:
// Get the MTime for this property. If the lookup table is set,
// the mtime will include the mtime of the lookup table.
unsigned long GetMTime();
protected:
vtkImageProperty();
~vtkImageProperty();
vtkScalarsToColors *LookupTable;
double ColorWindow;
double ColorLevel;
int UseLookupTableScalarRange;
int InterpolationType;
int LayerNumber;
double Opacity;
double Ambient;
double Diffuse;
int Checkerboard;
double CheckerboardSpacing[2];
double CheckerboardOffset[2];
int Backing;
double BackingColor[3];
private:
vtkImageProperty(const vtkImageProperty&); // Not implemented.
void operator=(const vtkImageProperty&); // Not implemented.
};
#endif
|