use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class OPTICSSteepAreaVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object result) {
VisualizationTree.findVis(context, result).filter(OPTICSProjector.class).forEach(p -> {
ClusterOrder co = p.getResult();
It<OPTICSXi.SteepAreaResult> r = co.getHierarchy().iterChildren(co).filter(OPTICSXi.SteepAreaResult.class);
if (r.valid()) {
final VisualizationTask task = //
new VisualizationTask(this, NAME, p.getResult(), null).level(VisualizationTask.LEVEL_DATA + 1);
context.addVis(p, task);
context.addVis(r.get(), task);
}
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class BoundingBoxVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ParallelPlotProjector.class).forEach(p -> {
final Relation<?> rel = p.getRelation();
if (TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
if (!TypeUtil.SPATIAL_OBJECT.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
context.addVis(p, //
new VisualizationTask(this, NAME, p.getRelation(), p.getRelation()).level(//
VisualizationTask.LEVEL_DATA).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_STYLEPOLICY).with(UpdateFlag.ON_SAMPLE));
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class LineVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ParallelPlotProjector.class).forEach(p -> {
final Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
context.addVis(p, //
new VisualizationTask(this, NAME, p.getRelation(), p.getRelation()).level(//
VisualizationTask.LEVEL_DATA).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_STYLEPOLICY).with(UpdateFlag.ON_SAMPLE));
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class ClusterOrderVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, ClusterOrder.class, ScatterPlotProjector.class, (co, p) -> {
final Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, co, rel).level(VisualizationTask.LEVEL_DATA - 1).visibility(//
false).with(UpdateFlag.ON_DATA);
context.addVis(co, task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class TreeSphereVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, AbstractMTree.class, ScatterPlotProjector.class, (tree, p) -> {
Relation<?> rel = p.getRelation();
if (!canVisualize(rel, tree)) {
return;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, tree, rel).level(VisualizationTask.LEVEL_BACKGROUND + 1).visibility(false);
context.addVis(tree, task);
context.addVis(p, task);
});
}
Aggregations