Class FlyPathGraphSamples


  • public class FlyPathGraphSamples
    extends FlyPathGraph
    Extension of the FlyPathGraph class which allows for the storage of the samples used to generate the individual curves where curves are the nodes of the graph.
    • Field Detail

      • m_kListArrayPointKey

        protected java.util.ArrayList<int[]> m_kListArrayPointKey
        Storage for the arrays of keys and , positions for each curve. The size of these arrays must match and the entries must correspond for the same index. The size of these arrays must also match the size of the arrays in the base class, and must correspond for the same index.
      • m_kListArrayPointPosition

        protected java.util.ArrayList<WildMagic.LibFoundation.Mathematics.Vector3f[]> m_kListArrayPointPosition
        DOCUMENT ME!
    • Constructor Detail

      • FlyPathGraphSamples

        public FlyPathGraphSamples()
        Constructor. Initially empty path with no branches.
    • Method Detail

      • add

        public void add​(int[] aiPointKey,
                        WildMagic.LibFoundation.Mathematics.Vector3f[] akPointPosition)
        Add the following information for a "branch" path of the graph: an array of key values for each point along the path, an array of 3D coordinates assoicated with each point, and an array of distances each point is from its nearest boundary.
        Parameters:
        aiPointKey - int[] Array of unique integer key values associated with each point along the path.
        akPointPosition - Point3f[] Array of 3D positions associated with each point along the path.
        Throws:
        java.lang.IllegalArgumentException - DOCUMENT ME!
      • getArrayPointPosition

        public WildMagic.LibFoundation.Mathematics.Vector3f[] getArrayPointPosition​(int iBranch)
        Access the array of 3D coordinates for the points which define the specified branch.
        Parameters:
        iBranch - int Index which identifies the branch.
        Returns:
        Point3f[] Array of 3D coordinates for the points.