1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2009 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
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"
54 class ColladaInstanceVisualScene
;
59 class ColladaInstanceVisualScene
;
62 /*! \ingroup GrpFileIOCollada
66 class OSG_FILEIO_DLLMAPPING ColladaVisualScene
67 : public ColladaInstantiableElement
69 /*========================== PUBLIC =================================*/
71 /*---------------------------------------------------------------------*/
75 typedef ColladaInstantiableElement Inherited
;
76 typedef ColladaVisualScene Self
;
78 OSG_GEN_INTERNAL_MEMOBJPTR(ColladaVisualScene
);
80 class ColladaVisualSceneInstInfo
: public ColladaInstInfo
82 /*========================== PUBLIC =============================*/
84 /*-----------------------------------------------------------------*/
88 typedef ColladaInstInfo Inherited
;
89 typedef ColladaVisualSceneInstInfo Self
;
91 OSG_GEN_INTERNAL_MEMOBJPTR(ColladaVisualSceneInstInfo
);
94 /*-----------------------------------------------------------------*/
98 static ColladaInstInfoTransitPtr
99 create(ColladaScene
*colInstParent
,
100 ColladaInstanceVisualScene
*colInst
);
103 /*-----------------------------------------------------------------*/
107 virtual void process(void);
110 /*========================= PROTECTED ===========================*/
112 /*-----------------------------------------------------------------*/
113 /*! \name Constructors/Destructor */
116 ColladaVisualSceneInstInfo(
117 ColladaScene
*colInstParent
,
118 ColladaInstanceVisualScene
*colInst
);
119 virtual ~ColladaVisualSceneInstInfo(void );
122 /*-----------------------------------------------------------------*/
125 OSG_GEN_MEMOBJPTR(ColladaVisualSceneInstInfo
);
128 /*---------------------------------------------------------------------*/
132 static ColladaElementTransitPtr
133 create(daeElement
*elem
, ColladaGlobal
*global
);
136 /*---------------------------------------------------------------------*/
140 virtual void read (ColladaElement
*colElemParent
);
141 virtual Node
*createInstance(ColladaInstInfo
*colInstInfo
);
144 /*========================= PROTECTED ===============================*/
146 /*---------------------------------------------------------------------*/
147 /*! \name Constructors/Destructor */
150 ColladaVisualScene(daeElement
*elem
,
151 ColladaGlobal
*global
);
152 virtual ~ColladaVisualScene(void );
155 /*---------------------------------------------------------------------*/
157 static ColladaElementRegistrationHelper _regHelper
;
160 OSG_GEN_MEMOBJPTR(ColladaVisualScene
);
164 // #include "OSGColladaVisualScene.inl"
166 #endif // OSG_WITH_COLLADA
168 #endif // _OSGCOLLADAVISUALSCENE_H_