本文整理汇总了Java中gov.nasa.worldwind.render.ShapeAttributes.setInteriorMaterial方法的典型用法代码示例。如果您正苦于以下问题:Java ShapeAttributes.setInteriorMaterial方法的具体用法?Java ShapeAttributes.setInteriorMaterial怎么用?Java ShapeAttributes.setInteriorMaterial使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nasa.worldwind.render.ShapeAttributes
的用法示例。
在下文中一共展示了ShapeAttributes.setInteriorMaterial方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPath
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
private Path createPath(final Color color) {
final ShapeAttributes attrs = new BasicShapeAttributes();
attrs.setEnableLighting(true);
attrs.setOutlineMaterial(new Material(color));
attrs.setInteriorMaterial(new Material(new Color(color.getRed(), color.getGreen(), color.getBlue(), 50), 50));
attrs.setInteriorOpacity(0.3);
attrs.setOutlineWidth(_mapLineThickness);
attrs.setOutlineOpacity(0.7);
final Path path = new Path();
path.setExtrude(true);
path.setAttributes(attrs);
path.setVisible(true);
path.setAltitudeMode(WorldWind.RELATIVE_TO_GROUND);
path.setPathType(AVKey.GREAT_CIRCLE);
path.setFollowTerrain(true);
return path;
}
示例2: RegionShape
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
protected RegionShape(Sector sector) {
super(sector);
// Create the default border shape.
this.setBorder(new SurfaceSector(sector));
// The edges of the region shape should be constant lines of latitude and longitude.
this.setPathType(AVKey.LINEAR);
this.getBorder().setPathType(AVKey.LINEAR);
// Setup default interior rendering attributes. Note that the interior rendering attributes are
// configured so only the SurfaceSector's interior is rendered.
ShapeAttributes interiorAttrs = new BasicShapeAttributes();
interiorAttrs.setDrawOutline(false);
interiorAttrs.setInteriorMaterial(new Material(Color.WHITE));
interiorAttrs.setInteriorOpacity(0.1);
this.setAttributes(interiorAttrs);
this.setHighlightAttributes(interiorAttrs);
// Setup default border rendering attributes. Note that the border rendering attributes are configured
// so that only the SurfaceSector's outline is rendered.
ShapeAttributes borderAttrs = new BasicShapeAttributes();
borderAttrs.setDrawInterior(false);
borderAttrs.setOutlineMaterial(new Material(Color.RED));
borderAttrs.setOutlineOpacity(0.7);
borderAttrs.setOutlineWidth(3);
this.getBorder().setAttributes(borderAttrs);
this.getBorder().setHighlightAttributes(borderAttrs);
}
示例3: createConstrainedEdgeAttributes
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
private static ShapeAttributes createConstrainedEdgeAttributes() {
final ShapeAttributes attributes = new BasicShapeAttributes();
attributes.setInteriorMaterial(Material.RED);
attributes.setOutlineMaterial(Material.RED);
attributes.setDrawOutline(true);
attributes.setOutlineOpacity(.95);
attributes.setOutlineWidth(5);
return attributes;
}
示例4: createObstacleAttributes
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
private static ShapeAttributes createObstacleAttributes() {
final ShapeAttributes attributes = new BasicShapeAttributes();
final Material material = new Material(new Color(0, 144, 229));
attributes.setInteriorMaterial(material);
attributes.setOutlineMaterial(material);
attributes.setDrawOutline(true);
attributes.setInteriorOpacity(0.9);
attributes.setOutlineOpacity(1);
attributes.setOutlineWidth(2);
return attributes;
}
示例5: createObstacleAttributes
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
private static ShapeAttributes createObstacleAttributes() {
final ShapeAttributes attributes = new BasicShapeAttributes();
final Material material = new Material(new Color(0, 144, 229));
attributes.setInteriorMaterial(material);
attributes.setOutlineMaterial(material);
attributes.setDrawOutline(true);
attributes.setInteriorOpacity(0.6);
attributes.setOutlineOpacity(.95);
attributes.setOutlineWidth(2);
return attributes;
}
示例6: setInteriorColor
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
public void setInteriorColor(Color color) {
ShapeAttributes attr = this.getAttributes();
attr.setInteriorMaterial(new Material(color));
this.setAttributes(attr);
}