576 Commits

Author SHA1 Message Date
JoePfeiffer
b64a3b3fa8 The simulation now uses mass data from the entire motor as a unit,
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.
2020-09-09 17:10:29 -06:00
Daniel_M_Williams
2150223cb1 [fix][ui][graphics] Mass components now display their Radial / Angle position in Back Views 2020-09-02 21:36:58 -04:00
Daniel_M_Williams
01562d6ae1 [fix][ui][graphics] Mass components now display their Radial / Angle position in Side Views 2020-09-02 21:36:58 -04:00
Daniel_M_Williams
58712cb69f [fix] RocketFigure now zooms to whole rocket extents even iff stages are deactivated 2020-09-01 19:14:19 -04:00
Daniel_M_Williams
a00636a1ed [fix] migrates calls from 'simulation.rocket.selected' -> 'simulation.activeconfig' 2020-08-23 22:00:53 -04:00
Daniel_M_Williams
d3a66294d1 [rm][refactor] Optimization Dialog now allows optimizing only on existing, defined simulations 2020-08-23 22:00:53 -04:00
Daniel_M_Williams
73e8caa0e5 [tweak] adjusted default size for the optimization dialog 2020-08-23 22:00:52 -04:00
Daniel_M_Williams
1d552f99f9 [fix] 'Edit Simulation' Dialog now correctly displays the associated flight configuration 2020-08-23 22:00:51 -04:00
Daniel_M_Williams
70cbc54daf [cleanup] Applies a bunch of changes suggested by the linter in the Optimization Code 2020-08-22 11:18:03 -04:00
Daniel_M_Williams
9f8ed13713 [fix][optimizer] update the in-dialog figure when the user clicks 'apply optimization' 2020-08-22 09:47:22 -04:00
Daniel_M_Williams
d7c0e9d8ac [fix] prevented exception when you remove a optimization row while editing it. 2020-08-22 09:47:22 -04:00
Daniel_M_Williams
28ba049975 [fix] Fixed compile issues; Dialog now opens cleanly 2020-08-22 09:47:22 -04:00
Daniel_M_Williams
748a871e57 [fix] limits a FreeformFinSet maximum size to 2.5m x 2.5m. This prevents a stack-overflow while editing 2020-08-14 16:38:39 -04:00
Daniel_M_Williams
b960d37a4a [fix] dragging fin points will now drag the view pane (preventing a user from dragging a point out of view) 2020-08-14 16:37:45 -04:00
Daniel_M_Williams
08c5ecafdf [fix] zooming in and out now zooms center-to-center 2020-08-09 15:18:54 -04:00
Daniel_M_Williams
ae83846e4e [fix] restored autozoom behavior on figures -- particularly FinPointFigure 2020-08-09 11:07:35 -04:00
Daniel_M_Williams
a1f17b8f7f [fix] resolves issue #699, fixes PR #738, which only partially selected the first stage 2020-08-09 11:06:11 -04:00
Daniel_M_Williams
4cd56c1616 [fixes #699] preselect first AxialStage on Rocket-Open 2020-08-08 18:26:12 -04:00
Daniel Williams
b17d03138a
Merge pull request #731 from teyrana/fix/726-positioning
[Fixes #726] Fixes multiple issues when changing Fin-Offset-Methods
2020-08-08 11:25:26 -04:00
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_M_Williams
aeae4b1e03 [refactor] ported reduce360 -> reduce2Pi. Because the units are in radians 2020-08-02 16:49:32 -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 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