public void setPathType(@WorldWind.PathType int pathType) { this.pathType = pathType; this.reset(); }
@Override protected void doRender(RenderContext rc) { // Don't render anything if the shape is not visible. if (!this.intersectsFrustum(rc)) { return; } // Select the currently active attributes. Don't render anything if the attributes are unspecified. this.determineActiveAttributes(rc); if (this.activeAttributes == null) { return; } // Keep track of the drawable count to determine whether or not this shape has enqueued drawables. int drawableCount = rc.drawableCount(); if (rc.pickMode) { this.pickedObjectId = rc.nextPickedObjectId(); this.pickColor = PickedObject.identifierToUniqueColor(this.pickedObjectId, this.pickColor); } // Enqueue drawables for processing on the OpenGL thread. this.makeDrawable(rc); // Enqueue a picked object that associates the shape's drawables with its picked object ID. if (rc.pickMode && rc.drawableCount() != drawableCount) { rc.offerPickedObject(PickedObject.fromRenderable(this.pickedObjectId, this, rc.currentLayer)); } }
@Test public void testGetAltitudeMode() throws Exception { AbstractShape shape = new AbstractShapeImpl(); shape.altitudeMode = WorldWind.CLAMP_TO_GROUND; int result = shape.getAltitudeMode(); assertEquals(WorldWind.CLAMP_TO_GROUND, result); }
@Test public void testGetMaximumIntermediatePoints() throws Exception { AbstractShape shape = new AbstractShapeImpl(); shape.maximumIntermediatePoints = 123; int result = shape.getMaximumIntermediatePoints(); assertEquals(123, result); }
@Test public void testIsHighlighted() throws Exception { AbstractShape shape = new AbstractShapeImpl(); shape.highlighted = true; boolean result = shape.isHighlighted(); assertTrue(result); }
@Test public void testGetPathType() throws Exception { AbstractShape shape = new AbstractShapeImpl(); shape.pathType = WorldWind.RHUMB_LINE; int result = shape.getPathType(); assertEquals(WorldWind.RHUMB_LINE, result); }
@Test public void testGetAttributes() throws Exception { ShapeAttributes attributes = new ShapeAttributes(); AbstractShape shape = new AbstractShapeImpl(attributes); ShapeAttributes result = shape.getAttributes(); assertTrue(attributes == result); }
@Test public void testGetHighlightAttributes() throws Exception { ShapeAttributes attributes = new ShapeAttributes(); AbstractShape shape = new AbstractShapeImpl(); shape.highlightAttributes = attributes; ShapeAttributes result = shape.getHighlightAttributes(); assertTrue(attributes == result); }
public void setAltitudeMode(@WorldWind.AltitudeMode int altitudeMode) { this.altitudeMode = altitudeMode; this.reset(); }