25 #ifndef __vtkKWVolumePropertyHelper_h
26 #define __vtkKWVolumePropertyHelper_h
28 #include "vtkObject.h"
31 class vtkVolumeProperty;
40 void PrintSelf(ostream& os, vtkIndent indent);
50 ScalarOpacityRamp0At0To20At100 = 0,
60 ScalarOpacitySteps0To25Then20To50Then40To75Then100To100
63 static void ApplyScalarOpacityPreset(
64 vtkVolumeProperty *prop,
int comp,
int preset);
81 RGBTransferFunctionRampAt0At100 = 0,
88 RGBTransferFunctionStepsTo25To50To75To100
91 static void ApplyRGBTransferFunctionPreset(
92 vtkVolumeProperty *prop,
int comp,
int preset,
93 int nb_colors,
double **rgb);
94 static void ApplyRGBTransferFunctionPreset(
95 vtkVolumeProperty *prop,
int comp,
int preset,
97 static void ApplyRGBTransferFunctionPreset(
98 vtkVolumeProperty *prop,
int comp,
int preset,
99 double rgb1[3],
double rgb2[3]);
100 static void ApplyRGBTransferFunctionPreset(
101 vtkVolumeProperty *prop,
int comp,
int preset,
102 double rgb1[3],
double rgb2[3],
double rgb3[3]);
103 static void ApplyRGBTransferFunctionPreset(
104 vtkVolumeProperty *prop,
int comp,
int preset,
105 double rgb1[3],
double rgb2[3],
double rgb3[3],
double rgb4[3]);
115 GradientOpacityNoEdge = 0,
121 GradientOpacityStrongEdge
124 static void ApplyGradientOpacityPreset(
125 vtkVolumeProperty *prop,
int comp,
int preset);
133 LightingFullAmbient = 0,
145 static void ApplyLightingPreset(
146 vtkVolumeProperty *prop,
int comp,
int preset);
210 static void ApplyPreset(vtkVolumeProperty *prop,
int preset);
229 static double* GetRGBColor(
int preset);
237 static void ConvertNormalizedRange(
238 vtkVolumeProperty *normalized_prop,
239 vtkVolumeProperty *target_prop,
241 int independent_component,
252 static void ApplyPresetAndConvertNormalizedRange(
254 vtkVolumeProperty *target_prop,
256 int independent_component,
262 static void DeepCopyVolumeProperty(
263 vtkVolumeProperty *target, vtkVolumeProperty *source);
271 CopySkipOpacityUnitDistance = 1,
272 CopySkipIndependentComponents = 2
275 static void CopyVolumeProperty(
276 vtkVolumeProperty *target, vtkVolumeProperty *source,
int options);