2803 Commits

Author SHA1 Message Date
Billy Olsen
5fef01a2e0 Update Copyright information and Contributors
Add a build.copyright property to build.properties to use in the about
dialog for the copyright year. Update splashscreen image to copyright
year 2021. Update contributor list and point to URL for all
contributors.

Fixes #814

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-04 16:56:13 -07:00
Billy Olsen
837014c7a0 Repaint Scrollpane when returning to 2D
Repaint the scrollpane on returning to 2D view from 3D view. This forces
the scrollbar to be repainted rather than show the remnants of the 3D
rendering.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-04 16:54:45 -07:00
Billy Olsen
7015d8617b Fix scaling on high dpi monitors
GLJPanel handles display scaling better than the GLCanvas does natively.
Change to use the GLJPanel always when rendering in 3D mode. FBO
(offscreen rendering) will be set on the GLJPanel via the
GLCapabilities.

Also, ensure when creating a Graphics2D object from a GLOverlay to set
the current transform to the default transform for the component. The
default transform of the swing components will take into account the
scaling of the screen that it is rendered on. By setting the transform
of the overlay, we can be sure that it gets the scaling information as
well.

Fixes #854

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-04 16:54:45 -07:00
Billy Olsen
1962cfac4e Fix FinSetTest.testTabLocation
Commit 936333a2 re-introduced the AxialMethod.ABSOLUTE as an offset
method but did not update the corresponding unit test. Add in the
expected offset value for AxialMethod.ABSOLUTE.

Fixes #931

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-02 19:52:35 -07:00
Joe Pfeiffer
de10d819bc
Merge pull request #920 from neilbalch/RockSim_Import_Dist_Fix
Fix #881, #907 issues
2021-05-24 16:41:19 -06:00
Joe Pfeiffer
8519e831cf
Merge pull request #893 from wolsen/fix-bug-reporter
Update Bug report dialog
2021-05-20 19:49:48 -06:00
Neil Balch
93633a27c3 Fix #907 by re-adding ABSOLUTE axial offset 2021-05-13 00:01:45 -07:00
Neil Balch
c48c31c725 Add build temp file to .gitignore 2021-05-12 19:43:27 -07:00
Neil Balch
f2b15c10ea Fix #881 by inverting location value imported from RockSim 2021-05-12 19:22:21 -07:00
Joe Pfeiffer
fea2497ecc
Merge pull request #919 from neilbalch/CSV-Writer-patch#912
Fix proper UTF-8 encoding for CSV export
2021-05-12 17:01:59 -06:00
Neil Balch
62df54f9a1 Fix proper UTF-8 encoding for CSV export 2021-05-11 11:05:00 -07:00
Joe Pfeiffer
44e6856103
Merge pull request #901 from JoePfeiffer/fix-motor-detail-plot
fix typo that called generateSeries() with thrust curve index instead…
2021-03-12 10:35:13 -07:00
JoePfeiffer
df38b95ea7 fix typo that called generateSeries() with thrust curve index instead of plot index.
Also added comment explaining necessity of really awkward coding
2021-03-10 09:28:22 -07:00
JoePfeiffer
3e3b854ce9 Invalidate MotorInformationPanel when updating (fixes #885)
Calls invalidate() as the last action inside MotorInformationPanel.updateData(), forcing a redraw of the panel.  This makes sure the panel is large enough to display all of its contents

Also, clean up display of the compatible cases a little bit by adding a space between cases, and wrapping in <html></html> tags to allow line breaks.
2021-03-09 19:37:56 -07:00
Billy Olsen
f71ae2bb40 Resize space.jpg for display
Resize space.jpg to be 1024x1024 to resolve rendering issues on MacOS.

Fixes #861

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-02-23 13:19:35 -07:00
Joe Pfeiffer
650d69cbd7
Merge pull request #895 from wolsen/bug/888
Update thrustcurves from latest Thrustcurve.org data
2021-02-23 09:49:29 -07:00
Billy Olsen
1d0a2c8cf8 Update thrustcurves from latest Thrustcurve.org data
Update the thrustcurves from the latest Thrustcurve.org data. This
corrects some of the case information.

Fixes #888

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-02-22 20:03:11 -07:00
Billy Olsen
741db61320 Update Bug report dialog
Updates the Bug report dialog to send users to either raise issues
via the github issues URL for OpenRocket or to send an email to the
forum.

This removes code to auto-submit bugs from the bug report dialog. The
service does not appear to be working and github issues cannot be
anonymous which complicates auto-submission. Instead, just direct users
to the right place.

Fix #860

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-02-20 12:09:17 -07:00
JoePfeiffer
fefd805fcc save simulation step data after step, not before it 2021-02-05 21:55:48 -07:00
Joe Pfeiffer
5e0304126e
Merge pull request #889 from wolsen/bug/880
Add extra spacing for stability information text
2021-02-05 13:21:15 -07:00
Billy Olsen
cde986136e Add extra spacing for stability information text
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>
2021-02-01 20:27:43 -07:00
JoePfeiffer
1942f70b67 correct linear interpolation of motor CG 2021-01-29 09:29:50 -07:00
Joe Pfeiffer
519379cf56
Merge pull request #876 from wolsen/bugs/872
Force a .rkt extension rather than .ork on export
2021-01-04 08:45:44 -07:00
Billy Olsen
f2c0e6bbd1 Force a .rkt extension rather than .ork on export
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>
2021-01-03 19:40:55 -07:00
Billy Olsen
3499146a81 Set the glViewport size on reshape
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>
2020-12-21 20:32:45 -07:00
Billy Olsen
d8e809c579 Make points on fin red for usability
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>
2020-12-21 20:32:27 -07:00
Billy Olsen
b248f74d5c Fix TrapezoidFinSetTest
Commit 312e90 updated finset count and tests for FinSets but not
the TrapezoidFinSetTest.testMultiplicity()

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-19 19:34:52 -07:00
Billy Olsen
347ec93c0c Fix rocket scaling in 3D views
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>
2020-12-19 13:12:34 -07:00
Billy Olsen
f23ec0bdec Adjust grid in freeform fin editor
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 #836
Fixes #837

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-19 13:11:46 -07:00
Billy Olsen
312e90b9f7 Restore default fin count to 3 for TrapezoidFinSet
TrapezoidFinSet fin count was reduced to 1 in previous commits in order
to fix a bug. The actual problem was that the instancecount was not
persisted in the ork file. This change restores the default to 3.

Fixes #850

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-19 13:04:58 -07:00
Billy Olsen
95f6f3c245 Update plugs per snap store review feedback
The snap store review team has approved auto-connecting the plugs
for OpenRocket to allow the application to access the .openrocket
and .java/.userPrefs directories on Linux without needing user
interaction.

This patch adjusts the snapcraft.yaml definition per the feedback at
https://forum.snapcraft.io/t/request-for-personal-files-for-openrocket/20579/5

This patch will also migrate the java preferences from the user's
home directory to the $SNAP_COMMON directory since write access will
not be allowed to the default preferences api.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-16 18:54:06 -07:00
JoePfeiffer
794fcfed4a setAxialMethod() only changes the external view of a component's position, it doesn't change the actual position. Therefore, it should be a NONFUNCTIONAL_CHANGE 2020-12-12 19:14:19 -07:00
JoePfeiffer
f5265ffcb5 Fire a change event to update the UI when FinSet::setTabOffsetMethod() is called. 2020-12-12 19:14:19 -07:00
JoePfeiffer
f8430c6504 Calculate fintab height from body radii at for and aft fintab extents, instead
of assuming constant radius body tube
2020-12-12 19:13:08 -07:00
JoePfeiffer
0dd878d1f4 Calculate fintab height after calculating length and position. 2020-12-12 19:13:08 -07:00
Joe Pfeiffer
05d23ce56c
Merge pull request #846 from JoePfeiffer/fix-650
Fix call to types.toArray() in ComponentPresetDatabase.java to genera…
2020-12-11 15:29:22 -07:00
JoePfeiffer
afbccd416d Fix call to types.toArray() in ComponentPresetDatabase.java to generate array using correct type instead of trying to do a cast. 2020-12-09 16:14:04 -07:00
Joe Pfeiffer
bd251831f7
Merge pull request #832 from wolsen/bug/785
Fix offset locations of mass components
2020-12-03 11:28:53 -07:00
Joe Pfeiffer
a6d4425c28
Merge pull request #820 from wolsen/bug/776
Only draw carets in 3d when length > 0
2020-12-03 11:25:03 -07:00
Billy Olsen
628a593550 Fix offset locations of mass components
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 #785
Closes #828

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-02 19:38:44 -07:00
JoePfeiffer
123aa2d296 In FreeformFinSet.java:update, only validate freeform fin tab length if fin length has changed (ie don't revalidate when fin tab length has changed) 2020-12-02 19:18:35 -07:00
JoePfeiffer
b5a68a7636 Add logging for debug 2020-12-02 19:18:35 -07:00
Joe Pfeiffer
e4683a8455
Merge pull request #812 from teyrana/fix/810/save-as-all-exception
[fixes #810] Selecting 'Save As...' > 'All Files' no longer throws an exception
2020-12-01 10:11:13 -07:00
Joe Pfeiffer
201de6a6de
Merge pull request #824 from JoePfeiffer/fix-761
Fix 761
2020-12-01 10:07:14 -07:00
JoePfeiffer
495ef34970 Merge old findMotor() and findMotors() methods in ThrustCurveMotorSetDatabase.java
Turns out the motor digest hash function can have collisions.  Since the digest is stored in the .ork file we don't want to rewrite it as that will cause *lots* of spurious "thrust curves don't match" warnings, and I really don't want to get into looking up by some sort of new digest if it exists else old digest.

Since some motor description fields are also stored in the .ork file, I'm effectively using these as a key to resolve collisions.  Now that I need to pass them in to the findMotor() method, I'm merging it with findMotors() (which searches based on motor descriptions)

New combined method returns all motors that match digest and description;
If there are none returns all motors that match digest;
If there are none returns all motors that match description (may be empty)

Passing a digest and no other description emulates the behavior of the old findMotor() (but it may return more than one motor).
Passing description elements and no digest duplicates the behavior of the old findMotors()
2020-11-17 15:02:58 -07:00
JoePfeiffer
db64a85a3a add logging to ThrustCurveMotorSetDatabase for debug 2020-11-17 10:41:54 -07:00
Billy Olsen
e4bbd09889 Only draw carets in 3d when length > 0
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>
2020-11-11 15:37:47 -07:00
Joe Pfeiffer
6582b24bc4
Merge pull request #809 from JoePfeiffer/fix-807
get rid of error message when no data for motor in specified format (fixes #807)
2020-11-07 09:43:08 -06:00
Daniel Williams
dbb5b4293a
Merge pull request #813 from teyrana/fix/update-version-string
[doc] Update version string to '20-11-alpha-16'
2020-11-07 10:39:21 -05:00
Daniel_M_Williams
6d4c1eb20d [doc] Update version string to '20-11-alpha-16' 2020-11-07 10:38:07 -05:00