HPASharp.HierarchicalMap.HierarchicalMap C# (CSharp) Method

HierarchicalMap() public method

public HierarchicalMap ( ConcreteMap concreteMap, int clusterSize, int maxLevel ) : System
concreteMap ConcreteMap
clusterSize int
maxLevel int
return System
        public HierarchicalMap(ConcreteMap concreteMap, int clusterSize, int maxLevel)
        {
            ClusterSize = clusterSize;
            MaxLevel = maxLevel;
            
            SetType(concreteMap.TileType);
            this.Height = concreteMap.Height;
            this.Width = concreteMap.Width;
            AbsNodeIds = new int[this.Height * this.Width];
            for (var i = 0; i < this.Height * this.Width; i++)
                AbsNodeIds[i] = -1;

            Clusters = new List<Cluster>();
            AbstractGraph = new Graph<AbsTilingNodeInfo, AbsTilingEdgeInfo>();
        }