Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/dae/daeReader.h
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/dae/daeReader.h
r12992 r13041 2 2 * Copyright 2006 Sony Computer Entertainment Inc. 3 3 * 4 * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this 4 * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this 5 5 * file except in compliance with the License. You may obtain a copy of the License at: 6 6 * http://research.scea.com/scea_shared_source_license.html 7 7 * 8 * Unless required by applicable law or agreed to in writing, software distributed under the License 9 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 10 * implied. See the License for the specific language governing permissions and limitations under the 11 * License. 8 * Unless required by applicable law or agreed to in writing, software distributed under the License 9 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 10 * implied. See the License for the specific language governing permissions and limitations under the 11 * License. 12 12 */ 13 13 … … 77 77 78 78 template< typename TInputArray, typename TInputType > 79 bool findInputSourceBySemantic( TInputArray& inputs, const char* semantic, daeElement *& element, 79 bool findInputSourceBySemantic( TInputArray& inputs, const char* semantic, daeElement *& element, 80 80 TInputType ** input = NULL, int unit = 0 ) 81 81 { … … 130 130 /** 131 131 @class daeReader 132 @brief Read a OSG scene from a DAE file 133 */ 132 @brief Read a OSG scene from a DAE file 133 */ 134 134 class daeReader { 135 135 public: … … 154 154 155 155 bool convert( const std::string &fileURI ); 156 156 157 157 osg::Node* getRootNode() { return _rootNode; } 158 158 … … 168 168 }; 169 169 170 enum InterpolationType 171 { 172 INTERPOLATION_UNKNOWN, 173 INTERPOLATION_STEP, 174 INTERPOLATION_LINEAR, 175 INTERPOLATION_BEZIER, 176 INTERPOLATION_HERMITE, 177 INTERPOLATION_CARDINAL, 170 enum InterpolationType 171 { 172 INTERPOLATION_UNKNOWN, 173 INTERPOLATION_STEP, 174 INTERPOLATION_LINEAR, 175 INTERPOLATION_BEZIER, 176 INTERPOLATION_HERMITE, 177 INTERPOLATION_CARDINAL, 178 178 INTERPOLATION_BSPLINE, 179 179 … … 275 275 heuristically decides which way the values should be interpreted.*/ 276 276 bool findInvertTransparency(daeDatabase*) const; 277 277 278 278 osgAnimation::BasicAnimationManager* processAnimationLibraries(domCOLLADA* document); 279 279 void processAnimationClip(osgAnimation::BasicAnimationManager* pOsgAnimationManager, domAnimation_clip* pDomAnimationClip); … … 318 318 template< typename T > 319 319 void processSinglePPrimitive(osg::Geode* geode, const domMesh* pDomMesh, const T* group, SourceMap& sources, GLenum mode); 320 320 321 321 template< typename T > 322 322 void processMultiPPrimitive(osg::Geode* geode, const domMesh* pDomMesh, const T* group, SourceMap& sources, GLenum mode); … … 338 338 void processProfileCOMMON(osg::StateSet *ss, domProfile_COMMON *pc ); 339 339 bool processColorOrTextureType(const osg::StateSet*, 340 domCommon_color_or_texture_type *cot, 341 osg::Material::ColorMode channel, 342 osg::Material *mat, 343 domCommon_float_or_param_type *fop = NULL, 340 domCommon_color_or_texture_type *cot, 341 osg::Material::ColorMode channel, 342 osg::Material *mat, 343 domCommon_float_or_param_type *fop = NULL, 344 344 osg::Texture2D **sa = NULL, 345 345 bool normalizeShininess=false); 346 346 void processTransparencySettings( domCommon_transparent_type *ctt, 347 domCommon_float_or_param_type *pTransparency, 347 domCommon_float_or_param_type *pTransparency, 348 348 osg::StateSet*, 349 349 osg::Material *material,
