예제 #1
0
    public void Start()
    {
        if (depth_ == 0)
        {
            Vector3 meshSize = GetComponent <MeshFilter>().sharedMesh.bounds.size;
            Vector2 mapSize  = new Vector2(meshSize.x, meshSize.z);

            onlineTexture = null;
            if (GetComponent <WMSTexture> () != null)
            {
                onlineTexture = this.GetComponent <WMSTexture> ();
            }
            else if (GetComponent <BingMapsTexture> () != null)
            {
                onlineTexture = this.GetComponent <BingMapsTexture> ();
            }

            nodeID = "0";

            // Create the root mesh.
            gameObject.GetComponent <MeshFilter> ().mesh = PlanesFactory.CreateHorizontalPlane(mapSize, vertexResolution);
        }

        if (onlineTexture != null)
        {
            onlineTexture.RequestTexture(nodeID);
        }
    }
예제 #2
0
    public void CopyTo(OnlineTexture copy)
    {
        copy.request_ = request_;
        // This forces inherited component to reload the texture.
        copy.textureLoaded = false;

        InnerCopyTo(copy);
    }
예제 #3
0
    protected override void InnerCopyTo(OnlineTexture copy)
    {
        BingMapsTexture target = (BingMapsTexture)copy;

        target.serverURL     = serverURL;
        target.initialSector = initialSector;
        target.latitude      = latitude;
        target.longitude     = longitude;
        target.initialZoom   = initialZoom;
    }
예제 #4
0
    protected override void InnerCopyTo(OnlineTexture copy)
    {
        GoogleMapsTexture target = (GoogleMapsTexture)copy;

        target.serverUrl     = serverUrl;
        target.initialSector = initialSector;
        target.latitude      = latitude;
        target.longitude     = longitude;
        target.initialZoom   = initialZoom;
    }
예제 #5
0
    protected override void InnerCopyTo(OnlineTexture copy)
    {
        WMSTexture target = (WMSTexture)copy;

        target.serverURL             = serverURL;
        target.wmsRequestID          = wmsRequestID;
        target.keepBoundingBoxRatio  = keepBoundingBoxRatio;
        target.bottomLeftCoordinates = bottomLeftCoordinates;
        target.topRightCoordinates   = topRightCoordinates;
        target.selectedLayers        = selectedLayers;
        target.wmsVersion            = wmsVersion;
        target.SRS = SRS;
    }
예제 #6
0
 protected abstract void InnerCopyTo(OnlineTexture copy);