Class LineMinimizationEffect
- java.lang.Object
-
- WildMagic.LibGraphics.ObjectSystem.GraphicsObject
-
- WildMagic.LibGraphics.Effects.Effect
-
- WildMagic.LibGraphics.Effects.ShaderEffect
-
- gov.nih.mipav.view.renderer.WildMagic.Render.LineMinimizationEffect
-
- All Implemented Interfaces:
java.io.Serializable
,WildMagic.LibGraphics.ObjectSystem.NameIdInterface
,WildMagic.LibGraphics.ObjectSystem.StreamInterface
public class LineMinimizationEffect extends WildMagic.LibGraphics.Effects.ShaderEffect
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) float[]
m_afPt
(package private) float[]
m_afStartPoint
(package private) float[]
m_afUnitDirections
(package private) int[]
m_aiExtents
private float
m_dNumSamples
(package private) float
m_fDim
(package private) float
m_fMin1
(package private) float
m_fMin2
private float
m_fMinDist
(package private) float
m_fPtLength
(package private) float
m_fRigid
(package private) float
m_fScale1
(package private) float
m_fScale2
private float
m_fUnitTolerance
(package private) int
m_iHeight
(package private) int
m_iWidth
(package private) WildMagic.LibFoundation.Mathematics.Matrix4f
m_kFromOrigin
(package private) WildMagic.LibFoundation.Mathematics.Matrix4f
m_kToOrigin
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexBracket, boolean bIs2D, WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin, float rigid, float dim, float[] startPoint, float[] pt, float ptLength, float[] unitDirections, float unit_tolerance, float fMinDist)
LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, float fMinDist, float dNumSamples, int iDim)
LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, WildMagic.LibGraphics.Rendering.Texture kTexBracket, float fMinA, float fMaxA, float fMinB, float fMaxB, int iWidth, int iHeight)
-
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
setDim(float fDim)
void
SetImageSize(int iX, int iY, int iZ)
void
setMinDist(float fMinDist)
void
SetOrigin(WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin)
void
setPt(float[] pt, float ptLength)
void
setRigid(float fRigid)
void
setStartPoint(float[] startPoint)
void
setUnitDirections(float[] directions)
void
updateParameters(WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin, float rigid, float dim, float[] startPoint, float[] pt, float ptLength, float[] unitDirections, float unit_tolerance, float fMinDist)
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- 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_kToOrigin
WildMagic.LibFoundation.Mathematics.Matrix4f m_kToOrigin
-
m_kFromOrigin
WildMagic.LibFoundation.Mathematics.Matrix4f m_kFromOrigin
-
m_fRigid
float m_fRigid
-
m_fDim
float m_fDim
-
m_afStartPoint
float[] m_afStartPoint
-
m_afPt
float[] m_afPt
-
m_fPtLength
float m_fPtLength
-
m_afUnitDirections
float[] m_afUnitDirections
-
m_fUnitTolerance
private float m_fUnitTolerance
-
m_fMinDist
private float m_fMinDist
-
m_dNumSamples
private float m_dNumSamples
-
-
Constructor Detail
-
LineMinimizationEffect
public LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexBracket, boolean bIs2D, WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin, float rigid, float dim, float[] startPoint, float[] pt, float ptLength, float[] unitDirections, float unit_tolerance, float fMinDist)
-
LineMinimizationEffect
public LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, float fMinDist, float dNumSamples, int iDim)
-
LineMinimizationEffect
public LineMinimizationEffect(WildMagic.LibGraphics.Rendering.Texture kTexA, WildMagic.LibGraphics.Rendering.Texture kTexB, WildMagic.LibGraphics.Rendering.Texture kTexBracket, float fMinA, float fMaxA, float fMinB, float fMaxB, int iWidth, int iHeight)
-
-
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
-
setDim
public void setDim(float fDim)
-
SetImageSize
public void SetImageSize(int iX, int iY, int iZ)
-
setMinDist
public void setMinDist(float fMinDist)
-
SetOrigin
public void SetOrigin(WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin)
-
setPt
public void setPt(float[] pt, float ptLength)
-
setRigid
public void setRigid(float fRigid)
-
setStartPoint
public void setStartPoint(float[] startPoint)
-
setUnitDirections
public void setUnitDirections(float[] directions)
-
updateParameters
public void updateParameters(WildMagic.LibFoundation.Mathematics.Matrix4f kToOrigin, WildMagic.LibFoundation.Mathematics.Matrix4f kFromOrigin, float rigid, float dim, float[] startPoint, float[] pt, float ptLength, float[] unitDirections, float unit_tolerance, float fMinDist)
-
-