27 #ifndef vtkTexturePainter_h 28 #define vtkTexturePainter_h 30 #include "vtkPVVTKExtensionsRenderingModule.h" 31 #include "vtkPainter.h" 34 class vtkInformationIntegerKey;
35 class vtkInformationObjectBaseKey;
36 class vtkInformationStringKey;
37 class vtkScalarsToColors;
45 void PrintSelf(ostream& os, vtkIndent indent);
51 static vtkInformationIntegerKey* SLICE();
56 static vtkInformationIntegerKey* SLICE_MODE();
67 static vtkInformationIntegerKey* MAP_SCALARS();
74 static vtkInformationObjectBaseKey* LOOKUP_TABLE();
83 static vtkInformationIntegerKey* SCALAR_MODE();
84 vtkSetMacro(ScalarMode,
int);
85 vtkGetMacro(ScalarMode,
int);
96 static vtkInformationStringKey* SCALAR_ARRAY_NAME();
97 vtkSetStringMacro(ScalarArrayName);
98 vtkGetStringMacro(ScalarArrayName);
106 static vtkInformationIntegerKey* SCALAR_ARRAY_INDEX();
107 vtkSetMacro(ScalarArrayIndex,
int);
108 vtkGetMacro(ScalarArrayIndex,
int);
117 vtkSetMacro(Slice,
int);
118 vtkGetMacro(Slice,
int);
126 vtkSetClampMacro(SliceMode,
int, YZ_PLANE, XY_PLANE);
127 vtkGetMacro(SliceMode,
int);
133 void SetLookupTable(vtkScalarsToColors*);
141 vtkSetMacro(MapScalars,
int);
142 vtkGetMacro(MapScalars,
int);
150 static vtkInformationIntegerKey* USE_XY_PLANE();
151 vtkSetClampMacro(UseXYPlane,
int, 0, 1);
152 vtkBooleanMacro(UseXYPlane,
int);
153 vtkGetMacro(UseXYPlane,
int);
163 virtual void ReleaseGraphicsResources(vtkWindow*);
165 vtkSetVector6Macro(WholeExtent,
int);
175 virtual void ProcessInformation(vtkInformation*);
184 virtual void RenderInternal(
185 vtkRenderer* renderer, vtkActor* actor,
unsigned long typeflags,
bool forceCompileOnly);
191 int SetupScalars(vtkImageData* input);
205 float QuadPoints[4][3];
vtkScalarsToColors * LookupTable
renders a slice of vtkImageData by loading the slice as a texture and then applying it to a quad...