private String libUri;
private double lengthFactor = 1.0;
+ private String lengthUnit = "m";
public AddComponentAction(InteractiveVtkComposite panel, P3DRootNode root, String libUri) {
super(panel);
this.lengthFactor = lengthFactor;
}
+ public void setLengthUnit(String lengthUnit) {
+ this.lengthUnit = lengthUnit;
+ }
+
public void setComponent(PipelineComponent component) {
this.component = component;
// Set list of already reserved component names
dialog.addUsedNames(ComponentUtils.getPipelineComponentNames(root));
dialog.setLengthFactor(lengthFactor);
+ dialog.setLengthUnit(lengthUnit);
if (dialog.open() == ComponentSelectionDialog.CANCEL)
return;