Changeset 13041 for OpenSceneGraph/trunk/include/osgWidget/Browser
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgWidget/Browser (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgWidget/Browser
r12292 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 25 25 { 26 26 public: 27 27 28 28 static osg::ref_ptr<BrowserManager>& instance(); 29 29 30 30 virtual void init(const std::string& application); 31 31 … … 34 34 35 35 virtual BrowserImage* createBrowserImage(const std::string& url, int width, int height); 36 36 37 37 protected: 38 38 … … 40 40 BrowserManager(const BrowserManager& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): 41 41 osg::Object(rhs,copyop) {} 42 42 43 43 virtual ~BrowserManager(); 44 44 45 45 META_Object(osgWidget,BrowserManager); 46 46 … … 54 54 { 55 55 public: 56 56 57 57 BrowserImage() {} 58 58 59 59 virtual void navigateTo(const std::string& url) = 0; 60 60 61 61 protected: 62 62 63 63 virtual ~BrowserImage() {} 64 64 65 65 }; 66 66 … … 70 70 { 71 71 public: 72 72 73 73 Browser() {} 74 74 75 75 Browser(const std::string& url, const GeometryHints& hints = GeometryHints()); 76 76 77 77 bool assign(BrowserImage* browserImage, const GeometryHints& hints = GeometryHints()); 78 78 … … 82 82 83 83 protected: 84 84 85 85 osg::ref_ptr<BrowserImage> _browserImage; 86 86 };
