Remove podset center marker

This commit is contained in:
SiboVG 2022-07-16 13:17:58 +02:00
parent 959bbfaac3
commit a89f1171cc
2 changed files with 0 additions and 22 deletions

View File

@ -9,7 +9,6 @@ import java.awt.Shape;
public class PodSetShapes extends RocketComponentShape {
public static final Color podsetColor = new Color(160, 160, 160); // Normal color for the podset shape
public static final Color centerColor = new Color(200, 200, 200); // Color for the center shape of the podset
public static RocketComponentShape[] getShapesSide(final RocketComponent component, final Transformation transformation) {
PodSet podset = (PodSet)component;

View File

@ -387,27 +387,6 @@ public class RocketFigure extends AbstractScaleFigure {
final Transformation currentTransform = this.axialRotation.applyTransformation(context.transform);
allShapes = addThisShape( allShapes, this.currentViewType, comp, currentTransform);
}
// PodSets require an additional shape for the center of the podset.
if (comp instanceof PodSet) {
Transformation parentTransform = null;
for (Entry<RocketComponent, ArrayList<InstanceContext>> entry2: config.getActiveInstances().entrySet()) {
final RocketComponent parent = entry2.getKey();
if (parent == comp.getParent()) {
parentTransform = entry2.getValue().get(0).transform; // TODO: normally only the first context should be used, unless we start doing fancy stuff like adding pods to individual fins
break;
}
}
if (parentTransform == null) {
parentTransform = Transformation.IDENTITY;
}
final Transformation compLocTransform = Transformation.getTranslationTransform(comp.getPosition());
final Transformation componentTransform = parentTransform.applyTransformation(compLocTransform);
final Transformation currentTransform = this.axialRotation.applyTransformation(componentTransform);
allShapes = addThisShape(allShapes, this.currentViewType, comp, currentTransform, PodSetShapes.centerColor);
}
}
}