Changeset 1184

Show
Ignore:
Timestamp:
04/22/08 04:54:20 (1 month ago)
Author:
vossg
Message:

renamed: FieldContainerAttachment? → Attachment

ContainerPool?ContainerAttachment?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Base/Base/OSGContainerForwards.h

    r1177 r1184  
    116116class NodeCore; 
    117117 
    118 class FieldContainerAttachment; 
     118class Attachment; 
    119119 
    120120class DrawEnv; 
     
    135135 
    136136OSG_GEN_CONTAINERPTR(FieldContainer); 
    137 OSG_GEN_CONTAINERPTR(FieldContainerAttachment); 
     137OSG_GEN_CONTAINERPTR(Attachment); 
    138138OSG_GEN_CONTAINERPTR(AttachmentContainer); 
    139139OSG_GEN_CONTAINERPTR(Node); 
  • trunk/Source/System/FieldContainer/Attachments/OSGNameAttachment.cpp

    r1177 r1184  
    9494    
    9595    // Get attachment pointer 
    96     FieldContainerAttachmentPtr att =  
     96    AttachmentPtr att =  
    9797        pContainer->findAttachment(Name::getClassType().getGroupId()); 
    9898 
     
    125125    // Get attachment pointer 
    126126 
    127     NameUnrecPtr                name = NullFC; 
    128     FieldContainerAttachmentPtr att  =  
     127    NameUnrecPtr  name = NullFC; 
     128    AttachmentPtr att  =  
    129129        pContainer->findAttachment(Name::getClassType().getGroupId()); 
    130130     
     
    160160    if(name == NULL) 
    161161    { 
    162         FieldContainerAttachmentPtr att =  
     162        AttachmentPtr att =  
    163163            pContainer->findAttachment(Name::getClassType().getGroupId()); 
    164164  
  • trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.cpp

    r1097 r1184  
    205205    } 
    206206 
    207     StringAttributeMapUnrecPtr attr_map = NullFC; 
    208     FieldContainerAttachmentPtr attach_ptr = 
     207    StringAttributeMapUnrecPtr attr_map   = NullFC; 
     208    AttachmentPtr              attach_ptr = 
    209209        container->findAttachment(StringAttributeMap::getClassType().getGroupId()); 
    210210 
  • trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMap.fcd

    r437 r1184  
    33<FieldContainer 
    44        name="StringAttributeMap" 
    5         parent="FieldContainerAttachment" 
     5        parent="Attachment" 
    66        library="System" 
    77        pointerfieldtypes="single" 
  • trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.cpp

    r1161 r1184  
    139139    "<FieldContainer\n" 
    140140    "\tname=\"StringAttributeMap\"\n" 
    141     "\tparent=\"FieldContainerAttachment\"\n" 
     141    "\tparent=\"Attachment\"\n" 
    142142    "\tlibrary=\"System\"\n" 
    143143    "\tpointerfieldtypes=\"single\"\n" 
     
    489489 
    490490#if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 
    491 DataType FieldTraits<StringAttributeMapPtr>::_type("StringAttributeMapPtr", "FieldContainerAttachmentPtr"); 
     491DataType FieldTraits<StringAttributeMapPtr>::_type("StringAttributeMapPtr", "AttachmentPtr"); 
    492492#endif 
    493493 
  • trunk/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.h

    r1116 r1184  
    6464#include "OSGBaseTypes.h" 
    6565 
    66 #include "OSGFieldContainerAttachment.h" // Parent 
     66#include "OSGAttachment.h" // Parent 
    6767 
    6868#include "OSGStringFields.h" // Keys type 
     
    7777//! \brief StringAttributeMap Base Class. 
    7878 
    79 class OSG_SYSTEM_DLLMAPPING StringAttributeMapBase : public FieldContainerAttachment 
     79class OSG_SYSTEM_DLLMAPPING StringAttributeMapBase : public Attachment 
    8080{ 
    8181  public: 
    8282 
    83     typedef FieldContainerAttachment Inherited; 
    84     typedef FieldContainerAttachment ParentContainer; 
     83    typedef Attachment Inherited; 
     84    typedef Attachment ParentContainer; 
    8585 
    8686    typedef Inherited::TypeObject TypeObject; 
  • trunk/Source/System/FieldContainer/Attachments/OSGVoidPAttachment.cpp

    r1177 r1184  
    9494    
    9595    // Get attachment pointer 
    96     FieldContainerAttachmentPtr att =  
     96    AttachmentPtr att =  
    9797        pContainer->findAttachment(VoidP::getClassType().getGroupId()); 
    9898 
     
    127127    // Get attachment pointer 
    128128 
    129     VoidPUnrecPtr               voidP = NullFC; 
    130     FieldContainerAttachmentPtr att   =  
     129    VoidPUnrecPtr voidP = NullFC; 
     130    AttachmentPtr att   =  
    131131        pContainer->findAttachment(VoidP::getClassType().getGroupId()); 
    132132     
  • trunk/Source/System/FieldContainer/Base/OSGAttachment.cpp

    r1179 r1184  
    4646#include "OSGConfig.h" 
    4747 
    48 #include "OSGFieldContainerAttachment.h" 
     48#include "OSGAttachment.h" 
    4949 
    5050OSG_USING_NAMESPACE 
     
    5353/*                               Fields                                    */ 
    5454 
    55 void FieldContainerAttachment::classDescInserter(TypeObject &oType) 
     55void Attachment::classDescInserter(TypeObject &oType) 
    5656{ 
    5757    FieldDescriptionBase *pDesc; 
     
    8585} 
    8686 
    87 Char8 *FieldContainerAttachment::getClassname(void) 
    88 { 
    89     return "FieldContainerAttachment"; 
    90 } 
    91  
    92 FieldContainerAttachment::TypeObject FieldContainerAttachment::_type( 
    93     FieldContainerAttachment::getClassname(), 
    94     Inherited               ::getClassname(), 
     87Char8 *Attachment::getClassname(void) 
     88{ 
     89    return "Attachment"; 
     90} 
     91 
     92Attachment::TypeObject Attachment::_type( 
     93    Attachment::getClassname(), 
     94    Inherited ::getClassname(), 
    9595    "FieldContainer", 
    9696    0, 
     
    9898    NULL, 
    9999    NULL, 
    100     (InitalInsertDescFunc) &FieldContainerAttachment::classDescInserter, 
     100    (InitalInsertDescFunc) &Attachment::classDescInserter, 
    101101    false, 
    102102    0); 
     
    105105/*                            Constructors                                 */ 
    106106 
    107 FieldContainerAttachment::FieldContainerAttachment(void) : 
     107Attachment::Attachment(void) : 
    108108     Inherited (     ), 
    109109    _mfParents (     ), 
     
    112112} 
    113113 
    114 FieldContainerAttachment::FieldContainerAttachment( 
    115     const FieldContainerAttachment &source) : 
     114Attachment::Attachment(const Attachment &source) : 
    116115 
    117116     Inherited (source            ), 
     
    123122/*                             Destructor                                  */ 
    124123 
    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) 
     124Attachment::~Attachment(void) 
     125
     126
     127 
     128OSG_ABSTR_FIELD_CONTAINER_DEF(Attachment) 
     129 
     130 
     131bool Attachment::linkParent  (const FieldContainerPtr pParent, 
     132                              const UInt16            childFieldId, 
     133                              const UInt16            parentFieldId) 
    136134{ 
    137135    if(parentFieldId == ParentsFieldId) 
     
    155153} 
    156154 
    157 bool FieldContainerAttachment::unlinkParent( 
    158     const FieldContainerPtr pParent, 
    159     const UInt16            parentFieldId) 
     155bool Attachment::unlinkParent(const FieldContainerPtr pParent, 
     156                              const UInt16            parentFieldId) 
    160157{ 
    161158    if(parentFieldId == ParentsFieldId) 
     
    178175            } 
    179176              
    180             FWARNING(("FieldContainerAttachment::unlinkParent: " 
     177            FWARNING(("Attachment::unlinkParent: " 
    181178                      "Child <-> Parent link inconsistent.\n")); 
    182179             
     
    194191/*                             Assignment                                  */ 
    195192 
    196 UInt32 FieldContainerAttachment::getBinSize(ConstFieldMaskArg whichField) 
     193UInt32 Attachment::getBinSize(ConstFieldMaskArg whichField) 
    197194{ 
    198195    UInt32 returnValue = Inherited::getBinSize(whichField); 
     
    211208} 
    212209 
    213 void FieldContainerAttachment::copyToBin(BinaryDataHandler &pMem, 
    214                                          ConstFieldMaskArg  whichField) 
     210void Attachment::copyToBin(BinaryDataHandler &pMem, 
     211                           ConstFieldMaskArg  whichField) 
    215212{ 
    216213    Inherited::copyToBin(pMem, whichField); 
     
    227224} 
    228225 
    229 void FieldContainerAttachment::copyFromBin(BinaryDataHandler &pMem, 
    230                                            ConstFieldMaskArg  whichField) 
     226void Attachment::copyFromBin(BinaryDataHandler &pMem, 
     227                             ConstFieldMaskArg  whichField) 
    231228{ 
    232229    Inherited::copyFromBin(pMem, whichField); 
     
    243240} 
    244241 
    245 EditFieldHandlePtr FieldContainerAttachment::editInternalHandler(void) 
     242EditFieldHandlePtr Attachment::editInternalHandler(void) 
    246243{ 
    247244    SFBool::EditHandlePtr returnValue( 
     
    255252} 
    256253 
    257 GetFieldHandlePtr FieldContainerAttachment::getInternalHandler(void) const 
     254GetFieldHandlePtr Attachment::getInternalHandler(void) const 
    258255{ 
    259256    SFBool::GetHandlePtr returnValue( 
     
    265262} 
    266263 
    267 GetFieldHandlePtr FieldContainerAttachment::getHandleParents(void) const 
     264GetFieldHandlePtr Attachment::getHandleParents(void) const 
    268265{ 
    269266    MFParentFieldContainerPtr::GetHandlePtr returnValue( 
     
    276273 
    277274#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), 
     275void 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), 
    286283                   whichField, 
    287284                   oOffsets, 
  • trunk/Source/System/FieldContainer/Base/OSGAttachment.h

    r1155 r1184  
    3737\*---------------------------------------------------------------------------*/ 
    3838 
    39 #ifndef _OSGFIELDCONTAINERATTACHMENT_H_ 
    40 #define _OSGFIELDCONTAINERATTACHMENT_H_ 
     39#ifndef _OSGATTACHMENT_H_ 
     40#define _OSGATTACHMENT_H_ 
    4141#ifdef __sgi 
    4242#pragma once 
     
    5454//! \ingroup baselib 
    5555 
    56 class OSG_SYSTEM_DLLMAPPING FieldContainerAttachment : public FieldContainer 
     56class OSG_SYSTEM_DLLMAPPING Attachment : public FieldContainer 
    5757{ 
    5858    /*==========================  PUBLIC  =================================*/ 
     
    6666    /*! \{                                                                 */ 
    6767 
    68     OSG_GEN_INTERNALPTR(FieldContainerAttachment); 
     68    OSG_GEN_INTERNALPTR(Attachment); 
    6969 
    7070    /*! \}                                                                 */ 
     
    162162  protected: 
    163163 
    164     typedef FieldContainerAttachment  Self; 
     164    typedef Attachment                Self; 
    165165    typedef MFParentFieldContainerPtr ParentField; 
    166166 
     
    192192    /*! \{                                                                 */ 
    193193 
    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); 
    198198 
    199199    /*! \}                                                                 */ 
     
    234234 
    235235#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); 
    247247#endif 
    248248 
     
    255255 
    256256    /*!\brief prohibit default function (move to 'public' if needed) */ 
    257     void operator =(const FieldContainerAttachment &source); 
     257    void operator =(const Attachment &source); 
    258258}; 
    259259 
    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 
     260OSG_GEN_CONTAINERPTR(Attachment); 
    275261 
    276262OSG_END_NAMESPACE 
    277263 
    278 #include "OSGFieldContainerAttachment.inl" 
    279  
    280 #endif /* _OSGFIELDCONTAINERATTACHMENT_H_ */ 
     264#include "OSGAttachment.inl" 
     265 
     266#endif /* _OSGATTACHMENT_H_ */ 
  • trunk/Source/System/FieldContainer/Base/OSGAttachment.inl

    r1155 r1184  
    3939OSG_BEGIN_NAMESPACE 
    4040 
    41 OSG_ABSTR_FIELD_CONTAINER_INL_DEF(FieldContainerAttachment) 
     41OSG_ABSTR_FIELD_CONTAINER_INL_DEF(Attachment) 
    4242 
    4343inline 
    44 SFBool &FieldContainerAttachment::editInternal(void) 
     44SFBool &Attachment::editInternal(void) 
    4545{ 
    4646    Inherited::editSField(InternalFieldMask); 
     
    5050 
    5151inline 
    52 const SFBool &FieldContainerAttachment::getInternal(void) const 
     52const SFBool &Attachment::getInternal(void) const 
    5353{ 
    5454    return _sfInternal; 
     
    5656 
    5757inline 
    58 SFBool *FieldContainerAttachment::editSFInternal(void) 
     58SFBool *Attachment::editSFInternal(void) 
    5959{ 
    6060    Inherited::editSField(InternalFieldMask); 
     
    6464 
    6565inline 
    66 const SFBool *FieldContainerAttachment::getSFInternal(void) const 
     66const SFBool *Attachment::getSFInternal(void) const 
    6767{ 
    6868    return &_sfInternal; 
     
    7070 
    7171inline 
    72 const MFParentFieldContainerPtr & 
    73     FieldContainerAttachment::getParents(void) const 
     72const MFParentFieldContainerPtr &Attachment::getParents(void) const 
    7473{ 
    7574    return _mfParents; 
     
    7776 
    7877inline 
    79 const MFParentFieldContainerPtr * 
    80     FieldContainerAttachment::getMFParents(void) const 
     78const MFParentFieldContainerPtr *Attachment::getMFParents(void) const 
    8179{ 
    8280    return &_mfParents; 
     
    8482 
    8583inline 
    86 void FieldContainerAttachment::setInternal(bool bVal) 
     84void Attachment::setInternal(bool bVal) 
    8785{ 
    8886    Inherited::editSField(InternalFieldMask); 
     
    9290 
    9391inline 
    94 FieldContainerPtr FieldContainerAttachment::getParent(UInt32 uiIdx) const 
     92FieldContainerPtr Attachment::getParent(UInt32 uiIdx) const 
    9593{ 
    9694    if(uiIdx < _mfParents.size()) 
     
    106104#ifdef OSG_MT_CPTR_ASPECT 
    107105inline 
    108 void FieldContainerAttachment::execSync (       
    109           FieldContainerAttachment *pFrom, 
    110           ConstFieldMaskArg         whichField, 
    111           AspectOffsetStore        &oOffsets, 
    112           ConstFieldMaskArg         syncMode  , 
    113     const UInt32                    uiSyncInfo) 
     106void Attachment::execSync (       
     107          Attachment        *pFrom, 
     108          ConstFieldMaskArg  whichField, 
     109          AspectOffsetStore &oOffsets, 
     110          ConstFieldMaskArg  syncMode  , 
     111    const UInt32             uiSyncInfo) 
    114112{ 
    115113    Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo); 
  • trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.cpp

    r1179 r1184  
    4747 
    4848#include "OSGAttachmentContainer.h" 
    49 #include "OSGFieldContainerAttachment.h" 
     49#include "OSGAttachment.h" 
    5050#include "OSGTypeBasePredicates.h" 
    5151#include "OSGReflexiveContainerTypePredicates.h" 
     
    178178    pAttachment->linkParent(this,  
    179179                            AttachmentsFieldId,  
    180                             FieldContainerAttachment::ParentsFieldId); 
     180                            Attachment::ParentsFieldId); 
    181181 
    182182    Self::editSField(AttachmentsFieldMask); 
     
    187187    { 
    188188        (*fcI).second->unlinkParent(this,  
    189                                     FieldContainerAttachment::ParentsFieldId); 
     189                                    Attachment::ParentsFieldId); 
    190190 
    191191        (*fcI).second->subReferenceUnrecordedX(); 
     
    230230    { 
    231231        (*fcI).second->unlinkParent(this,  
    232                                     FieldContainerAttachment::ParentsFieldId); 
     232                                    Attachment::ParentsFieldId); 
    233233 
    234234        (*fcI).second->subReferenceUnrecordedX(); 
     
    290290    { 
    291291        (*fcI).second->unlinkParent(this,  
    292                                     FieldContainerAttachment::ParentsFieldId); 
     292                                    Attachment::ParentsFieldId); 
    293293 
    294294        (*fcI).second->subReferenceUnrecordedX(); 
     
    458458                                                cloneGroupIds, ignoreGroupIds); 
    459459#else 
    460     const SFFieldContainerAttachmentPtrMap *pAttMap = 
     460    const SFAttachmentPtrMap *pAttMap = 
    461461        src->getSFAttachments(); 
    462462 
    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(); 
    468465 
    469466    for(; mapIt != mapEnd; ++mapIt) 
    470467    { 
    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    ); 
    474471 
    475472        if(att != NullFC) 
     
    493490                                                   attType               )   ) 
    494491                { 
    495                     att = dynamic_pointer_cast<FieldContainerAttachment>( 
     492                    att = dynamic_pointer_cast<Attachment>( 
    496493                        OSG::deepClone(att, cloneTypes,    ignoreTypes, 
    497494                                            cloneGroupIds, ignoreGroupIds)); 
     
    630627                                                shareGroupIds, ignoreGroupIds); 
    631628#else 
    632     const SFFieldContainerAttachmentPtrMap *pAttMap = 
     629    const SFAttachmentPtrMap *pAttMap = 
    633630        src->getSFAttachments(); 
    634631 
    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(); 
    640634 
    641635    for(; mapIt != mapEnd; ++mapIt) 
    642636    { 
    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    ); 
    646640 
    647641        if(att != NullFC) 
     
    665659                                                    attType               )   ) 
    666660                { 
    667                     att = dynamic_pointer_cast<FieldContainerAttachment>( 
     661                    att = dynamic_pointer_cast<Attachment>( 
    668662                        OSG::deepClone(att, shareTypes,    ignoreTypes, 
    669663                                            shareGroupIds, ignoreGroupIds)); 
  • trunk/Source/System/FieldContainer/Base/OSGAttachmentContainer.h

    r1177 r1184  
    4444 
    4545#include "OSGFieldContainer.h" 
    46 #include "OSGFieldContainerAttachment.h" 
     46#include "OSGAttachment.h" 
    4747#include "OSGAttachmentMapSFields.h" 
    4848 
     
    6868    typedef AttachmentContainer                 Self; 
    6969 
    70     typedef FieldContainerAttachment            AttachmentObj; 
    71     typedef FieldContainerAttachmentPtr         AttachmentObjPtr; 
    72     typedef SFFieldContainerAttachmentPtrMap    SFAttachmentObjPtrMap; 
     70    typedef Attachment                          AttachmentObj; 
     71    typedef AttachmentPtr                       AttachmentObjPtr; 
     72    typedef SFAttachmentPtrMap                  SFAttachmentObjPtrMap; 
    7373 
    7474    typedef SFAttachmentObjPtrMap::StoredType   AttachmentObjPtrMap; 
  • trunk/Source/System/FieldContainer/Base/OSGContainerPtrFuncs.h

    r1105 r1184  
    140140#ifdef OSG_1_COMPAT 
    141141inline 
    142 void addRefCPX(FieldContainerPtrConst objectP
     142void addRefCP(const FieldContainerPtr
    143143{ 
    144     addRefX(objectP); 
    145144} 
    146145 
    147146inline 
    148 void subRefCPX(FieldContainerPtrConst objectP
     147void subRefCP(const FieldContainerPtr
    149148{ 
    150     subRefX(objectP); 
    151149} 
    152150 
     
    173171 
    174172template <class OutPtrT> inline 
    175 OutPtrT dynamic_fcptr_cast(FieldContainerPtrConst pPtr) 
     173OutPtrT dynamic_fcptr_cast(const FieldContainerPtr pPtr) 
    176174{ 
    177175    return dynamic_cast<OutPtrT>(pPtr); 
  • trunk/Source/System/FieldContainer/Base/OSGFieldContainerType.cpp

    r1105 r1184  
    5353#include "OSGNodeCore.h" 
    5454#include "OSGNode.h" 
    55 #include "OSGFieldContainerAttachment.h" 
     55#include "OSGAttachment.h" 
    5656 
    5757OSG_USING_NAMESPACE 
     
    222222        _baseType = IsNodeCore; 
    223223    } 
    224     else if(isDerivedFrom(FieldContainerAttachment::getClassType()) == true) 
     224    else if(isDerivedFrom(Attachment::getClassType()) == true) 
    225225    { 
    226226        _baseType = IsAttachment; 
  • trunk/Source/System/FieldContainer/Fields/OSGAttachmentFieldTraits.h

    r1126 r1184  
    3737\*---------------------------------------------------------------------------*/ 
    3838 
    39 #ifndef _OSGFIELDCONTAINERATTACHMENTFIELDTRAITS_H_ 
    40 #define _OSGFIELDCONTAINERATTACHMENTFIELDTRAITS_H_ 
     39#ifndef _OSGATTACHMENTFIELDTRAITS_H_ 
     40#define _OSGATTACHMENTFIELDTRAITS_H_ 
    4141#ifdef __sgi 
    4242#pragma once 
     
    6666 
    6767template <> 
    68 struct FieldTraits<FieldContainerAttachmentPtr> 
    69     : public FieldTraitsFCPtrBase<FieldContainerAttachmentPtr> 
     68struct FieldTraits<AttachmentPtr> 
     69    : public FieldTraitsFCPtrBase<AttachmentPtr> 
    7070{ 
    7171  private: 
     
    7575  public: 
    7676 
    77     typedef FieldTraits<FieldContainerAttachmentPtr>  Self; 
     77    typedef FieldTraits<AttachmentPtr>  Self; 
    7878 
    7979 
     
    9292 
    9393template<> inline 
    94 const Char8 * 
    95   FieldTraits<FieldContainerAttachmentPtr,  
    96               0                >::getSName<RecordedRefCountPolicy>(void) 
     94const Char8 *FieldTraits<AttachmentPtr,  
     95                         0            >::getSName<RecordedRefCountPolicy>(void) 
    9796{ 
    98     return "SFRecFieldContainerAttachmentPtr";  
     97    return "SFRecAttachmentPtr";  
    9998} 
    10099 
    101100template<> inline 
    102101const Char8 * 
    103   FieldTraits<FieldContainerAttachmentPtr,  
    104               0                >::getSName<UnrecordedRefCountPolicy>(void) 
     102    FieldTraits<AttachmentPtr,  
     103                0            >::getSName<UnrecordedRefCountPolicy>(void) 
    105104{ 
    106     return "SFUnrecFieldContainerAttachmentPtr";  
     105    return "SFUnrecAttachmentPtr";  
    107106} 
    108107 
    109108template<> inline 
    110 const Char8 * 
    111   FieldTraits<FieldContainerAttachmentPtr,  
    112               0                >::getSName<WeakRefCountPolicy>(void) 
     109const Char8 *FieldTraits<AttachmentPtr,  
     110                         0            >::getSName<WeakRefCountPolicy>(void) 
    113111{ 
    114     return "SFWeakFieldContainerAttachmentPtr";  
     112    return "SFWeakAttachmentPtr";  
    115113} 
    116114 
    117115template<> inline 
    118 const Char8 *FieldTraits<FieldContainerAttachmentPtr,  
     116const Char8 *FieldTraits<AttachmentPtr,  
    119117                         0                >::getSName<NoRefCountPolicy>(void) 
    120118{ 
    121     return "SFUnrefdFieldContainerAttachmentPtr";  
     119    return "SFUnrefdAttachmentPtr";  
    122120} 
    123121 
     
    125123 
    126124template<> inline 
    127 const Char8 * 
    128   FieldTraits<FieldContainerAttachmentPtr,  
    129               0               >::getMName<RecordedRefCountPolicy>(void) 
     125const Char8 *FieldTraits<AttachmentPtr,  
     126                         0