Interface ITraceSystem
- All Known Subinterfaces:
IPlottingSystem<T>
- All Known Implementing Classes:
AbstractPlottingSystem,PlottingSystemImpl,ThreadSafePlottingSystem
public interface ITraceSystem
No methods in this interface are thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds and plots the trace.voidAdd a listener to be notified of new traces plottedvoidRemove the currently plotted traces.createImageStackTrace(String traceName) Creates a stack trace used for 2D plotting.createImageTrace(String traceName) Creates a line trace used for 1D plotting.createIsosurfaceTrace(String string) createLineStackTrace(String traceName) Creates a stack trace used for 3D plotting.createLineTrace(String traceName) Creates a line trace used for 1D plotting.createMulti2DTrace(String traceName) Creates a multi image trace.createPlane3DTrace(String traceName) Creates a plane image trace used for 3D plotting.createScatter3DTrace(String traceName) Creates a scatter 3D plot trace used for 3D plotting.createSurfaceTrace(String traceName) Creates a surface trace used for 3D plotting.createTrace(String traceName) Create a trace best suited to current plot type<U extends ITrace>
UcreateTrace(String traceName, Class<U> clazz) Creates a trace corresponding to given class/interfacecreateVectorTrace(String traceName) Creates a vector trace which may be added to a 1D or 2D plot.createVolumeRenderTrace(String string) voidfireTraceAdded(TraceEvent evt) Call to notify that a trace has been added.voidMay be used to force a trace to fire update listeners in the plotting system.voidNotify that the trace is about to plot.return a plotted trace by name.Call this method to retrieve what is currently plotted.Call this method to retrieve what is currently plotted by trace type See all ITraceListener.default <T extends ITrace>
Collection<T> getTracesByClass(Class<T> clazz) Call this method to retrieve what is currently plotted by trace type See all ITraceListener.booleanisXFirst()For 1D plotting, if the first plot is the x-axis, returns true.voidMoves the trace definition in the internal hastable.voidremoveTrace(ITrace trace) Adds and plots the trace.voidRemove listener to avoid memory leaksvoidrenameTrace(ITrace trace, String name) Renames the trace, better than calling setName on the ITrace as the collection of traces is updated properly.voidsetXFirst(boolean xFirst) Set if the first plot is the x-axis.
-
Method Details
-
createImageTrace
Creates a line trace used for 1D plotting. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createLineTrace
Creates a line trace used for 1D plotting. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createVectorTrace
Creates a vector trace which may be added to a 1D or 2D plot. The Vector trace will draw arrows over the plot at various locations.- Parameters:
traceName-- Returns:
-
createSurfaceTrace
Creates a surface trace used for 3D plotting. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createIsosurfaceTrace
- Parameters:
string-- Returns:
-
createVolumeRenderTrace
- Parameters:
string-- Returns:
-
createMulti2DTrace
Creates a multi image trace. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createLineStackTrace
Creates a stack trace used for 3D plotting. This does not add the trace or give it any data. A stack trace is a 3D set of lines.- Parameters:
traceName-- Returns:
-
createScatter3DTrace
Creates a scatter 3D plot trace used for 3D plotting. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createImageStackTrace
Creates a stack trace used for 2D plotting. This does not add the trace or give it any data. A stack trace is a 3D set of images. Only one image is visible at a time in the 2D plot.- Parameters:
traceName-- Returns:
-
createPlane3DTrace
Creates a plane image trace used for 3D plotting. This does not add the trace or give it any data.- Parameters:
traceName-- Returns:
-
createTrace
Creates a trace corresponding to given class/interface- Parameters:
traceName-clazz-- Returns:
-
createTrace
Create a trace best suited to current plot type- Parameters:
traceName-- Returns:
-
getRegisteredTraceClasses
-
addTrace
Adds and plots the trace. Not Thread safe- Parameters:
trace-
-
removeTrace
Adds and plots the trace.- Parameters:
trace-
-
getTrace
return a plotted trace by name.- Parameters:
name-- Returns:
-
getTraces
Collection<ITrace> getTraces()Call this method to retrieve what is currently plotted. See all ITraceListener.- Returns:
-
clearTraces
void clearTraces()Remove the currently plotted traces. Thread safe -
getTraces
Call this method to retrieve what is currently plotted by trace type See all ITraceListener.- Returns:
-
getTracesByClass
Call this method to retrieve what is currently plotted by trace type See all ITraceListener.- Returns:
-
addTraceListener
Add a listener to be notified of new traces plotted- Parameters:
l-
-
removeTraceListener
Remove listener to avoid memory leaks- Parameters:
l-
-
renameTrace
Renames the trace, better than calling setName on the ITrace as the collection of traces is updated properly. No event will be fired.- Throws:
Exception
-
moveTrace
Moves the trace definition in the internal hastable. Used internally only - do not call. -
isXFirst
boolean isXFirst()For 1D plotting, if the first plot is the x-axis, returns true.- Returns:
-
setXFirst
void setXFirst(boolean xFirst) Set if the first plot is the x-axis.- Parameters:
xFirst-
-
fireWillPlot
Notify that the trace is about to plot. Internal use only.- Parameters:
evt-
-
fireTraceUpdated
May be used to force a trace to fire update listeners in the plotting system. Internal use only.- Parameters:
evt-
-
fireTraceAdded
Call to notify that a trace has been added. Internal use only.- Parameters:
evt-
-