|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.airspaces.BasicAirspaceAttributes
public class BasicAirspaceAttributes
A container for common attributes applied to renderable shapes.
| Constructor Summary | |
|---|---|
BasicAirspaceAttributes()
|
|
BasicAirspaceAttributes(AirspaceAttributes that)
|
|
BasicAirspaceAttributes(Material material,
double opacity)
|
|
| Method Summary | |
|---|---|
void |
applyInterior(DrawContext dc,
boolean enableMaterial)
|
protected void |
applyMaterial(DrawContext dc,
Material material,
double opacity,
boolean enableMaterial)
|
void |
applyOutline(DrawContext dc,
boolean enableMaterial)
|
Material |
getMaterial()
Get the Material used to draw the shape interior or volume. |
double |
getOpacity()
Returns the shape's opacity. |
Material |
getOutlineMaterial()
Get the Material used to draw the shape border or outline. |
double |
getOutlineOpacity()
Returns the shape's outline or border opacity. |
double |
getOutlineWidth()
Get the shape border or outline width in pixels. |
void |
getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject so)
|
boolean |
isDrawInterior()
Determines whether the shape interior or volume is being drawn. |
boolean |
isDrawOutline()
Determines whether the shape border or outline is being drawn. |
void |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject so)
|
void |
setDrawInterior(boolean state)
Sets whether the shape interior or volume should be drawn. |
void |
setDrawOutline(boolean state)
Sets whether the shape border or outline should be drawn. |
void |
setMaterial(Material material)
Sets the Material used to draw the shape interior or volume. |
void |
setOpacity(double opacity)
Set the shape's opacity. |
void |
setOutlineMaterial(Material materal)
Sets the Material used to draw the shape border or outline. |
void |
setOutlineOpacity(double opacity)
Set the shape's outline or border opacity. |
void |
setOutlineWidth(double width)
Sets the shape border or outline width in pixels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicAirspaceAttributes()
public BasicAirspaceAttributes(AirspaceAttributes that)
public BasicAirspaceAttributes(Material material,
double opacity)
| Method Detail |
|---|
public void applyInterior(DrawContext dc,
boolean enableMaterial)
applyInterior in interface AirspaceAttributes
protected void applyMaterial(DrawContext dc,
Material material,
double opacity,
boolean enableMaterial)
public void applyOutline(DrawContext dc,
boolean enableMaterial)
applyOutline in interface AirspaceAttributespublic Material getMaterial()
Material used to draw the shape interior or volume.
getMaterial in interface AirspaceAttributesMaterial used to draw the shape interior or volume.public double getOpacity()
getOpacity in interface AirspaceAttributespublic Material getOutlineMaterial()
Material used to draw the shape border or outline.
getOutlineMaterial in interface AirspaceAttributesMaterial used to draw the shape border or outline.public double getOutlineOpacity()
getOutlineOpacity in interface AirspaceAttributespublic double getOutlineWidth()
getOutlineWidth in interface AirspaceAttributes
public void getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject so)
getRestorableState in interface AirspaceAttributespublic boolean isDrawInterior()
isDrawInterior in interface AirspaceAttributestrue if the shape interior or volume is being drawn.public boolean isDrawOutline()
isDrawOutline in interface AirspaceAttributestrue if the shape border or outline is being drawn.
public void restoreState(RestorableSupport rs,
RestorableSupport.StateObject so)
restoreState in interface AirspaceAttributespublic void setDrawInterior(boolean state)
setDrawInterior in interface AirspaceAttributesstate - true if the shape interior or volume should be drawn.public void setDrawOutline(boolean state)
setDrawOutline in interface AirspaceAttributesstate - true if the shape border or outline should be drawn.public void setMaterial(Material material)
Material used to draw the shape interior or volume.
setMaterial in interface AirspaceAttributesmaterial - the Material used to draw the shape interior or volume.public void setOpacity(double opacity)
setOpacity in interface AirspaceAttributesopacity - the shape's opacity in the range [0, 1], where 0 indicates full transparency and 1 indicates full
opacity.public void setOutlineMaterial(Material materal)
Material used to draw the shape border or outline.
setOutlineMaterial in interface AirspaceAttributesmateral - the Material used to draw the shape border or outline.public void setOutlineOpacity(double opacity)
setOutlineOpacity in interface AirspaceAttributesopacity - the shape's outline or border opacity in the range [0, 1], where 0 indicates full
transparency and 1 indicates full opacity.public void setOutlineWidth(double width)
setOutlineWidth in interface AirspaceAttributeswidth - the shape border or outline width in pixels.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||