Exemple #1
0
        private void ribbonButton53_Click(object sender, EventArgs e)
        {
            if (featurePolygon == null)
            {
                Vec3d vec1 = new Vec3d();
                vec1.set(0, 40, 0);
                Vec3d vec2 = new Vec3d();
                vec2.set(-60, 40, 0);
                Vec3d vec3 = new Vec3d();
                vec3.set(-60, 60, 0);
                Vec3d vec4 = new Vec3d();
                vec4.set(0, 60, 0);

                PolygonGeometry polygon = new PolygonGeometry();
                polygon.push_back(vec1);
                polygon.push_back(vec2);
                polygon.push_back(vec3);
                polygon.push_back(vec4);
                Feature feature = new Feature();
                feature.setGeometry(polygon);
                featurePolygon = new FeaturePrimitive();
                featurePolygon.setFeature(feature);
                m_earthRoot.addChild(featurePolygon);
            }
        }
Exemple #2
0
        private void ribbonButton51_Click(object sender, EventArgs e)
        {
            if (featurePrimitiveLineString == null)
            {
                LineStringGeometry lineString = new LineStringGeometry();
                Vec3d vec3d1 = new Vec3d();
                vec3d1.set(-74, 40.714, 0);
                Vec3d vec3d2 = new Vec3d();
                vec3d2.set(139.75, 35.68, 0);
                lineString.push_back(vec3d1);
                lineString.push_back(vec3d2);

                Feature feature = new Feature();
                feature.setGeometry(lineString);
                featurePrimitiveLineString = new FeaturePrimitive();
                featurePrimitiveLineString.setFeature(feature);
                m_earthRoot.addChild(featurePrimitiveLineString);
            }
        }
Exemple #3
0
 private void ribbonButton54_Click(object sender, EventArgs e)
 {
     m_earthRoot.removeChild(featurePolygon);
     featurePolygon = null;
 }
Exemple #4
0
 private void ribbonButton52_Click(object sender, EventArgs e)
 {
     m_earthRoot.removeChild(featurePrimitiveLineString);
     featurePrimitiveLineString = null;
 }
Exemple #5
0
 private void ribbonButton54_Click(object sender, EventArgs e)
 {
     m_earthRoot.removeChild( featurePolygon );
     featurePolygon = null;
 }
Exemple #6
0
        private void ribbonButton53_Click(object sender, EventArgs e)
        {
            if (featurePolygon == null)
            {
                Vec3d vec1 = new Vec3d();
                vec1.set(0, 40, 0);
                Vec3d vec2 = new Vec3d();
                vec2.set(-60, 40, 0);
                Vec3d vec3 = new Vec3d();
                vec3.set(-60, 60, 0);
                Vec3d vec4 = new Vec3d();
                vec4.set( 0, 60, 0 );

                PolygonGeometry polygon = new PolygonGeometry();
                polygon.push_back( vec1 );
                polygon.push_back( vec2 );
                polygon.push_back( vec3 );
                polygon.push_back( vec4 );
                Feature feature = new Feature();
                feature.setGeometry(polygon);
                featurePolygon = new FeaturePrimitive();
                featurePolygon.setFeature( feature );
                m_earthRoot.addChild( featurePolygon );
            }
        }
Exemple #7
0
 private void ribbonButton52_Click(object sender, EventArgs e)
 {
     m_earthRoot.removeChild( featurePrimitiveLineString );
     featurePrimitiveLineString = null;
 }
Exemple #8
0
        private void ribbonButton51_Click(object sender, EventArgs e)
        {
            if (featurePrimitiveLineString == null)
            {
                LineStringGeometry lineString = new LineStringGeometry();
                Vec3d vec3d1 = new Vec3d();
                vec3d1.set(-74, 40.714, 0);
                Vec3d vec3d2 = new Vec3d();
                vec3d2.set(139.75, 35.68, 0);
                lineString.push_back(vec3d1);
                lineString.push_back(vec3d2);

                Feature feature = new Feature();
                feature.setGeometry( lineString );
                featurePrimitiveLineString = new FeaturePrimitive();
                featurePrimitiveLineString.setFeature( feature );
                m_earthRoot.addChild( featurePrimitiveLineString );
            }
        }