Richard Graham
4172bb3bf6
- Workaround for bug with plotting when given INF value.
...
- Fixed bug with hashing which was not dependent on symbol and would thus give same hash for the range expressions applied to a different variable
- Fixed bug with hashing in which a < could weirdly show up due to unhandled - sign in original string hash
2012-09-14 05:34:21 +00:00
Richard Graham
c9d04f5e0a
- Implemented a DampingMoment simulation listener example
...
- Added ability for simulation listeners to reserve their own data types. To support this:
-- All data types can now be found from just the OpenRocketDocument (reduces some code duplication also).
-- Custom expressions rebuilt after loading from file in case they use a listeners reserved type
- Fixed (possibly unrelated) issue where datatypes would be deleted and re-made each step if a customexpression used a range or index subexpression
2012-09-12 07:44:13 +00:00
Richard Graham
3fea838fab
Fixed broken scrolling panel in custom expressions list.
2012-09-12 07:32:58 +00:00
Richard Graham
efe18d33ea
Fixed problem when integrating & averaging arrays containing NaN's
2012-09-12 07:28:57 +00:00
Kevin Ruland
b0d03cc473
More updates to localization provided by Ruslan Uss.
2012-09-11 16:10:51 +00:00
Richard Graham
1828f9d2fb
Added gravitational acceleration and propellant mass datatypes.
2012-09-05 05:14:10 +00:00
Richard Graham
4e272adb23
Changed symbol for pressure from p to P.
2012-09-03 03:57:00 +00:00
Richard Graham
daba694267
Fixed indexerror bug which happened when mouse pointer was over a blank region of the operator selector dialog.
2012-09-02 06:25:14 +00:00
Richard Graham
52685901bf
Changed error on JRE bug workaround (border font null) to a warning.
2012-08-31 05:30:21 +00:00
Kevin Ruland
47a55063e5
When the OK button in the component preset dialog is pressed without selecting an item, don't change the current preset for the component. This was reported as an IndexOutOfBounds exception.
2012-08-29 13:48:32 +00:00
Bill Kuker
0fd4ada18d
- Remove GL Late-initialization. GL is now set up when RocketFigure3d is constructed. This fixes a crash / hang on Java 7.
...
- Splash Screen must now be closed sooner. RocketFigure3d performs this task. This fixes a crash on Linux / X11.
- Check for "-Dopenrocket.3d.disable" and do no GL setup at all if this is defined. If users find GL cause OpenRocket to crash they may specify this option and use OR (Without 3d!)
2012-08-28 22:16:17 +00:00
Sampo Niskanen
308203c9c9
Remove dependency on java.text.Normalize
2012-08-27 19:46:44 +00:00
Sampo Niskanen
31ace7b312
Material localization support
2012-08-25 20:10:58 +00:00
Kevin Ruland
ab4c14d3a0
Fix correctness and threading issue in new Manufacturer lookup mechanism. It was incorrect because the Manufacturer objects should be registered under the searchNames. The threading correctness is only an issue in the Manufacturer.get(String) method when the name does not exist. This is handled by using external locking mechanism. Added a unit test which exposed the problem looking for the manufacturer "Contrail_Rockets".
2012-08-24 20:31:13 +00:00
Kevin Ruland
f1e528d11f
Name the UpdateInfoFetcher thread.
2012-08-24 20:19:01 +00:00
Kevin Ruland
6b364710dd
Implement a primitive cache for XMLReaders. Construction of them is pretty expensive so we cache at most 10 of them an reuse them. If more than 10 are needed at any given time, they will be created though not cached.
2012-08-24 02:49:43 +00:00
Kevin Ruland
c5804a0be7
Name the loader thread and ask java to use min priority.
2012-08-24 00:26:15 +00:00
Kevin Ruland
e24b1dda9b
Ask java to use min priority on the loader threads.
2012-08-24 00:22:04 +00:00
Kevin Ruland
597dabc47e
Name the loading thread and ask java to push its priority down.
2012-08-24 00:21:33 +00:00
Kevin Ruland
bf14638e07
Turns out I was wrong. We should use a single JAXBContext for all threads since it's pretty expensive to create.
2012-08-24 00:20:47 +00:00
Kevin Ruland
d56298d296
Instead of using Set<Manufacturer> for the backing store use ConcurrentHashMap<String,Manufacturer>. The greately reduces contention during startup with the multiple parallel calls to Manufacturer.get(String).
2012-08-23 19:55:20 +00:00
Kevin Ruland
54ea94f76b
Don't use a static JAXBContext because it has some serious thread contention when creating new unmarshallers.
2012-08-23 19:53:37 +00:00
Kevin Ruland
c34d934a55
Allow the preset loading system to function if there are no orc files.
2012-08-23 19:52:39 +00:00
Kevin Ruland
413225b474
Tweak the pool sizes and allow for longer time to load things. This improves reliability on slower platforms.
2012-08-23 02:30:11 +00:00
Kevin Ruland
9c6191529c
Replace non ascii character with UTF-8 encoded string. The build checks for non-ascii characters.
2012-08-23 02:29:26 +00:00
Kevin Ruland
8969a73600
Change FIXMEs to TODOs. Actually they might not be an issue at all.
2012-08-23 02:28:19 +00:00
Kevin Ruland
0c9db36841
Ensure we have a BufferedInputStream when loading presets.
2012-08-23 02:27:29 +00:00
Kevin Ruland
8219e5cd31
Removed fixme by logging problem.
2012-08-23 02:26:55 +00:00
Kevin Ruland
086d9b37dc
Removed FIXME comment.
2012-08-23 02:26:13 +00:00
Kevin Ruland
d79793b643
Removed FIXME comment.
2012-08-23 02:25:45 +00:00
Kevin Ruland
6aac556a53
Added localization changes supplied by Russian USS.
2012-08-23 02:24:39 +00:00
Kevin Ruland
007c7d6b41
Remove FIXME by adding undo point before assigning the preset.
2012-08-23 02:23:41 +00:00
Kevin Ruland
d72a6099cf
Clean up FIXME - adding more information to the warning message.
2012-08-23 02:20:21 +00:00
Kevin Ruland
da430d3611
Applied patch for l10n supplied by Russian Uss.
2012-08-20 02:02:38 +00:00
Richard Graham
3aedbaa19f
Fixed table sorting bug in custom expression variable and operator selector windows.
...
Previously, correct item was not inserted if the table had been sorted by clicking on the column headers.
2012-08-18 07:18:13 +00:00
Richard Graham
23825ec9a1
Fixed of-by-one bug in trapz integrator
2012-08-17 07:09:51 +00:00
Richard Graham
22a81bc9be
Fixed negative number bug in exp4j and custom expressions.
2012-08-17 06:21:37 +00:00
Kevin Ruland
43b269c0f4
Change the implementation of ArrayUtils.range to include the stop value if it is a multiple of step.
2012-08-10 20:03:21 +00:00
Kevin Ruland
ead406e852
Exploded the exp4j source into our src/ directory. This allows us to more easily modify changes we make to the source. I inlined one call to Arrays.copyOf.
2012-08-10 19:13:50 +00:00
Kevin Ruland
3c4e33e355
Removed calls to String.isEmpty which is not available on Froyo.
2012-08-10 19:11:02 +00:00
Kevin Ruland
301067e301
Added unit tests and fixed rounding problem in ArrayUtils.range().
2012-08-10 19:09:27 +00:00
Bill Kuker
7c5524f1fc
Add a great amount of verbose debugging
2012-08-09 18:02:25 +00:00
Kevin Ruland
cb2a3d0e90
Fix commit from revision 953 which reverted a bunch of changes related to Froyo compatibility.
2012-08-09 15:04:36 +00:00
Kevin Ruland
91ac8deb7d
Minor changes for Froyo compatibility.
2012-08-09 13:02:53 +00:00
Kevin Ruland
a5c3c1ac76
Rework the CustomExpression evaluation to use SimulationListeners. Removed the OpenRocketDocument member variable from the Simulation object.
2012-08-08 02:24:40 +00:00
Kevin Ruland
2b802c2f7d
Make preset favorites per component type. That is, a single preset can be a favorite for Tube Couplers, but not be a favorite for Body Tubes.
2012-08-07 16:31:00 +00:00
Richard Graham
3d5ae6752a
Big update to custom expression feature.
...
- supports range and index subexpressions and many new operators
- switched to my patched version of exp4j to support all this.
- expressions belong to rocket document. Accessed from analysis menu.
- expression importing from file
- datatypes section defined in file for storing datatypes other than internal ones
- flightdatatype fix to forget outdated types
- many GUI fixes to custom expressions
- new unitgroups supported. Auto unit detection for SI units in custom expressions.
Had to carefully merge loading/saving code with Kevins recent de-localization update. Hopefully changes to materials saving kept but switched datatype access to just using symbol as the key.
Hopefully can get the changes to exp4j upstream so we don't need to keep using this patched version.
2012-08-05 23:59:54 +00:00
Kevin Ruland
a373126c41
When creating a new user material from an existing material (ie, key), make certain to use the name associated with the material because the key might not be localizable.
2012-08-04 08:37:39 +00:00
Kevin Ruland
f9c450c79c
Add factory method which constructs a user material which uses a localizable key.
2012-08-04 03:09:36 +00:00
Kevin Ruland
59ef1b0888
escape for xml the material type key and flight data type keys.
2012-08-04 03:07:44 +00:00