555 Commits

Author SHA1 Message Date
Daniel_M_Williams
1a261a7c75 [fixes #733] fixes rare bug -- rocket sometimes sends events to deleted ComponentConfigDialog instances 2020-08-02 17:40:09 -04:00
Daniel_M_Williams
aeae4b1e03 [refactor] ported reduce360 -> reduce2Pi. Because the units are in radians 2020-08-02 16:49:32 -04:00
Daniel Williams
908cd3e619
Merge pull request #728 from teyrana/fix/723-scaling
[Fixes #723] Fix scaling crashes in some circumstances
2020-08-02 16:12:25 -04:00
Daniel_M_Williams
e5590d5415 [fix][gui][cosmetic] Adjusted layout in RocketComponentConfig layout to improve the legibility, and reduce dead space 2020-08-01 12:59:33 -04:00
Daniel_M_Williams
fa6cceb4ad [fix][optimize] Disables events while scaling a rocket. This _greatly_ speeds the scaling 2020-08-01 11:58:05 -04:00
Daniel_M_Williams
0903ecfb05 [fix][log][trace] Fixed log output to actually match intended output 2020-08-01 11:52:15 -04:00
Daniel Williams
27df9c9a71
Merge pull request #717 from wolsen/fix/center-rocket-in-side-view
Center rocket in side-view 2d renderings
2020-08-01 10:27:58 -04:00
Billy Olsen
cf66aed22c Center rocket in side-view 2d renderings
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>
2020-07-26 20:45:22 -07:00
Billy Olsen
9e947adbb4 Increase min count for IntegerModel for Pods/Boosters
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>
2020-07-26 20:01:10 -07:00
Daniel_M_Williams
0c1029ac1d [fix] RocketFigure always shows scrollbars -- and compensates for this size when zooming to fit. 2020-07-26 10:01:04 -04:00
Daniel_M_Williams
0f3f5fe944 [fixes #696] Fixes occassional zitter when auto-zooming at some sizes
Ultimate cause is some very odd behavior from JViewPort.

This code is in effect, a workaround for that odd behavior.  It IS therefore 2/3 ugly hack :(

Also, refined some of the zoom calculations to be more exact.
2020-07-25 23:16:05 -04:00
Billy Olsen
ec40b20ae0 Fix 3D rendering of TubeFinSet.
Changes to the TubeFinSet instanceable caused extra rotations of the
TubeFinSet around body tubes and podsets. Remove the extra rotation from
the 3D renderer.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:28:54 -07:00
Daniel_M_Williams
ac7d606423 [fix] fixes rotation issues in TubeFinSet 2d rendering. 2020-07-25 18:28:54 -07:00
Billy Olsen
74ec0be340 Make TubeFinSet RingInstanceable
Make the TubeFinSet RingInstanceable. This change updates the rendering
of both the 2D and 3D views to handle the RingInstanceable shapes. This
also updates the DocumentConfig to parse the new XML formats properly.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:26:07 -07:00
Billy Olsen
1bb64d45d3 Remove System.out.println in ComponentRenderer
Removes an unnecessary System.out.println to avoid extra printouts on
the console.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:26:07 -07:00
Billy Olsen
486a7f94e1 Fix TubeFinSet 2D rendering
The TubeFinSetShapes were applying the supplied transform too many
times, resulting in the the shapes being offset off the viewing area.
The offset transform is already applied to the component instance
that is provided to the TubeFinSetShapes methods, so applying the
transform resulted in the offset being moved to the right.

This change removes the transform being applied to the component
locations when retrieved and only applies a linear transformation
to the component locations when applying the base rotational
transform. Using the linear transform avoids applying the offset
in addition to the rest of the transform.

The problem existed in both the side view and the back view, however
the back view was not as obvious due to the nature of the view. The
common code between both functions applying the transform is
refactored into a common location to reduce the amount of code.
Additionally, documentation was added explaining the transform process
that is being applied to the component locations for the final shapes.

Fixes #605

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:26:07 -07:00
Daniel_M_Williams
c6984309d2 [refactor] changed function names: 'reduce360' to 'reduce2PI' because the numbers are in radians 2020-07-19 16:06:51 -04:00
Daniel_M_Williams
02e935d6f7 [rm] remove duplicate jogl jar 2020-07-19 16:05:24 -04:00
Daniel_M_Williams
257e635937 [refactor] RocketFigure3D converted to use 'util.BoundingBox' 2020-07-19 14:44:55 -04:00
Daniel_M_Williams
56c60a0013 [debug] removed excess/redundant debug output in GUIUtil 2020-07-19 11:49:07 -04:00
Daniel_M_Williams
12b299c25a [fix] enabled select of 3d components in the general case 2020-07-19 11:06:10 -04:00
Daniel_M_Williams
ae93141a21 [fix] enabled selection of 3d components ... in some cases 2020-07-18 17:29:56 -04:00
Daniel_M_Williams
724f42a096 [fix] fixes remaining FinPointFigure auto-zoom-bounds behavior 2020-07-12 15:39:34 -04:00
Daniel_M_Williams
5696ad910b [fix] adjusted scroll increment in FinPointFigure to a reasonable number 2020-07-12 15:39:34 -04:00
Daniel_M_Williams
8162e81ac0 [fix] ff fin autozoom now works on tail transitions 2020-07-12 15:39:34 -04:00
Daniel_M_Williams
6561394f24 [fix][refactor] Added ability for AbstractScaleFigure to auto-zoom to something besides its entire bounds 2020-07-12 15:39:34 -04:00
Daniel_M_Williams
f0269b5d91 [refactor] Changed Dimension to Point display Figures 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
6e2ab642e5 [fix] fixes variable name typo in FinPointFigure 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
7c20b64135 [fix] fixed stack overflow in RocketFigure 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
04476ecc98 [fix][refactor] Fixes and simplifies the bounds calculations in FinPointFigure 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
3d9938640f [whitespace] harmonized mixed spaces + tabs => tabs 2020-07-12 15:39:32 -04:00
Daniel_M_Williams
7b81f763c7 [refactor] ComponentAssembly components no longer have bounds -- it's calculated from individual components, on a per-instance basis. 2020-07-12 15:17:51 -04:00
Daniel_M_Williams
0a9df5cc64 [refactor] Refactored FlightConfiguration.calculateBounds to be clearer 2020-07-12 15:16:42 -04:00
Daniel_M_Williams
53ec830919 [fix] made string -> hashcode conversion explicit, to placate IDE warnings 2020-07-04 12:42:37 -04:00
Daniel_M_Williams
c0541386b6 [fix] removes excess debugging lines from PR #676 2020-07-04 12:29:53 -04:00
Daniel_M_Williams
9f5d4a2d27 [enable] Re-enables, fixes ComponentAnalysisDialog 2020-07-03 10:05:09 -04:00
Daniel Williams
43d6779e12
Merge pull request #658 from wolsen/snapcraft
Add snapcraft information for building snaps
2020-06-23 21:37:28 -04:00
Daniel_M_Williams
5fea421dbf [debug] removed excess debug statement in AbstractScaleFigure.scaleTo 2020-06-21 11:52:30 -04:00
Billy Olsen
9666c4137b Do not show graphics editor options from snap
Gracefully handle the graphics editor options when running
from within a snap. When running in snap confinement, the graphics
editor option in the preferences panel is removed and edits to an
existing decal will use xdg-open, allowing the user to select the
appropriate application for editing using the system options.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
3b16a68fb3 Use xdg-open on Linux Snaps to open PDFs for printing/previews
The Desktop.open() method does not work within a Snap confined
application because it uses gnome apis which are restricted or
only defined within the snap itself. The confined snaps allow
for xdg-open to open the default application to handle opening
the specified mime-type (application/pdf) for print previews and
printing.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
cb11d18aaf Check to see if column index is valid
Check to see if column index returned from the FlightConfigurationTable
model is referencing a valid column before getting the column data.
Additionally, the FlightConfigurationTableModel was not adequately
accounting for the FCID table column when returning the column.

Fixes #677

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-09 20:38:24 -07:00
Daniel_M_Williams
31b2f8b8be [fix 524][ui] Recovery Devices update their name in the 'Recovery' tab 2020-05-24 20:04:11 -04:00
Daniel Williams
16300941c7
Merge pull request #665 from wolsen/add-print-progress-dialog
[Fixes 637] Update print dialog to allow simulation control
2020-05-24 13:46:33 -04:00
Billy Olsen
b673a591f2 Update print dialog to allow simulation control
Updates the print dialog to allow for simulations to be re-run
or not. Selecting the "Update simulation data" checkbox will
re-run any out of date simulations prior to generating the
design report.

Fixes #637

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-05-23 15:41:44 -07:00
Daniel Williams
a1a777266b
Merge pull request #664 from wolsen/619-fix-graphics-launcher-osx
Use the open -a prefix to commands on OSX
2020-05-12 22:43:12 -04:00
Billy Olsen
e0982935e1 Use the open -a prefix to commands on OSX
On the OSX platform, the command editor needs to open the program
with using the 'open' command.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-05-10 19:23:09 -07:00
Joe Pfeiffer
4eab059b1b
Merge pull request #661 from teyrana/fix-spelling
[fix][i10n] Adjusts Labels for add-component buttons: Stage, Booster, Pods
2020-05-10 19:57:38 -06:00
Daniel_M_Williams
7046d02bae [cleanup] cleans up extra debugging from RocketRenderer, also fixed whitespace 2020-05-10 18:38:41 -07:00
Daniel_M_Williams
dd277b3702 [fix][i10n] Adjusts Labels for multiple add-component-buttons 2020-05-09 18:39:36 -04:00
Daniel Williams
800101e6bb
Merge pull request #659 from teyrana/643-fix-button-formatting
[ui] Moves new assembly buttons to their own row in the New Component panel.
2020-05-09 18:25:56 -04:00