Robert Osfield
21fc2fae8d
Added setting of the IsoSurfaceProperty in VolumeSettings
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14436 16af8721-9629-0410-8352-f15c8da7e697
2014-09-03 15:54:47 +00:00
Robert Osfield
d97081fe7f
Improved handling of VolumeSettings
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14427 16af8721-9629-0410-8352-f15c8da7e697
2014-08-28 09:42:01 +00:00
Robert Osfield
2f10db8f11
Changed the osgUI behaviour so that events are set to be handled by Widgets that have focus even if they don't directly use them.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14425 16af8721-9629-0410-8352-f15c8da7e697
2014-08-27 15:08:48 +00:00
Robert Osfield
a53e73ba10
Added toggling on/off of the VolumeSettings ui via the 'E' key.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14416 16af8721-9629-0410-8352-f15c8da7e697
2014-08-19 16:58:02 +00:00
Robert Osfield
e3c445a52f
Updated VolumeSettings.lua reference to use ui prefix to work with the new OpenSceneGraph-Data/ui/VolumeSettings.lua file.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14415 16af8721-9629-0410-8352-f15c8da7e697
2014-08-19 16:37:20 +00:00
Robert Osfield
5f74fdc326
Resert default value to 1.0
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14408 16af8721-9629-0410-8352-f15c8da7e697
2014-08-13 09:24:38 +00:00
Robert Osfield
20560bd927
Initial work on integtasting osgUI into Present3D
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14370 16af8721-9629-0410-8352-f15c8da7e697
2014-07-21 12:21:42 +00:00
Robert Osfield
f2d11bb46e
Added preliminary support for writing VolumeSettings to disk from within Present3D in response to pressing and releasing 'Ctrl-S'.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14363 16af8721-9629-0410-8352-f15c8da7e697
2014-07-04 16:45:05 +00:00
Robert Osfield
d981ca416e
Added virtual destructors
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14351 16af8721-9629-0410-8352-f15c8da7e697
2014-07-03 13:06:23 +00:00
Robert Osfield
7a18876c5b
Changed enum usage to use the new osgVolume::VolumeSettings versions and added support for reading a VolumeSettings file.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14349 16af8721-9629-0410-8352-f15c8da7e697
2014-07-03 13:01:05 +00:00
Robert Osfield
74f91037a7
Further work on Bound class/Node::getBound() and Drawable::getBound() and usage in OSG codebase
2014-05-14 16:01:40 +00:00
Robert Osfield
d7944b6ca9
Addd ExteriorTransparencyFactorProperty for support of upcomming functionality of rendering a cube volume with a hull volume inside it.
2014-03-18 18:14:15 +00:00
Robert Osfield
ed724a730e
Added support for animating volume hulls.
2014-03-17 15:54:52 +00:00
Robert Osfield
ea865d0ff9
Added support for directly invoking scripts using <run-script> and <run-script-file> to enable scripts to interact with each other.
2014-03-13 10:28:18 +00:00
Robert Osfield
75982f3379
Improved support for passing events between scripts and Present3D application
2014-03-12 11:01:09 +00:00
Robert Osfield
8f30a262f4
Added PresentationInterface class to make it more convinient to access the current presentation from scripting languages
2014-03-11 10:52:10 +00:00
Robert Osfield
ee266255eb
Added scripting support for JumpData, KeyPosition, HomePosition and parts of SlideEventHandler that enable dispatching of user created events.
2014-03-10 19:08:46 +00:00
Robert Osfield
ca3737e002
Tweaked the detection of when the position transform for the hull is required.
2014-02-05 11:08:39 +00:00
Robert Osfield
2b8be97297
Added support for a <hull> tag that can be used within <volume> tag.
2014-02-05 11:07:03 +00:00
Robert Osfield
5f8e2bda2f
Added osg::CallbackObject to be used to extend C++ class from scripting languages by providing callback objects assigned to the osg::Object UserDataContainer, with the CallbackObject's Name used to map the "method" provided by the CallbackObject. The CallbackObject is implemented by the script engine to provide the neccessary glue to invoking the script with the appropriate input parameters and handling the output parameters.
...
To the Lua plugin added support for assigned lua functions to C++ osg::Objects via the new osg::CallbackObject mechanism. To invoke the scripts function from C++ one must get the CallbackObject and call run on it.
Renamed ScriptCallback to ScriptNodeCallback to avoid possibly confusion between osg::CallbackObject and the ScriptNodeCallback.
2014-01-31 16:20:29 +00:00
Robert Osfield
29ab577bc3
From Stephan Huber, "attached is a new zip containing two small fixes:
...
* forwarded touch-events do have a correct input-range from 0 .. 1
* I refactored sending touch-events per osc so the receiver can detect a TOUCH_ENDED better"
2014-01-24 10:10:43 +00:00
Robert Osfield
a96ad565c7
From Stephan Huber, "attached are some fixes to the osc-plugin and the touch-implementations for iOS and os x and other small bugfixes. These fixes will normalize the orientation of the touch points, and transmitting the touch points over osc via the TUIO-protocol works now more robustly between two osg-applications.
...
I added a new tag to p3d called forward_touch_event_to_device and renamed the existing forward_event_to_device to forward_mouse_event_to_device. This new tag will transmit touches to the virtual trackpad as touch events. I added the MultitouchTrackball to the p3d-app so zooming and moving a model remotely should now work, if you use forward_touch_event_to_device. I kept (and fixed) forward_mouse_event_to_device for background compatibility, so old presentations works as in previous versions, without the ability to zoom + scale. of course.
forward_touch_event_to_device needs some more testing, (e.g. with image-streams and keystone, afaik there’s no support for touch-events...) but for a first version it works nice.
"
2014-01-23 15:37:48 +00:00
Robert Osfield
1678dc3562
Added support for osgVolue::SampleRatioProperty. Fixed build errors when compiling with ref_ptr<> automatic type conversion.
2014-01-21 18:48:53 +00:00
Robert Osfield
e8cd06c6e9
Added hull="hul-filename" property support to <volume> tag that can used thus:
...
<layer>
<volume renderer="MultiPass" hull="cow.osgt.0,-2,-4.trans.50,50,50.scale">CardiacCT</volume>
</layer>
2014-01-16 17:17:37 +00:00
Robert Osfield
865a47bd6b
Added <switch> tag to .p3d to allow one to provide multiple ways to render children within a layer.
2013-12-20 09:57:35 +00:00
Robert Osfield
f16f278fea
From Stephan Hunber, "attached you’ll find some changes to osg/p3d:
...
* a new command-line-option to present3d and a new option to the p3d-plugin to suppress any found <env> tags
* a new command-line-option to present3d to forward mouse-events via osgGA::Device (defaults to off) so we can test the interface-files with present3d better
* I added a new attribute forward_to_devices for click_to_event to forward the event to all attached devices instead of handling the event locally. This will fix the annoyance with the new interface-files when toggling polygon-mode or switching light on/off.
Here’s an example:
<click_to_event forward_to_devices="true">0x72</click_to_event>
"
2013-12-19 13:49:27 +00:00
Robert Osfield
a8dc460085
Implemented support for calling scripts from with Present3D.
2013-12-19 10:02:16 +00:00
Robert Osfield
591c5bae42
Added support for new osgVolume::MultiPassTechnique to Present3D. To use add property renderer="MultiPass":
...
<volume renderer="MultiPass">MyVolumeData</volume>
2013-12-17 12:18:06 +00:00
Robert Osfield
d3a7115c45
Removed trailing spaces, added missing return to last lines
2013-11-22 09:38:50 +00:00
Robert Osfield
eede49d15c
Removed unused variables
2013-11-11 10:55:51 +00:00
Robert Osfield
4a660f6266
Introduce new osgGA::Event and osgGA::EventHandler base classes that the old GUIEventAdapter and GUIEventHandler now subclass from.
...
The new osgGA::Event is written to support more generic events than the original GUIEventAdapter which are written for keyboard and mouse events.
2013-10-25 14:54:15 +00:00
Robert Osfield
59caf4a48e
Fixed build with no automatic ref_ptr<> conversion
2013-10-01 19:34:21 +00:00
Robert Osfield
898c716841
Added osgPresentation::Show node and implementations with basic property reporting for various internal nodes of presentation graph
2013-09-10 09:23:30 +00:00
Robert Osfield
7050c59cae
Initial cut of Audio/Volume/Movie/Image presentation objects
2013-09-06 09:35:56 +00:00
Robert Osfield
73250601f0
Added missing Model.cpp
2013-09-05 08:22:27 +00:00
Robert Osfield
856ec46467
Added PrintProperties visitor
2013-09-04 16:25:18 +00:00
Robert Osfield
ccf7bbdb50
Added PrintPropertiesAction to osgPresentation
2013-09-04 15:39:17 +00:00
Robert Osfield
9f5e131203
Added Action class NodeVisitor that supports osgPresentation nodes.
2013-09-04 10:33:11 +00:00
Robert Osfield
3c106e4dd7
Added test for osgPresentatation::Group::getSupportedProperties()
2013-09-03 15:50:28 +00:00
Robert Osfield
fdfe3210ce
Added beginings of Text implementation
2013-09-03 10:17:06 +00:00
Robert Osfield
820ba45fab
Added Audio, Image, Movie, Model and Volume class to osgPresentation.
2013-09-01 17:24:35 +00:00
Robert Osfield
11685a3e0c
Removed debug messages
2013-08-22 12:37:49 +00:00
Robert Osfield
db449b9e09
Added warning when model file has not be found
2013-08-22 10:09:21 +00:00
Robert Osfield
464628b5c4
Reduced debug message level, and added a notify message for when an image isn't loaded
2013-08-22 10:05:29 +00:00
Robert Osfield
c678fed113
Added initial classes for present3D refactor
2013-08-21 19:54:03 +00:00
Robert Osfield
4e3715d4bb
Moved old osgPresentation source files to osgPresentation/deprecated subdirectory.
2013-08-18 18:10:39 +00:00
Robert Osfield
93ebfd6217
Added translucent version of cushion which isn't depth tested to enable one to see the cursor even when it's behind other objects
2013-08-08 17:21:20 +00:00
Robert Osfield
82401defc7
Added osgPresentation::Cursor class to wrap up 3D cursor in the scene functionality
2013-08-08 16:49:33 +00:00
Robert Osfield
097aedf23c
From David Callu, warning fixes and removal of spaces at end of lines.
2013-06-28 12:00:43 +00:00
Robert Osfield
668d351765
Introduced new scheme for handling mouse events with osgViewer. The new scheme enables robust event handling even when using distortion correction render to texture Cameras.
2013-05-03 19:26:27 +00:00