2867 Commits

Author SHA1 Message Date
Daniel_M_Williams
0a0fcc96a9 [fixes #724] Fixes unit-updating in rocket-motor-selection 2020-08-03 23:23:40 -04:00
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 Williams
917503149c
Merge pull request #732 from teyrana/refactor/reduce180
Refactor out deprecated functions.
2020-08-02 16:49:54 -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_M_Williams
6efbe1e2ab [refactor] ported reduce180 -> reducePi. Because the units are in radians 2020-08-02 16:49:32 -04:00
Daniel Williams
14bbcecc1e
Merge pull request #729 from teyrana/update/version
[Resolves #680][doc] Updates build string to: '20-08-alpha-14'
2020-08-02 16:39:08 -04:00
Daniel_M_Williams
6931f7f13f [fix] Fixes multiple updating issues when changing Fin-Offset-Methods 2020-08-02 16:25:00 -04:00
Daniel_M_Williams
dc9dc3ed63 [fix] Changing the AxialMethod on a RocketComponent now mantains the same position, but changes the internal offset 2020-08-02 16:24:59 -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 Williams
ed409204d0
Merge pull request #730 from teyrana/fix/727/config-spacing
[fixes #727][gui][cosmetic] Adjusted layout in RocketComponentConfig layout
2020-08-01 14:55:33 -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
2437188afe [doc] Updates build string to: '20-08-alpha-14' 2020-08-01 12:05:22 -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
4825c7a1ee [fix][mass] Added a negative-mass check, which rarely happens during inconstitent component updates -- during scaling 2020-08-01 11:56:53 -04:00
Daniel_M_Williams
834f4763f5 [refactor][cleanup] condensed some code lines (mostly to silence a linter warning) 2020-08-01 11:56:06 -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
78a315409a Check rocketBounds.isEmpty() rather than activeStages for length
When no components are added, a rocket is showing -INFINITY for the
length. This is because the special case for length 0 is checking for
active stages, instead check the rocketBounds.isEmpty() to see if any
bounds have been added.

Fixes #714

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-29 09:07:30 -07:00
Joe Pfeiffer
2e14aa8b6a
Merge pull request #721 from JoePfeiffer/fix-718
Assure rocket has left the ground before it is considered as having cleared launch rod
2020-07-29 10:05:19 -06:00
Daniel Williams
02834a4d0b
Merge pull request #716 from wolsen/fix/702
[Fix #702] Increase min count for IntegerModel for Pods/Boosters
2020-07-28 21:59:14 -04:00
JoePfeiffer
16d7ce7f1f Fixes Issue #718
Reset rocket's relative position when its absolute position is reset.
Make sure rocket has lifted off before setting launch rod as cleared.
2020-07-27 11:59:25 -06: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 Williams
9a0ef5f8ed
Merge pull request #708 from wolsen/snap/adjust-interfaces
Adjustments to snap stuff
2020-07-26 19:31:34 -04:00
Billy Olsen
82fea89bf0 Adjustments to snap stuff
Drop gcc as a build-dependency as LP#1883392 was fixed and delivered.
Additionally, change personal-files interfaces to be more explicit which
should allow for the snap store assertions which will possibly allow the
auto-connecting of the interfaces upon install for the OpenRocket app.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-26 10:06:10 -07:00
Daniel Williams
bbc22e19b7
Merge pull request #707 from teyrana/fix/696-zoom-jitter
[fixes #696] Fixes occassional zitter when auto-zooming at some sizes
2020-07-26 10:06:06 -04: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
Daniel Williams
6b609809e0
Merge pull request #621 from wolsen/fix-tube-fin-display
Fix TubeFinSet 2D rendering
2020-07-25 23:15:22 -04:00
Billy Olsen
908e6359ff Add BoxBounded interface to TubeFinSet
TubeFinSets cause rocket size within the panel to be a bit off. Add
the BoxBounded interface to provide a tight BoundingBox.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:28:54 -07: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 Williams
0f2edc0024
Merge pull request #703 from teyrana/385/3d-select
[fixes #385] Restores ability to select components in the 3d views
2020-07-21 18:35:42 -04: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
e9981aff28 [debug] removed excess debug output in FinSet 2020-07-19 11:30:54 -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 Williams
99f758c744
Merge pull request #686 from teyrana/476/fff-auto-scroll
[fixes #502][Fixes #476] Fixes auto-scrolling of FinPointFigure bounds.
2020-07-18 12:00:51 -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
9890c33ef5 [fix][IDE][Intellij] running the jar will now auto-build it 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