use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class SelectionToolCubeVisualization 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;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, context.getSelectionResult(), rel).level(//
VisualizationTask.LEVEL_INTERACTIVE).tool(true).visibility(//
false).with(RenderFlag.NO_THUMBNAIL).with(RenderFlag.NO_EXPORT).with(UpdateFlag.ON_SELECTION);
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 BubbleVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, OutlierResult.class, ScatterPlotProjector.class, (o, p) -> {
final Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
boolean vis = true;
// result since that probably is already visible and we're redundant.
if (o.getHierarchy().iterParents(o).filter(OutlierResult.class).valid()) {
vis = false;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, o, rel).level(//
VisualizationTask.LEVEL_DATA).visibility(//
vis).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_SAMPLE).with(UpdateFlag.ON_STYLEPOLICY);
context.addVis(o, task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class COPVectorVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, OutlierResult.class, ScatterPlotProjector.class, (o, p) -> {
final Relation<?> rel2 = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel2.getDataTypeInformation())) {
return;
}
VisualizationTree.findNewResults(context, o).filter(Relation.class).forEach(rel -> {
if (!rel.getShortName().equals(COP.COP_ERRORVEC)) {
return;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, rel, rel2).level(//
VisualizationTask.LEVEL_DATA).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_SAMPLE);
context.addVis(o, task);
context.addVis(p, task);
});
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class DistanceFunctionVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findNewSiblings(context, start, AbstractMaterializeKNNPreprocessor.class, ScatterPlotProjector.class, (kNN, p) -> {
final Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, kNN, rel).level(//
VisualizationTask.LEVEL_DATA - 1).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_SAMPLE).with(UpdateFlag.ON_SELECTION);
context.addVis(kNN, task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class SelectionCubeVisualization 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;
}
final VisualizationTask task = //
new VisualizationTask(this, NAME, context.getSelectionResult(), rel).level(//
VisualizationTask.LEVEL_DATA - 2).with(UpdateFlag.ON_SELECTION);
context.addVis(context.getSelectionResult(), task);
context.addVis(p, task);
});
}
Aggregations