TEntity
- The type of entity.public class SensorFieldOfViewVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView> extends EntityVisualizer<TEntity>
EntityVisualizer
that visualizes a set of sensors. Each sensor's origin is at the
entity's Position
(get
) and its boresight looks down the entity's Z-axis as defined
by its Orientation
(get
).Constructor and Description |
---|
SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
Initializes a new instance to project sensors onto the Earth.
|
SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities)
Initializes a new instance to project sensors onto the Earth.
|
SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities,
CentralBody centralBody)
Initializes a new instance to project sensors onto a specified central body.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Releases any resources associated with this instance.
|
int |
getApproximateSamplesPerBoundary()
Gets a parameter defining the approximate number of samples to use in the triangulation of each
SensorProjectionBoundary . |
CentralBody |
getCentralBody()
|
Color |
getColor()
Gets the color of the sensor volume.
|
boolean |
getDisplay()
Gets a value indicating whether or not the sensor volume is displayed.
|
DisplayCondition |
getDisplayCondition()
Gets the
DisplayCondition . |
EntitySet<TEntity> |
getEntities()
Gets the set of entities visualized by this instance.
|
Color |
getFootprintInteriorColor()
Gets a value defining the color and translucency of the footprint interior.
|
boolean |
getFootprintInteriorDisplay()
Gets a value indicating whether or not to show the footprint interior.
|
Texture2D |
getFootprintInteriorTexture()
Gets a value defining the
Texture2D of the footprint interior. |
TextureFilter2D |
getFootprintInteriorTextureFilter()
Gets a value defining the
TextureFilter2D of the footprint interior. |
TextureMatrix |
getFootprintInteriorTextureMatrix()
Gets a value defining the
TextureMatrix of the footprint interior. |
boolean |
getFootprintInteriorTransparentTextureBorder()
Gets a value indicating whether the border of a transparent texture should be drawn for
the footprint interior.
|
boolean |
getFootprintInteriorWireframe()
Gets a value indicating whether the footprint interior should be drawn as a wireframe.
|
Color |
getFootprintOutlineColor()
Gets a value defining the color and translucency of the footprint outline.
|
boolean |
getFootprintOutlineDisplay()
Gets a value indicating whether or not to show the footprint outline.
|
boolean |
getFootprintOutlineDisplayOutline()
Gets a value indicating whether to display an outline of the footprint outline.
|
Color |
getFootprintOutlineOutlineColor()
Gets a value defining the color and translucency of the outline of the footprint outline.
|
float |
getFootprintOutlineOutlineWidth()
Gets a value defining the width of the outline of the footprint outline.
|
float |
getFootprintOutlineWidth()
Gets a value defining the width of the footprint outline.
|
SensorProjectionOptions |
getProjectionOptions()
|
float |
getTranslucency()
Gets the translucency of the sensor volume, where 0.0 is completely clear and 1.0 is
completely opaque.
|
boolean |
getVolumeAffectedByLighting()
Gets a value indicating whether the volume is affected by lighting.
|
Color |
getVolumeBackLineColor()
Gets a value defining the colors of the back lines of the volume.
|
float |
getVolumeBackLineWidth()
Gets a value defining the width of the back lines of the volume.
|
Color |
getVolumeColor()
Gets a value defining the color of the volume.
|
boolean |
getVolumeDisplay()
Gets a value indicating whether or not to show the volume.
|
boolean |
getVolumeDisplayFill()
Gets a value indicating whether the volume is filled.
|
boolean |
getVolumeDisplayOutline()
Gets a value indicating whether the volume is outlined.
|
boolean |
getVolumeDisplaySilhouette()
Gets a value indicating whether the volume silhouette is displayed.
|
OutlineAppearance |
getVolumeOutlineAppearance()
Gets a value defining the volume outline appearance.
|
Color |
getVolumeOutlineColor()
Gets a value defining the color and translucency of the volume outline.
|
float |
getVolumeOutlineWidth()
Gets a value defining the width of the volume outline.
|
Color |
getVolumeSilhouetteColor()
Gets a parameter defining the silhouette color and translucency of the volume.
|
float |
getVolumeSilhouetteWidth()
Gets a parameter defining the width of the silhouette of the volume.
|
Iterable<TEntity> |
pick(PickResult pickResult)
Given a
PickResult , returns the entities that were picked. |
void |
setApproximateSamplesPerBoundary(int value)
Sets a parameter defining the approximate number of samples to use in the triangulation of each
SensorProjectionBoundary . |
void |
setCentralBody(CentralBody value)
|
void |
setColor(Color value)
Sets the color of the sensor volume.
|
void |
setDisplay(boolean value)
Sets a value indicating whether or not the sensor volume is displayed.
|
void |
setDisplayCondition(DisplayCondition value)
Sets the
DisplayCondition . |
void |
setEntities(EntitySet<TEntity> value)
Sets the set of entities visualized by this instance.
|
void |
setFootprintInteriorColor(Color value)
Sets a value defining the color and translucency of the footprint interior.
|
void |
setFootprintInteriorDisplay(boolean value)
Sets a value indicating whether or not to show the footprint interior.
|
void |
setFootprintInteriorTexture(Texture2D value)
Sets a value defining the
Texture2D of the footprint interior. |
void |
setFootprintInteriorTextureFilter(TextureFilter2D value)
Sets a value defining the
TextureFilter2D of the footprint interior. |
void |
setFootprintInteriorTextureMatrix(TextureMatrix value)
Sets a value defining the
TextureMatrix of the footprint interior. |
void |
setFootprintInteriorTransparentTextureBorder(boolean value)
Sets a value indicating whether the border of a transparent texture should be drawn for
the footprint interior.
|
void |
setFootprintInteriorWireframe(boolean value)
Sets a value indicating whether the footprint interior should be drawn as a wireframe.
|
void |
setFootprintOutlineColor(Color value)
Sets a value defining the color and translucency of the footprint outline.
|
void |
setFootprintOutlineDisplay(boolean value)
Sets a value indicating whether or not to show the footprint outline.
|
void |
setFootprintOutlineDisplayOutline(boolean value)
Sets a value indicating whether to display an outline of the footprint outline.
|
void |
setFootprintOutlineOutlineColor(Color value)
Sets a value defining the color and translucency of the outline of the footprint outline.
|
void |
setFootprintOutlineOutlineWidth(float value)
Sets a value defining the width of the outline of the footprint outline.
|
void |
setFootprintOutlineWidth(float value)
Sets a value defining the width of the footprint outline.
|
void |
setProjectionOptions(SensorProjectionOptions value)
|
void |
setTranslucency(float value)
Sets the translucency of the sensor volume, where 0.0 is completely clear and 1.0 is
completely opaque.
|
void |
setVolumeAffectedByLighting(boolean value)
Sets a value indicating whether the volume is affected by lighting.
|
void |
setVolumeBackLineColor(Color value)
Sets a value defining the colors of the back lines of the volume.
|
void |
setVolumeBackLineWidth(float value)
Sets a value defining the width of the back lines of the volume.
|
void |
setVolumeColor(Color value)
Sets a value defining the color of the volume.
|
void |
setVolumeDisplay(boolean value)
Sets a value indicating whether or not to show the volume.
|
void |
setVolumeDisplayFill(boolean value)
Sets a value indicating whether the volume is filled.
|
void |
setVolumeDisplayOutline(boolean value)
Sets a value indicating whether the volume is outlined.
|
void |
setVolumeDisplaySilhouette(boolean value)
Sets a value indicating whether the volume silhouette is displayed.
|
void |
setVolumeOutlineAppearance(OutlineAppearance value)
Sets a value defining the volume outline appearance.
|
void |
setVolumeOutlineColor(Color value)
Sets a value defining the color and translucency of the volume outline.
|
void |
setVolumeOutlineWidth(float value)
Sets a value defining the width of the volume outline.
|
void |
setVolumeSilhouetteColor(Color value)
Sets a parameter defining the silhouette color and translucency of the volume.
|
void |
setVolumeSilhouetteWidth(float value)
Sets a parameter defining the width of the silhouette of the volume.
|
void |
update(Transaction transaction)
Updates all graphics to reflect the entities in the provided transaction.
|
dispose, pick, pick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.public SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entity set holding the entities to be visualized.public SensorFieldOfViewVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, CentralBody centralBody)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entity set holding the entities to be visualized.centralBody
- The central body to which to project the sensors.protected void dispose(boolean disposing)
dispose
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.public EntitySet<TEntity> getEntities()
getEntities
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public void setEntities(EntitySet<TEntity> value)
setEntities
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public final int getApproximateSamplesPerBoundary()
SensorProjectionBoundary
. A higher number yields a more accurate projection, which affects
the accuracy of the sensor volume, footprint outline, and footprint interior.
The default value is 200.public final void setApproximateSamplesPerBoundary(int value)
SensorProjectionBoundary
. A higher number yields a more accurate projection, which affects
the accuracy of the sensor volume, footprint outline, and footprint interior.
The default value is 200.public final SensorProjectionOptions getProjectionOptions()
public final void setProjectionOptions(SensorProjectionOptions value)
public final CentralBody getCentralBody()
public final void setCentralBody(CentralBody value)
public boolean getDisplay()
VolumeDisplay
(get
/ set
) property.getDisplay
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public void setDisplay(boolean value)
VolumeDisplay
(get
/ set
) property.setDisplay
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
@Nonnull public Color getColor()
VolumeColor
(get
/ set
) property.getColor
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public void setColor(@Nonnull Color value)
VolumeColor
(get
/ set
) property.setColor
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public float getTranslucency()
VolumeColor
(get
/ set
) property.getTranslucency
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public void setTranslucency(float value)
VolumeColor
(get
/ set
) property.setTranslucency
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public final boolean getVolumeDisplay()
public final void setVolumeDisplay(boolean value)
public final boolean getVolumeAffectedByLighting()
public final void setVolumeAffectedByLighting(boolean value)
@Nonnull public final Color getVolumeBackLineColor()
public final void setVolumeBackLineColor(@Nonnull Color value)
public final float getVolumeBackLineWidth()
public final void setVolumeBackLineWidth(float value)
@Nonnull public final Color getVolumeColor()
public final void setVolumeColor(@Nonnull Color value)
public final boolean getVolumeDisplayFill()
public final void setVolumeDisplayFill(boolean value)
public final boolean getVolumeDisplayOutline()
public final void setVolumeDisplayOutline(boolean value)
public final boolean getVolumeDisplaySilhouette()
public final void setVolumeDisplaySilhouette(boolean value)
@Nonnull public final OutlineAppearance getVolumeOutlineAppearance()
public final void setVolumeOutlineAppearance(@Nonnull OutlineAppearance value)
@Nonnull public final Color getVolumeOutlineColor()
public final void setVolumeOutlineColor(@Nonnull Color value)
public final float getVolumeOutlineWidth()
public final void setVolumeOutlineWidth(float value)
@Nonnull public final Color getVolumeSilhouetteColor()
public final void setVolumeSilhouetteColor(@Nonnull Color value)
public final float getVolumeSilhouetteWidth()
public final void setVolumeSilhouetteWidth(float value)
public final boolean getFootprintOutlineDisplay()
public final void setFootprintOutlineDisplay(boolean value)
@Nonnull public final Color getFootprintOutlineColor()
public final void setFootprintOutlineColor(@Nonnull Color value)
public final boolean getFootprintOutlineDisplayOutline()
public final void setFootprintOutlineDisplayOutline(boolean value)
@Nonnull public final Color getFootprintOutlineOutlineColor()
public final void setFootprintOutlineOutlineColor(@Nonnull Color value)
public final float getFootprintOutlineOutlineWidth()
public final void setFootprintOutlineOutlineWidth(float value)
public final float getFootprintOutlineWidth()
public final void setFootprintOutlineWidth(float value)
public final boolean getFootprintInteriorDisplay()
public final void setFootprintInteriorDisplay(boolean value)
@Nonnull public final Color getFootprintInteriorColor()
public final void setFootprintInteriorColor(@Nonnull Color value)
public final Texture2D getFootprintInteriorTexture()
Texture2D
of the footprint interior.public final void setFootprintInteriorTexture(Texture2D value)
Texture2D
of the footprint interior.@Nonnull public final TextureFilter2D getFootprintInteriorTextureFilter()
TextureFilter2D
of the footprint interior.public final void setFootprintInteriorTextureFilter(@Nonnull TextureFilter2D value)
TextureFilter2D
of the footprint interior.public final TextureMatrix getFootprintInteriorTextureMatrix()
TextureMatrix
of the footprint interior.public final void setFootprintInteriorTextureMatrix(TextureMatrix value)
TextureMatrix
of the footprint interior.public final boolean getFootprintInteriorTransparentTextureBorder()
public final void setFootprintInteriorTransparentTextureBorder(boolean value)
public final boolean getFootprintInteriorWireframe()
public final void setFootprintInteriorWireframe(boolean value)
public DisplayCondition getDisplayCondition()
DisplayCondition
.getDisplayCondition
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public void setDisplayCondition(DisplayCondition value)
DisplayCondition
.setDisplayCondition
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
public Iterable<TEntity> pick(PickResult pickResult)
PickResult
, returns the entities that were picked.pick
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
pickResult
- The result of the Insight3D pick.ArgumentNullException
- Thrown if pickResult
is null
.public void update(Transaction transaction)
update
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntitySensorFieldOfView>
transaction
- The transaction to use.