Class LatticeEffect

    • Field Detail

      • m_afScale

        protected float[] m_afScale
        The scale is stored at index 0, 1. The other values are unused.
      • m_afThreshold

        protected float[] m_afThreshold
    • Constructor Detail

      • LatticeEffect

        public LatticeEffect()
        streaming constructor
      • LatticeEffect

        public LatticeEffect​(java.lang.String acBaseName,
                             java.lang.String acGradName)
        Creates an LatticeEffect withe the texture images in the acBaseName and acGradName image files.
        Parameters:
        acBaseName - the base image texture.
        acGradName - the gradient image texture.
    • Method Detail

      • GetDiskUsed

        public int GetDiskUsed​(StreamVersion rkVersion)
        Returns the size of this object and it's children on disk for the current StreamVersion parameter.
        Specified by:
        GetDiskUsed in interface StreamInterface
        Overrides:
        GetDiskUsed in class ShaderEffect
        Parameters:
        rkVersion - the current version of the Stream file being created.
        Returns:
        the size of this object on disk.
      • GetScale

        public Vector2f GetScale()
        Parameters for the pixel program
        Returns:
        the direction of flow for the cloud effect.
      • GetThreshold

        public Vector2f GetThreshold()
        Parameters for the pixel program
        Returns:
        the direction of flow for the cloud effect.
      • Load

        public void Load​(Stream rkStream,
                         Stream.Link pkLink)
        Loads this object from the input parameter rkStream, using the input Stream.Link to store the IDs of children objects of this object for linking after all objects are loaded from the Stream.
        Specified by:
        Load in interface StreamInterface
        Overrides:
        Load in class ShaderEffect
        Parameters:
        rkStream - the Stream from which this object is being read.
        pkLink - the Link class for storing the IDs of this object's children objects.
      • OnLoadPrograms

        public void OnLoadPrograms​(int iPass,
                                   Program pkVProgram,
                                   Program pkPProgram,
                                   Program pkCProgram)
        Set the user-defined constants to use local storage.
        Overrides:
        OnLoadPrograms in class ShaderEffect
        Parameters:
        iPass -
        pkVProgram - the VertexProgram for this Effect
        pkPProgram - the PixelProgram for this Effect
      • Save

        public void Save​(Stream rkStream)
        Write this object and all it's children to the Stream.
        Specified by:
        Save in interface StreamInterface
        Overrides:
        Save in class ShaderEffect
        Parameters:
        rkStream - the Stream where the child objects are stored.
      • SaveStrings

        public StringTree SaveStrings​(java.lang.String acTitle)
        Write this object into a StringTree for the scene-graph visualization.
        Specified by:
        SaveStrings in interface StreamInterface
        Overrides:
        SaveStrings in class ShaderEffect
        Parameters:
        acTitle - the header for this object in the StringTree.
        Returns:
        StringTree containing a String-based representation of this object and it's children.
      • SetScale

        public void SetScale​(Vector2f rkScale)
        Parameters for the pixel program
        Parameters:
        rkScale -
      • SetThreshold

        public void SetThreshold​(Vector2f rkThreshold)
        Parameters for the pixel program
        Parameters:
        rkThreshold -