Changeset 991
- Timestamp:
- 10/27/07 19:15:23 (9 months ago)
- Files:
-
- branches/Carsten_PtrWork/Source/System/Cluster/Base/testClusterClient.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Base/OSGFieldBundle.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Base/OSGFieldBundle.inl (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGMPointerFieldAdapter.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditMFieldHandle.h (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditMFieldHandle.inl (modified) (5 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditSFieldHandle.h (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditSFieldHandle.inl (modified) (5 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerFieldTraits.inl (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetMFieldHandle.h (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetMFieldHandle.inl (modified) (3 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetSFieldHandle.h (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetSFieldHandle.inl (modified) (3 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerMField.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerMField.inl (modified) (7 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerSField.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerSField.inl (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerMField.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerMField.inl (modified) (6 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerSField.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerSField.inl (modified) (3 diffs)
- branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGSPointerFieldAdapter.h (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGNFIOBase.cpp (modified) (7 diffs)
- branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGNFIOGeometry.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGOSBCommonElement.cpp (modified) (7 diffs)
- branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGOSBGeometryElement.cpp (modified) (5 diffs)
- branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGOSBRootElement.cpp (modified) (2 diffs)
- branches/Carsten_PtrWork/Source/System/NodeCores/Drawables/Geometry/Base/WS/OSGGeometryTest.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/NodeCores/Drawables/Geometry/Util/OSGGeoStatsAttachmentTest.cpp (modified) (13 diffs)
- branches/Carsten_PtrWork/Source/System/NodeCores/Drawables/Terrain/QuadTree/testTiledQuadTreeTerrain.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/NodeCores/Groups/Stage/testSimpleStage.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/System/Statistics/Foregrounds/testStatisticsRender.cpp (modified) (1 diff)
- branches/Carsten_PtrWork/Source/WindowSystem/GLUT/testWindowGLUT.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork/Source/System/Cluster/Base/testClusterClient.cpp
r894 r991 238 238 } 239 239 } 240 for(MFNodePtr::const_iterator nI=node->getMFChildren()->begin(); 241 nI != node->getMFChildren()->end(); 242 ++nI) 240 241 Node::ChildrenFieldType::const_iterator nI = node->getMFChildren()->begin(); 242 Node::ChildrenFieldType::const_iterator nE = node->getMFChildren()->end (); 243 244 for(; nI != nE; ++nI) 243 245 { 244 246 prepareSceneGraph(*nI); branches/Carsten_PtrWork/Source/System/FieldContainer/Base/OSGFieldBundle.h
r976 r991 128 128 Int32 getRefCount (void) const; 129 129 130 OSG_SYSTEM_DLLMAPPING 131 void addWeakReference(void); 132 133 OSG_SYSTEM_DLLMAPPING 134 void subWeakReference(void); 135 136 OSG_SYSTEM_DLLMAPPING 137 Int32 getWeakRefCount (void) const; 138 130 139 /*! \} */ 131 140 /*---------------------------------------------------------------------*/ branches/Carsten_PtrWork/Source/System/FieldContainer/Base/OSGFieldBundle.inl
r976 r991 105 105 106 106 inline 107 void FieldBundle::addWeakReference(void) 108 { 109 FWARNING(("FieldBundle::addWeakReference: NIY\n")); 110 } 111 112 inline 113 void FieldBundle::subWeakReference(void) 114 { 115 FWARNING(("FieldBundle::subWeakReference: NIY\n")); 116 } 117 118 inline 119 Int32 FieldBundle::getWeakRefCount(void) const 120 { 121 FWARNING(("FieldBundle::getWeakReference: NIY\n")); 122 123 return 0; 124 } 125 126 127 inline 107 128 void FieldBundle::resolveLinks(void) 108 129 { branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGMPointerFieldAdapter.h
r976 r991 208 208 OSG_END_NAMESPACE 209 209 210 #include "OSGMPointerFieldAdapter.inl" 211 210 212 #endif // _OSGMPOINTERFIELDADAPTER_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditMFieldHandle.h
r980 r991 64 64 /*! \{ */ 65 65 66 typedef EditFieldHandle Inherited; 67 typedef boost::shared_ptr<EditMFieldHandle> Ptr; 66 typedef EditFieldHandle Inherited; 67 typedef EditMFieldHandle< 68 MField<ParentPointer<ObjectT, 69 RootObjectT> > > Self; 70 typedef boost::shared_ptr<Self> Ptr; 68 71 69 72 typedef MField<ParentPointer<ObjectT, … … 141 144 OSG_END_NAMESPACE 142 145 146 #include "OSGParentPointerEditMFieldHandle.inl" 147 143 148 #endif // _OSGPARENTPOINTEREDITMFIELDHANDLE_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditMFieldHandle.inl
r980 r991 145 145 template <class ObjectT, class RootObjectT> 146 146 inline void 147 EditMFieldHandle<MField<ParentPointer< Container,147 EditMFieldHandle<MField<ParentPointer<ObjectT, 148 148 RootObjectT> > >::pushValueFromCString( 149 149 Char8 const *str) 150 150 { 151 FWARNING(("EditMFieldHandle<MField<ParentPointer< Container, "151 FWARNING(("EditMFieldHandle<MField<ParentPointer<ObjectT, " 152 152 "RootObjectT> > >::pushValueFromCString(): NIY \n")); 153 153 } … … 168 168 } 169 169 170 HandledFieldType *pLhs = static_cast<HandledFieldType *>( _pField);170 HandledFieldType *pLhs = static_cast<HandledFieldType *>(this ->_pField); 171 171 HandledFieldType *pRhs = static_cast<HandledFieldType *>(pOther->_pField); 172 172 … … 203 203 RootObjectT> > >::cloneValues( 204 204 GetFieldHandlePtr pSrc, 205 TypePtrVector const &shareTypes = TypePtrVector(),206 TypePtrVector const &ignoreTypes = TypePtrVector(),207 TypeIdVector const &shareGroupIds = TypeIdVector (),208 TypeIdVector const &ignoreGroupIds = TypeIdVector ()) const205 TypePtrVector const &shareTypes, 206 TypePtrVector const &ignoreTypes, 207 TypeIdVector const &shareGroupIds, 208 TypeIdVector const &ignoreGroupIds) const 209 209 { 210 210 FWARNING(("Illegal EditMFieldHandle<MField<ParentPointer<ObjectT> > >" … … 224 224 RootObjectT> > >::operator->(void) 225 225 { 226 return static_cast<HandledFieldType *>( _pField);226 return static_cast<HandledFieldType *>(this->_pField); 227 227 } 228 228 … … 234 234 RootObjectT> > >::operator*(void) 235 235 { 236 return *static_cast<HandledFieldType *>( _pField);236 return *static_cast<HandledFieldType *>(this->_pField); 237 237 } 238 238 branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditSFieldHandle.h
r980 r991 64 64 /*! \{ */ 65 65 66 typedef EditFieldHandle Inherited; 67 typedef boost::shared_ptr<EditSFieldHandle> Ptr; 66 typedef EditFieldHandle Inherited; 67 typedef EditSFieldHandle< 68 SField<ParentPointer<ObjectT, 69 RootObjectT> > > Self; 70 typedef boost::shared_ptr<Self> Ptr; 68 71 69 72 typedef SField<ParentPointer<ObjectT, … … 141 144 OSG_END_NAMESPACE 142 145 146 #include "OSGParentPointerEditSFieldHandle.inl" 147 143 148 #endif // _OSGPARENTPOINTEREDITSFIELDHANDLE_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerEditSFieldHandle.inl
r980 r991 144 144 template <class ObjectT, class RootObjectT> 145 145 inline void 146 EditSFieldHandle<SField<ParentPointer< Container,146 EditSFieldHandle<SField<ParentPointer<ObjectT, 147 147 RootObjectT> > >::pushValueFromCString( 148 148 Char8 const *str) 149 149 { 150 FWARNING(("EditSFieldHandle<SField<ParentPointer< Container, "150 FWARNING(("EditSFieldHandle<SField<ParentPointer<ObjectT, " 151 151 "RootObjectT> > >::pushValueFromCString(): NIY \n")); 152 152 } … … 167 167 } 168 168 169 HandledFieldType *pLhs = static_cast<HandledFieldType *>( _pField);169 HandledFieldType *pLhs = static_cast<HandledFieldType *>(this ->_pField); 170 170 HandledFieldType *pRhs = static_cast<HandledFieldType *>(pOther->_pField); 171 171 … … 202 202 RootObjectT> > >::cloneValues( 203 203 GetFieldHandlePtr pSrc, 204 TypePtrVector const &shareTypes = TypePtrVector(),205 TypePtrVector const &ignoreTypes = TypePtrVector(),206 TypeIdVector const &shareGroupIds = TypeIdVector (),207 TypeIdVector const &ignoreGroupIds = TypeIdVector ()) const204 TypePtrVector const &shareTypes, 205 TypePtrVector const &ignoreTypes, 206 TypeIdVector const &shareGroupIds, 207 TypeIdVector const &ignoreGroupIds) const 208 208 { 209 209 FWARNING(("Illegal EditSFieldHandle<SField<ParentPointer<ObjectT> > >" … … 219 219 inline typename 220 220 EditSFieldHandle<SField<ParentPointer<ObjectT, 221 RootObjectT> > >: HandledFieldType *221 RootObjectT> > >::HandledFieldType * 222 222 EditSFieldHandle<SField<ParentPointer<ObjectT, 223 223 RootObjectT> > >::operator->(void) 224 224 { 225 return static_cast<HandledFieldType *>( _pField);225 return static_cast<HandledFieldType *>(this->_pField); 226 226 } 227 227 … … 233 233 RootObjectT> > >::operator*(void) 234 234 { 235 return *static_cast<HandledFieldType *>( _pField);235 return *static_cast<HandledFieldType *>(this->_pField); 236 236 } 237 237 branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerFieldTraits.inl
r976 r991 143 143 NamespaceI >::copyFromBin( 144 144 BinaryDataHandler &pMem, 145 ParentPointer *pObjectStore,145 ParentPointer *pObjectStore, 146 146 UInt32 const uiNumObjects ) 147 147 { … … 252 252 NamespaceI >::copyFromBin( 253 253 BinaryDataHandler &pMem, 254 ParentPointer *pObjectStore,254 ParentPointer *pObjectStore, 255 255 UInt32 const uiNumObjects ) 256 256 { branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetMFieldHandle.h
r980 r991 64 64 /*! \{ */ 65 65 66 typedef GetFieldHandle Inherited; 67 typedef boost::shared_ptr<GetMFieldHandle> Ptr; 66 typedef GetFieldHandle Inherited; 67 typedef GetMFieldHandle< 68 MField<ParentPointer<ObjectT, 69 RootObjectT> > > Self; 70 typedef boost::shared_ptr<Self> Ptr; 68 71 69 72 typedef MField<ParentPointer<ObjectT, 70 RootObjectT> > HandledFieldType;71 typedef typename HandledFieldType::StoredType HandledFieldStoredType;73 RootObjectT> > HandledFieldType; 74 typedef typename HandledFieldType::StoredType HandledFieldStoredType; 72 75 73 76 /*! \} */ … … 129 132 OSG_END_NAMESPACE 130 133 134 #include "OSGParentPointerGetMFieldHandle.inl" 135 131 136 #endif // _OSGPARENTPOINTERGETMFIELDHANDLE_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetMFieldHandle.inl
r980 r991 158 158 159 159 HandledFieldType const *pLhs = 160 static_cast<HandledFieldType const *>( _pField);160 static_cast<HandledFieldType const *>(this-> _pField); 161 161 HandledFieldType const *pRhs = 162 162 static_cast<HandledFieldType const *>(pOther->_pField); … … 175 175 RootObjectT> > >::operator->(void) const 176 176 { 177 return static_cast<HandledFieldType const *>( _pField);177 return static_cast<HandledFieldType const *>(this->_pField); 178 178 } 179 179 … … 185 185 RootObjectT> > >::operator*(void) const 186 186 { 187 return *static_cast<HandledFieldType const *>( _pField);187 return *static_cast<HandledFieldType const *>(this->_pField); 188 188 } 189 189 branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetSFieldHandle.h
r980 r991 64 64 /*! \{ */ 65 65 66 typedef GetFieldHandle Inherited; 67 typedef boost::shared_ptr<GetSFieldHandle> Ptr; 66 typedef GetFieldHandle Inherited; 67 typedef GetSFieldHandle< 68 SField<ParentPointer<ObjectT, 69 RootObjectT> > > Self; 70 typedef boost::shared_ptr<Self> Ptr; 68 71 69 72 typedef SField<ParentPointer<ObjectT, 70 RootObjectT> > HandledFieldType;71 typedef typename HandledFieldType::StoredType HandledFieldStoredType;73 RootObjectT> > HandledFieldType; 74 typedef typename HandledFieldType::StoredType HandledFieldStoredType; 72 75 73 76 /*! \} */ … … 129 132 OSG_END_NAMESPACE 130 133 134 #include "OSGParentPointerGetSFieldHandle.inl" 135 131 136 #endif // _OSGPARENTPOINTERGETSFIELDHANDLE_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerGetSFieldHandle.inl
r980 r991 158 158 159 159 HandledFieldType const *pLhs = 160 static_cast<HandledFieldType const *>( _pField);160 static_cast<HandledFieldType const *>(this-> _pField); 161 161 HandledFieldType const *pRhs = 162 162 static_cast<HandledFieldType const *>(pOther->_pField); … … 175 175 RootObjectT> > >::operator->(void) const 176 176 { 177 return static_cast<HandledFieldType const *>( _pField);177 return static_cast<HandledFieldType const *>(this->_pField); 178 178 } 179 179 … … 185 185 RootObjectT> > >::operator*(void) const 186 186 { 187 return *static_cast<HandledFieldType const *>( _pField);187 return *static_cast<HandledFieldType const *>(this->_pField); 188 188 } 189 189 branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerMField.h
r982 r991 342 342 OSG_END_NAMESPACE 343 343 344 #include "OSGParentPointerMField.inl" 345 344 346 #endif // _OSGPARENTPOINTERMFIELD_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerMField.inl
r976 r991 95 95 NamespaceI, 96 96 AllocT >::MField(UInt32 const size) 97 : Inherited( other),98 _values (size )97 : Inherited( ), 98 _values (size) 99 99 { 100 100 } … … 578 578 NamespaceI, 579 579 AllocT >::resize( 580 size_t newSize, StoredType value = StoredType())580 size_t newSize, StoredType value) 581 581 { 582 582 _values.resize(newSize, value); … … 697 697 NamespaceI, 698 698 AllocT >::operator==( 699 MField const &other) 699 MField const &other) const 700 700 { 701 701 return _values == other._values; … … 715 715 return; 716 716 717 _values = other._values;717 _values = source._values; 718 718 } 719 719 … … 735 735 _values.resize(source.size()); 736 736 737 Self::iterator sIt = source._values.begin();738 Self::iterator sEnd = source._values.end ();739 740 Self::iterator fIt = _values.begin();737 typename Self::iterator sIt = source._values.begin(); 738 typename Self::iterator sEnd = source._values.end (); 739 740 typename Self::iterator fIt = _values.begin(); 741 741 742 742 while(sIt != sEnd) 743 743 { 744 (*fIt).set (convertToCurrentAspect((*sIt).get ()) ;745 (*fIt).setFieldId( (*sIt).getFieldId() );744 (*fIt).set (convertToCurrentAspect((*sIt).get ())); 745 (*fIt).setFieldId( (*sIt).getFieldId() ); 746 746 747 747 ++sIt; … … 757 757 template <class ObjectT, class RootObjectT, Int32 NamespaceI, class AllocT> 758 758 inline void 759 MField<ParentPointer<ObjectT>, NamespaceI, AllocT>::beginEdit( 759 MField<ParentPointer<ObjectT, RootObjectT>, 760 NamespaceI, 761 AllocT >::beginEdit( 760 762 UInt32 uiAspect, 761 763 AspectOffsetStore &oOffsets ) … … 807 809 fprintf(stderr, " "); 808 810 809 fprintf(stderr, "Share with : %08x\n", _uiSharedWith);811 fprintf(stderr, "Share with : <nothing>\n"); 810 812 811 813 _values.dump(uiIndent, bvFlags); branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerSField.h
r978 r991 213 213 OSG_END_NAMESPACE 214 214 215 #include "OSGParentPointerSField.inl" 216 215 217 #endif // _OSGPARENTPOINTERMFIELD_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGParentPointerSField.inl
r976 r991 194 194 inline bool 195 195 SField<ParentPointer<ObjectT, RootObjectT>, NamespaceI>::operator==( 196 SField const &other) 196 SField const &other) const 197 197 { 198 198 return _value == other._value; … … 219 219 SField<ParentPointer<ObjectT, RootObjectT>, NamespaceI>::syncWith(Self &source) 220 220 { 221 _value.set (convertToCurrentAspect(source.getValue().get ()));222 _value.setFieldId( source.getValue().getField () );221 _value.set (convertToCurrentAspect(source.getValue().get ())); 222 _value.setFieldId( source.getValue().getFieldId() ); 223 223 } 224 224 branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerMField.h
r988 r991 353 353 OSG_END_NAMESPACE 354 354 355 #include "OSGReferenceCountPointerMField.inl" 356 355 357 #endif // _OSGREFERENCECOUNTPOINTERMFIELD_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerMField.inl
r976 r991 107 107 NamespaceI, 108 108 AllocT >::MField(UInt32 const size) 109 : Inherited( other),110 _values (size )109 : Inherited( ), 110 _values (size) 111 111 { 112 112 } … … 739 739 NamespaceI, 740 740 AllocT >::resize( 741 size_t newSize, StoredType value = StoredType())741 size_t newSize, StoredType value) 742 742 { 743 743 _values.resize(newSize, value); … … 892 892 RootObjectT >, 893 893 NamespaceI, 894 AllocT >::operator==(MField const &other) 894 AllocT >::operator==( 895 MField const &other) const 895 896 { 896 897 return _values == other._values; … … 912 913 return; 913 914 914 _values = other._values;915 _values = source._values; 915 916 } 916 917 … … 935 936 _values.resize(source.size()); 936 937 937 Self::iterator sIt = source._values.begin();938 Self::iterator sEnd = source._values.end ();939 940 Self::iterator fIt = _values.begin();938 typename Self::iterator sIt = source._values.begin(); 939 typename Self::iterator sEnd = source._values.end (); 940 941 typename Self::iterator fIt = _values.begin(); 941 942 942 943 while(sIt != sEnd) … … 1025 1026 fprintf(stderr, " "); 1026 1027 1027 fprintf(stderr, "Share with : %08x\n", _uiSharedWith);1028 fprintf(stderr, "Share with : <nothing>\n"); 1028 1029 1029 1030 _values.dump(uiIndent, bvFlags); branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerSField.h
r978 r991 217 217 OSG_END_NAMESPACE 218 218 219 #include "OSGReferenceCountPointerSField.inl" 220 219 221 #endif // _OSGREFERENCECOUNTPOINTERSFIELD_H_ branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGReferenceCountPointerSField.inl
r976 r991 139 139 inline typename 140 140 SField<ReferenceCountPointer<ObjectT, 141 RefCountPolicyT>, 142 NamespaceI >::reference 141 RefCountPolicyT, 142 RootObjectT >, 143 NamespaceI >::reference 143 144 SField<ReferenceCountPointer<ObjectT, 144 145 RefCountPolicyT, … … 153 154 inline typename 154 155 SField<ReferenceCountPointer<ObjectT, 155 RefCountPolicyT>, 156 NamespaceI >::const_reference 156 RefCountPolicyT, 157 RootObjectT >, 158 NamespaceI >::const_reference 157 159 SField<ReferenceCountPointer<ObjectT, 158 160 RefCountPolicyT, … … 249 251 RefCountPolicyT, 250 252 RootObjectT >, 251 NamespaceI >::operator==(SField const &other) 253 NamespaceI >::operator==( 254 SField const &other) const 252 255 { 253 256 return _value == other._value; branches/Carsten_PtrWork/Source/System/FieldContainer/Fields/OSGSPointerFieldAdapter.h
r976 r991 146 146 OSG_END_NAMESPACE 147 147 148 #include "OSGSPointerFieldAdapter.inl" 149 148 150 #endif // _OSGSPOINTERFIELDADAPTER_H_ branches/Carsten_PtrWork/Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp
r799 r991 556 556 nIndex += nCount; 557 557 } 558 for(MFNodePtr::const_iterator nI=node->getMFChildren()->begin(); 559 nI != node->getMFChildren()->end(); 560 ++nI) 558 559 Node::ChildrenFieldType::const_iterator nI = node->getMFChildren()->begin(); 560 Node::ChildrenFieldType::const_iterator nE = node->getMFChildren()->end (); 561 562 for(; nI != nE; ++nI) 561 563 { 562 564 write((*nI),os,pIndex,nIndex,tIndex); branches/Carsten_PtrWork/Source/System/FileIO/OSB/OSGNFIOBase.cpp
r990 r991 330 330 } 331 331 332 SFFieldContainerPtr::EditHandlePtr pHandle =333 boost::dynamic_pointer_cast< SFFieldContainerPtr::EditHandle>(332 EditFCPointerSFieldHandlePtr pHandle = 333 boost::dynamic_pointer_cast<EditFCPointerSFieldHandle>( 334 334 info._fc->editField(info._fieldId)); 335 335 336 336 if(pHandle != NULL && pHandle->isValid()) 337 337 { … … 339 339 // field info._fieldId 340 340 341 pHandle->set Value(fc);341 pHandle->set(fc); 342 342 } 343 343 } … … 347 347 return; 348 348 349 MFFieldContainerPtr::EditHandlePtr pHandle =350 boost::dynamic_pointer_cast< MFFieldContainerPtr::EditHandle>(351 info._fc->editField(info._fieldId)); 352 349 EditFCPointerMFieldHandlePtr pHandle = 350 boost::dynamic_pointer_cast<EditFCPointerMFieldHandle>( 351 info._fc->editField(info._fieldId)); 352 353 353 SFFieldContainerAttachmentPtrMap::EditHandlePtr pAMapHandle = 354 354 boost::dynamic_pointer_cast< 355 355 SFFieldContainerAttachmentPtrMap::EditHandle>( 356 356 info._fc->editField(info._fieldId)); 357 358 357 359 358 for(std::vector<UInt32>::const_iterator i = info._ids.begin(); … … 572 571 fDesc->getCName(), fType.getCName())); 573 572 574 if(fType.getContentType().isDerivedFrom( 575 FieldTraits<FieldContainerPtr>::getType()) == true) 576 { 577 SFFieldContainerPtr::GetHandlePtr sfPtrHandle = 573 if((fType.getContentType().isDerivedFrom( 574 FieldTraits<FieldContainerInternalRefPtr>::getType()) == true) || 575 (fType.getContentType().isDerivedFrom( 576 FieldTraits<FieldContainerWeakRefPtr >::getType()) == true) || 577 (fType.getContentType().isDerivedFrom( 578 FieldTraits<FieldContainerParentPtr >::getType()) == true) ) 579 { 580 GetFCPointerSFieldHandlePtr sfPtrHandle = 578 581 boost::dynamic_pointer_cast< 579 SFFieldContainerPtr::GetHandle>(fc->getField(i));580 581 MFFieldContainerPtr::GetHandlePtr mfPtrHandle =582 GetFCPointerSFieldHandle>(fc->getField(i)); 583 584 GetFCPointerMFieldHandlePtr mfPtrHandle = 582 585 boost::dynamic_pointer_cast< 583 MFFieldContainerPtr::GetHandle>(fc->getField(i));586 GetFCPointerMFieldHandle>(fc->getField(i)); 584 587 585 588 if(sfPtrHandle != NULL && sfPtrHandle->isValid() == true) 586 589 { 587 getFCCount( (*sfPtrHandle)->getValue(), count);590 getFCCount(sfPtrHandle->get(), count); 588 591 } 589 592 else if(mfPtrHandle != NULL && mfPtrHandle->isValid() == true) 590 593 { 591 UInt32 noe = (*mfPtrHandle)->size();594 UInt32 noe = mfPtrHandle->size(); 592 595 for(UInt32 i = 0; i < noe; ++i) 593 596 { 594 getFCCount( (*(*mfPtrHandle))[i], count);597 getFCCount(mfPtrHandle->get(i), count); 595 598 } 596 599 } … … 738 741 } 739 742 740 if(fType.getContentType().isDerivedFrom( 741 FieldTraits<FieldContainerPtr>::getType()) == true) 742 { 743 GetPointerSFieldHandlePtr sfPtrHandle = 743 if((fType.getContentType().isDerivedFrom( 744 FieldTraits<FieldContainerInternalRefPtr>::getType()) == true) || 745 (fType.getContentType().isDerivedFrom( 746 FieldTraits<FieldContainerWeakRefPtr >::getType()) == true) || 747 (fType.getContentType().isDerivedFrom( 748 FieldTraits<FieldContainerParentPtr >::getType()) == true) ) 749 { 750 GetFCPointerSFieldHandlePtr sfPtrHandle = 744 751 boost::dynamic_pointer_cast< 745 Get PointerSFieldHandle>(fc->getField(i));746 747 Get PointerMFieldHandlePtr mfPtrHandle =752 GetFCPointerSFieldHandle>(fc->getField(i)); 753 754 GetFCPointerMFieldHandlePtr mfPtrHandle = 748 755 boost::dynamic_pointer_cast< 749 Get PointerMFieldHandle>(fc->getField(i));756 GetFCPointerMFieldHandle>(fc->getField(i)); 750 757 751 758 //if(fieldPtr->getCardinality() == FieldType::SINGLE_FIELD) … … 826 833 827 834 /*! Write the information for a mffield ptr. */ 828 void NFIOBase::writeMFFieldContainerPtr(GetFCPointer SFieldHandlePtr field)835 void NFIOBase::writeMFF
