Changeset 7561
- Timestamp:
- 10/04/07 13:20:18
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/include/osgGA/GUIActionAdapter
r5328 r7561 16 16 17 17 #include <osgGA/Export> 18 #include <osg/View> 18 19 19 20 namespace osgGA{ … … 57 58 virtual ~GUIActionAdapter() {} 58 59 60 /** Provide a mechanism for getting the osg::View assocaited with this GUIActionAdapter. 61 * One would use this to case view to osgViewer::View(er) if supported by the subclass.*/ 62 virtual osg::View* asView() { return 0; } 63 59 64 /** 60 65 requestRedraw() requests a single redraw. OpenSceneGraph/trunk/include/osgViewer/View
r7507 r7561 42 42 META_Object(osgViewer,View); 43 43 44 /** Provide a mechanism for getting the osg::View assocaited from the GUIActionAdapter. 45 * One would use this to case view to osgViewer::View(er) if supported by the subclass.*/ 46 virtual osg::View* asView() { return this; } 47 48 /** Provide a mechanism for getting the viewer object from this osgViewer::View. 49 * In the case of a osgViewer::Viewer the ViewerBase will effectively point to this object as Viewer subclasses from View. 50 * In the case of a osgViewer::CompsoiteViewer the ViewerBase will point to the CompositeViewer that owns this View. */ 44 51 ViewerBase* getViewerBase() { return _viewerBase.get(); } 45 52 OpenSceneGraph/trunk/src/osgWrappers/osgGA/GUIActionAdapter.cpp
r7212 r7561 11 11 #include <osgIntrospection/Attributes> 12 12 13 #include <osg/View> 13 14 #include <osgGA/GUIActionAdapter> 14 15 … … 26 27 "", 27 28 ""); 29 I_Method0(osg::View *, asView, 30 Properties::VIRTUAL, 31 __osg_View_P1__asView, 32 "Provide a mechanism for getting the osg::View assocaited with this GUIActionAdapter. ", 33 "One would use this to case view to osgViewer::View(er) if supported by the subclass. "); 28 34 I_Method0(void, requestRedraw, 29 35 Properties::PURE_VIRTUAL, OpenSceneGraph/trunk/src/osgWrappers/osgViewer/View.cpp
r7507 r7561 76 76 "return the name of the object's class type. ", 77 77 "Must be defined by derived classes. "); 78 I_Method0(osg::View *, asView, 79 Properties::VIRTUAL, 80 __osg_View_P1__asView, 81 "Provide a mechanism for getting the osg::View assocaited from the GUIActionAdapter. ", 82 "One would use this to case view to osgViewer::View(er) if supported by the subclass. "); 78 83 I_Method0(osgViewer::ViewerBase *, getViewerBase, 79 84 Properties::NON_VIRTUAL, 80 85 __ViewerBase_P1__getViewerBase, 81 " ",82 " ");86 "Provide a mechanism for getting the viewer object from this osgViewer::View. ", 87 "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. "); 83 88 I_Method1(void, take, IN, osg::View &, rhs, 84 89 Properties::VIRTUAL,
