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 \*---------------------------------------------------------------------------*/
42 ColladaGlobal::getDAE(void) const
48 ColladaGlobal::editDAE(void)
54 ColladaGlobal::getDocRoot(void) const
59 inline const std::string &
60 ColladaGlobal::getDocPath(void) const
66 ColladaGlobal::setDocPath(const std::string &docPath)
71 inline ColladaOptions *
72 ColladaGlobal::getOptions(void) const
78 ColladaGlobal::setOptions(ColladaOptions *options)
84 ColladaGlobal::getRoot(void) const
90 ColladaGlobal::setRoot(Node *rootN)
94 SWARNING << "ColladaGlobal::setRoot: Root already set. Overwriting."
101 inline GlobalsAttachment *
102 ColladaGlobal::getGlobalsAtt(void) const
108 ColladaGlobal::addLoaderState(
109 const std::string &name, ColladaLoaderState *state)
111 _loaderState[name] = state;
115 ColladaGlobal::subLoaderState(const std::string &name)
117 LoaderStateMapIt sIt = _loaderState.find(name);
119 if(sIt != _loaderState.end())
120 _loaderState.erase(sIt);
123 inline ColladaLoaderState *
124 ColladaGlobal::getLoaderState(const std::string &name) const
126 ColladaLoaderState *retVal = NULL;
127 LoaderStateMapConstIt sIt = _loaderState.find(name);
129 if(sIt != _loaderState.end())
130 retVal = sIt->second;
135 template <class StateTypeT>
137 ColladaGlobal::getLoaderStateAs(const std::string &name) const
139 return dynamic_cast<StateTypeT *>(getLoaderState(name));
142 inline const ColladaGlobal::InstanceQueue &
143 ColladaGlobal::getInstQueue(void) const
148 inline ColladaGlobal::InstanceQueue &
149 ColladaGlobal::editInstQueue(void)
154 inline const ColladaGlobal::ElementStore &
155 ColladaGlobal::getElemStore(void) const
160 inline ColladaGlobal::ElementStore &
161 ColladaGlobal::editElemStore(void)