Interface RendererInterfaceColor
-
- All Known Implementing Classes:
RayCastColor
,RayCastColorComposite
,RayCastColorDRR
,RayCastColorLighting
,RayCastColorMIP
,RayCastColorReflection
,ShearWarpColor
,ShearWarpColorComposite
,ShearWarpColorDRR
,ShearWarpColorLighting
,ShearWarpColorMIP
public interface RendererInterfaceColor
An interface to be used to color-based Renderer implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasInputData()
Return indication as to whether or not the input image data has been specified yet.boolean
hasInputMap()
Return indication as to whether or not a map has been defined for mapping input colors to intensity.void
setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA)
Specify the input volume to use for rendering.void
setInputMap(RendererMapColor kMap)
Specify the lookup table to use for mapping input RGB colors to intensity.
-
-
-
Method Detail
-
hasInputData
boolean hasInputData()
Return indication as to whether or not the input image data has been specified yet.- Returns:
- boolean True if the input image data has been specified.
-
hasInputMap
boolean hasInputMap()
Return indication as to whether or not a map has been defined for mapping input colors to intensity.- Returns:
- boolean True if such a map has been defined.
-
setInput
void setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA)
Specify the input volume to use for rendering. The image data stored in order of slice indices, each slice stored in row-major order. That is, slice z=0 is stored first, slice z=1 is stored next, and so on. In slice z=0, the y=0 row is stored first, the y=1 row is stored next, and so on.- Parameters:
acImageR
- byte[] Array of byte red values for volume.acImageG
- byte[] Array of byte green values for volume.acImageB
- byte[] Array of byte blue values for volume.acImageA
- byte[] Array of byte alpha values for volume.
-
setInputMap
void setInputMap(RendererMapColor kMap)
Specify the lookup table to use for mapping input RGB colors to intensity.- Parameters:
kMap
- Look up table for mapping the color values to intensity.
-
-