535 Commits

Author SHA1 Message Date
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
Daniel_M_Williams
bcc5d6bcf8 [fix] Scale Rocket now scales the radial distance of pods & p-stages 2020-05-09 13:33:40 -07:00
Daniel_M_Williams
5c3ce2ec5e [cleanup] removed unnecessary debug lines 2020-05-09 15:20:10 -04:00
Daniel_M_Williams
4ba395ac77 [fix] Rail Buttons now properly display in 2d side views (when the rocket is rotated 2020-05-08 17:35:32 -04:00
Daniel_M_Williams
1c540a8252 [ui] Adjusted spacing of new stage buttons 2020-05-08 13:04:21 -04:00
Daniel Williams
deed818fd3
Merge pull request #655 from teyrana/show-cp-y
[fix] 2D Rocket Figure will now display off-axis CoM and CoP
2020-05-08 11:02:59 -04:00
Daniel Williams
83ce19cac4
Merge pull request #647 from teyrana/645-fix-auto-radius
[Fixes #645] fix auto radius calculation on Symmetric Components
2020-05-07 18:31:48 -04:00
Daniel_M_Williams
ac6ae0b440 [fix] 2D display of Cg and Cp values now respects the rotation slider 2020-05-07 17:47:56 -04:00
Daniel_M_Williams
2a524c2855 [fix] 2D Rocket Figure will now display off-axis CoM and CoP values 2020-05-06 15:26:06 -04:00
JoePfeiffer
51b2f7a03f cp.weight doesn't have any obvious relationahip to mass. We may want to revisit the idea of having a separate minimum cp.weight, but for the moment just making it be MathUtil.EPSILON removes the confusion and doesn't change behavior (MassCalculator.MIN_MASS is set to MathUtil.EPSILON in that class) 2020-05-05 10:37:22 -06:00
Daniel_M_Williams
7b9deff180 [refactor] ComponentPresetChooserDialog now calls SymmetricComponent.get{Next|Prev}SymmetricComponent(...) 2020-05-03 15:30:43 -04:00
Daniel_M_Williams
d038b1b190 [fixes #640] Dialogs should now closing with the [x] button in the corner. (and 'close' button. And ESC) 2020-05-02 11:15:46 -04:00
Daniel_M_Williams
bbe2598454 [ui] removed 'add stage' text button; reordered remaining buttons 2020-04-25 13:15:27 -04:00
JoePfeiffer
b9a881c5c9 The deleted methods (setTotalThrustEstimate(), setBurnTimeEstimate(), setAverageThrustEstimate(), and setMaxThrustEstimate()) were never called. The member variables maxThrust, burnTimeEstimate, averageThrust, totalImpulse are all calculated by computeStatistics() and the values (if any) from the thrustcurve file are ignored. 2020-04-22 09:29:57 -06:00
Daniel Williams
37e1180963
Merge pull request #628 from wolsen/move-unit-test
Move MotorRowFilterTest into correct package
2020-04-19 23:28:11 -04:00
Billy Olsen
bbf60e0bba Move MotorRowFilterTest into correct package
MotorRowFilterTest lives in the wrong package and causes Eclipse
to fail building. Oddly, it still builds using the ant commandline,
but since it declares it should be in the package
net.sf.openrocket.gui.dialogs.motor.thrustcurve this change moves
it to the location it declares.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-04-19 19:58:51 -07:00
Daniel Williams
bd8bef2c85
Merge pull request #602 from wolsen/fix-stage-length
[Fixes 452] Reflect length of selected stages
2020-04-19 22:34:09 -04:00
Billy Olsen
b7345f5c3c Correctly calculate the maximum height for side view.
When calculating the subject dimensions, use the height as the
radius of the circle which intersects all four corners of the
BoundingBox in the Y, Z plane for both the rear view and the
side view. The rear view was already doing this, but it was
non-obvious that the side view should also be using this to
calculate the height.

It becomes obvious if we think about a winged rocket, i.e. a
rocket who's fins in the Z direction are larger than those in
the Y direction. In this configuration, a height based off of
the fins in along the Y-axis alone will result in a "Fit" scaling
which encapuslates the Y-axis fins. However, rotating that
rocket will move the larger wings (the Z-axis fins) into the
view, but the height will not allow for the wings to draw properly
on the screen.

Thusly, using the radius from the circle intersecting the bounding
box along the Y, Z plane will ensure that the widest point from the
body will be able to fit within the side view, regardless of the
rotation around the X axis.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-04-19 19:15:54 -07:00
JoePfeiffer
6dc1f6c194 unit test for MotorRowFilter 2020-04-17 08:44:12 -06:00
JoePfeiffer
839f555d55 Fixed spelling error getTotalImpuse() => getTotalImpulse() 2020-04-16 13:47:45 -06:00
JoePfeiffer
ede47666f9 Modified ThrustCurveMotor to ensure all fields have sane default values
Created MotorRowFilterTest unit test
2020-04-16 11:36:47 -06:00