public abstract class ServiceProviderVisualizer extends Object implements IDisposable
IServiceProvider
visualizers, which are used by ServiceProviderDisplay
to draw IServiceProviders in Insight3D.Modifier | Constructor and Description |
---|---|
protected |
ServiceProviderVisualizer()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Removes all primitives and evaluators and prepares the visualizer to be re-used by a future call to
ServiceProviderVisualizer.createEvaluators(java.lang.Iterable<? extends agi.foundation.IServiceProvider>, agi.foundation.EvaluatorGroup) |
abstract void |
createEvaluators(Iterable<? extends IServiceProvider> serviceProviders,
EvaluatorGroup group)
Called by
ServiceProviderDisplay to instruct the visualizer to create an Evaluator
objects needed for visualization. |
void |
dispose()
Releases any resources associated with this instance.
|
protected abstract void |
dispose(boolean disposing)
Releases any resources associated with this instance.
|
abstract void |
initialUpdate()
Called by the
ServiceProviderDisplay after all evaluators have been created to instruct
the visualizer to finish any remaining initialization and draw its static graphics. |
abstract Collection<IServiceProvider> |
pick(PickResult pickResult)
Returns a list of
IServiceProvider instances that were contained in the
provided PickResult |
abstract void |
update(JulianDate time)
Updates any dynamic graphics to the provided time.
|
abstract void |
updateReferences(EvaluatorGroup group)
Called by
ServiceProviderDisplay to instruct the visualizer to update its evaluator references. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected ServiceProviderVisualizer()
public final void dispose()
dispose
in interface IDisposable
protected abstract void dispose(boolean disposing)
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.public abstract void createEvaluators(@Nonnull Iterable<? extends IServiceProvider> serviceProviders, @Nonnull EvaluatorGroup group)
ServiceProviderDisplay
to instruct the visualizer to create an Evaluator
objects needed for visualization.serviceProviders
- The list of service providers being visualized.group
- The EvaluatorGroup
in which evaluators should be created.public abstract void updateReferences(EvaluatorGroup group)
ServiceProviderDisplay
to instruct the visualizer to update its evaluator references.group
- The group from which to update evaluator references.public abstract void initialUpdate()
ServiceProviderDisplay
after all evaluators have been created to instruct
the visualizer to finish any remaining initialization and draw its static graphics.public abstract void update(@Nonnull JulianDate time)
time
- The time for which to draw graphics.public abstract void clear()
ServiceProviderVisualizer.createEvaluators(java.lang.Iterable<? extends agi.foundation.IServiceProvider>, agi.foundation.EvaluatorGroup)
@Nonnull public abstract Collection<IServiceProvider> pick(@Nonnull PickResult pickResult)
IServiceProvider
instances that were contained in the
provided PickResult
pickResult
- The pick result for which to retrieve data.ArgumentNullException
- Thrown when pickResult
is null
.