531 Commits

Author SHA1 Message Date
bkuker
ae191c1c49 Add default appearance checkbox text the right way.
(So clicking the text toggles the checkbox)
2013-01-11 19:31:07 -05:00
bkuker
5436cd1560 Put Motor Appearances into the DefaultAppearance class.
DefaultAppearance is quite disorganized at the moment, but this at least
hides it all in one place
2013-01-11 19:15:14 -05:00
bkuker
fe3d66cef1 Provide a toString for the resource decals. 2013-01-11 13:03:36 -05:00
bkuker
115e0b143a Add compareTo to ResourceDecalImage after merge with k-integration 2013-01-11 10:16:56 -05:00
bkuker
9ea9ed2d82 Merge remote-tracking branch 'plaa/kruland-integration' into kruland-integration-defaults 2013-01-11 10:14:27 -05:00
kruland2607
593c639a06 Rework attachment loading. Construct a DocumentLoadingContext in
GenericLoader and pass into both OpenRocketLoader and RocksimLoader. 
the DocumentLoadingContext contains the OpenRocketDocument, MotorFinder,
and AttachmentFactory.
2013-01-10 21:11:57 -06:00
bkuker
05263e5056 An ok reusable motor appearance 2013-01-10 20:03:31 -05:00
bkuker
c1c4f99992 Trying out an "Unfinished" view... Jury is out 2013-01-10 15:36:08 -05:00
bkuker
67c1a3c553 A new render mode. Can't access it from the UI, that dropdown is getting
kind of ugly.
2013-01-10 14:41:26 -05:00
bkuker
e192462201 MAke mass objects look like wadding 2013-01-10 14:34:09 -05:00
bkuker
03c9e24705 More appearances 2013-01-10 14:17:30 -05:00
bkuker
25a3fc1d05 Merge branch 'kruland-integration-motor' into
kruland-integration-defaults

Conflicts:
	core/src/net/sf/openrocket/appearance/defaults/ResourceDecalImage.java
	core/src/net/sf/openrocket/gui/figure3d/RealisticRenderer.java
2013-01-10 08:46:20 -05:00
kruland2607
48adc0b7bf Rework the AttachmentFactory and Attachments. Make the Attachment
implementations stand on their own and be able to determine the location
of their bytes without needing a reference back to the
AttachmentFactory.  This required changing the loading semantics so the
OpenRocketDocument is created prior to beginning to read the xml file. 
Added an OpenRocketDocumentFactory to facilitate construction of
OpenRocketDocument objects.
2013-01-09 21:28:53 -06:00
bkuker
28127b122d Simplify the default appearances. I am not ready to organize them into
classes or factories or what have you, yet.
2013-01-09 16:43:01 -05:00
bkuker
8dd0a6abc1 Initial tube & balsa default appearances 2013-01-09 14:42:38 -05:00
bkuker
88e87d5925 Re-add the default appearance checkbox, without the save default button. 2013-01-09 14:27:09 -05:00
bkuker
ceb7d16651 Render motors nicely 2013-01-09 14:11:23 -05:00
kruland2607
c59bdd31cd Push FileInfo construction down a level by having it constructed in the
GeneralRocketLoader instead of in the OpenFileWorker.  This required a
change in the constructor args to GeneralRocketLoader.
2013-01-09 10:43:56 -06:00
kruland2607
8ad89448df Checkpoint commit. Added AttachmentFactory interface and
BaseAttachmentFactory.  Reimplemented DecalRegistry to implement
AttachmentFactory and contain a delegate BaseAttachmentFactory.
2013-01-08 21:09:48 -06:00
bkuker
05ff94836f Fix width of the shine unit selector 2013-01-08 10:14:46 -05:00
bkuker
f6358ad2ba Simplify the RocketFigure3D updateFigure() method to take advantage of
JOGL's invoke & GLRunnable, rather than using flags, to simplify the
code.
2013-01-08 10:05:45 -05:00
Bill Kuker
fa58cb6338 Merge pull request #36 from bkuker/kruland-integration-stickers
Sticker decal mode & decal improvements
2013-01-08 06:46:10 -08:00
kruland2607
6ff17d04e2 Extract the Attachment interface from the DecalImage. 2013-01-07 22:12:18 -06:00
bkuker
e888ce9c63 Use Sticker method to draw all decals, to allow the transparency and
paint interaction behavior you would expect.
2013-01-07 18:57:28 -05:00
bkuker
d1586d3d34 Format for cleaner pull request 2013-01-07 16:26:56 -05:00
bkuker
e11d48566e Import cleanup 2013-01-07 16:23:13 -05:00
bkuker
903564687d Better choice for zNear & zFar to fix some artifacts 2013-01-06 19:39:36 -05:00
bkuker
30562244c7 Set color to white on certain decal types 2013-01-06 19:36:06 -05:00
bkuker
7ead8bf977 Merge remote-tracking branch 'plaa/kruland-integration' into
kruland-integration-stickers

Conflicts:
	core/src/net/sf/openrocket/appearance/SimpleAppearanceBuilder.java
	core/src/net/sf/openrocket/gui/configdialog/AppearancePanel.java
	core/src/net/sf/openrocket/gui/figure3d/RealisticRenderStrategy.java
	core/src/net/sf/openrocket/gui/figure3d/RocketFigure3d.java
2013-01-06 18:57:15 -05:00
kruland2607
acba62ce59 Rework Decal byte handling code and DecalRegistry. Added interface
DecalImage which is used by the Decal object to retrieve the bytes for
the image.  The DecalRegistry now operates as a factory and registry for
DecalImage objects.  The decal handling code in the saver is now greatly
simplified because the logical decal names are updated when constructed
by the DecalRegistry.
2013-01-06 16:58:18 -06:00
Sampo Niskanen
4560b8fd26 Remove FIXME 2013-01-06 21:37:11 +02:00
Sampo Niskanen
ef7c384f58 Merge branch 'master' into kruland-integration
Conflicts:
	core/build.xml
	core/src/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.java
	core/src/net/sf/openrocket/gui/figure3d/RocketFigure3d.java
	core/src/net/sf/openrocket/gui/main/BasicFrame.java
	core/src/net/sf/openrocket/gui/util/SaveFileWorker.java
	core/src/net/sf/openrocket/rocketcomponent/RocketComponent.java
	core/src/net/sf/openrocket/simulation/BasicEventSimulationEngine.java
2013-01-06 19:18:46 +02:00
Sampo Niskanen
e4cda1c751 Clamp shine parameter in range of 0..1 2013-01-06 18:10:17 +02:00
plaa
31f620d1bd Merge pull request #34 from bkuker/kruland-integration-unselect
Unselect component when figure is clicked outside the rocket
2013-01-06 08:00:04 -08:00
bkuker
26e38f80dc Add percent / permille unit selector to shine 2013-01-06 10:37:42 -05:00
bkuker
7bda0bde12 Display shine on 0-100 scale 2013-01-06 10:32:56 -05:00
bkuker
3fe7370e08 Set null selection path when nothing is clicked.
Fix a bug that wasn't updating the 3d selection when unselecting
2013-01-06 10:26:36 -05:00
bkuker
62cfd2730e Trigger componentClicked with an empty list if no component is picked by
a clock on the 3d model
2013-01-06 10:23:53 -05:00
bkuker
c7ffc442a5 Change "Shine" to a double in [0,1]
Add shine to OR import & export
2013-01-06 09:58:08 -05:00
Sampo Niskanen
011bcd27e2 Refactor convertStringToBytes method 2013-01-06 16:12:12 +02:00
plaa
e2e509210c Merge pull request #25 from rodinia814/watcher
Directory/File Watcher
2013-01-04 14:52:03 -08:00
bkuker
a8e39af85d Use platform default shortcut key in menus 2013-01-03 19:31:13 -05:00
bkuker
e8bf775e56 Be more careful w/ my depth comparisons 2013-01-03 15:24:39 -05:00
bkuker
1a6c721add Render stickers 2013-01-03 15:24:35 -05:00
bkuker
143a032728 Further refactre RenderStrategies into RocketRenderer subclasses 2013-01-03 15:24:31 -05:00
bkuker
a857fb93be Moving from RenderStrategies to RocketRenderer subclasses. 2013-01-03 15:24:27 -05:00
bkuker
e8ac5d4dea Add a sticker decal option 2013-01-03 15:24:23 -05:00
bkuker
cbb78cf095 Simplified appearance. Is this really what we want? 2013-01-03 09:19:58 -05:00
kruland2607
98db1885c2 UI improvements for flight configurations. Ellipsize the ignition
delay.  Change to using row selection instead of cell selection.  Change
the copy configuration to select the new configuration and copy the
name.
2013-01-02 10:42:51 -06:00
Doug Pedrick
45b337b9f4 Printing fixes; added Save As file to MRU 2013-01-01 14:55:15 -06:00