[fixes #976] Updated display order v1.0
This commit is contained in:
parent
c21127f4e3
commit
6d7e25b0a8
@ -46,7 +46,7 @@ public class BodyTube extends SymmetricComponent implements BoxBounded, MotorMou
|
||||
this.length = Math.max(length, 0);
|
||||
motors = new MotorConfigurationSet(this);
|
||||
super.displayOrder_side = 0; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 0; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_back = 1; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
public BodyTube(double length, double radius, boolean filled) {
|
||||
|
@ -13,8 +13,8 @@ public class Bulkhead extends RadiusRingComponent {
|
||||
public Bulkhead() {
|
||||
setOuterRadiusAutomatic(true);
|
||||
setLength(0.002);
|
||||
super.displayOrder_side = 10; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 10; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 8; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 13; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -13,8 +13,8 @@ public class CenteringRing extends RadiusRingComponent {
|
||||
setOuterRadiusAutomatic(true);
|
||||
setInnerRadiusAutomatic(true);
|
||||
setLength(0.002);
|
||||
super.displayOrder_side = 9; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 9; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 7; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 14; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
private static final Translator trans = Application.getTranslator();
|
||||
|
@ -16,8 +16,8 @@ public class EngineBlock extends ThicknessRingComponent implements AxialPosition
|
||||
setOuterRadiusAutomatic(true);
|
||||
setThickness(0.005);
|
||||
setLength(0.005);
|
||||
super.displayOrder_side = 11; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 11; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 9; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 15; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -49,8 +49,8 @@ public class InnerTube extends ThicknessRingComponent implements AxialPositionab
|
||||
|
||||
motors = new MotorConfigurationSet(this);
|
||||
|
||||
super.displayOrder_side = 7; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 7; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 5; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 12; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -37,8 +37,8 @@ public class LaunchLug extends ExternalComponent implements AnglePositionable, B
|
||||
radius = 0.01 / 2;
|
||||
thickness = 0.001;
|
||||
length = 0.03;
|
||||
super.displayOrder_side = 6; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 6; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 15; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 10; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,15 +41,15 @@ public class MassComponent extends MassObject {
|
||||
|
||||
public MassComponent() {
|
||||
super();
|
||||
super.displayOrder_side = 14; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 14; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 13; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 8; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
public MassComponent(double length, double radius, double mass) {
|
||||
super(length, radius);
|
||||
this.mass = mass;
|
||||
super.displayOrder_side = 14; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 14; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 13; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 8; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,7 +44,7 @@ public class NoseCone extends Transition implements InsideColorComponent {
|
||||
super.setAftRadius(radius);
|
||||
|
||||
super.displayOrder_side = 1; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 1; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_back = 0; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,8 +23,8 @@ public class Parachute extends RecoveryDevice {
|
||||
this.diameter = 0.3;
|
||||
this.lineMaterial = Application.getPreferences().getDefaultComponentMaterial(Parachute.class, Material.Type.LINE);
|
||||
this.lineLength = 0.3;
|
||||
super.displayOrder_side = 12; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 12; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 11; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 7; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -69,16 +69,16 @@ public class RailButton extends ExternalComponent implements AnglePositionable,
|
||||
this.setStandoff( 0.002);
|
||||
this.setInstanceSeparation( this.outerDiameter_m * 6);
|
||||
this.setMaterial(Databases.findMaterial(Material.Type.BULK, "Delrin"));
|
||||
super.displayOrder_side = 5; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 5; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 14; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 9; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
public RailButton( final double od, final double ht ) {
|
||||
this();
|
||||
this.setOuterDiameter( od);
|
||||
this.setTotalHeight( ht);
|
||||
super.displayOrder_side = 5; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 5; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 14; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 9; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
public RailButton( final double od, final double id, final double ht, final double flangeThickness, final double _standoff ) {
|
||||
@ -90,8 +90,8 @@ public class RailButton extends ExternalComponent implements AnglePositionable,
|
||||
this.setStandoff( _standoff);
|
||||
this.setInstanceSeparation( od*2);
|
||||
this.setMaterial(Databases.findMaterial(Material.Type.BULK, "Delrin"));
|
||||
super.displayOrder_side = 5; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 5; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 14; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 9; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
private static final RailButton make1010Button(){
|
||||
|
@ -15,8 +15,8 @@ public class ShockCord extends MassObject {
|
||||
public ShockCord() {
|
||||
material = Application.getPreferences().getDefaultComponentMaterial(ShockCord.class, Material.Type.LINE);
|
||||
cordLength = 0.4;
|
||||
super.displayOrder_side = 13; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 13; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 12; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 5; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -21,8 +21,8 @@ public class Streamer extends RecoveryDevice {
|
||||
public Streamer() {
|
||||
this.stripLength = 0.5;
|
||||
this.stripWidth = 0.05;
|
||||
super.displayOrder_side = 12; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 12; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 10; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 6; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,8 +13,8 @@ public class TubeCoupler extends ThicknessRingComponent implements RadialParent
|
||||
setOuterRadiusAutomatic(true);
|
||||
setThickness(0.002);
|
||||
setLength(0.06);
|
||||
super.displayOrder_side = 8; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 8; // Order for displaying the component in the 2D back view
|
||||
super.displayOrder_side = 6; // Order for displaying the component in the 2D side view
|
||||
super.displayOrder_back = 11; // Order for displaying the component in the 2D back view
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user