public class VtkImageVolume extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VtkImageVolume.VtkVolumeBlendType |
static class |
VtkImageVolume.VtkVolumeMapperType
Deprecated.
|
Constructor and Description |
---|
VtkImageVolume() |
Modifier and Type | Method and Description |
---|---|
double |
getAmbient()
Returns the ambient lighting coefficient (global)
|
VtkImageVolume.VtkVolumeBlendType |
getBlendingMode()
Returns the blending method for rendering.
|
double |
getDiffuse()
Returns the diffuse lighting coefficient (global)
|
boolean |
getGPURendering()
Returns true if selected volume mapper is the GPU accelerated raycaster.
|
int |
getInterpolationMode()
Returns the interpolation method for rendering.
|
double |
getSampleResolution()
Get the sample resolution of the raycaster volume rendering.
|
double[] |
getScale()
Returns the XYZ scaling of the volume image
|
boolean |
getShade()
Returns
true if shading is enabled (global) |
double |
getSpecular()
Returns the specular lighting coefficient (global)
|
double |
getSpecularPower()
Returns the specular power (global)
|
vtk.vtkVolume |
getVolume() |
vtk.vtkImageData |
getVolumeData()
Get the current volume image data object.
|
static boolean |
isMapperSupported(vtk.vtkRenderer renderer)
Deprecated.
Should always return true now.
|
boolean |
isPickable() |
boolean |
isVisible() |
void |
release() |
void |
setAmbient(double value)
Sets the ambient lighting coefficient (global)
|
void |
setBlendingMode(VtkImageVolume.VtkVolumeBlendType value)
Sets the blending method for rendering.
|
void |
setColorMap(vtk.vtkColorTransferFunction map,
int channel)
Sets the color map (
vtkColorTransferFunction ) used to render the specified channel of
image volume. |
void |
setDiffuse(double value)
Sets the diffuse lighting coefficient (global)
|
boolean |
setGPURendering(boolean value)
Enable GPU volume rendering.
|
void |
setInterpolationMode(int value)
Sets the interpolation method for rendering.
|
void |
setLUT(LUT.LUTChannel lutChannel,
int channel)
Sets the
LUT.LUTChannel used to render the specified channel of image volume. |
void |
setLUT(LUT value)
Sets the
LUT used to render the image volume. |
void |
setOpacityMap(vtk.vtkPiecewiseFunction map,
int channel)
Sets the opacity map (
vtkPiecewiseFunction ) used to render the specified channel of
image volume. |
void |
setPickable(boolean value) |
void |
setSampleResolution(double value)
Set sample resolution for the raycaster volume rendering.
|
void |
setScale(double[] xyz)
Sets the XYZ scaling of the volume image
|
void |
setScale(double x,
double y,
double z)
Sets the XYZ scaling of the volume image
|
void |
setShade(boolean value)
Enable / Disable the shading (global)
|
void |
setSpecular(double value)
Sets the specular lighting coefficient (global)
|
void |
setSpecularPower(double value)
Sets the specular power (global)
|
void |
setVisible(boolean value)
Sets the visible state of the image volume object
|
void |
setVolumeData(vtk.vtkImageData data)
Set the volume image data.
|
public VtkImageVolume()
public void release()
public vtk.vtkVolume getVolume()
public void setColorMap(vtk.vtkColorTransferFunction map, int channel)
vtkColorTransferFunction
) used to render the specified channel of
image volume.public void setOpacityMap(vtk.vtkPiecewiseFunction map, int channel)
vtkPiecewiseFunction
) used to render the specified channel of
image volume.public void setLUT(LUT.LUTChannel lutChannel, int channel)
LUT.LUTChannel
used to render the specified channel of image volume.public double getSampleResolution()
public void setSampleResolution(double value)
public boolean isPickable()
public void setPickable(boolean value)
public double[] getScale()
public void setScale(double x, double y, double z)
public void setScale(double[] xyz)
public boolean getShade()
true
if shading is enabled (global)public void setShade(boolean value)
public double getAmbient()
public void setAmbient(double value)
public double getDiffuse()
public void setDiffuse(double value)
public double getSpecular()
public void setSpecular(double value)
public double getSpecularPower()
public void setSpecularPower(double value)
public int getInterpolationMode()
public void setInterpolationMode(int value)
public boolean getGPURendering()
public boolean setGPURendering(boolean value)
value
- if true
then the GPU accelerated raycaster will be used otherwise the classical CPU
rayscaster is used.@Deprecated public static boolean isMapperSupported(vtk.vtkRenderer renderer)
public VtkImageVolume.VtkVolumeBlendType getBlendingMode()
public void setBlendingMode(VtkImageVolume.VtkVolumeBlendType value)
public vtk.vtkImageData getVolumeData()
public void setVolumeData(vtk.vtkImageData data)
public void setVisible(boolean value)
public boolean isVisible()