TEntity
- The type of entity.public class WaypointVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition> extends EntityVisualizer<TEntity>
EntityVisualizer
that creates a waypoint for
each position in an entity's historical track.
This visualizer uses a single PointBatchPrimitive
to efficiently render each waypoint.
EntityHistory
,
HistoryGenerator
,
HistoryVisualizer
Constructor and Description |
---|
WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
Initializes a new instance.
|
WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities,
HistoryGenerator<TEntity> historyGenerator)
Creates a new instance with the provided
EntitySet and HistoryGenerator . |
WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities,
HistoryGenerator<TEntity> historyGenerator,
SetHint setHint)
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose(boolean disposing)
Releases any resources associated with this instance.
|
Color |
getColor()
Gets the color.
|
boolean |
getDisplay()
Gets a value indicating whether the entities are displayed.
|
DisplayCondition |
getDisplayCondition()
Gets the
DisplayCondition . |
boolean |
getDisplayOutline()
Gets a value indicating whether to outline each point.
|
EntitySet<TEntity> |
getEntities()
Gets the entities being visualized.
|
HistoryGenerator<TEntity> |
getHistoryGenerator()
Gets the
HistoryGenerator used for retrieving track data. |
Color |
getOutlineColor()
Gets the color of the outline.
|
float |
getOutlineTranslucency()
Gets the translucency of the point outline.
|
float |
getOutlineWidth()
Gets the width of the outline, in pixels.
|
float |
getPixelSize()
Gets the size of each point in pixels.
|
SetHint |
getSetHint()
Gets the
SetHint (get ) of the underlying primitive. |
float |
getTranslucency()
Gets the translucency.
|
Iterable<TEntity> |
pick(PickResult pickResult)
Given a
PickResult , returns the entities that were picked. |
void |
setColor(Color value)
Sets the color.
|
void |
setDisplay(boolean value)
Sets a value indicating whether the entities are displayed.
|
void |
setDisplayCondition(DisplayCondition value)
Sets the
DisplayCondition . |
void |
setDisplayOutline(boolean value)
Sets a value indicating whether to outline each point.
|
void |
setEntities(EntitySet<TEntity> value)
Sets the entities being visualized.
|
void |
setHistoryGenerator(HistoryGenerator<TEntity> value)
Sets the
HistoryGenerator used for retrieving track data. |
void |
setOutlineColor(Color value)
Sets the color of the outline.
|
void |
setOutlineTranslucency(float value)
Sets the translucency of the point outline.
|
void |
setOutlineWidth(float value)
Sets the width of the outline, in pixels.
|
void |
setPixelSize(float value)
Sets the size of each point in pixels.
|
void |
setTranslucency(float value)
Sets the translucency.
|
void |
update(Transaction transaction)
Updates the underlying primitive to reflect the latest entity track history.
|
dispose, pick, pick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.public WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, HistoryGenerator<TEntity> historyGenerator)
EntitySet
and HistoryGenerator
.typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entities to be visualized.historyGenerator
- The instance HistoryGenerator{TEntity} to use to retrieve track data.public WaypointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, HistoryGenerator<TEntity> historyGenerator, @Nonnull SetHint setHint)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entities to be visualized.historyGenerator
- The instance HistoryGenerator{TEntity} to use to retrieve track data.setHint
- The SetHint
(get
) to use for the underlying primitives./>protected void dispose(boolean disposing)
dispose
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.public final HistoryGenerator<TEntity> getHistoryGenerator()
HistoryGenerator
used for retrieving track data.public final void setHistoryGenerator(HistoryGenerator<TEntity> value)
HistoryGenerator
used for retrieving track data.public final float getPixelSize()
public final void setPixelSize(float value)
public final boolean getDisplayOutline()
public final void setDisplayOutline(boolean value)
public final void setOutlineColor(@Nonnull Color value)
public final float getOutlineTranslucency()
public final void setOutlineTranslucency(float value)
public final float getOutlineWidth()
public final void setOutlineWidth(float value)
@Nonnull public final SetHint getSetHint()
SetHint
(get
) of the underlying primitive.public EntitySet<TEntity> getEntities()
getEntities
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void setEntities(EntitySet<TEntity> value)
setEntities
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
@Nonnull public Color getColor()
EntityVisualizer
getColor
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void setColor(@Nonnull Color value)
EntityVisualizer
setColor
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public float getTranslucency()
getTranslucency
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void setTranslucency(float value)
setTranslucency
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public boolean getDisplay()
getDisplay
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void setDisplay(boolean value)
setDisplay
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public DisplayCondition getDisplayCondition()
EntityVisualizer
DisplayCondition
.getDisplayCondition
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void setDisplayCondition(DisplayCondition value)
EntityVisualizer
DisplayCondition
.setDisplayCondition
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
public void update(Transaction transaction)
update
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
transaction
- The transaction to use.ArgumentNullException
- Thrown if transaction
is null.PropertyInvalidException
- Thrown if Entities
(get
/ set
) is null.PropertyInvalidException
- Thrown if HistoryGenerator
(get
/ set
) is null.public Iterable<TEntity> pick(PickResult pickResult)
PickResult
, returns the entities that were picked.pick
in class EntityVisualizer<TEntity extends IEntityLastUpdate & IEntityIdentifier & IEntityPosition>
pickResult
- The result of the Insight3D pick.ArgumentNullException
- Thrown if pickResult
is null
.