Changeset 1174
- Timestamp:
- 04/17/08 06:20:11 (4 weeks ago)
- Files:
-
- trunk/Source/Base/Field/OSGBaseFieldTraits.h (modified) (1 diff)
- trunk/Source/Base/Field/OSGFieldTraits.h (modified) (1 diff)
- trunk/Source/Base/Field/OSGFieldType.h (modified) (1 diff)
- trunk/Source/Base/Field/OSGMathFieldTraits.h (modified) (5 diffs)
- trunk/Source/Base/Field/OSGSysFieldTraits.h (modified) (14 diffs)
- trunk/Source/Base/Field/OSGVecFieldTraits.h (modified) (1 diff)
- trunk/Source/System/Cluster/Base/OSGRemoteAspect.cpp (modified) (4 diffs)
- trunk/Source/System/Cluster/Base/OSGRemoteAspect.h (modified) (1 diff)
- trunk/Source/System/Cluster/Server/OSGClusterServer.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGNameAttachment.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGAspectStore.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAspectStore.inl (modified) (6 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.cpp (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.h (modified) (4 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.inl (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainer.cpp (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainer.h (modified) (5 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainer.inl (modified) (6 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldHandle.h (modified) (8 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldHandle.inl (modified) (8 diffs)
- trunk/Source/System/FieldContainer/Base/OSGRefCountPolicies.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Fields/Handle/OSGFieldContainerMFieldHandle.h (modified) (4 diffs)
- trunk/Source/System/FieldContainer/Fields/Handle/OSGFieldContainerMFieldHandle.inl (modified) (6 diffs)
- trunk/Source/System/FieldContainer/Fields/Handle/OSGFieldContainerSFieldHandle.h (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/Handle/OSGFieldContainerSFieldHandle.inl (modified) (4 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapSFields.h (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapSFields.inl (modified) (4 diffs)
- trunk/Source/System/FieldContainer/Node/OSGNode.cpp (modified) (14 diffs)
- trunk/Source/System/FieldContainer/Node/OSGNode.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Node/OSGNode.inl (modified) (1 diff)
- trunk/Source/System/FieldContainer/Node/OSGNodeCore.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Node/OSGNodeCore.h (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Node/OSGNodeCore.inl (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGMergeGraphOp.cpp (modified) (1 diff)
- trunk/Source/System/Image/OSGImageGenericAtt.cpp (modified) (1 diff)
- trunk/Source/System/Image/OSGImageGenericAtt.h (modified) (5 diffs)
- trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGTypedGeoIntegralProperty.h (modified) (3 diffs)
- trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGTypedGeoVectorProperty.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGTypedGeoVectorProperty.inl (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Wrapper/OSGGeoColorsFields.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Wrapper/OSGGeoIndicesFields.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Wrapper/OSGGeoNormalsFields.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Wrapper/OSGGeoTexCoordsFields.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Terrain/QuadTree/OSGQuadTreeTerrain.cpp (modified) (1 diff)
- trunk/Source/System/NodeCores/Groups/Misc/OSGProxyGroup.cpp (modified) (2 diffs)
- trunk/Source/System/NodeCores/Groups/Misc/OSGProxyGroup.h (modified) (2 diffs)
- trunk/Source/System/RenderingBackend/OSGOcclusionCullingTreeBuilder.cpp (modified) (1 diff)
- trunk/Source/System/RenderingBackend/OSGOcclusionCullingTreeBuilder.h (modified) (1 diff)
- trunk/Source/System/State/Base/OSGState.cpp (modified) (6 diffs)
- trunk/Source/System/Statistics/Base/OSGStatCollector.h (modified) (1 diff)
- trunk/Source/System/Statistics/Foregrounds/OSGSimpleStatisticsForeground.cpp (modified) (1 diff)
- trunk/Source/System/Statistics/Foregrounds/OSGSimpleStatisticsForeground.h (modified) (1 diff)
- trunk/Source/System/Statistics/Foregrounds/OSGStatisticsDefaultFont.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/Base/Field/OSGBaseFieldTraits.h
r928 r1174 995 995 996 996 static OSG_BASE_DLLMAPPING 997 DataType &getType (void);998 999 static Char8 *getSName (void) { return "SFGLenum"; }1000 static Char8 *getMName (void) { return "MFGLenum"; }1001 1002 static GLenum getDefault (void) { return 0; }997 DataType &getType (void); 998 999 static const Char8 *getSName (void) { return "SFGLenum"; } 1000 static const Char8 *getMName (void) { return "MFGLenum"; } 1001 1002 static GLenum getDefault (void) { return 0; } 1003 1003 1004 1004 static void putToStream(const GLenum &val, trunk/Source/Base/Field/OSGFieldTraits.h
r1164 r1174 43 43 #endif 44 44 45 #include "OSGIDString.h"46 45 #include "OSGFieldForwards.h" 47 46 #include "OSGLog.h" trunk/Source/Base/Field/OSGFieldType.h
r1145 r1174 84 84 ParentPtrField, 85 85 ChildPtrField 86 #ifndef OSG_DELETE_LATER87 ,WeakPtrField88 #endif89 86 }; 90 87 trunk/Source/Base/Field/OSGMathFieldTraits.h
r785 r1174 81 81 82 82 static OSG_BASE_DLLMAPPING 83 DataType &getType (void);84 85 static Char8 *getSName (void) { return "SFMatrix"; }86 static Char8 *getMName (void) { return "MFMatrix"; }87 88 static Matrix getDefault (void) { return Matrix(); }83 DataType &getType (void); 84 85 static const Char8 *getSName (void) { return "SFMatrix"; } 86 static const Char8 *getMName (void) { return "MFMatrix"; } 87 88 static Matrix getDefault (void) { return Matrix(); } 89 89 90 90 … … 198 198 199 199 static OSG_BASE_DLLMAPPING 200 DataType &getType (void);201 202 static Char8 *getSName (void) { return "SFMatrix4d"; }203 static Char8 *getMName (void) { return "MFMatrix4d"; }204 205 static Matrix4d getDefault (void) { return Matrix4d(); }200 DataType &getType (void); 201 202 static const Char8 *getSName (void) { return "SFMatrix4d"; } 203 static const Char8 *getMName (void) { return "MFMatrix4d"; } 204 205 static Matrix4d getDefault (void) { return Matrix4d(); } 206 206 207 207 static bool getFromCString( Matrix4d &outVal, … … 314 314 315 315 static OSG_BASE_DLLMAPPING 316 DataType &getType (void);317 318 static Char8 *getSName (void) { return "SFMatrix4fx"; }319 static Char8 *getMName (void) { return "MFMatrix4fx"; }320 321 static Matrix4fx getDefault (void) { return Matrix4fx(); }316 DataType &getType (void); 317 318 static const Char8 *getSName (void) { return "SFMatrix4fx"; } 319 static const Char8 *getMName (void) { return "MFMatrix4fx"; } 320 321 static Matrix4fx getDefault (void) { return Matrix4fx(); } 322 322 323 323 … … 396 396 397 397 static OSG_BASE_DLLMAPPING 398 DataType &getType (void);399 400 static Char8 *getSName (void) { return "SFQuaternion"; }401 static Char8 *getMName (void) { return "MFQuaternion"; }402 403 static Quaternion getDefault (void) { return Quaternion(); }398 DataType &getType (void); 399 400 static const Char8 *getSName (void) { return "SFQuaternion"; } 401 static const Char8 *getMName (void) { return "MFQuaternion"; } 402 403 static Quaternion getDefault (void) { return Quaternion(); } 404 404 405 405 }; … … 440 440 441 441 static OSG_BASE_DLLMAPPING 442 DataType &getType (void);443 444 static Char8 *getSName (void) { return "SFQuaternionfx"; }445 static Char8 *getMName (void) { return "MFQuaternionfx"; }446 447 static Quaternionfx getDefault (void) { return Quaternionfx(); }442 DataType &getType (void); 443 444 static const Char8 *getSName (void) { return "SFQuaternionfx"; } 445 static const Char8 *getMName (void) { return "MFQuaternionfx"; } 446 447 static Quaternionfx getDefault (void) { return Quaternionfx(); } 448 448 449 449 }; trunk/Source/Base/Field/OSGSysFieldTraits.h
r785 r1174 80 80 81 81 static OSG_BASE_DLLMAPPING 82 DataType &getType (void); 83 84 static Char8 *getSName (void) { return "SFBool"; } 85 static Char8 *getMName (void) { return "MFBool"; } 86 87 static bool getDefault (void) { return false; } 82 DataType &getType (void); 83 84 static const Char8 *getSName (void) { return "SFBool"; } 85 static const Char8 *getMName (void) { return "MFBool"; } 86 87 static bool getDefault (void) { return false; } 88 88 89 89 90 static UInt32 getBinSize (const bool &) … … 147 148 148 149 static OSG_BASE_DLLMAPPING 149 DataType &getType (void);150 151 static Char8 *getSName (void) { return "SFInt8"; }152 static Char8 *getMName (void) { return "MFInt8"; }153 154 static Int8 getDefault (void) { return 0; }150 DataType &getType (void); 151 152 static const Char8 *getSName (void) { return "SFInt8"; } 153 static const Char8 *getMName (void) { return "MFInt8"; } 154 155 static Int8 getDefault (void) { return 0; } 155 156 }; 156 157 … … 181 182 182 183 static OSG_BASE_DLLMAPPING 183 DataType &getType (void);184 185 static Char8 *getSName (void) { return "SFUInt8"; }186 static Char8 *getMName (void) { return "MFUInt8"; }187 188 static UInt8 getDefault (void) { return 0; }184 DataType &getType (void); 185 186 static const Char8 *getSName (void) { return "SFUInt8"; } 187 static const Char8 *getMName (void) { return "MFUInt8"; } 188 189 static UInt8 getDefault (void) { return 0; } 189 190 190 191 }; … … 216 217 217 218 static OSG_BASE_DLLMAPPING 218 DataType &getType (void);219 220 static Char8 *getSName (void) { return "SFInt16"; }221 static Char8 *getMName (void) { return "MFInt16"; }222 223 static Int16 getDefault (void) { return 0; }219 DataType &getType (void); 220 221 static const Char8 *getSName (void) { return "SFInt16"; } 222 static const Char8 *getMName (void) { return "MFInt16"; } 223 224 static Int16 getDefault (void) { return 0; } 224 225 225 226 }; … … 251 252 252 253 static OSG_BASE_DLLMAPPING 253 DataType &getType (void);254 255 static Char8 *getSName (void) { return "SFUInt16"; }256 static Char8 *getMName (void) { return "MFUInt16"; }257 258 static UInt16 getDefault (void) { return 0; }254 DataType &getType (void); 255 256 static const Char8 *getSName (void) { return "SFUInt16"; } 257 static const Char8 *getMName (void) { return "MFUInt16"; } 258 259 static UInt16 getDefault (void) { return 0; } 259 260 260 261 }; … … 286 287 287 288 static OSG_BASE_DLLMAPPING 288 DataType &getType (void);289 290 static Char8 *getSName (void) { return "SFInt32"; }291 static Char8 *getMName (void) { return "MFInt32"; }292 293 static Int32 getDefault (void) { return 0; }289 DataType &getType (void); 290 291 static const Char8 *getSName (void) { return "SFInt32"; } 292 static const Char8 *getMName (void) { return "MFInt32"; } 293 294 static Int32 getDefault (void) { return 0; } 294 295 295 296 }; … … 321 322 322 323 static OSG_BASE_DLLMAPPING 323 DataType &getType (void);324 325 static Char8 *getSName (void) { return "SFUInt32"; }326 static Char8 *getMName (void) { return "MFUInt32"; }327 328 static UInt32 getDefault (void) { return 0; }324 DataType &getType (void); 325 326 static const Char8 *getSName (void) { return "SFUInt32"; } 327 static const Char8 *getMName (void) { return "MFUInt32"; } 328 329 static UInt32 getDefault (void) { return 0; } 329 330 }; 330 331 … … 362 363 363 364 static OSG_BASE_DLLMAPPING 364 DataType &getType (void);365 366 static Char8 *getSName (void) { return "SFInt64"; }367 static Char8 *getMName (void) { return "MFInt64"; }368 369 static Int64 getDefault (void) { return 0; }365 DataType &getType (void); 366 367 static const Char8 *getSName (void) { return "SFInt64"; } 368 static const Char8 *getMName (void) { return "MFInt64"; } 369 370 static Int64 getDefault (void) { return 0; } 370 371 }; 371 372 … … 396 397 397 398 static OSG_BASE_DLLMAPPING 398 DataType &getType (void);399 400 static Char8 *getSName (void) { return "SFUInt64"; }401 static Char8 *getMName (void) { return "MFUInt64"; }402 403 static UInt64 getDefault (void) { return 0; }399 DataType &getType (void); 400 401 static const Char8 *getSName (void) { return "SFUInt64"; } 402 static const Char8 *getMName (void) { return "MFUInt64"; } 403 404 static UInt64 getDefault (void) { return 0; } 404 405 }; 405 406 … … 430 431 431 432 static OSG_BASE_DLLMAPPING 432 DataType &getType (void);433 434 static Char8 *getSName (void) { return "SFReal16"; }435 static Char8 *getMName (void) { return "MFReal16"; }436 437 static Real32 getDefault (void) { return 0.f; }433 DataType &getType (void); 434 435 static const Char8 *getSName (void) { return "SFReal16"; } 436 static const Char8 *getMName (void) { return "MFReal16"; } 437 438 static Real32 getDefault (void) { return 0.f; } 438 439 }; 439 440 … … 465 466 466 467 static OSG_BASE_DLLMAPPING 467 DataType &getType (void);468 469 static Char8 *getSName (void) { return "SFReal32"; }470 static Char8 *getMName (void) { return "MFReal32"; }471 472 static Real32 getDefault (void) { return 0.f; }468 DataType &getType (void); 469 470 static const Char8 *getSName (void) { return "SFReal32"; } 471 static const Char8 *getMName (void) { return "MFReal32"; } 472 473 static Real32 getDefault (void) { return 0.f; } 473 474 }; 474 475 … … 500 501 501 502 static OSG_BASE_DLLMAPPING 502 DataType &getType (void);503 504 static Char8 *getSName (void) { return "SFFixed32"; }505 static Char8 *getMName (void) { return "MFFixed32"; }506 507 static Fixed32 getDefault (void) { return Fixed32(0.f); }503 DataType &getType (void); 504 505 static const Char8 *getSName (void) { return "SFFixed32"; } 506 static const Char8 *getMName (void) { return "MFFixed32"; } 507 508 static Fixed32 getDefault (void) { return Fixed32(0.f); } 508 509 }; 509 510 … … 534 535 535 536 static OSG_BASE_DLLMAPPING 536 DataType &getType (void);537 538 static Char8 *getSName (void) { return "SFReal64"; }539 static Char8 *getMName (void) { return "MFReal64"; }540 541 static Real64 getDefault (void) { return 0.; }537 DataType &getType (void); 538 539 static const Char8 *getSName (void) { return "SFReal64"; } 540 static const Char8 *getMName (void) { return "MFReal64"; } 541 542 static Real64 getDefault (void) { return 0.; } 542 543 543 544 }; … … 571 572 572 573 static OSG_BASE_DLLMAPPING 573 DataType &getType (void);574 575 static Char8 *getSName (void) { return "SFVoidP"; }576 static Char8 *getMName (void) { return "MFVoidP"; }577 578 static void *getDefault (void) { return NULL; }574 DataType &getType (void); 575 576 static const Char8 *getSName (void) { return "SFVoidP"; } 577 static const Char8 *getMName (void) { return "MFVoidP"; } 578 579 static void *getDefault (void) { return NULL; } 579 580 580 581 // Binary trunk/Source/Base/Field/OSGVecFieldTraits.h
r785 r1174 82 82 \ 83 83 static OSG_BASE_DLLMAPPING \ 84 DataType &getType (void);\84 DataType &getType (void); \ 85 85 \ 86 static Char8 *getSName (void) { return "SF"#base #dim #type; }\87 static Char8 *getMName (void) { return "MF"#base #dim #type; }\86 static const Char8 *getSName(void) { return "SF"#base #dim #type; } \ 87 static const Char8 *getMName(void) { return "MF"#base #dim #type; } \ 88 88 \ 89 89 static base##dim##type getDefault (void) { return base##dim##type();} \ trunk/Source/System/Cluster/Base/OSGRemoteAspect.cpp
r1141 r1174 139 139 /* Remote aspect functionaliy */ 140 140 141 /*! <EM>receiveSync</EM>reads changes from the given connection and141 /*! \e receiveSync reads changes from the given connection and 142 142 * applies them to the current thread aspect. 143 * Functors for registered types are called, if they occur ein the143 * Functors for registered types are called, if they occur in the 144 144 * sync stream. 145 145 * … … 673 673 */ 674 674 675 bool RemoteAspect::callCreated(const FieldContainerPtr &fcp)675 bool RemoteAspect::callCreated(const FieldContainerPtr fcp) 676 676 { 677 677 bool result; … … 695 695 */ 696 696 697 bool RemoteAspect::callDestroyed(const FieldContainerPtr &fcp)697 bool RemoteAspect::callDestroyed(const FieldContainerPtr fcp) 698 698 { 699 699 bool result; … … 717 717 */ 718 718 719 bool RemoteAspect::callChanged(const FieldContainerPtr &fcp)719 bool RemoteAspect::callChanged(const FieldContainerPtr fcp) 720 720 { 721 721 bool result; trunk/Source/System/Cluster/Base/OSGRemoteAspect.h
r835 r1174 177 177 /*! \{ */ 178 178 179 bool callCreated (const FieldContainerPtr &node);180 bool callDestroyed(const FieldContainerPtr &node);181 bool callChanged (const FieldContainerPtr &node);179 bool callCreated (const FieldContainerPtr node); 180 bool callDestroyed(const FieldContainerPtr node); 181 bool callChanged (const FieldContainerPtr node); 182 182 183 183 /*! \} */ trunk/Source/System/Cluster/Server/OSGClusterServer.cpp
r1105 r1174 353 353 } 354 354 355 #ifdef OSG_OLD_RENDER_ACTION356 357 355 /*! render server window 358 356 */ 359 357 360 void ClusterServer::doRender( DrawActionBase *action)358 void ClusterServer::doRender(RenderActionBase *action) 361 359 { 362 360 #if 0 … … 374 372 } 375 373 #endif 376 377 _clusterWindow->serverRender(_window, _serverId, action);378 }379 380 #endif381 382 383 /*! render server window384 */385 386 void ClusterServer::doRender(RenderActionBase *action)387 {388 OSG::IndentFileOutStream outFileStream("/tmp/cluster.osg");389 390 if(outFileStream)391 {392 //std::cerr << "STARTING PRINTOUT:" << std::endl;393 394 OSG::OSGWriter writer(outFileStream, 4);395 396 writer.write(_clusterWindow);397 398 outFileStream.close();399 }400 374 401 375 _clusterWindow->serverRender(_window, _serverId, action); trunk/Source/System/FieldContainer/Attachments/OSGNameAttachment.h
r1126 r1174 94 94 */ 95 95 96 typedef Name::ObjPtr NamePtr; 97 typedef RefCountPtr<Name, 98 UnrecordedRefCountPolicy> NameUnrecPtr; 96 OSG_GEN_CONTAINERPTR(Name) 99 97 100 98 #ifdef WIN32 trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.h
r1126 r1174 94 94 */ 95 95 96 typedef VoidP::ObjPtr VoidPPtr; 97 typedef RefCountPtr<VoidP, 98 UnrecordedRefCountPolicy> VoidPUnrecPtr; 96 OSG_GEN_CONTAINERPTR(VoidP) 99 97 100 98 #ifdef WIN32 trunk/Source/System/FieldContainer/Base/OSGAspectStore.h
r955 r1174 79 79 /*! \{ */ 80 80 81 FieldContainer *getPtr ( void )const;82 FieldContainer *getPtr ( UInt32 uiAspect )const;83 void setPtrForAspect ( FieldContainerPtr pContainer,84 UInt32 uiAspect );85 void removePtrForAspect( UInt32 uiAspect );81 FieldContainer *getPtr ( void )const; 82 FieldContainer *getPtr (const UInt32 uiAspect )const; 83 void setPtrForAspect (const FieldContainerPtr pContainer, 84 const UInt32 uiAspect ); 85 void removePtrForAspect(const UInt32 uiAspect ); 86 86 87 UInt32 getNumAspects ( void )const;87 UInt32 getNumAspects ( void )const; 88 88 89 89 /*! \} */ … … 101 101 /*! \{ */ 102 102 103 void fillOffsetArray( AspectOffsetStore &oStore,104 FieldContainerPtr pRef );103 void fillOffsetArray( AspectOffsetStore &oStore, 104 const FieldContainerPtr pRef ); 105 105 106 106 /*! \} */ trunk/Source/System/FieldContainer/Base/OSGAspectStore.inl
r961 r1174 52 52 53 53 inline 54 FieldContainer *AspectStore::getPtr( UInt32 uiAspect) const54 FieldContainer *AspectStore::getPtr(const UInt32 uiAspect) const 55 55 { 56 56 if(uiAspect < _vAspects.size()) … … 72 72 73 73 inline 74 void AspectStore::setPtrForAspect( FieldContainerPtr pContainer,75 UInt32 uiAspect )74 void AspectStore::setPtrForAspect(const FieldContainerPtr pContainer, 75 const UInt32 uiAspect ) 76 76 { 77 77 _vAspects.resize(osgMax<UInt32>(_vAspects.size(), uiAspect + 1), NULL); … … 81 81 82 82 inline 83 void AspectStore::removePtrForAspect( UInt32 uiAspect)83 void AspectStore::removePtrForAspect(const UInt32 uiAspect) 84 84 { 85 85 if(uiAspect >= _vAspects.size()) … … 126 126 inline 127 127 AspectStore::AspectStore(void) : 128 _vAspects( ), 128 129 _refCount(0) 129 130 { … … 132 133 inline 133 134 AspectStore::AspectStore(const AspectStore &) : 135 _vAspects( ), 134 136 _refCount(0) 135 137 { … … 137 139 138 140 inline 139 void AspectStore::fillOffsetArray( AspectOffsetStore &oStore,140 FieldContainerPtr pRef )141 void AspectStore::fillOffsetArray( AspectOffsetStore &oStore, 142 const FieldContainerPtr pRef ) 141 143 { 142 144 Char8 *pRefMem = reinterpret_cast<Char8 *>(pRef); trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.cpp
r1155 r1174 112 112 113 113 OSG_ABSTR_FIELD_CONTAINER_DEF(AttachmentContainer) 114 115 #if 0116 void AttachmentContainer::pushToField(117 FieldContainerPtrConstArg pNewElement,118 const UInt32 uiFieldId )119 {120 Inherited::pushToField(pNewElement, uiFieldId);121 122 if(uiFieldId == AttachmentsFieldId)123 {124 addAttachment(dynamic_cast<AttachmentObjPtr>(pNewElement));125 }126 }127 128 void AttachmentContainer::insertIntoMField(129 const UInt32 uiIndex,130 FieldContainerPtrConstArg pNewElement,131 const UInt32 uiFieldId )132 {133 Inherited::insertIntoMField(uiIndex, pNewElement, uiFieldId);134 135 FWARNING(("AttachmentContainerMixin::insertIntoMField: NIY\n"));136 }137 138 void AttachmentContainer::replaceInMField (139 const UInt32 uiIndex,140 FieldContainerPtrConstArg pNewElement,141 const UInt32 uiFieldId )142 {143 Inherited::replaceInMField(uiIndex, pNewElement, uiFieldId);144 145 FWARNING(("AttachmentContainerMixin::replaceInMField: NIY\n"));146 }147 148 void AttachmentContainer::replaceInMField (149 FieldContainerPtrConstArg pOldElement,150 FieldContainerPtrConstArg pNewElement,151 const UInt32 uiFieldId )152 {153 Inherited::replaceInMField(pOldElement, pNewElement, uiFieldId);154 155 FWARNING(("AttachmentContainerMixin::replaceInMField: NIY\n"));156 }157 158 void AttachmentContainer::removeFromMField(159 const UInt32 uiIndex,160 const UInt32 uiFieldId )161 {162 Inherited::removeFromMField(uiIndex, uiFieldId);163 164 FWARNING(("AttachmentContainerMixin::removeFromMField: NIY\n"));165 }166 167 void AttachmentContainer::removeFromMField(168 FieldContainerPtrConstArg pElement,169 const UInt32 uiFieldId )170 {171 Inherited::removeFromMField(pElement, uiFieldId);172 173 FWARNING(("AttachmentContainerMixin::removeFromMField: NIY\n"));174 }175 176 void AttachmentContainer::clearField(const UInt32 uiFieldId)177 {178 Inherited::clearField(uiFieldId);179 180 FWARNING(("AttachmentContainerMixin::clearField: NIY\n"));181 }182 #endif183 114 184 115 /*-------------------------------------------------------------------------*/ trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.h
r1092 r1174 64 64 /*! \{ */ 65 65 66 typedef FieldContainer Inherited; 67 typedef Inherited::TypeObject TypeObject; 68 typedef AttachmentContainer Self; 69 70 typedef FieldContainerAttachment AttachmentObj; 71 typedef FieldContainerAttachmentPtr AttachmentObjPtr; 72 typedef SFFieldContainerAttachmentPtrMap SFAttachmentObjPtrMap; 73 74 typedef SFAttachmentObjPtrMap::StoredType AttachmentObjPtrMap; 75 typedef AttachmentObjPtrMap::iterator AttachmentObjPtrMapIt; 66 typedef FieldContainer Inherited; 67 typedef Inherited::TypeObject TypeObject; 68 typedef AttachmentContainer Self; 69 70 typedef FieldContainerAttachment AttachmentObj; 71 typedef FieldContainerAttachmentPtr AttachmentObjPtr; 72 typedef SFFieldContainerAttachmentPtrMap SFAttachmentObjPtrMap; 73 74 typedef SFAttachmentObjPtrMap::StoredType AttachmentObjPtrMap; 75 typedef AttachmentObjPtrMap::iterator AttachmentObjPtrMapIt; 76 typedef AttachmentObjPtrMap::const_iterator AttachmentObjPtrMapConstIt; 76 77 77 78 … … 103 104 /*! \{ */ 104 105 105 #if 0106 virtual void pushToField ( FieldContainerPtrConstArg pNewElement,107 const UInt32 uiFieldId );108 109 virtual void insertIntoMField(const UInt32 uiIndex,110 FieldContainerPtrConstArg pNewElement,111 const UInt32 uiFieldId );112 113 virtual void replaceInMField (const UInt32 uiIndex,114 FieldContainerPtrConstArg pNewElement,115 const UInt32 uiFieldId );116 117 virtual void replaceInMField ( FieldContainerPtrConstArg pOldElement,118 FieldContainerPtrConstArg pNewElement,119 const UInt32 uiFieldId );120 121 virtual void removeFromMField(const UInt32 uiIndex,122 const UInt32 whichField );123 124 virtual void removeFromMField( FieldContainerPtrConstArg pElement,125 const UInt32 whichField );126 127 virtual void clearField (const UInt32 whichField );128 #endif129 130 106 /*! \}  
