public class BackplaneManager extends Object
| Constructor and Description |
|---|
BackplaneManager(DataViewingPanel viewingPanel,
StatusPanel statusPanel) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Cancel all running tasks and clear all current status posts.
|
IModel |
loadModel(File file,
String option)
Instantiate a file-based model and queue a loading task.
|
void |
loadModel(IModel model)
Initiate a load task for an instance of a model and, ultimately,
queue rendering tasks.
|
void |
postImageUpdate(org.tinfour.demo.viewer.backplane.IModelViewTask task,
RenderProduct product)
Post an image update to the user interface
|
void |
postStatusMessage(int index,
String message) |
MvComposite |
queueConstraintLoadingTask(IModel model,
File file,
CompositeImageScale ccs,
String optionString) |
MvComposite |
queueHeavyweightRenderTask(IModel model,
ViewOptions view,
CompositeImageScale ccs)
Queues a render task; typically invoked from the UI when the user changes
view options that require that a new model-view composite be created.
|
MvComposite |
queueLightweightRenderTask(MvComposite oldComposite,
ViewOptions view)
Queues a new rendering task; typically invoked from the UI when the
user makes changes to the view options that do not require reconstructing
the TINs associated with the image.
|
MvComposite |
queueReloadTask(IModel model,
ViewOptions vOpt,
CompositeImageScale ccs) |
void |
setViewOptions(ViewOptions view)
Set the current view options to be used when loading any new models.
|
public BackplaneManager(DataViewingPanel viewingPanel, StatusPanel statusPanel)
public void postStatusMessage(int index,
String message)
public void postImageUpdate(org.tinfour.demo.viewer.backplane.IModelViewTask task,
RenderProduct product)
task - the task associated with the updateproduct - a valid render productpublic void clear()
public void loadModel(IModel model)
model - a valid modelpublic IModel loadModel(File file, String option)
file - a valid reference to a readable file in a supported format.option - an optional data element based on the file-typepublic MvComposite queueConstraintLoadingTask(IModel model, File file, CompositeImageScale ccs, String optionString)
public MvComposite queueReloadTask(IModel model, ViewOptions vOpt, CompositeImageScale ccs)
public MvComposite queueHeavyweightRenderTask(IModel model, ViewOptions view, CompositeImageScale ccs)
model - a fully loaded modelview - a valid instanceccs - specifications for model position and scale for imagingpublic MvComposite queueLightweightRenderTask(MvComposite oldComposite, ViewOptions view)
oldComposite - an existing, model-view composite that contains
elements that can be transferred intact for reuse in a new composite
(TINs, grids, etc.).view - view-related options for renderingpublic void setViewOptions(ViewOptions view)
view - a valid instanceCopyright © 2019. All rights reserved.