use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class SelectionDotVisualization 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 - 1).with(UpdateFlag.ON_DATA).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 SelectionToolLineVisualization 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 MarkerVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object start) {
VisualizationTree.findVis(context, start).filter(ScatterPlotProjector.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, rel).level(//
VisualizationTask.LEVEL_DATA).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_SAMPLE).with(UpdateFlag.ON_STYLEPOLICY));
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class ReferencePointsVisualization method processNewResult.
@Override
public void processNewResult(VisualizerContext context, Object result) {
VisualizationTree.findNewSiblings(context, result, ReferencePointsResult.class, ScatterPlotProjector.class, (rp, p) -> {
final Relation<?> rel = p.getRelation();
if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
return;
}
// FIXME: Make sure the reference points belong to this relation, and have
// the same dimensionality. How can we encode this information?
final VisualizationTask task = //
new VisualizationTask(this, NAME, rp, rel).level(VisualizationTask.LEVEL_DATA);
context.addVis(rp, task);
context.addVis(p, task);
});
}
use of de.lmu.ifi.dbs.elki.visualization.VisualizationTask in project elki by elki-project.
the class TooltipScoreVisualization method addTooltips.
/**
* Add tooltips.
*
* @param nam Name
* @param val Value relation
* @param context Visualization context
* @param p Projector
* @param rel Data projection relation
*/
private void addTooltips(String nam, Relation<?> val, VisualizerContext context, ScatterPlotProjector<?> p, Relation<?> rel) {
final VisualizationTask task = //
new VisualizationTask(this, nam, val, rel).tool(true).visibility(//
false).with(UpdateFlag.ON_DATA).with(UpdateFlag.ON_SAMPLE);
context.addVis(val, task);
context.addVis(p, task);
}
Aggregations