Free Electron
SceneNodeOSG.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __osg_SceneNodeOSG_h__
8 #define __osg_SceneNodeOSG_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Object hierarchy using OpenSceneGraph
16 
17  @ingroup osg
18 
19  http://www.openscenegraph.org
20 *//***************************************************************************/
21 class SceneNodeOSG: virtual public SceneNodeI
22 {
23  public:
24  SceneNodeOSG(void);
25 virtual ~SceneNodeOSG(void);
26 
27  //* As SceneI
28 virtual BWORD load(String a_filename);
29 virtual U32 childCount(void) const;
30 virtual sp<SceneNodeI> child(U32 a_index) const;
31 
32 virtual sp<SceneNodeI> createChild(void);
33 virtual BWORD append(sp<SceneNodeI> a_spChild);
34 virtual BWORD remove(sp<SceneNodeI> a_spChild);
35 
36  osg::ref_ptr<osg::Node> node(void) { return m_refNode; }
37 
38  private:
39  osg::ref_ptr<osg::Node> m_refNode;
40 };
41 
42 } /* namespace ext */
43 } /* namespace fe */
44 
45 #endif /* __openil_SceneNodeOSG_h__ */
kernel
Definition: namespace.dox:3
Scene graph node.
Definition: SceneNodeI.h:19
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Object hierarchy using OpenSceneGraph.
Definition: SceneNodeOSG.h:21