root/OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osgWidget/Widget.cpp @ 13041

Revision 13041, 2.2 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1// -*-c++-*- osgWidget - Code by: Jeremy Moles (cubicool) 2007-2008
2// $Id: Widget.cpp 50 2008-05-06 05:06:36Z cubicool $
3
4#include <osgDB/Registry>
5#include <osgDB/Input>
6#include <osgDB/Output>
7#include <osgDB/FileUtils>
8#include <osgWidget/Util>
9#include <osgWidget/Widget>
10
11bool osgWidget_Widget_readData(osg::Object& obj, osgDB::Input& fr) {
12        osgWidget::warn() << "Widget read" << std::endl;
13
14        return false;
15}
16
17bool osgWidget_Widget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw)
18{
19
20        // const osgWidget::Widget& model = static_cast<const osgWidget::Widget&>(obj);
21
22        fw.indent() << fw.wrapString("Widget stuff...") << std::endl;
23
24        return true;
25}
26
27bool osgWidget_NotifyWidget_readData(osg::Object& /*obj*/, osgDB::Input& fr)
28{
29        osgWidget::warn() << "NotifyWidget read" << std::endl;
30
31        return false;
32}
33
34bool osgWidget_NotifyWidget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw)
35{
36        // const osgWidget::NotifyWidget& model = static_cast<const osgWidget::NotifyWidget&>(obj);
37
38        fw.indent() << fw.wrapString("NotifyWidget stuff...") << std::endl;
39
40        return true;
41}
42
43bool osgWidget_NullWidget_readData(osg::Object& /*obj*/, osgDB::Input& fr)
44{
45        osgWidget::warn() << "NullWidget read" << std::endl;
46
47        return false;
48}
49
50bool osgWidget_NullWidget_writeData(const osg::Object& /*obj*/, osgDB::Output& fw)
51{
52        // const osgWidget::NullWidget& model = static_cast<const osgWidget::NullWidget&>(obj);
53
54        fw.indent() << fw.wrapString("NullWidget stuff...") << std::endl;
55
56        return true;
57}
58
59REGISTER_DOTOSGWRAPPER(g_osgWidget_WidgetProxy)
60(
61        new osgWidget::Widget("unset"),
62        "osgWidget::Widget",
63        "Object Drawable Geometry osgWidget::Widget",
64        &osgWidget_Widget_readData,
65        &osgWidget_Widget_writeData
66);
67
68REGISTER_DOTOSGWRAPPER(g_osgWidget_NotifyWidgetProxy)
69(
70        new osgWidget::NotifyWidget("unset"),
71        "osgWidget::NotifyWidget",
72        "Object Drawable Geometry osgWidget::Widget osgWidget::NotifyWidget",
73        &osgWidget_NotifyWidget_readData,
74        &osgWidget_NotifyWidget_writeData
75);
76
77REGISTER_DOTOSGWRAPPER(g_osgWidget_NullWidgetProxy)
78(
79        new osgWidget::Widget("unset"),
80        "osgWidget::NullWidget",
81        "Object Drawable Geometry osgWidget::Widget osgWidget::NullWidget",
82        &osgWidget_NullWidget_readData,
83        &osgWidget_NullWidget_writeData
84);
Note: See TracBrowser for help on using the browser.