Class VolumeHistogramEffect
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.Effects.Effect
-
- WildMagic.LibGraphics.Effects.ShaderEffect
-
- gov.nih.mipav.view.renderer.WildMagic.Render.VolumeHistogramEffect
-
- All Implemented Interfaces:
java.io.Serializable
,WildMagic.LibGraphics.ObjectSystem.NameIdInterface
,WildMagic.LibGraphics.ObjectSystem.StreamInterface
public class VolumeHistogramEffect extends WildMagic.LibGraphics.Effects.ShaderEffect implements WildMagic.LibGraphics.ObjectSystem.StreamInterface
The VolumePlaneEffect ShaderEffect creates shaders for mapping the volume data onto the planes for the 3-orthogonal planes displayed in the VolumeViewer and for the PlaneRender objects.- See Also:
GPUVolumeRender.java
,VolumeViewer.java
,PlaneRender.java
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
COLLAPSE_COLUMNS
static int
COLLAPSE_ROWS
(package private) int[]
m_aiExtents
(package private) float
m_fMin1
(package private) float
m_fMin2
(package private) float
m_fScale1
(package private) float
m_fScale2
(package private) float
m_fUseZSlice
(package private) float
m_fZSlice
(package private) int
m_iHeight
(package private) int
m_iWidth
(package private) WildMagic.LibFoundation.Mathematics.Matrix4f
m_kImageTransform
(package private) WildMagic.LibFoundation.Mathematics.Matrix4d
m_kImageTransformd
static int
NONE
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, int iType)
VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibFoundation.Mathematics.Matrix4f kImageTransform)
VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, float fMinA, float fMaxA, float fMinB, float fMaxB, int iWidth, int iHeight, WildMagic.LibFoundation.Mathematics.Matrix4f kImageTransform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
memory cleanup.void
OnLoadPrograms(int iPass, WildMagic.LibGraphics.Shaders.Program pkVProgram, WildMagic.LibGraphics.Shaders.Program pkPProgram, WildMagic.LibGraphics.Shaders.Program pkCProgram)
void
SetImageSize(int iX, int iY, int iZ)
void
SetTransform(WildMagic.LibFoundation.Mathematics.Matrix4d kMat)
void
SetTransform(WildMagic.LibFoundation.Mathematics.Matrix4f kMat)
void
UseZSlice()
void
ZSlice(float fZ)
-
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, RestoreGlobalState, Save, SaveStrings, SetCProgram, SetDefaultAlphaState, SetGlobalState, 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
-
COLLAPSE_COLUMNS
public static final int COLLAPSE_COLUMNS
- See Also:
- Constant Field Values
-
COLLAPSE_ROWS
public static final int COLLAPSE_ROWS
- See Also:
- Constant Field Values
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
m_fMin1
float m_fMin1
-
m_fMin2
float m_fMin2
-
m_fScale1
float m_fScale1
-
m_fScale2
float m_fScale2
-
m_iWidth
int m_iWidth
-
m_iHeight
int m_iHeight
-
m_aiExtents
int[] m_aiExtents
-
m_kImageTransform
WildMagic.LibFoundation.Mathematics.Matrix4f m_kImageTransform
-
m_kImageTransformd
WildMagic.LibFoundation.Mathematics.Matrix4d m_kImageTransformd
-
m_fZSlice
float m_fZSlice
-
m_fUseZSlice
float m_fUseZSlice
-
-
Constructor Detail
-
VolumeHistogramEffect
public VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, int iType)
-
VolumeHistogramEffect
public VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibFoundation.Mathematics.Matrix4f kImageTransform)
-
VolumeHistogramEffect
public VolumeHistogramEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, float fMinA, float fMaxA, float fMinB, float fMaxB, int iWidth, int iHeight, WildMagic.LibFoundation.Mathematics.Matrix4f kImageTransform)
-
-
Method Detail
-
dispose
public void dispose()
memory cleanup.- Overrides:
dispose
in classWildMagic.LibGraphics.Effects.ShaderEffect
-
OnLoadPrograms
public void OnLoadPrograms(int iPass, WildMagic.LibGraphics.Shaders.Program pkVProgram, WildMagic.LibGraphics.Shaders.Program pkPProgram, WildMagic.LibGraphics.Shaders.Program pkCProgram)
- Overrides:
OnLoadPrograms
in classWildMagic.LibGraphics.Effects.ShaderEffect
-
SetImageSize
public void SetImageSize(int iX, int iY, int iZ)
-
SetTransform
public void SetTransform(WildMagic.LibFoundation.Mathematics.Matrix4f kMat)
-
SetTransform
public void SetTransform(WildMagic.LibFoundation.Mathematics.Matrix4d kMat)
-
UseZSlice
public void UseZSlice()
-
ZSlice
public void ZSlice(float fZ)
-
-