Show
Ignore:
Timestamp:
05/05/08 07:12:19 (2 months ago)
Author:
vossg
Message:

changed: interface cleanup, removed ptr typedefs, nullfc

these will be needed for the 1.x compat stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/Cluster/Window/Base/OSGClusterWindowBase.cpp

    r1193 r1198  
    116116*/ 
    117117 
    118 /*! \var WindowPtr       ClusterWindowBase::_sfClientWindow 
     118/*! \var Window *        ClusterWindowBase::_sfClientWindow 
    119119    Window for client rendering 
    120120*/ 
     
    128128*/ 
    129129 
    130 /*! \var ImageComposerPtr ClusterWindowBase::_sfComposer 
     130/*! \var ImageComposer * ClusterWindowBase::_sfComposer 
    131131     
    132132*/ 
     
    919919    ClusterWindowTransitPtr fc; 
    920920 
    921     if(getClassType().getPrototype() != NullFC
     921    if(getClassType().getPrototype() != NULL
    922922    { 
    923923        FieldContainerTransitPtr tmpPtr = 
     
    935935    ClusterWindowTransitPtr fc; 
    936936 
    937     if(getClassType().getPrototype() != NullFC
     937    if(getClassType().getPrototype() != NULL
    938938    { 
    939939        FieldContainerTransitPtr tmpPtr = 
     
    947947 
    948948//! create an empty new instance of the class, do not copy the prototype 
    949 ClusterWindowPtr ClusterWindowBase::createEmpty(void) 
    950 { 
    951     ClusterWindowPtr returnValue; 
     949ClusterWindow *ClusterWindowBase::createEmpty(void) 
     950{ 
     951    ClusterWindow *returnValue; 
    952952 
    953953    newPtr<ClusterWindow>(returnValue, Thread::getCurrentLocalFlags()); 
     
    959959} 
    960960 
    961 ClusterWindowPtr ClusterWindowBase::createEmptyLocal(BitVector bFlags) 
    962 { 
    963     ClusterWindowPtr returnValue; 
     961ClusterWindow *ClusterWindowBase::createEmptyLocal(BitVector bFlags) 
     962{ 
     963    ClusterWindow *returnValue; 
    964964 
    965965    newPtr<ClusterWindow>(returnValue, bFlags); 
     
    972972FieldContainerTransitPtr ClusterWindowBase::shallowCopy(void) const 
    973973{ 
    974     ClusterWindowPtr tmpPtr; 
     974    ClusterWindow *tmpPtr; 
    975975 
    976976    newPtr(tmpPtr,  
     
    988988    BitVector bFlags) const 
    989989{ 
    990     ClusterWindowPtr tmpPtr; 
     990    ClusterWindow *tmpPtr; 
    991991 
    992992    newPtr(tmpPtr, dynamic_cast<const ClusterWindow *>(this), bFlags); 
     
    10131013    _sfServiceAddress         (std::string("224.245.211.234")), 
    10141014    _sfServiceInterface       (), 
    1015     _sfClientWindow           (NullFC), 
     1015    _sfClientWindow           (NULL), 
    10161016    _sfInterleave             (UInt32(0)), 
    10171017    _sfFrameCount             (UInt32(0)), 
    1018     _sfComposer               (NullFC), 
     1018    _sfComposer               (NULL), 
    10191019    _mfAutostart              () 
    10201020{ 
     
    10311031    _sfServiceAddress         (source._sfServiceAddress         ), 
    10321032    _sfServiceInterface       (source._sfServiceInterface       ), 
    1033     _sfClientWindow           (NullFC), 
     1033    _sfClientWindow           (NULL), 
    10341034    _sfInterleave             (source._sfInterleave             ), 
    10351035    _sfFrameCount             (source._sfFrameCount             ), 
    1036     _sfComposer               (NullFC), 
     1036    _sfComposer               (NULL), 
    10371037    _mfAutostart              (source._mfAutostart              ) 
    10381038{ 
     
    13701370 
    13711371#ifdef OSG_MT_CPTR_ASPECT 
    1372 FieldContainerPtr ClusterWindowBase::createAspectCopy(void) const 
    1373 { 
    1374     ClusterWindowPtr returnValue; 
     1372FieldContainer *ClusterWindowBase::createAspectCopy(void) const 
     1373{ 
     1374    ClusterWindow *returnValue; 
    13751375 
    13761376    newAspectCopy(returnValue, 
     
    13851385    Inherited::resolveLinks(); 
    13861386 
    1387     static_cast<ClusterWindow *>(this)->setClientWindow(NullFC); 
    1388  
    1389     static_cast<ClusterWindow *>(this)->setComposer(NullFC); 
     1387    static_cast<ClusterWindow *>(this)->setClientWindow(NULL); 
     1388 
     1389    static_cast<ClusterWindow *>(this)->setComposer(NULL); 
    13901390 
    13911391#ifdef OSG_MT_CPTR_ASPECT 
     
    14071407 
    14081408#if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 
    1409 DataType FieldTraits<ClusterWindowPtr>::_type("ClusterWindowPtr", "WindowPtr"); 
    1410 #endif 
    1411  
    1412 OSG_FIELDTRAITS_GETTYPE(ClusterWindowPtr
     1409DataType FieldTraits<ClusterWindow *>::_type("ClusterWindowPtr", "WindowPtr"); 
     1410#endif 
     1411 
     1412OSG_FIELDTRAITS_GETTYPE(ClusterWindow *
    14131413 
    14141414OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,  
    1415                            ClusterWindowPtr,  
     1415                           ClusterWindow *,  
    14161416                           0); 
    14171417 
    14181418OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,  
    1419                            ClusterWindowPtr,  
     1419                           ClusterWindow *,  
    14201420                           0); 
    14211421