Added asView() method to GUIActionAdapter to help out with .NET wrappers. Updated wrappers
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define OSGGA_GUIACTIONADAPTER 1
|
||||
|
||||
#include <osgGA/Export>
|
||||
#include <osg/View>
|
||||
|
||||
namespace osgGA{
|
||||
|
||||
@@ -56,6 +57,10 @@ class GUIActionAdapter
|
||||
public:
|
||||
virtual ~GUIActionAdapter() {}
|
||||
|
||||
/** Provide a mechanism for getting the osg::View assocaited with this GUIActionAdapter.
|
||||
* One would use this to case view to osgViewer::View(er) if supported by the subclass.*/
|
||||
virtual osg::View* asView() { return 0; }
|
||||
|
||||
/**
|
||||
requestRedraw() requests a single redraw.
|
||||
*/
|
||||
|
||||
@@ -41,6 +41,13 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
|
||||
|
||||
META_Object(osgViewer,View);
|
||||
|
||||
/** Provide a mechanism for getting the osg::View assocaited from the GUIActionAdapter.
|
||||
* One would use this to case view to osgViewer::View(er) if supported by the subclass.*/
|
||||
virtual osg::View* asView() { return this; }
|
||||
|
||||
/** Provide a mechanism for getting the viewer object from this osgViewer::View.
|
||||
* In the case of a osgViewer::Viewer the ViewerBase will effectively point to this object as Viewer subclasses from View.
|
||||
* In the case of a osgViewer::CompsoiteViewer the ViewerBase will point to the CompositeViewer that owns this View. */
|
||||
ViewerBase* getViewerBase() { return _viewerBase.get(); }
|
||||
|
||||
/** Take all the settings, Camera and Slaves from the passed in view, leaving it empty. */
|
||||
|
||||
Reference in New Issue
Block a user