fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / Collada / OSGColladaVisualScene.h
blob9096c796dc94b0d94b441b9bda97a7cdcf333e94
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2009 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGCOLLADAVISUALSCENE_H_
40 #define _OSGCOLLADAVISUALSCENE_H_
42 #include "OSGConfig.h"
44 #if defined(OSG_WITH_COLLADA) || defined(OSG_DO_DOC)
46 #include "OSGColladaInstantiableElement.h"
47 #include "OSGColladaElementFactoryHelper.h"
48 #include "OSGColladaInstInfo.h"
49 #include "OSGNode.h"
51 OSG_BEGIN_NAMESPACE
53 // forward decl
54 class ColladaInstanceVisualScene;
55 class ColladaScene;
58 // forward decl
59 class ColladaInstanceVisualScene;
60 class ColladaScene;
62 /*! \ingroup GrpFileIOCollada
63 \nohierarchy
66 class OSG_FILEIO_DLLMAPPING ColladaVisualScene
67 : public ColladaInstantiableElement
69 /*========================== PUBLIC =================================*/
70 public:
71 /*---------------------------------------------------------------------*/
72 /*! \name Types */
73 /*! \{ */
75 typedef ColladaInstantiableElement Inherited;
76 typedef ColladaVisualScene Self;
78 OSG_GEN_INTERNAL_MEMOBJPTR(ColladaVisualScene);
80 class ColladaVisualSceneInstInfo : public ColladaInstInfo
82 /*========================== PUBLIC =============================*/
83 public:
84 /*-----------------------------------------------------------------*/
85 /*! \name Types */
86 /*! \{ */
88 typedef ColladaInstInfo Inherited;
89 typedef ColladaVisualSceneInstInfo Self;
91 OSG_GEN_INTERNAL_MEMOBJPTR(ColladaVisualSceneInstInfo);
93 /*! \} */
94 /*-----------------------------------------------------------------*/
95 /*! \name Create */
96 /*! \{ */
98 static ColladaInstInfoTransitPtr
99 create(ColladaScene *colInstParent,
100 ColladaInstanceVisualScene *colInst );
102 /*! \} */
103 /*-----------------------------------------------------------------*/
104 /*! \name Process */
105 /*! \{ */
107 virtual void process(void);
109 /*! \} */
110 /*========================= PROTECTED ===========================*/
111 protected:
112 /*-----------------------------------------------------------------*/
113 /*! \name Constructors/Destructor */
114 /*! \{ */
116 ColladaVisualSceneInstInfo(
117 ColladaScene *colInstParent,
118 ColladaInstanceVisualScene *colInst );
119 virtual ~ColladaVisualSceneInstInfo(void );
121 /*! \} */
122 /*-----------------------------------------------------------------*/
125 OSG_GEN_MEMOBJPTR(ColladaVisualSceneInstInfo);
127 /*! \} */
128 /*---------------------------------------------------------------------*/
129 /*! \name Create */
130 /*! \{ */
132 static ColladaElementTransitPtr
133 create(daeElement *elem, ColladaGlobal *global);
135 /*! \} */
136 /*---------------------------------------------------------------------*/
137 /*! \name Reading */
138 /*! \{ */
140 virtual void read (ColladaElement *colElemParent);
141 virtual Node *createInstance(ColladaInstInfo *colInstInfo );
143 /*! \} */
144 /*========================= PROTECTED ===============================*/
145 protected:
146 /*---------------------------------------------------------------------*/
147 /*! \name Constructors/Destructor */
148 /*! \{ */
150 ColladaVisualScene(daeElement *elem,
151 ColladaGlobal *global);
152 virtual ~ColladaVisualScene(void );
154 /*! \} */
155 /*---------------------------------------------------------------------*/
157 static ColladaElementRegistrationHelper _regHelper;
160 OSG_GEN_MEMOBJPTR(ColladaVisualScene);
162 OSG_END_NAMESPACE
164 // #include "OSGColladaVisualScene.inl"
166 #endif // OSG_WITH_COLLADA
168 #endif // _OSGCOLLADAVISUALSCENE_H_