当前位置: 首页>>代码示例>>C#>>正文


C# Property.getValue方法代码示例

本文整理汇总了C#中System.Property.getValue方法的典型用法代码示例。如果您正苦于以下问题:C# Property.getValue方法的具体用法?C# Property.getValue怎么用?C# Property.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Property的用法示例。


在下文中一共展示了Property.getValue方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: setProperty

 public void setProperty(Property property)
 {
     if (property.getName() == "Position")
     {
         cameraPosition = Registry.instance().GetEngine("Python").run(new Script(property.getValue())).asVec3();
     }
     if (property.getName() == "LookAt")
     {
         lookAt = Registry.instance().GetEngine("Python").run(new Script(property.getValue())).asVec3();
     }
     if (property.getName() == "ViewDistance")
     {
         viewDistance = Registry.instance().GetEngine("Python").run(new Script(property.getValue())).asInt();
     }
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:15,代码来源:Project.cs

示例2: setProperty

        public override void setProperty(Property prop)
        {
            if (prop.getName() == "longitudeMin")
                LongitudeMin = float.Parse(prop.getValue());
            else if (prop.getName() == "longitudeMax")
                LongitudeMax = float.Parse(prop.getValue());
            else if (prop.getName() == "latitudeMin")
                LatitudeMin = float.Parse(prop.getValue());
            else if (prop.getName() == "latitudeMax")
                LatitudeMax = float.Parse(prop.getValue());

            base.setProperty(prop);
        }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:13,代码来源:AreaFilter.cs

示例3: encodeProperty

 static XmlElement encodeProperty(XmlDocument doc, Property property)
 {
     XmlElement e = doc.CreateElement("property");
     e.SetAttribute("name", property.getName());
     e.SetAttribute("value", property.getValue());
     return e;
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:7,代码来源:XmlSerializer.cs

示例4: encodeSlice

        static XmlElement encodeSlice(XmlDocument doc, BuildLayerSlice slice)
        {
            XmlElement e = null;
            if (slice != null)
            {
                e = doc.CreateElement("slice");
                if (slice.getMinRange() > 0)
                {
                    Property p = new Property("ignore", slice.getMinRange());
                    e.SetAttribute("min_range", p.getValue());
                }
                if (slice.getMaxRange() < float.MaxValue)
                {
                    Property p = new Property("ignore", slice.getMaxRange());
                    e.SetAttribute("max_range", p.getValue());
                }
                e.SetAttribute("graph", slice.getFilterGraph().getName());

                if (slice.getSource() != null)
                    e.SetAttribute("source", slice.getSource().getName());

                foreach (Property it in slice.getProperties())
                {
                    e.AppendChild(encodeProperty(doc, it));
                }

                foreach (BuildLayerSlice it in slice.getSubSlices())
                {
                    e.AppendChild(encodeSlice(doc, it));
                }
            }
            return e;
        }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:33,代码来源:XmlSerializer.cs

示例5: setProperty

 // Filter overrides
 public override void setProperty(Property prop)
 {
     if (prop.getName() == "color")
         setColorScript(new Script(prop.getValue()));
     else if (prop.getName() == "raster_overlay")
         setRasterOverlayScript(new Script(prop.getValue()));
     else if (prop.getName() == "raster_overlay_max_size")
         setRasterOverlayMaxSize(prop.getIntValue(DEFAULT_RASTER_OVERLAY_MAX_SIZE));
     else if (prop.getName() == "feature_name")
         setFeatureNameScript(new Script(prop.getValue()));
     else if (prop.getName() == "pointNameEntities")
         setNameEntities(prop.getValue());
     else if (prop.getName() == "nameMaterial")
         setNameMaterial(prop.getValue());
     else if (prop.getName() == "pointEntityScale")
         Scale = new Script(prop.getValue());
     else if (prop.getName() == "distancesScale")
         CoordScale = new Script(prop.getValue());
     else if (prop.getName() == "lineWidth")
         LineWidth = new Script(prop.getValue());
     else if (prop.getName() == "materialScale")
         MaterialScale = new Script(prop.getValue());
     base.setProperty(prop);
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:25,代码来源:BuildGeomFilter.cs

示例6: setProperty

        // Filter overrides
        public virtual void setProperty(Property p)
        {
            if (p.getName() == "radius")
                setRadius(p.getDoubleValue(getRadius()));
            else if (p.getName() == "output_attribute")
                setOutputAttribute(p.getValue());
            else if (p.getName() == "alignment_layer")
                setAlignmentLayerResourceName(p.getValue());

            base.setProperty(p);
        }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:12,代码来源:AlignFilter.cs

示例7: setProperty

 public override void setProperty(Property p)
 {
     if (p.getName() == "localize")
         setLocalize(p.getBoolValue(getLocalize()));
     else if (p.getName() == "translate")
         setTranslateScript(new Script(p.getValue()));
     else if (p.getName() == "use_terrain_srs")
         setUseTerrainSRS(p.getBoolValue(getUseTerrainSRS()));
     else if (p.getName() == "srs")
         setSRSScript(new Script(p.getValue()));
     base.setProperty(p);
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:12,代码来源:MathTransformFilter.cs

示例8: setProperty

        // Filter overrides
        public virtual void setProperty(Property p)
        {
            if (p.getName() == "optimize")
                setOptimize(p.getBoolValue(getOptimize()));
            else if (p.getName() == "cull_backfaces")
                setCullBackfaces(p.getBoolValue(getCullBackfaces()));
            else if (p.getName() == "apply_cluster_culling")
                setApplyClusterCulling(p.getBoolValue(getApplyClusterCulling()));
            else if (p.getName() == "disable_lighting")
                setDisableLighting(p.getBoolValue(getDisableLighting()));
            else if (p.getName() == "line_width")
                setLineWidth(p.getFloatValue(getLineWidth()));
            else if (p.getName() == "point_size")
                setPointSize(p.getFloatValue(getPointSize()));
            else if (p.getName() == "raster_overlay")
                setRasterOverlayScript(new Script(p.getValue()));
            else if (p.getName() == "raster_overlay_max_size")
                setRasterOverlayMaxSize(p.getIntValue(getRasterOverlayMaxSize()));
            else if (p.getName() == "embed_attributes")
                setEmbedAttributes(p.getBoolValue(getEmbedAttributes()));
            else if (p.getName() == "alpha_blending")
                setAlphaBlending(p.getBoolValue(getAlphaBlending()));

            base.setProperty(p);
        }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:26,代码来源:BuildNodesFilter.cs

示例9: setProperty

 public override void setProperty(Property prop)
 {
     if (prop.getName() == "metering")
         setMetering(prop.getIntValue(DEFAULT_METERING));
     else if (prop.getName() == "group_property")
         setAssignmentNameProperty(prop.getValue());
     base.setProperty(prop);
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:8,代码来源:CollectionFilter.cs

示例10: setProperty

 public override void setProperty(Property p)
 {
     if (p.getName() == "localize")
     {
         Localize = p.getBoolValue(Localize);
     }
     else if (p.getName() == "translate")
     {
         TranslateScript = new Script(p.getValue());
     }
     else if (p.getName() == "use_terrain_srs")
     {
         UseTerrainSrs = p.getBoolValue(UseTerrainSrs);
     }
     else if (p.getName() == "srs")
     {
         SrsScript = new Script(p.getValue());
     }
     base.setProperty(p);
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:20,代码来源:TransformFilter.cs

示例11: setProperty

 // Filter overrides
 public virtual void setProperty(Property p)
 {
     if (p.getName() == "text")
         setTextScript(new Script(p.getValue()));
     else if (p.getName() == "disable_depth_test")
         setDisableDepthTest(p.getBoolValue(getDisableDepthTest()));
     else if (p.getName() == "font_size")
         setFontSizeScript(new Script(p.getValue()));
     else if (p.getName() == "font")
         setFontName(p.getValue());
     base.setProperty(p);
 }
开发者ID:agustinsantos,项目名称:mogregis3d,代码行数:13,代码来源:BuildLabelsFilter.cs


注:本文中的System.Property.getValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。