Show
Ignore:
Timestamp:
12/12/07 18:00:42 (10 months ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Cluster/Window/Base/OSGImageComposerBase.cpp

    r1020 r1032  
    9090*/ 
    9191 
    92  
     92     
    9393void ImageComposerBase::classDescInserter(TypeObject &oType) 
    9494{ 
    9595    FieldDescriptionBase *pDesc = NULL; 
    96  
    9796 
    9897    pDesc = new SFBool::Description( 
     
    10099        "enabled", 
    101100        "Do composition if value is true\n", 
    102         EnabledFieldId, EnabledFieldMask, 
     101        EnabledFieldId, 
     102        EnabledFieldMask, 
    103103        false, 
    104104        Field::SFDefaultFlags, 
    105105        static_cast<FieldEditMethodSig>(&ImageComposerBase::editHandleEnabled), 
    106         static_cast<FieldGetMethodSig >(&ImageComposerBase::getHandleEnabled)); 
    107  
    108     oType.addInitialDesc(pDesc); 
    109  
     106        static_cast<FieldGetMethodSig >(&ImageComposerBase::getHandleEnabled ) ); 
     107         
     108        oType.addInitialDesc(pDesc); 
     109         
     110         
    110111    pDesc = new SFBool::Description( 
    111112        SFBool::getClassType(), 
    112113        "statistics", 
    113114        "", 
    114         StatisticsFieldId, StatisticsFieldMask, 
     115        StatisticsFieldId, 
     116        StatisticsFieldMask, 
    115117        false, 
    116118        Field::SFDefaultFlags, 
    117119        static_cast<FieldEditMethodSig>(&ImageComposerBase::editHandleStatistics), 
    118         static_cast<FieldGetMethodSig >(&ImageComposerBase::getHandleStatistics)); 
    119  
    120     oType.addInitialDesc(pDesc); 
    121 
    122  
     120        static_cast<FieldGetMethodSig >(&ImageComposerBase::getHandleStatistics ) ); 
     121         
     122        oType.addInitialDesc(pDesc); 
     123         
     124         
     125
    123126 
    124127ImageComposerBase::TypeObject ImageComposerBase::_type( 
     
    168171    "An image composer creates an image from multiple cluster rendering servers.\n" 
    169172    ); 
    170  
     173     
    171174/*------------------------------ get -----------------------------------*/ 
    172175