Ejemplo n.º 1
0
    /**
     * Constructor.
     *
     * @param iBranchIndex int Index which identifies the branch.
     * @param kFlyPathGraph FlyPathGraphCurve Data structure which contains all of the information
     *     about each branch and its connections.
     */
    public BranchState(int iBranchIndex, FlyPathGraphCurve kFlyPathGraph) {
      m_iBranchIndex = iBranchIndex;
      m_kBranchCurve = kFlyPathGraph.getCurvePosition(iBranchIndex);

      m_fDistUnvisitedMin = 0.0f;
      m_fDistUnvisitedMax = 1.0f;

      m_afBranchPoint = kFlyPathGraph.getBranchPoints(iBranchIndex);
      m_iParentBranchIndex = kFlyPathGraph.getBranchParentIndex(iBranchIndex);
      m_fParentBranchPoint = kFlyPathGraph.getBranchParentNormalizedDist(iBranchIndex);

      start();
    }