Changeset 1184
- Timestamp:
- 04/22/08 04:54:20 (1 month ago)
- Files:
-
- trunk/Source/Base/Base/OSGContainerForwards.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGNameAttachment.cpp (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.cpp (modified) (1 diff)
- trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.fcd (modified) (1 diff)
- trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachment.cpp (moved) (moved from trunk/Source/System/FieldContainer/Base/OSGFieldContainerAttachment.cpp) (16 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachment.h (moved) (moved from trunk/Source/System/FieldContainer/Base/OSGFieldContainerAttachment.h) (7 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachment.inl (moved) (moved from trunk/Source/System/FieldContainer/Base/OSGFieldContainerAttachment.inl) (9 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.cpp (modified) (9 diffs)
- trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainerType.cpp (modified) (2 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentFieldTraits.h (moved) (moved from trunk/Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentFieldTraits.h) (6 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMFields.h (moved) (moved from trunk/Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentMFields.h) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapFieldTraits.h (modified) (11 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapFields.cpp (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapSFields.h (modified) (5 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentMapSFields.inl (modified) (24 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGAttachmentSFields.h (moved) (moved from trunk/Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentSFields.h) (3 diffs)
- trunk/Source/System/FieldContainer/Fields/OSGContainerTypeInst.cpp (modified) (4 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollection.cpp (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPool.cpp) (6 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollection.fcd (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPool.fcd) (3 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollection.h (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPool.h) (6 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollection.inl (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPool.inl)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionBase.cpp (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPoolBase.cpp) (48 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionBase.h (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPoolBase.h) (9 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionBase.inl (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPoolBase.inl) (11 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionFields.h (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPoolFields.h) (8 diffs)
- trunk/Source/System/FieldContainer/Misc/OSGContainerCollectionTest.cpp (moved) (moved from trunk/Source/System/FieldContainer/Misc/OSGContainerPoolTest.cpp)
- trunk/Source/System/FieldContainer/Mixins/OSGSimpleAttachment.h (modified) (3 diffs)
- trunk/Source/System/FieldContainer/Node/OSGNode.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Node/testNode.cpp (modified) (3 diffs)
- trunk/Source/System/FileIO/OSB/OSGOSBCommonElement.cpp (modified) (2 diffs)
- trunk/Source/System/FileIO/OSB/OSGOSBRootElement.cpp (modified) (3 diffs)
- trunk/Source/System/FileIO/OSG/OSGOSGLoader.cpp (modified) (2 diffs)
- trunk/Source/System/FileIO/OSG/OSGOSGWriter.cpp (modified) (5 diffs)
- trunk/Source/System/FileIO/WRL/OSGVRMLFile.cpp (modified) (1 diff)
- trunk/Source/System/FileIO/WRL/OSGVRMLNodeHelper.h (modified) (2 diffs)
- trunk/Source/System/Image/OSGImageGenericAtt.h (modified) (2 diffs)
- trunk/Source/System/NodeCores/Drawables/Base/OSGStatsAttachment.fcd (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Base/OSGStatsAttachmentBase.cpp (modified) (2 diffs)
- trunk/Source/System/NodeCores/Drawables/Base/OSGStatsAttachmentBase.h (modified) (2 diffs)
- trunk/Source/System/State/Base/OSGStateChunk.fcd (modified) (1 diff)
- trunk/Source/System/State/Base/OSGStateChunkBase.cpp (modified) (2 diffs)
- trunk/Source/System/State/Base/OSGStateChunkBase.h (modified) (2 diffs)
- trunk/Source/System/Window/Base/OSGRenderOptions.fcd (modified) (1 diff)
- trunk/Source/System/Window/Base/OSGRenderOptionsBase.cpp (modified) (2 diffs)
- trunk/Source/System/Window/Base/OSGRenderOptionsBase.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/Base/Base/OSGContainerForwards.h
r1177 r1184 116 116 class NodeCore; 117 117 118 class FieldContainerAttachment;118 class Attachment; 119 119 120 120 class DrawEnv; … … 135 135 136 136 OSG_GEN_CONTAINERPTR(FieldContainer); 137 OSG_GEN_CONTAINERPTR( FieldContainerAttachment);137 OSG_GEN_CONTAINERPTR(Attachment); 138 138 OSG_GEN_CONTAINERPTR(AttachmentContainer); 139 139 OSG_GEN_CONTAINERPTR(Node); trunk/Source/System/FieldContainer/Attachments/OSGNameAttachment.cpp
r1177 r1184 94 94 95 95 // Get attachment pointer 96 FieldContainerAttachmentPtr att =96 AttachmentPtr att = 97 97 pContainer->findAttachment(Name::getClassType().getGroupId()); 98 98 … … 125 125 // Get attachment pointer 126 126 127 NameUnrecPtr name = NullFC;128 FieldContainerAttachmentPtr att =127 NameUnrecPtr name = NullFC; 128 AttachmentPtr att = 129 129 pContainer->findAttachment(Name::getClassType().getGroupId()); 130 130 … … 160 160 if(name == NULL) 161 161 { 162 FieldContainerAttachmentPtr att =162 AttachmentPtr att = 163 163 pContainer->findAttachment(Name::getClassType().getGroupId()); 164 164 trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.cpp
r1097 r1184 205 205 } 206 206 207 StringAttributeMapUnrecPtr attr_map = NullFC;208 FieldContainerAttachmentPtrattach_ptr =207 StringAttributeMapUnrecPtr attr_map = NullFC; 208 AttachmentPtr attach_ptr = 209 209 container->findAttachment(StringAttributeMap::getClassType().getGroupId()); 210 210 trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.fcd
r437 r1184 3 3 <FieldContainer 4 4 name="StringAttributeMap" 5 parent=" FieldContainerAttachment"5 parent="Attachment" 6 6 library="System" 7 7 pointerfieldtypes="single" trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.cpp
r1161 r1184 139 139 "<FieldContainer\n" 140 140 "\tname=\"StringAttributeMap\"\n" 141 "\tparent=\" FieldContainerAttachment\"\n"141 "\tparent=\"Attachment\"\n" 142 142 "\tlibrary=\"System\"\n" 143 143 "\tpointerfieldtypes=\"single\"\n" … … 489 489 490 490 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 491 DataType FieldTraits<StringAttributeMapPtr>::_type("StringAttributeMapPtr", " FieldContainerAttachmentPtr");491 DataType FieldTraits<StringAttributeMapPtr>::_type("StringAttributeMapPtr", "AttachmentPtr"); 492 492 #endif 493 493 trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.h
r1116 r1184 64 64 #include "OSGBaseTypes.h" 65 65 66 #include "OSG FieldContainerAttachment.h" // Parent66 #include "OSGAttachment.h" // Parent 67 67 68 68 #include "OSGStringFields.h" // Keys type … … 77 77 //! \brief StringAttributeMap Base Class. 78 78 79 class OSG_SYSTEM_DLLMAPPING StringAttributeMapBase : public FieldContainerAttachment79 class OSG_SYSTEM_DLLMAPPING StringAttributeMapBase : public Attachment 80 80 { 81 81 public: 82 82 83 typedef FieldContainerAttachment Inherited;84 typedef FieldContainerAttachment ParentContainer;83 typedef Attachment Inherited; 84 typedef Attachment ParentContainer; 85 85 86 86 typedef Inherited::TypeObject TypeObject; trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp
r1177 r1184 94 94 95 95 // Get attachment pointer 96 FieldContainerAttachmentPtr att =96 AttachmentPtr att = 97 97 pContainer->findAttachment(VoidP::getClassType().getGroupId()); 98 98 … … 127 127 // Get attachment pointer 128 128 129 VoidPUnrecPtr voidP = NullFC;130 FieldContainerAttachmentPtr att =129 VoidPUnrecPtr voidP = NullFC; 130 AttachmentPtr att = 131 131 pContainer->findAttachment(VoidP::getClassType().getGroupId()); 132 132 trunk/Source/System/FieldContainer/Base/OSGAttachment.cpp
r1179 r1184 46 46 #include "OSGConfig.h" 47 47 48 #include "OSG FieldContainerAttachment.h"48 #include "OSGAttachment.h" 49 49 50 50 OSG_USING_NAMESPACE … … 53 53 /* Fields */ 54 54 55 void FieldContainerAttachment::classDescInserter(TypeObject &oType)55 void Attachment::classDescInserter(TypeObject &oType) 56 56 { 57 57 FieldDescriptionBase *pDesc; … … 85 85 } 86 86 87 Char8 * FieldContainerAttachment::getClassname(void)88 { 89 return " FieldContainerAttachment";90 } 91 92 FieldContainerAttachment::TypeObject FieldContainerAttachment::_type(93 FieldContainerAttachment::getClassname(),94 Inherited ::getClassname(),87 Char8 *Attachment::getClassname(void) 88 { 89 return "Attachment"; 90 } 91 92 Attachment::TypeObject Attachment::_type( 93 Attachment::getClassname(), 94 Inherited ::getClassname(), 95 95 "FieldContainer", 96 96 0, … … 98 98 NULL, 99 99 NULL, 100 (InitalInsertDescFunc) & FieldContainerAttachment::classDescInserter,100 (InitalInsertDescFunc) &Attachment::classDescInserter, 101 101 false, 102 102 0); … … 105 105 /* Constructors */ 106 106 107 FieldContainerAttachment::FieldContainerAttachment(void) :107 Attachment::Attachment(void) : 108 108 Inherited ( ), 109 109 _mfParents ( ), … … 112 112 } 113 113 114 FieldContainerAttachment::FieldContainerAttachment( 115 const FieldContainerAttachment &source) : 114 Attachment::Attachment(const Attachment &source) : 116 115 117 116 Inherited (source ), … … 123 122 /* Destructor */ 124 123 125 FieldContainerAttachment::~FieldContainerAttachment(void) 126 { 127 } 128 129 OSG_ABSTR_FIELD_CONTAINER_DEF(FieldContainerAttachment) 130 131 132 bool FieldContainerAttachment::linkParent ( 133 const FieldContainerPtr pParent, 134 const UInt16 childFieldId, 135 const UInt16 parentFieldId) 124 Attachment::~Attachment(void) 125 { 126 } 127 128 OSG_ABSTR_FIELD_CONTAINER_DEF(Attachment) 129 130 131 bool Attachment::linkParent (const FieldContainerPtr pParent, 132 const UInt16 childFieldId, 133 const UInt16 parentFieldId) 136 134 { 137 135 if(parentFieldId == ParentsFieldId) … … 155 153 } 156 154 157 bool FieldContainerAttachment::unlinkParent( 158 const FieldContainerPtr pParent, 159 const UInt16 parentFieldId) 155 bool Attachment::unlinkParent(const FieldContainerPtr pParent, 156 const UInt16 parentFieldId) 160 157 { 161 158 if(parentFieldId == ParentsFieldId) … … 178 175 } 179 176 180 FWARNING((" FieldContainerAttachment::unlinkParent: "177 FWARNING(("Attachment::unlinkParent: " 181 178 "Child <-> Parent link inconsistent.\n")); 182 179 … … 194 191 /* Assignment */ 195 192 196 UInt32 FieldContainerAttachment::getBinSize(ConstFieldMaskArg whichField)193 UInt32 Attachment::getBinSize(ConstFieldMaskArg whichField) 197 194 { 198 195 UInt32 returnValue = Inherited::getBinSize(whichField); … … 211 208 } 212 209 213 void FieldContainerAttachment::copyToBin(BinaryDataHandler &pMem,214 ConstFieldMaskArg whichField)210 void Attachment::copyToBin(BinaryDataHandler &pMem, 211 ConstFieldMaskArg whichField) 215 212 { 216 213 Inherited::copyToBin(pMem, whichField); … … 227 224 } 228 225 229 void FieldContainerAttachment::copyFromBin(BinaryDataHandler &pMem,230 ConstFieldMaskArg whichField)226 void Attachment::copyFromBin(BinaryDataHandler &pMem, 227 ConstFieldMaskArg whichField) 231 228 { 232 229 Inherited::copyFromBin(pMem, whichField); … … 243 240 } 244 241 245 EditFieldHandlePtr FieldContainerAttachment::editInternalHandler(void)242 EditFieldHandlePtr Attachment::editInternalHandler(void) 246 243 { 247 244 SFBool::EditHandlePtr returnValue( … … 255 252 } 256 253 257 GetFieldHandlePtr FieldContainerAttachment::getInternalHandler(void) const254 GetFieldHandlePtr Attachment::getInternalHandler(void) const 258 255 { 259 256 SFBool::GetHandlePtr returnValue( … … 265 262 } 266 263 267 GetFieldHandlePtr FieldContainerAttachment::getHandleParents(void) const264 GetFieldHandlePtr Attachment::getHandleParents(void) const 268 265 { 269 266 MFParentFieldContainerPtr::GetHandlePtr returnValue( … … 276 273 277 274 #ifdef OSG_MT_CPTR_ASPECT 278 void FieldContainerAttachment::execSyncV(279 FieldContainer &oFrom,280 ConstFieldMaskArg whichField,281 AspectOffsetStore &oOffsets,282 ConstFieldMaskArg syncMode ,283 const UInt32 uiSyncInfo)284 { 285 this->execSync(static_cast< FieldContainerAttachment *>(&oFrom),275 void Attachment::execSyncV( 276 FieldContainer &oFrom, 277 ConstFieldMaskArg whichField, 278 AspectOffsetStore &oOffsets, 279 ConstFieldMaskArg syncMode , 280 const UInt32 uiSyncInfo) 281 { 282 this->execSync(static_cast<Attachment *>(&oFrom), 286 283 whichField, 287 284 oOffsets, trunk/Source/System/FieldContainer/Base/OSGAttachment.h
r1155 r1184 37 37 \*---------------------------------------------------------------------------*/ 38 38 39 #ifndef _OSG FIELDCONTAINERATTACHMENT_H_40 #define _OSG FIELDCONTAINERATTACHMENT_H_39 #ifndef _OSGATTACHMENT_H_ 40 #define _OSGATTACHMENT_H_ 41 41 #ifdef __sgi 42 42 #pragma once … … 54 54 //! \ingroup baselib 55 55 56 class OSG_SYSTEM_DLLMAPPING FieldContainerAttachment : public FieldContainer56 class OSG_SYSTEM_DLLMAPPING Attachment : public FieldContainer 57 57 { 58 58 /*========================== PUBLIC =================================*/ … … 66 66 /*! \{ */ 67 67 68 OSG_GEN_INTERNALPTR( FieldContainerAttachment);68 OSG_GEN_INTERNALPTR(Attachment); 69 69 70 70 /*! \} */ … … 162 162 protected: 163 163 164 typedef FieldContainerAttachmentSelf;164 typedef Attachment Self; 165 165 typedef MFParentFieldContainerPtr ParentField; 166 166 … … 192 192 /*! \{ */ 193 193 194 FieldContainerAttachment(void);195 FieldContainerAttachment(const FieldContainerAttachment &source);196 197 virtual ~ FieldContainerAttachment(void);194 Attachment(void); 195 Attachment(const Attachment &source); 196 197 virtual ~Attachment(void); 198 198 199 199 /*! \} */ … … 234 234 235 235 #ifdef OSG_MT_CPTR_ASPECT 236 virtual void execSyncV( FieldContainer &oFrom,237 ConstFieldMaskArg whichField,238 AspectOffsetStore &oOffsets,239 ConstFieldMaskArg syncMode ,240 const UInt32 uiSyncInfo);241 242 void execSync ( FieldContainerAttachment*pFrom,243 ConstFieldMaskArg whichField,244 AspectOffsetStore &oOffsets,245 ConstFieldMaskArg syncMode ,246 const UInt32 uiSyncInfo);236 virtual void execSyncV( FieldContainer &oFrom, 237 ConstFieldMaskArg whichField, 238 AspectOffsetStore &oOffsets, 239 ConstFieldMaskArg syncMode , 240 const UInt32 uiSyncInfo); 241 242 void execSync ( Attachment *pFrom, 243 ConstFieldMaskArg whichField, 244 AspectOffsetStore &oOffsets, 245 ConstFieldMaskArg syncMode , 246 const UInt32 uiSyncInfo); 247 247 #endif 248 248 … … 255 255 256 256 /*!\brief prohibit default function (move to 'public' if needed) */ 257 void operator =(const FieldContainerAttachment &source);257 void operator =(const Attachment &source); 258 258 }; 259 259 260 OSG_GEN_CONTAINERPTR(FieldContainerAttachment); 261 262 #ifdef OSG_1_COMPAT 263 typedef FieldContainerAttachment Attachment; 264 265 typedef FieldContainerAttachmentPtr AttachmentPtr; 266 typedef FieldContainerAttachmentPtrConst AttachmentPtrConst; 267 typedef FieldContainerAttachmentConstPtr AttachmentConstPtr; 268 269 typedef FieldContainerAttachmentPtrArg AttachmentPtrArg; 270 typedef FieldContainerAttachmentConstPtrArg AttachmentConstPtrArg; 271 typedef FieldContainerAttachmentPtrConstArg AttachmentPtrConstArg; 272 273 typedef FieldContainerAttachmentRefPtr AttachmentRefPtr; 274 #endif 260 OSG_GEN_CONTAINERPTR(Attachment); 275 261 276 262 OSG_END_NAMESPACE 277 263 278 #include "OSG FieldContainerAttachment.inl"279 280 #endif /* _OSG FIELDCONTAINERATTACHMENT_H_ */264 #include "OSGAttachment.inl" 265 266 #endif /* _OSGATTACHMENT_H_ */ trunk/Source/System/FieldContainer/Base/OSGAttachment.inl
r1155 r1184 39 39 OSG_BEGIN_NAMESPACE 40 40 41 OSG_ABSTR_FIELD_CONTAINER_INL_DEF( FieldContainerAttachment)41 OSG_ABSTR_FIELD_CONTAINER_INL_DEF(Attachment) 42 42 43 43 inline 44 SFBool & FieldContainerAttachment::editInternal(void)44 SFBool &Attachment::editInternal(void) 45 45 { 46 46 Inherited::editSField(InternalFieldMask); … … 50 50 51 51 inline 52 const SFBool & FieldContainerAttachment::getInternal(void) const52 const SFBool &Attachment::getInternal(void) const 53 53 { 54 54 return _sfInternal; … … 56 56 57 57 inline 58 SFBool * FieldContainerAttachment::editSFInternal(void)58 SFBool *Attachment::editSFInternal(void) 59 59 { 60 60 Inherited::editSField(InternalFieldMask); … … 64 64 65 65 inline 66 const SFBool * FieldContainerAttachment::getSFInternal(void) const66 const SFBool *Attachment::getSFInternal(void) const 67 67 { 68 68 return &_sfInternal; … … 70 70 71 71 inline 72 const MFParentFieldContainerPtr & 73 FieldContainerAttachment::getParents(void) const 72 const MFParentFieldContainerPtr &Attachment::getParents(void) const 74 73 { 75 74 return _mfParents; … … 77 76 78 77 inline 79 const MFParentFieldContainerPtr * 80 FieldContainerAttachment::getMFParents(void) const 78 const MFParentFieldContainerPtr *Attachment::getMFParents(void) const 81 79 { 82 80 return &_mfParents; … … 84 82 85 83 inline 86 void FieldContainerAttachment::setInternal(bool bVal)84 void Attachment::setInternal(bool bVal) 87 85 { 88 86 Inherited::editSField(InternalFieldMask); … … 92 90 93 91 inline 94 FieldContainerPtr FieldContainerAttachment::getParent(UInt32 uiIdx) const92 FieldContainerPtr Attachment::getParent(UInt32 uiIdx) const 95 93 { 96 94 if(uiIdx < _mfParents.size()) … … 106 104 #ifdef OSG_MT_CPTR_ASPECT 107 105 inline 108 void FieldContainerAttachment::execSync (109 FieldContainerAttachment*pFrom,110 ConstFieldMaskArg whichField,111 AspectOffsetStore &oOffsets,112 ConstFieldMaskArg syncMode ,113 const UInt32 uiSyncInfo)106 void Attachment::execSync ( 107 Attachment *pFrom, 108 ConstFieldMaskArg whichField, 109 AspectOffsetStore &oOffsets, 110 ConstFieldMaskArg syncMode , 111 const UInt32 uiSyncInfo) 114 112 { 115 113 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo); trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.cpp
r1179 r1184 47 47 48 48 #include "OSGAttachmentContainer.h" 49 #include "OSG FieldContainerAttachment.h"49 #include "OSGAttachment.h" 50 50 #include "OSGTypeBasePredicates.h" 51 51 #include "OSGReflexiveContainerTypePredicates.h" … … 178 178 pAttachment->linkParent(this, 179 179 AttachmentsFieldId, 180 FieldContainerAttachment::ParentsFieldId);180 Attachment::ParentsFieldId); 181 181 182 182 Self::editSField(AttachmentsFieldMask); … … 187 187 { 188 188 (*fcI).second->unlinkParent(this, 189 FieldContainerAttachment::ParentsFieldId);189 Attachment::ParentsFieldId); 190 190 191 191 (*fcI).second->subReferenceUnrecordedX(); … … 230 230 { 231 231 (*fcI).second->unlinkParent(this, 232 FieldContainerAttachment::ParentsFieldId);232 Attachment::ParentsFieldId); 233 233 234 234 (*fcI).second->subReferenceUnrecordedX(); … … 290 290 { 291 291 (*fcI).second->unlinkParent(this, 292 FieldContainerAttachment::ParentsFieldId);292 Attachment::ParentsFieldId); 293 293 294 294 (*fcI).second->subReferenceUnrecordedX(); … … 458 458 cloneGroupIds, ignoreGroupIds); 459 459 #else 460 const SF FieldContainerAttachmentPtrMap *pAttMap =460 const SFAttachmentPtrMap *pAttMap = 461 461 src->getSFAttachments(); 462 462 463 FieldContainerAttachmentMap::const_iterator mapIt = 464 pAttMap->getValue().begin(); 465 466 FieldContainerAttachmentMap::const_iterator mapEnd = 467 pAttMap->getValue().end(); 463 AttachmentMap::const_iterator mapIt = pAttMap->getValue().begin(); 464 AttachmentMap::const_iterator mapEnd = pAttMap->getValue().end(); 468 465 469 466 for(; mapIt != mapEnd; ++mapIt) 470 467 { 471 FieldContainerAttachmentUnrecPtr att = mapIt->second;472 UInt16 uiBinding = UInt16(mapIt->first &473 0x0000FFFF );468 AttachmentUnrecPtr att = mapIt->second; 469 UInt16 uiBinding = UInt16(mapIt->first & 470 0x0000FFFF ); 474 471 475 472 if(att != NullFC) … … 493 490 attType ) ) 494 491 { 495 att = dynamic_pointer_cast< FieldContainerAttachment>(492 att = dynamic_pointer_cast<Attachment>( 496 493 OSG::deepClone(att, cloneTypes, ignoreTypes, 497 494 cloneGroupIds, ignoreGroupIds)); … … 630 627 shareGroupIds, ignoreGroupIds); 631 628 #else 632 const SF FieldContainerAttachmentPtrMap *pAttMap =629 const SFAttachmentPtrMap *pAttMap = 633 630 src->getSFAttachments(); 634 631 635 FieldContainerAttachmentMap::const_iterator mapIt = 636 pAttMap->getValue().begin(); 637 638 FieldContainerAttachmentMap::const_iterator mapEnd = 639 pAttMap->getValue().end(); 632 AttachmentMap::const_iterator mapIt = pAttMap->getValue().begin(); 633 AttachmentMap::const_iterator mapEnd = pAttMap->getValue().end(); 640 634 641 635 for(; mapIt != mapEnd; ++mapIt) 642 636 { 643 FieldContainerAttachmentUnrecPtr att = mapIt->second;644 UInt16 uiBinding = UInt16(mapIt->first &645 0x0000FFFF );637 AttachmentUnrecPtr att = mapIt->second; 638 UInt16 uiBinding = UInt16(mapIt->first & 639 0x0000FFFF ); 646 640 647 641 if(att != NullFC) … … 665 659 attType ) ) 666 660 { 667 att = dynamic_pointer_cast< FieldContainerAttachment>(661 att = dynamic_pointer_cast<Attachment>( 668 662 OSG::deepClone(att, shareTypes, ignoreTypes, 669 663 shareGroupIds, ignoreGroupIds)); trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.h
r1177 r1184 44 44 45 45 #include "OSGFieldContainer.h" 46 #include "OSG FieldContainerAttachment.h"46 #include "OSGAttachment.h" 47 47 #include "OSGAttachmentMapSFields.h" 48 48 … … 68 68 typedef AttachmentContainer Self; 69 69 70 typedef FieldContainerAttachmentAttachmentObj;71 typedef FieldContainerAttachmentPtrAttachmentObjPtr;72 typedef SF FieldContainerAttachmentPtrMapSFAttachmentObjPtrMap;70 typedef Attachment AttachmentObj; 71 typedef AttachmentPtr AttachmentObjPtr; 72 typedef SFAttachmentPtrMap SFAttachmentObjPtrMap; 73 73 74 74 typedef SFAttachmentObjPtrMap::StoredType AttachmentObjPtrMap; trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h
r1105 r1184 140 140 #ifdef OSG_1_COMPAT 141 141 inline 142 void addRefCP X(FieldContainerPtrConst objectP)142 void addRefCP(const FieldContainerPtr) 143 143 { 144 addRefX(objectP);145 144 } 146 145 147 146 inline 148 void subRefCP X(FieldContainerPtrConst objectP)147 void subRefCP(const FieldContainerPtr) 149 148 { 150 subRefX(objectP);151 149 } 152 150 … … 173 171 174 172 template <class OutPtrT> inline 175 OutPtrT dynamic_fcptr_cast( FieldContainerPtrConstpPtr)173 OutPtrT dynamic_fcptr_cast(const FieldContainerPtr pPtr) 176 174 { 177 175 return dynamic_cast<OutPtrT>(pPtr); trunk/Source/System/FieldContainer/Base/OSGFieldContainerType.cpp
r1105 r1184 53 53 #include "OSGNodeCore.h" 54 54 #include "OSGNode.h" 55 #include "OSG FieldContainerAttachment.h"55 #include "OSGAttachment.h" 56 56 57 57 OSG_USING_NAMESPACE … … 222 222 _baseType = IsNodeCore; 223 223 } 224 else if(isDerivedFrom( FieldContainerAttachment::getClassType()) == true)224 else if(isDerivedFrom(Attachment::getClassType()) == true) 225 225 { 226 226 _baseType = IsAttachment; trunk/Source/System/FieldContainer/Fields/OSGAttachmentFieldTraits.h
r1126 r1184 37 37 \*---------------------------------------------------------------------------*/ 38 38 39 #ifndef _OSG FIELDCONTAINERATTACHMENTFIELDTRAITS_H_40 #define _OSG FIELDCONTAINERATTACHMENTFIELDTRAITS_H_39 #ifndef _OSGATTACHMENTFIELDTRAITS_H_ 40 #define _OSGATTACHMENTFIELDTRAITS_H_ 41 41 #ifdef __sgi 42 42 #pragma once … … 66 66 67 67 template <> 68 struct FieldTraits< FieldContainerAttachmentPtr>69 : public FieldTraitsFCPtrBase< FieldContainerAttachmentPtr>68 struct FieldTraits<AttachmentPtr> 69 : public FieldTraitsFCPtrBase<AttachmentPtr> 70 70 { 71 71 private: … … 75 75 public: 76 76 77 typedef FieldTraits< FieldContainerAttachmentPtr> Self;77 typedef FieldTraits<AttachmentPtr> Self; 78 78 79 79 … … 92 92 93 93 template<> inline 94 const Char8 * 95 FieldTraits<FieldContainerAttachmentPtr, 96 0 >::getSName<RecordedRefCountPolicy>(void) 94 const Char8 *FieldTraits<AttachmentPtr, 95 0 >::getSName<RecordedRefCountPolicy>(void) 97 96 { 98 return "SFRec FieldContainerAttachmentPtr";97 return "SFRecAttachmentPtr"; 99 98 } 100 99 101 100 template<> inline 102 101 const Char8 * 103 FieldTraits<FieldContainerAttachmentPtr,104 0>::getSName<UnrecordedRefCountPolicy>(void)102 FieldTraits<AttachmentPtr, 103 0 >::getSName<UnrecordedRefCountPolicy>(void) 105 104 { 106 return "SFUnrec FieldContainerAttachmentPtr";105 return "SFUnrecAttachmentPtr"; 107 106 } 108 107 109 108 template<> inline 110 const Char8 * 111 FieldTraits<FieldContainerAttachmentPtr, 112 0 >::getSName<WeakRefCountPolicy>(void) 109 const Char8 *FieldTraits<AttachmentPtr, 110 0 >::getSName<WeakRefCountPolicy>(void) 113 111 { 114 return "SFWeak FieldContainerAttachmentPtr";112 return "SFWeakAttachmentPtr"; 115 113 } 116 114 117 115 template<> inline 118 const Char8 *FieldTraits< FieldContainerAttachmentPtr,116 const Char8 *FieldTraits<AttachmentPtr, 119 117 0 >::getSName<NoRefCountPolicy>(void) 120 118 { 121 return "SFUnrefd FieldContainerAttachmentPtr";119 return "SFUnrefdAttachmentPtr"; 122 120 } 123 121 … … 125 123 126 124 template<> inline 127 const Char8 * 128 FieldTraits<FieldContainerAttachmentPtr, 129 0 >::getMName<RecordedRefCountPolicy>(void) 125 const Char8 *FieldTraits<AttachmentPtr, 126 0
