Class 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
    • 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
      • Methods inherited from class WildMagic.LibGraphics.Effects.Effect

        Draw
      • Methods inherited from class WildMagic.LibGraphics.ObjectSystem.GraphicsObject

        GetID, GetName, GetNextID, GetObjectByIDBase, GetObjectByNameBase, SetName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 class WildMagic.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 class WildMagic.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)