@Override
public void updateParameters() {
super.updateParameters();
- if (!isVariableAngle()) {
+ if (controlPoint.asFixedAngle()) {
Map<String,Object> calculated = getCalculatedParameters();
if (calculated.containsKey("length")) {
controlPoint.setLength((Double)calculated.get("length"));
@RelatedGetValue(Plant3D.URIs.HasTurnAngle)
public Double getTurnAngle() {
+ if (!getControlPoint().asFixedAngle())
+ return null;
return getControlPoint().getTurnAngle();
}
@RelatedSetValue(Plant3D.URIs.HasTurnAngle)
public void setTurnAngle(Double a) {
- if (!getControlPoint().isFixed())
+ if (!getControlPoint().asFixedAngle())
return;
getControlPoint().setTurnAngle(a);
}
@RelatedGetValue(Plant3D.URIs.HasRotationAngle)
@GetPropertyValue(name="Rotation Angle", value=Plant3D.URIs.HasRotationAngle, tabId = "Default")
public Double getRotationAngle() {
- if (!controlPoint.isFixed())
+ if (!controlPoint.asFixedAngle())
return null;
Double d = controlPoint.getRotationAngle();
if (d == null)
@RelatedSetValue(Plant3D.URIs.HasRotationAngle)
@SetPropertyValue(value=Plant3D.URIs.HasRotationAngle)
public void setRotationAngle(Double angle) {
- if (!controlPoint.isFixed())
+ if (!controlPoint.asFixedAngle())
return;
if (angle == null || Double.isInfinite(angle) || Double.isNaN(angle)) {
@RelatedGetValue(Plant3D.URIs.IsReversed)
@GetPropertyValue(name="Reverse", value=Plant3D.URIs.IsReversed, tabId = "Default")
public Boolean isReversed() {
- if (!controlPoint.isFixed())
+ if (!controlPoint.asFixedAngle())
return null;
Boolean d = controlPoint._getReversed();
return d;
}
@RelatedSetValue(Plant3D.URIs.IsReversed)
public void setReversed(Boolean reverse) {
- if (!controlPoint.isFixed())
+ if (!controlPoint.asFixedAngle())
return;
if (reverse == null) {