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/Contrib/Manipulators/OSGRotateManipulatorBase.h

    r1020 r1032  
    9292    OSG_GEN_INTERNALPTR(RotateManipulator); 
    9393 
    94     typedef WeakRefCountPtrBuilder<RotateManipulator>::Ptr ObjWeakRefPtr; 
    95     typedef MTRefCountPtrBuilder  <RotateManipulator>::Ptr ObjMTRefPtr; 
    96     typedef RefCountPtrBuilder    <RotateManipulator>::Ptr ObjRefPtr; 
    97     typedef ParentPtrBuilder      <RotateManipulator>::Ptr ObjParentPtr; 
     94    typedef MTRefCountPtrBuilder      <RotateManipulator>::Ptr ObjMTRefPtr; 
     95    typedef RefCountPtrBuilder        <RotateManipulator>::Ptr ObjRefPtr; 
     96    typedef ParentPtrBuilder          <RotateManipulator>::Ptr ObjParentPtr; 
     97    typedef WeakRefCountPtrBuilder    <RotateManipulator>::Ptr ObjWeakRefPtr; 
     98    typedef InternalRefCountPtrBuilder<RotateManipulator>::Ptr ObjInternalRefPtr; 
    9899     
    99100    /*! \}                                                                 */ 
     
    137138    /*! \{                                                                 */ 
    138139 
    139     static  RotateManipulatorPtr create     (void); 
     140    static  ObjRefPtr        create     (void); 
    140141    static  RotateManipulatorPtr createEmpty(void); 
    141142 
     
    145146    /*! \{                                                                 */ 
    146147 
    147     virtual FieldContainerPtr shallowCopy(void) const; 
     148    virtual FieldContainerRefPtr shallowCopy(void) const; 
    148149 
    149150    /*! \}                                                                 */ 
     
    225226}; 
    226227 
    227 typedef RotateManipulatorBase::ObjRefPtr      RotateManipulatorRefPtr; 
    228 typedef RotateManipulatorBase::ObjMTRefPtr    RotateManipulatorMTRefPtr; 
    229 typedef RotateManipulatorBase::ObjWeakRefPtr  RotateManipulatorWeakRefPtr; 
    230 typedef RotateManipulatorBase::ObjParentPtr   RotateManipulatorParentPtr; 
     228typedef RotateManipulatorBase::ObjRefPtr         RotateManipulatorRefPtr; 
     229typedef RotateManipulatorBase::ObjMTRefPtr       RotateManipulatorMTRefPtr; 
     230typedef RotateManipulatorBase::ObjWeakRefPtr     RotateManipulatorWeakRefPtr; 
     231typedef RotateManipulatorBase::ObjParentPtr      RotateManipulatorParentPtr; 
     232typedef RotateManipulatorBase::ObjInternalRefPtr RotateManipulatorInternalPtr; 
    231233 
    232234typedef boost::mpl::if_<