本文整理汇总了Java中gov.nasa.worldwind.render.ShapeAttributes.setDrawOutline方法的典型用法代码示例。如果您正苦于以下问题:Java ShapeAttributes.setDrawOutline方法的具体用法?Java ShapeAttributes.setDrawOutline怎么用?Java ShapeAttributes.setDrawOutline使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nasa.worldwind.render.ShapeAttributes
的用法示例。
在下文中一共展示了ShapeAttributes.setDrawOutline方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: 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;
}
示例3: createNavMeshAttributes
import gov.nasa.worldwind.render.ShapeAttributes; //导入方法依赖的package包/类
private static ShapeAttributes createNavMeshAttributes() {
final ShapeAttributes attributes = new BasicShapeAttributes();
attributes.setOutlineMaterial(Material.GREEN);
attributes.setDrawOutline(true);
attributes.setOutlineOpacity(1);
attributes.setOutlineWidth(2);
attributes.setDrawInterior(false);
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;
}