TEntity
- The type of entity.public class PointVisualizer<TEntity extends IEntityIdentifier & IEntityPosition> extends EntityVisualizer<TEntity>
EntityVisualizer
which creates a point for each entity.
This visualizer uses a PointBatchPrimitive
to efficiently render each entity point.
Constructor and Description |
---|
PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
Initializes a new instance.
|
PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities)
Initializes a new instance with the provided
EntitySet . |
PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity,
EntitySet<TEntity> entities,
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.
|
Color |
getOutlineColor()
Gets the color of the outline.
|
float |
getOutlineTranslucency()
Gets the translucency of the 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 |
setOutlineColor(Color value)
Sets the color of the outline.
|
void |
setOutlineTranslucency(float value)
Sets the translucency of the 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 state.
|
dispose, pick, pick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.public PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities)
EntitySet
.typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entities to be visualized.public PointVisualizer(TypeLiteral<TEntity> typeLiteralTEntity, EntitySet<TEntity> entities, @Nonnull SetHint setHint)
typeLiteralTEntity
- A TypeLiteral object representing the generic type TEntity
.entities
- The entities to be visualized.setHint
- The SetHint
(get
) to use for the underlying primitives./>protected void dispose(boolean disposing)
dispose
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.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 IEntityIdentifier & IEntityPosition>
public void setEntities(EntitySet<TEntity> value)
setEntities
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
@Nonnull public Color getColor()
EntityVisualizer
getColor
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public void setColor(@Nonnull Color value)
EntityVisualizer
setColor
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public float getTranslucency()
getTranslucency
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public void setTranslucency(float value)
setTranslucency
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public boolean getDisplay()
getDisplay
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public void setDisplay(boolean value)
setDisplay
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public DisplayCondition getDisplayCondition()
EntityVisualizer
DisplayCondition
.getDisplayCondition
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public void setDisplayCondition(DisplayCondition value)
EntityVisualizer
DisplayCondition
.setDisplayCondition
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
public void update(Transaction transaction)
update
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
transaction
- The transaction to use.ArgumentNullException
- Thrown if transaction
is null
.PropertyInvalidException
- Thrown if Entities
(get
/ set
) is null
.public Iterable<TEntity> pick(PickResult pickResult)
PickResult
, returns the entities that were picked.pick
in class EntityVisualizer<TEntity extends IEntityIdentifier & IEntityPosition>
pickResult
- The result of the Insight3D pick.ArgumentNullException
- Thrown if pickResult
is null
.