本文整理汇总了C#中System.Property.getIntValue方法的典型用法代码示例。如果您正苦于以下问题:C# Property.getIntValue方法的具体用法?C# Property.getIntValue怎么用?C# Property.getIntValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Property
的用法示例。
在下文中一共展示了Property.getIntValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: 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);
}
示例3: 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);
}