Search in sources :

Example 1 with PropertiesBasedStyleLibrary

use of de.lmu.ifi.dbs.elki.visualization.style.PropertiesBasedStyleLibrary in project elki by elki-project.

the class OpenGL3DParallelCoordinates method processNewResult.

@Override
public void processNewResult(ResultHierarchy hier, Result newResult) {
    boolean nonefound = true;
    List<Relation<?>> rels = ResultUtil.getRelations(newResult);
    for (Relation<?> rel : rels) {
        if (!TypeUtil.NUMBER_VECTOR_FIELD.isAssignableFromType(rel.getDataTypeInformation())) {
            continue;
        }
        @SuppressWarnings("unchecked") Relation<? extends O> vrel = (Relation<? extends O>) rel;
        ScalesResult scales = ScalesResult.getScalesResult(vrel);
        ProjectionParallel proj = new SimpleParallel(null, scales.getScales());
        PropertiesBasedStyleLibrary stylelib = new PropertiesBasedStyleLibrary();
        StylingPolicy stylepol = getStylePolicy(hier, stylelib);
        new Instance<>(vrel, proj, settings, stylepol, stylelib).run();
        nonefound = false;
    }
    if (nonefound && hier.equals(newResult)) {
        LOG.warning("3DPC did not find a number vector field relation to visualize!");
    }
}
Also used : SimpleParallel(de.lmu.ifi.dbs.elki.visualization.projections.SimpleParallel) PropertiesBasedStyleLibrary(de.lmu.ifi.dbs.elki.visualization.style.PropertiesBasedStyleLibrary) ProjectionParallel(de.lmu.ifi.dbs.elki.visualization.projections.ProjectionParallel) Relation(de.lmu.ifi.dbs.elki.database.relation.Relation) ScalesResult(de.lmu.ifi.dbs.elki.result.ScalesResult) StylingPolicy(de.lmu.ifi.dbs.elki.visualization.style.StylingPolicy) ClusterStylingPolicy(de.lmu.ifi.dbs.elki.visualization.style.ClusterStylingPolicy)

Aggregations

Relation (de.lmu.ifi.dbs.elki.database.relation.Relation)1 ScalesResult (de.lmu.ifi.dbs.elki.result.ScalesResult)1 ProjectionParallel (de.lmu.ifi.dbs.elki.visualization.projections.ProjectionParallel)1 SimpleParallel (de.lmu.ifi.dbs.elki.visualization.projections.SimpleParallel)1 ClusterStylingPolicy (de.lmu.ifi.dbs.elki.visualization.style.ClusterStylingPolicy)1 PropertiesBasedStyleLibrary (de.lmu.ifi.dbs.elki.visualization.style.PropertiesBasedStyleLibrary)1 StylingPolicy (de.lmu.ifi.dbs.elki.visualization.style.StylingPolicy)1