The GlyphVector.getVisualBounds() does not include leading or trailing
spaces. Account for this when drawing stability information by
increasing the unitwidth by the length of one space.
Additionally, the code is inefficient in that it creates a new Font
object each and every time a new text string is created for graphical
display. This is unnecessary and adds overhead to the VM memory
requirements.
Fixes#880
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Exporting the rocket to a rocksim format should use the extension .rkt
rather than .ork. However, refactoring the code between save as and
export in commit 4924773 in correctly used the .ork extension in the
exportAsAction.
Fixes#872
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Explicitly set the glViewport size on reshape in order to ensure it is
rendered at the full scale of the viewport. Not doing so causes the
display to render very small.
Fixes#790
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Make the points in the fin point scale figure red (once again) to better
show the location of the points.
Fixes#856
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
When setting up the view for 3D figures, the Y span is doubled
incorrectly. This appears to be legacy behavior and the BoundingBox
itself accounts for the full span. Removing the 2x scaling resolves the
rocket scaling appropriately.
Fixes#788
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Adjust the colors in the freeform fin editor to use a blue hue as
was used in previous releases. Major grid lines are slightly darker
than minor grid lines. Also Adjust selected point color to be red.
Additionally, adjust the minor and major tick size to scale with the
current selection.
Fixes#836Fixes#837
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2D side view renderings of mass components within body tubes
were adjusted forward based off the radius of the object. This
change corrects the X position adjustement and makes it consistent
with 15.03 and 3D renderings.
Closes#785Closes#828
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Only set the CG and CP for the 3D renderings when the length
is greater than 0. This makes the 3D rendering behavior consistent
with the 2D side view
Fixes#776
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
rather than separating out the propellant data. This commit clarifies
the code by replacing instances of "propellant" with "motor" in
variable names and messages where appropriate.
It does not update the translations into other languages.
Center the rocket within the side-view 2d renderings. This is similar to
how the side-view is rendered in 15.03 version.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Increase the min count for IntegerModel for Pods/Booster config dialog.
The value can be overridden manually by hand, so this just allows the
user to scroll to it with the buttons.
Fixes#702
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>