use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class SelectionToolAxisRangeVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ParallelPlotProjector.class).forEach(p -> {
Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, context.getSelectionResult(), rel).level(//
VisualizationTask.LEVEL_INTERACTIVE).tool(true).visibility(//
false).with(UpdateFlag.ON_SELECTION).with(RenderFlag.NO_THUMBNAIL).with(RenderFlag.NO_EXPORT);
context.addVis(context.getSelectionResult(), task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class EMClusterVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ScatterPlotProjector.class).forEach(p -> {
Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
context.addVis(p, //
new VisualizationTask(this, NAME, p, p.getRelation()).level(//
VisualizationTask.LEVEL_DATA + 3).with(UpdateFlag.ON_STYLEPOLICY));
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class VoronoiVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ScatterPlotProjector.class).forEach(p -> {
final VisualizationTask task = //
new VisualizationTask(this, NAME, p, p.getRelation()).level(VisualizationTask.LEVEL_DATA + 3).with(UpdateFlag.ON_STYLEPOLICY);
context.addVis(p, task);
context.addVis(p, new SwitchModeAction(task, context));
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class TreeMBRVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, AbstractRStarTree.class, ScatterPlotProjector.class, (tree, p) -> {
final VisualizationTask task = //
new VisualizationTask(this, NAME, (Result) tree, p.getRelation()).level(VisualizationTask.LEVEL_BACKGROUND + 1).visibility(false);
context.addVis(tree, task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class DetailView method destroy.
/**
* Cleanup function. To remove listeners.
*/
public void destroy() {
context.removeVisualizationListener(this);
context.removeResultListener(this);
for (Entry<VisualizationTask, Visualization> v : taskmap.entrySet()) {
Visualization vis = v.getValue();
if (vis != null) {
vis.destroy();
}
}
taskmap.clear();
}
Aggregations