55 #ifndef vtkVolumeProperty_h
56 #define vtkVolumeProperty_h
59 #include "vtkRenderingCoreModule.h"
104 vtkSetClampMacro(IndependentComponents,
vtkTypeBool, 0, 1);
106 vtkBooleanMacro(IndependentComponents,
vtkTypeBool);
114 vtkSetClampMacro(InterpolationType,
int,
116 vtkGetMacro(InterpolationType,
int);
121 const char *GetInterpolationTypeAsString(
void);
129 virtual void SetComponentWeight(
int index,
double value);
130 virtual double GetComponentWeight(
int index);
140 { this->SetColor(0,
function); }
150 { this->SetColor(0,
function); }
156 int GetColorChannels(
int index);
158 {
return this->GetColorChannels(0); }
167 {
return this->GetGrayTransferFunction(0); }
176 {
return this->GetRGBTransferFunction(0); }
184 { this->SetScalarOpacity(0,
function); }
193 {
return this->GetScalarOpacity(0); }
202 void SetScalarOpacityUnitDistance(
int index,
double distance);
204 { this->SetScalarOpacityUnitDistance(0, distance); }
205 double GetScalarOpacityUnitDistance(
int index);
207 {
return this->GetScalarOpacityUnitDistance(0); }
217 { this->SetGradientOpacity(0,
function); }
229 this->SetTransferFunction2D(0,
function);
235 return this->GetTransferFunction2D(0);
251 vtkSetClampMacro(TransferFunctionMode,
int, 0, 1)
252 vtkGetMacro(TransferFunctionMode,
int)
265 {
return this->GetGradientOpacity(0); }
275 virtual void SetDisableGradientOpacity(
int index,
int value);
277 { this->SetDisableGradientOpacity(0,
value); }
279 { this->SetDisableGradientOpacity(
index, 1); }
281 { this->DisableGradientOpacityOn(0); }
283 { this->SetDisableGradientOpacity(
index, 0); }
285 { this->DisableGradientOpacityOff(0); }
286 virtual int GetDisableGradientOpacity(
int index);
288 {
return this->GetDisableGradientOpacity(0); }
291 {
return this->GetStoredGradientOpacity(0); }
301 switch(this->TransferFunctionMode) {
302 case TF_1D:
return (this->GradientOpacity[
index] !=
nullptr);
303 case TF_2D:
return true;
331 { this->SetShade(0,
value); }
332 int GetShade(
int index);
334 {
return this->GetShade(0); }
335 void ShadeOn(
int index);
337 { this->ShadeOn(0); }
338 void ShadeOff(
int index);
340 { this->ShadeOff(0); }
349 { this->SetAmbient(0,
value); }
350 double GetAmbient(
int index);
352 {
return this->GetAmbient(0); }
361 { this->SetDiffuse(0,
value); }
362 double GetDiffuse(
int index);
364 {
return this->GetDiffuse(0); }
373 { this->SetSpecular(0,
value); }
374 double GetSpecular(
int index);
376 {
return this->GetSpecular(0); }
383 void SetSpecularPower(
int index,
double value);
385 { this->SetSpecularPower(0,
value); }
386 double GetSpecularPower(
int index);
388 {
return this->GetSpecularPower(0); }
412 {
return this->GetGradientOpacityMTime(0); }
420 {
return this->GetScalarOpacityMTime(0); }
428 {
return this->GetRGBTransferFunctionMTime(0); }
436 {
return this->GetGrayTransferFunctionMTime(0); }
448 vtkSetMacro(UseClippedVoxelIntensity,
int);
449 vtkGetMacro(UseClippedVoxelIntensity,
int);
450 vtkBooleanMacro(UseClippedVoxelIntensity,
int);
463 vtkSetMacro(ClippedVoxelIntensity,
double);
464 vtkGetMacro(ClippedVoxelIntensity,
double);
479 return this->GetTransferFunction2DMTime(0);
482 virtual void CreateDefaultGradientOpacity(
int index);
538 return "Nearest Neighbor";