Show
Ignore:
Timestamp:
12/03/07 17:54:44 (1 year ago)
Author:
cneumann
Message:

fixed: added missing _fieldType instantiations

VRML loader compiles (not sure if it works though)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FileIO/WRL/OSGVRMLNodeHelper.cpp

    r872 r1031  
    234234    _pNodeCoreProto     (NullFC), 
    235235 
    236     OSG_INIT_DESC(_sfVec3fDesc,   SFVec3f,             "sfVec3fHelperDesc"  ), 
    237     OSG_INIT_DESC(_sfFCPtrDesc,   SFFieldContainerPtr, "sfFCPtrHelperDesc"  ), 
    238     OSG_INIT_DESC(_sfReal32Desc,  SFReal32,            "sfReal32HelperDesc" ), 
    239     OSG_INIT_DESC(_sfColor3fDesc, SFColor3f,           "sfColor3fHelperDesc"), 
    240     OSG_INIT_DESC(_mfStringDesc,  MFString,            "mfStringHelperDesc" ), 
    241     OSG_INIT_DESC(_sfBoolDesc,    SFBool,              "sfBoolDesc"         ) 
     236    OSG_INIT_DESC(_sfVec3fDesc,   SFVec3f,                     "sfVec3fHelperDesc"  ), 
     237    OSG_INIT_DESC(_sfFCPtrDesc,   SFFieldContainerInternalPtr, "sfFCPtrHelperDesc"  ), 
     238    OSG_INIT_DESC(_sfReal32Desc,  SFReal32,                    "sfReal32HelperDesc" ), 
     239    OSG_INIT_DESC(_sfColor3fDesc, SFColor3f,                   "sfColor3fHelperDesc"), 
     240    OSG_INIT_DESC(_mfStringDesc,  MFString,                    "mfStringHelperDesc" ), 
     241    OSG_INIT_DESC(_sfBoolDesc,    SFBool,                      "sfBoolDesc"         ) 
    242242{ 
    243243} 
     
    806806    OSG_CREATE_DESC_ELSE(SFColor3f) 
    807807 
    808     OSG_CREATE_DESC_ELSE(SFFieldContainerPtr) 
     808    OSG_CREATE_DESC_ELSE(SFFieldContainerInternalPtr) 
    809809 
    810810    return returnValue; 
     
    829829       (pFieldFC   != NullFC)   ) 
    830830    { 
    831          SFFieldContainerPtr::EditHandlePtr pSFHandle =  
    832             boost::dynamic_pointer_cast<SFFieldContainerPtr::EditHandle>( 
     831         EditSFCPointerFieldBaseHandlePtr pSFHandle =  
     832            boost::dynamic_pointer_cast<EditSFCPointerFieldBaseHandle>( 
    833833                pFieldFC->editField(pFieldDesc->getFieldId())); 
    834834 
    835         MFFieldContainerPtr::EditHandlePtr pMFHandle =  
    836             boost::dynamic_pointer_cast<MFFieldContainerPtr::EditHandle>( 
     835        EditMFCPointerFieldBaseHandlePtr pMFHandle =  
     836            boost::dynamic_pointer_cast<EditMFCPointerFieldBaseHandle>( 
    837837                pFieldFC->editField(pFieldDesc->getFieldId())); 
    838838 
    839839        if(pSFHandle != NULL && pSFHandle->isValid()) 
    840840        { 
    841             pSFHandle->setValue(pFC); 
     841            pSFHandle->set(pFC); 
    842842        } 
    843843        else if(pMFHandle != NULL && pMFHandle->isValid())