OpenSceneGraph 3.6.5
Browser
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
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
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGWIDGET_BROWSER
15#define OSGWIDGET_BROWSER
16
17#include <osgWidget/PdfReader>
18
19namespace osgWidget {
20
21
22class BrowserImage;
23
25{
26 public:
27
29
30 virtual void init(const std::string& application);
31
32 void setApplication(const std::string& application) { _application = application; }
33 const std::string& getApplication() const { return _application; }
34
35 virtual BrowserImage* createBrowserImage(const std::string& url, int width, int height);
36
37 protected:
38
41 osg::Object(rhs,copyop) {}
42
43 virtual ~BrowserManager();
44
46
47 std::string _application;
48};
49
50
54{
55 public:
56
58
59 virtual void navigateTo(const std::string& url) = 0;
60
61 protected:
62
63 virtual ~BrowserImage() {}
64
65};
66
67
70{
71 public:
72
74
75 Browser(const std::string& url, const GeometryHints& hints = GeometryHints());
76
77 bool assign(BrowserImage* browserImage, const GeometryHints& hints = GeometryHints());
78
79 bool open(const std::string& url, const GeometryHints& hints = GeometryHints());
80
81 void navigateTo(const std::string& url);
82
83 protected:
84
86};
87
88}
89
90#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The osgWidget library is a NodeKit that extends the core scene graph to support a 2D (and eventually ...
Definition Box:21
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
A Geode is a "geometry node", that is, a leaf node on the scene graph that can have "renderable thing...
Definition Geode:29
Image class for encapsulating the storage texture image data.
Definition Image:179
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
void setApplication(const std::string &application)
Definition Browser:32
META_Object(osgWidget, BrowserManager)
const std::string & getApplication() const
Definition Browser:33
static osg::ref_ptr< BrowserManager > & instance()
std::string _application
Definition Browser:47
BrowserManager(const BrowserManager &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition Browser:40
virtual BrowserImage * createBrowserImage(const std::string &url, int width, int height)
virtual void init(const std::string &application)
Pure virtual base class that provides the browser interface for integration with 3rd party implementa...
Definition Browser:54
BrowserImage()
Definition Browser:57
virtual void navigateTo(const std::string &url)=0
virtual ~BrowserImage()
Definition Browser:63
bool open(const std::string &url, const GeometryHints &hints=GeometryHints())
void navigateTo(const std::string &url)
osg::ref_ptr< BrowserImage > _browserImage
Definition Browser:85
Browser(const std::string &url, const GeometryHints &hints=GeometryHints())
Browser()
Definition Browser:73
bool assign(BrowserImage *browserImage, const GeometryHints &hints=GeometryHints())
Hints structure that can be passed to PdfReader and VncClient classes to help guide them on what geom...
Definition PdfReader:27
#define OSGWIDGET_EXPORT
Definition Export:42

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.