Class VSEMD_MultipleImages
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.Effects.Effect
-
- WildMagic.LibGraphics.Effects.ShaderEffect
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeClipEffect
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeShaderEffectMultiPass
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VSEMD_MultipleImages
-
- All Implemented Interfaces:
java.io.Serializable,WildMagic.LibGraphics.ObjectSystem.NameIdInterface,WildMagic.LibGraphics.ObjectSystem.StreamInterface
public class VSEMD_MultipleImages extends VolumeShaderEffectMultiPass implements WildMagic.LibGraphics.ObjectSystem.StreamInterface
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringbasicParametersprivate static java.lang.StringblendParametersprivate static java.lang.StringclipAEParametersprivate static java.lang.StringclipAESetupprivate static java.lang.StringclipEllipsoidSetupprivate static java.lang.StringclipEndprivate static java.lang.StringclipOBBParametersprivate static java.lang.StringclipOBBSetupprivate static java.lang.StringclipParametersprivate static java.lang.StringclipSetupprivate static java.lang.StringclipSphereParametersprivate static java.lang.StringclipSphereSetupprivate VolumeImage[]hyperstackprivate WildMagic.LibGraphics.Rendering.TexturehyperstackColormapprivate boolean[]imageOnprivate java.lang.String[]lutprivate static java.lang.StringmainEndprivate static java.lang.StringmainSetupprivate static longserialVersionUID-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeShaderEffectMultiPass
CMP, CMP_SUR, CUSTOM, DRR, m_aafLight, m_afABBlendParam, m_afBlendParam, m_akLevWidget, m_bGradientMag, m_bMultiHisto, m_fMaxLength, m_fSamples, m_iBlend, m_iDstBlend, m_iPasses, m_iSrcBlend, m_iUsedWidgets, m_iWhichShader, m_kBlendColor, m_kPShaderCMP, m_kRGBT, m_kSceneTarget, m_kVolumeImageA, m_kVolumeImageB, m_pkVShader, MIP, ms_iMaxSamples, ms_iNumLev, ms_MaxLights, SUR
-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeClipEffect
CLIP_A, CLIP_A_INV, CLIP_EYE, CLIP_EYE_INV, CLIP_X, CLIP_X_INV, CLIP_Y, CLIP_Y_INV, CLIP_Z, CLIP_Z_INV, m_aafClipData, m_afClipAll, m_afClipOBBAxis0, m_afClipOBBAxis1, m_afClipOBBAxis2, m_afClipOBBExtent, m_afClipSphereCenter, m_afClipSphereScale, m_afDoClip, m_afVolumeMatrix, m_bClipOBB, m_bClipSphere, MAX_CLIP_PLANES
-
-
Constructor Summary
Constructors Constructor Description VSEMD_MultipleImages(VolumeImage[] volumeImages, WildMagic.LibGraphics.Rendering.Texture colormap, WildMagic.LibGraphics.Rendering.Texture kSceneTarget)Creates a new VolumeShaderEffect object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidBlend(float fBlend)Sets the blend factor shader parameter between imageA and imageB.private voidcheckPixelProgram()private java.lang.StringcreateProgramText()protected voidCreateVolumeTexture()The VolumeShaderEffect.CreateVolumeTexture() function constructs and initializes the vertex and pixel shader programs for volume rendering.voiddispose()memory cleanup.booleanGetImageOn(int which)voidprintProgram()voidsetABBlend(float fBlend)Sets the blend factor shader parameter between imageA and imageB.voidSetClip(int iWhich, float data, boolean bEnable)Enable and set the axis-aligned clip plane.voidSetClipArb(float[] afEquation, boolean bEnable)Enable and set the arbitrary clip plane.voidSetClipEye(float[] afEquation, boolean bEnable)Enable and set the eye clip plane.voidSetClipEyeInv(float[] afEquation, boolean bEnable)Enable and set the inverse-eye clip plane.voidSetClipOBB(WildMagic.LibFoundation.Mathematics.Vector3f center, WildMagic.LibFoundation.Mathematics.Vector3f scale, WildMagic.LibFoundation.Mathematics.Vector3f[] axes, float[] extents, boolean bEnable)voidSetClipSphere(WildMagic.LibFoundation.Mathematics.Vector3f center, WildMagic.LibFoundation.Mathematics.Vector3f scale, float radius, boolean bEnable)voidSetImageOn(int which, boolean on)-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeShaderEffectMultiPass
CMPMode, DRRMode, getABBlend, GetGradientMagnitude, MIPMode, MULTIHISTOMode, OnLoadPrograms, Reload, RestoreGlobalState, SaveStrings, SelfShadow, SetBackgroundColor, SetColorImage, setCurrentShader, SetCustomBlend, SetDefaultAlphaState, SetGlobalState, SetGradientMagnitude, SetLight, setMaxLength, setRGBTA, setRGBTB, setVolumeSamples, SURFASTMode, SURMode, updateLevWidgetState, updateLevWidgetState
-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Render.VolumeClipEffect
getClip, getClipArb, getClipArbInv, getClipEnable, getClipEye, getClipEyeInv, getClipInv, getClipInvEnable, isClip, isClipAE, isClipOBB, isClipSphere, ResetClip, SetClipArbInv, setVolumeMatrix
-
Methods inherited from class WildMagic.LibGraphics.Effects.ShaderEffect
GetAllObjectsByName, GetBlending, GetCProgram, GetDiskUsed, GetObjectByID, GetObjectByName, GetPassQuantity, GetPProgram, GetSamplerInformation, GetTexture, GetTexture, GetTextureQuantity, GetVProgram, Link, Load, LoadPrograms, LoadResources, OnReleasePrograms, Register, ReleasePrograms, ReleaseResources, Save, SetCProgram, SetPassQuantity, SetPShader, SetVShader
-
Methods inherited from class WildMagic.LibGraphics.ObjectSystem.GraphicsObject
GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
basicParameters
private static java.lang.String basicParameters
-
blendParameters
private static java.lang.String blendParameters
-
clipParameters
private static java.lang.String clipParameters
-
clipAEParameters
private static java.lang.String clipAEParameters
-
clipSphereParameters
private static java.lang.String clipSphereParameters
-
clipOBBParameters
private static java.lang.String clipOBBParameters
-
mainSetup
private static java.lang.String mainSetup
-
mainEnd
private static java.lang.String mainEnd
-
clipSetup
private static java.lang.String clipSetup
-
clipEnd
private static java.lang.String clipEnd
-
clipAESetup
private static java.lang.String clipAESetup
-
clipEllipsoidSetup
private static java.lang.String clipEllipsoidSetup
-
clipSphereSetup
private static java.lang.String clipSphereSetup
-
clipOBBSetup
private static java.lang.String clipOBBSetup
-
imageOn
private boolean[] imageOn
-
hyperstack
private VolumeImage[] hyperstack
-
hyperstackColormap
private WildMagic.LibGraphics.Rendering.Texture hyperstackColormap
-
lut
private java.lang.String[] lut
-
-
Constructor Detail
-
VSEMD_MultipleImages
public VSEMD_MultipleImages(VolumeImage[] volumeImages, WildMagic.LibGraphics.Rendering.Texture colormap, WildMagic.LibGraphics.Rendering.Texture kSceneTarget)
Creates a new VolumeShaderEffect object.- Parameters:
kImageA- the VolumeImage containing the data and textures for rendering.kVolumeImageB- second VolumeImage.kSceneTarget- the SceneImage texture with the back-facing polygon texture coordinates.
-
-
Method Detail
-
CreateVolumeTexture
protected void CreateVolumeTexture()
The VolumeShaderEffect.CreateVolumeTexture() function constructs and initializes the vertex and pixel shader programs for volume rendering. The vertex shader is the same for each rendering type: MIP, DDR, Composite, Surface, and Composite Surface. The pixel shaders are different for each.- Overrides:
CreateVolumeTexturein classVolumeShaderEffectMultiPass
-
Blend
public void Blend(float fBlend)
Sets the blend factor shader parameter between imageA and imageB.- Overrides:
Blendin classVolumeShaderEffectMultiPass- Parameters:
fBlend- blend factor (range = 0-1).
-
setABBlend
public void setABBlend(float fBlend)
Description copied from class:VolumeShaderEffectMultiPassSets the blend factor shader parameter between imageA and imageB.- Overrides:
setABBlendin classVolumeShaderEffectMultiPass- Parameters:
fBlend- blend factor (range = 0-1).
-
dispose
public void dispose()
memory cleanup.- Overrides:
disposein classVolumeShaderEffectMultiPass
-
printProgram
public void printProgram()
- Overrides:
printProgramin classVolumeShaderEffectMultiPass
-
SetClip
public void SetClip(int iWhich, float data, boolean bEnable)Description copied from class:VolumeClipEffectEnable and set the axis-aligned clip plane.- Overrides:
SetClipin classVolumeClipEffect- Parameters:
iWhich- one of 6 clip-planes to set.data- the distance to the clip-plane.
-
SetClipArb
public void SetClipArb(float[] afEquation, boolean bEnable)Description copied from class:VolumeClipEffectEnable and set the arbitrary clip plane.- Overrides:
SetClipArbin classVolumeClipEffect- Parameters:
afEquation- the clip-plane equation.
-
SetClipEye
public void SetClipEye(float[] afEquation, boolean bEnable)Description copied from class:VolumeClipEffectEnable and set the eye clip plane.- Overrides:
SetClipEyein classVolumeClipEffect- Parameters:
afEquation- the clip-plane equation.
-
SetClipEyeInv
public void SetClipEyeInv(float[] afEquation, boolean bEnable)Description copied from class:VolumeClipEffectEnable and set the inverse-eye clip plane.- Overrides:
SetClipEyeInvin classVolumeClipEffect- Parameters:
afEquation- the clip-plane equation.
-
SetClipSphere
public void SetClipSphere(WildMagic.LibFoundation.Mathematics.Vector3f center, WildMagic.LibFoundation.Mathematics.Vector3f scale, float radius, boolean bEnable)- Overrides:
SetClipSpherein classVolumeClipEffect
-
SetClipOBB
public void SetClipOBB(WildMagic.LibFoundation.Mathematics.Vector3f center, WildMagic.LibFoundation.Mathematics.Vector3f scale, WildMagic.LibFoundation.Mathematics.Vector3f[] axes, float[] extents, boolean bEnable)- Overrides:
SetClipOBBin classVolumeClipEffect
-
SetImageOn
public void SetImageOn(int which, boolean on)
-
GetImageOn
public boolean GetImageOn(int which)
-
checkPixelProgram
private void checkPixelProgram()
-
createProgramText
private java.lang.String createProgramText()
-
-