From 64be463b4850792644522d8e3e3b2d7437021ab4 Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Mon, 29 May 2017 13:35:05 -0400 Subject: [PATCH] [feat] added getter/setter for 'AutoRadialOffset' to PodSet --- .../sf/openrocket/rocketcomponent/PodSet.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/PodSet.java b/core/src/net/sf/openrocket/rocketcomponent/PodSet.java index 675c6aae2..50d417708 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/PodSet.java +++ b/core/src/net/sf/openrocket/rocketcomponent/PodSet.java @@ -17,6 +17,7 @@ public class PodSet extends ComponentAssembly implements RingInstanceable { protected double angularSeparation = Math.PI; protected double angularPosition_rad = 0; + protected boolean autoRadialPosition = false; protected double radialPosition_m = 0; public PodSet() { @@ -175,18 +176,21 @@ public class PodSet extends ComponentAssembly implements RingInstanceable { return (this.getInstanceCount() + "-ring"); } + @Override + public boolean getAutoRadialOffset(){ + return this.autoRadialPosition; + } + public void setAutoRadialOffset( final boolean enabled ){ + this.autoRadialPosition = enabled; + fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE); + } @Override public double getRadialOffset() { return this.radialPosition_m; } - - @Override - public boolean getAutoRadialOffset(){ - return false; - } - + @Override public int getInstanceCount() { return this.count;