Commit 15688d3d authored by Thilo Rörig's avatar Thilo Rörig

update jogamp and VectorfieldVisualizer

parent b011de11
No preview for this file type
......@@ -195,15 +195,17 @@ public class VectorFieldVisualizer extends DataVisualizerPlugin implements
private double
thickness = 1.;
private boolean
tubesenabled = false,
directed = false;
private Color
color = Color.BLACK;
private AbstractVectorCoordinateAndIndexFactory coordinateAndIndexFactory;
private LineSetCreator lineSetCreator;
private boolean centered = true;
private double scale = 1.0;
public VectorFieldVisualization(HalfedgeLayer layer, Adapter<T> source,
DataVisualizer visualizer, NodeType type) {
......@@ -257,14 +259,19 @@ public class VectorFieldVisualizer extends DataVisualizerPlugin implements
val = sourceAdapter.get(node, aSet);
if (val != null) break;
}
if(coordinateAndIndexFactory != null) {
centered = coordinateAndIndexFactory.centered;
scale = coordinateAndIndexFactory.scale;
}
if (val instanceof double[]) {
coordinateAndIndexFactory = new VectorCoordinateAndIndexFactory();
} else if (val instanceof double[][]) {
coordinateAndIndexFactory = new MultiVectorCoordinateAndIndexFactory();
}
coordinateAndIndexFactory.setAdapter(getSource());
coordinateAndIndexFactory.centered = centeredChecker.isSelected();
coordinateAndIndexFactory.scale = scaleModel.getNumber().doubleValue();
coordinateAndIndexFactory.centered = centered;
coordinateAndIndexFactory.scale = scale;
return coordinateAndIndexFactory;
}
......@@ -306,6 +313,10 @@ public class VectorFieldVisualizer extends DataVisualizerPlugin implements
coordinateAndIndexFactory.normalized = selected;
}
public void setThickness(double thickness) {
this.thickness = thickness;
}
public void setCentered(boolean selected) {
coordinateAndIndexFactory.centered = selected;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment