Show
Ignore:
Timestamp:
12/29/06 10:28:00 (2 years ago)
Author:
cneumann
Message:

- regenerated all base files to include the full set

of access functions for non-ptr mfields.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGGeoMultiPropertyDataBase.cpp

    r436 r459  
    8383    The data for the multi-properties. 
    8484*/ 
     85 
    8586/*! \var UInt32          GeoMultiPropertyDataBase::_sfGLId 
    8687    The internal GL object id for the VBO, if used. 
    8788*/ 
     89 
    8890 
    8991void GeoMultiPropertyDataBase::classDescInserter(TypeObject &oType) 
     
    242244 
    243245 
     246/*********************************** Non-ptr code ********************************/ 
     247void GeoMultiPropertyDataBase::pushToIData(const UInt8& value) 
     248{ 
     249    editMField(IDataFieldMask, _mfIData); 
     250    _mfIData.push_back(value); 
     251} 
     252 
     253void GeoMultiPropertyDataBase::insertIntoIData(UInt32                uiIndex, 
     254                                                   const UInt8& value   ) 
     255{ 
     256    editMField(IDataFieldMask, _mfIData); 
     257 
     258    MFUInt8::iterator fieldIt = _mfIData.begin(); 
     259 
     260    fieldIt += uiIndex; 
     261 
     262    _mfIData.insert(fieldIt, value); 
     263} 
     264 
     265void GeoMultiPropertyDataBase::replaceInIData(UInt32                uiIndex, 
     266                                                       const UInt8& value   ) 
     267{ 
     268    if(uiIndex >= _mfIData.size()) 
     269        return; 
     270 
     271    editMField(IDataFieldMask, _mfIData); 
     272 
     273    _mfIData[uiIndex] = value; 
     274} 
     275 
     276void GeoMultiPropertyDataBase::replaceInIData(const UInt8& pOldElem, 
     277                                                        const UInt8& pNewElem) 
     278{ 
     279    Int32  elemIdx = _mfIData.findIndex(pOldElem); 
     280 
     281    if(elemIdx != -1) 
     282    { 
     283        editMField(IDataFieldMask, _mfIData); 
     284 
     285        MFUInt8::iterator fieldIt = _mfIData.begin(); 
     286 
     287        fieldIt += elemIdx; 
     288 
     289        (*fieldIt) = pNewElem; 
     290    } 
     291} 
     292 
     293void GeoMultiPropertyDataBase::removeFromIData(UInt32 uiIndex) 
     294{ 
     295    if(uiIndex < _mfIData.size()) 
     296    { 
     297        editMField(IDataFieldMask, _mfIData); 
     298 
     299        MFUInt8::iterator fieldIt = _mfIData.begin(); 
     300 
     301        fieldIt += uiIndex; 
     302        _mfIData.erase(fieldIt); 
     303    } 
     304} 
     305 
     306void GeoMultiPropertyDataBase::removeFromIData(const UInt8& value) 
     307{ 
     308    Int32 iElemIdx = _mfIData.findIndex(value); 
     309 
     310    if(iElemIdx != -1) 
     311    { 
     312        editMField(IDataFieldMask, _mfIData); 
     313 
     314        MFUInt8::iterator fieldIt = _mfIData.begin(); 
     315 
     316        fieldIt += iElemIdx; 
     317 
     318        _mfIData.erase(fieldIt); 
     319    } 
     320} 
     321 
     322void GeoMultiPropertyDataBase::clearIData(void) 
     323{ 
     324    editMField(IDataFieldMask, _mfIData); 
     325 
     326    _mfIData.clear(); 
     327} 
     328 
     329 
    244330/*------------------------------ access -----------------------------------*/ 
    245331