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 _OSGCOLLADAOPTIONS_H_
40 #define _OSGCOLLADAOPTIONS_H_
46 /*! \file OSGColladaOptions.h
49 #include "OSGConfig.h"
51 #if defined(OSG_WITH_COLLADA) || defined(OSG_DO_DOC)
53 #include "OSGFileIODef.h"
54 #include "OSGMemoryObject.h"
55 #include "OSGRefCountPtr.h"
56 #include "OSGTransitPtr.h"
57 #include "OSGIOFileTypeBase.h"
61 /*! \ingroup GrpFileIOCollada
65 class OSG_FILEIO_DLLMAPPING ColladaOptions
: public MemoryObject
67 /*========================== PUBLIC =================================*/
69 /*---------------------------------------------------------------------*/
73 typedef MemoryObject Inherited
;
74 typedef ColladaOptions Self
;
76 OSG_GEN_INTERNAL_MEMOBJPTR(ColladaOptions
);
78 typedef IOFileTypeBase::OptionSet OptionSet
;
81 /*---------------------------------------------------------------------*/
85 static ObjTransitPtr
create(void);
88 /*---------------------------------------------------------------------*/
92 virtual void parseOptions(const OptionSet
&optSet
);
95 /*---------------------------------------------------------------------*/
99 template <class ValueTypeT
>
100 bool getOptionAs(const std::string
&name
,
104 /*---------------------------------------------------------------------*/
108 bool getInvertTransparency (void ) const;
109 void setInvertTransparency (bool value
);
111 bool getMergeTransforms (void ) const;
112 void setMergeTransforms (bool value
);
114 bool getCreateNameAttachments (void ) const;
115 void setCreateNameAttachments (bool value
);
117 bool getLoadAnimations (void ) const;
118 void setLoadAnimations (bool value
);
120 bool getLoadLights (void ) const;
121 void setLoadLights (bool value
);
123 bool getTryMergeInvalidIndices(void ) const;
124 void setTryMergeInvalidIndices(bool value
);
127 /*========================= PROTECTED ===============================*/
131 /*---------------------------------------------------------------------*/
132 /*! \name Constructors/Destructor */
135 ColladaOptions(void);
136 virtual ~ColladaOptions(void);
139 /*---------------------------------------------------------------------*/
141 bool _invertTransparency
;
142 bool _mergeTransforms
;
143 bool _createNameAttachments
;
144 bool _loadAnimations
;
146 bool _tryMergeInvalidIndices
;
153 OSG_GEN_MEMOBJPTR(ColladaOptions
);
157 #include "OSGColladaOptions.inl"
159 #endif // OSG_WITH_COLLADA
161 #endif // _OSGCOLLADAOPTIONS_H_