public TileServerToVolumeMapping(Section section, string name, TileServerMapping ToWarp, TriangulationTransform Transform)
     : base(ToWarp, section, name)
 {
     this.VolumeTransform = Transform;
 }
示例#2
0
 protected TileServerMapping(TileServerMapping ToCopy, Section section, string name)
     : base(ToCopy, section, name)
 {
     this.Host = ToCopy.Host;
     this.CoordSpaceName = ToCopy.CoordSpaceName;
 }
示例#3
0
文件: Section.cs 项目: abordt/Viking
        public void AddTileserver(TileServerInfo info)
        {
            TileServerMapping mapping = new TileServerMapping(this, info.Name,
                                                              info.FilePrefix, info.FilePostfix,
                                                              info.TileXDim, info.TileYDim,
                                                              info.Host, info.CoordSpaceName, info.Path);

            mapping.AddLevel(1, 1024, 1024, "001");
            mapping.AddLevel(2, 512, 512, "002");
            mapping.AddLevel(4, 256, 256, "004");
            mapping.AddLevel(8, 128, 128, "008");
            mapping.AddLevel(16, 32, 32, "016");
            mapping.AddLevel(32, 16, 16, "032");
            mapping.AddLevel(64, 8, 8, "064");
            mapping.AddLevel(128, 4, 4, "128");
            WarpedTo.Add(mapping.Name, mapping);
            TilesetNames.Add(mapping.Name);
            VolumeTransformList.Add(mapping.Name);
            ChannelNames.Add(mapping.Name);
        }