Show
Ignore:
Timestamp:
10/20/07 18:11:52 (1 year ago)
Author:
cneumann
Message:

added: RootObjectT template paremter for ReferenceCountPointer?

and ParentPointer? templates - allows use for FieldBundles?

compile fixes - but still not done

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork/Source/Contrib/VTK/OSGVTKMapperBase.h

    r965 r976  
    161161    /*! \{                                                                 */ 
    162162     
    163             SFNodePtr const *getSFRoot(void) const; 
     163            SFNodeInternalRefPtr const *getSFRoot(void) const; 
    164164            NodePtrConst getRoot(void) const; 
    165165     
     
    171171    /*! \{                                                                 */ 
    172172     
    173             MFNodePtr const *getMFGeoRoots(void) const; 
    174             MFNodePtr const &getGeoRoots  (void) const; 
     173            MFNodeInternalRefPtr const *getMFGeoRoots(void) const; 
     174            MFNodeInternalRefPtr const &getGeoRoots  (void) const; 
    175175            NodePtrConst getGeoRoots(UInt32 const index) const; 
    176176     
    177177    void addGeoRoots(NodePtrConstArg value); 
    178     void assignGeoRoots(MFNodePtr const &value); 
     178    void assignGeoRoots(MFNodeInternalRefPtr const &value); 
    179179    void insertGeoRoots( 
    180180            UInt32 const uiIndex, 
     
    195195    /*! \{                                                                 */ 
    196196     
    197             MFGeometryPtr const *getMFGeometries(void) const; 
    198             MFGeometryPtr const &getGeometries  (void) const; 
     197            MFGeometryInternalRefPtr const *getMFGeometries(void) const; 
     198            MFGeometryInternalRefPtr const &getGeometries  (void) const; 
    199199            GeometryPtrConst getGeometries(UInt32 const index) const; 
    200200     
    201201    void addGeometries(GeometryPtrConstArg value); 
    202     void assignGeometries(MFGeometryPtr const &value); 
     202    void assignGeometries(MFGeometryInternalRefPtr const &value); 
    203203    void insertGeometries( 
    204204            UInt32 const uiIndex, 
     
    219219    /*! \{                                                                 */ 
    220220     
    221             MFChunkMaterialPtr const *getMFMaterials(void) const; 
    222             MFChunkMaterialPtr const &getMaterials  (void) const; 
     221            MFChunkMaterialInternalRefPtr const *getMFMaterials(void) const; 
     222            MFChunkMaterialInternalRefPtr const &getMaterials  (void) const; 
    223223            ChunkMaterialPtrConst getMaterials(UInt32 const index) const; 
    224224     
    225225    void addMaterials(ChunkMaterialPtrConstArg value); 
    226     void assignMaterials(MFChunkMaterialPtr const &value); 
     226    void assignMaterials(MFChunkMaterialInternalRefPtr const &value); 
    227227    void insertMaterials( 
    228228            UInt32 const uiIndex, 
     
    243243    /*! \{                                                                 */ 
    244244     
    245             MFMaterialChunkPtr const *getMFMaterialChunks(void) const; 
    246             MFMaterialChunkPtr const &getMaterialChunks  (void) const; 
     245            MFMaterialChunkInternalRefPtr const *getMFMaterialChunks(void) const; 
     246            MFMaterialChunkInternalRefPtr const &getMaterialChunks  (void) const; 
    247247            MaterialChunkPtrConst getMaterialChunks(UInt32 const index) const; 
    248248     
    249249    void addMaterialChunks(MaterialChunkPtrConstArg value); 
    250     void assignMaterialChunks(MFMaterialChunkPtr const &value); 
     250    void assignMaterialChunks(MFMaterialChunkInternalRefPtr const &value); 
    251251    void insertMaterialChunks( 
    252252            UInt32 const uiIndex, 
     
    267267    /*! \{                                                                 */ 
    268268     
    269             MFGeoPnt3fPropertyPtr const *getMFPositions(void) const; 
    270             MFGeoPnt3fPropertyPtr const &getPositions  (void) const; 
     269            MFGeoPnt3fPropertyInternalRefPtr const *getMFPositions(void) const; 
     270            MFGeoPnt3fPropertyInternalRefPtr const &getPositions  (void) const; 
    271271            GeoPnt3fPropertyPtrConst getPositions(UInt32 const index) const; 
    272272     
    273273    void addPositions(GeoPnt3fPropertyPtrConstArg value); 
    274     void assignPositions(MFGeoPnt3fPropertyPtr const &value); 
     274    void assignPositions(MFGeoPnt3fPropertyInternalRefPtr const &value); 
    275275    void insertPositions( 
    276276            UInt32 const uiIndex, 
     
    291291    /*! \{                                                                 */ 
    292292     
    293             MFGeoUInt32PropertyPtr const *getMFLength(void) const; 
    294             MFGeoUInt32PropertyPtr const &getLength  (void) const; 
     293            MFGeoUInt32PropertyInternalRefPtr const *getMFLength(void) const; 
     294            MFGeoUInt32PropertyInternalRefPtr const &getLength  (void) const; 
    295295            GeoUInt32PropertyPtrConst getLength(UInt32 const index) const; 
    296296     
    297297    void addLength(GeoUInt32PropertyPtrConstArg value); 
    298     void assignLength(MFGeoUInt32PropertyPtr const &value); 
     298    void assignLength(MFGeoUInt32PropertyInternalRefPtr const &value); 
    299299    void insertLength( 
    300300            UInt32 const uiIndex, 
     
    315315    /*! \{                                                                 */ 
    316316     
    317             MFGeoUInt8PropertyPtr const *getMFTypes(void) const; 
    318             MFGeoUInt8PropertyPtr const &getTypes  (void) const; 
     317            MFGeoUInt8PropertyInternalRefPtr const *getMFTypes(void) const; 
     318            MFGeoUInt8PropertyInternalRefPtr const &getTypes  (void) const; 
    319319            GeoUInt8PropertyPtrConst getTypes(UInt32 const index) const; 
    320320     
    321321    void addTypes(GeoUInt8PropertyPtrConstArg value); 
    322     void assignTypes(MFGeoUInt8PropertyPtr const &value); 
     322    void assignTypes(MFGeoUInt8PropertyInternalRefPtr const &value); 
    323323    void insertTypes( 
    324324            UInt32 const uiIndex, 
     
    339339    /*! \{                                                                 */ 
    340340     
    341             MFGeoColor4fPropertyPtr const *getMFColors(void) const; 
    342             MFGeoColor4fPropertyPtr const &getColors  (void) const; 
     341            MFGeoColor4fPropertyInternalRefPtr const *getMFColors(void) const; 
     342            MFGeoColor4fPropertyInternalRefPtr const &getColors  (void) const; 
    343343            GeoColor4fPropertyPtrConst getColors(UInt32 const index) const; 
    344344     
    345345    void addColors(GeoColor4fPropertyPtrConstArg value); 
    346     void assignColors(MFGeoColor4fPropertyPtr const &value); 
     346    void assignColors(MFGeoColor4fPropertyInternalRefPtr const &value); 
    347347    void insertColors( 
    348348            UInt32 const uiIndex, 
     
    363363    /*! \{                                                                 */ 
    364364     
    365             MFGeoVec3fPropertyPtr const *getMFNormals(void) const; 
    366             MFGeoVec3fPropertyPtr const &getNormals  (void) const; 
     365            MFGeoVec3fPropertyInternalRefPtr const *getMFNormals(void) const; 
     366            MFGeoVec3fPropertyInternalRefPtr const &getNormals  (void) const; 
    367367            GeoVec3fPropertyPtrConst getNormals(UInt32 const index) const; 
    368368     
    369369    void addNormals(GeoVec3fPropertyPtrConstArg value); 
    370     void assignNormals(MFGeoVec3fPropertyPtr const &value); 
     370    void assignNormals(MFGeoVec3fPropertyInternalRefPtr const &value); 
    371371    void insertNormals( 
    372372            UInt32 const uiIndex, 
     
    415415    static TypeObject _type; 
    416416 
    417     static void   classDescInserter(TypeObject &oType); 
    418     static Char8 *getClassname     (void             ); 
     417    static void         classDescInserter(TypeObject &oType); 
     418    static Char8 const *getClassname     (void             ); 
    419419 
    420420    /*---------------------------------------------------------------------*/ 
     
    422422    /*! \{                                                                 */ 
    423423 
    424     SFNodePtr        _sfRoot; 
    425     MFNodePtr        _mfGeoRoots; 
    426     MFGeometryPtr    _mfGeometries; 
    427     MFChunkMaterialPtr _mfMaterials; 
    428     MFMaterialChunkPtr _mfMaterialChunks; 
    429     MFGeoPnt3fPropertyPtr _mfPositions; 
    430     MFGeoUInt32PropertyPtr _mfLength; 
    431     MFGeoUInt8PropertyPtr _mfTypes; 
    432     MFGeoColor4fPropertyPtr _mfColors; 
    433     MFGeoVec3fPropertyPtr _mfNormals; 
     424    SFNodeInternalRefPtr _sfRoot; 
     425    MFNodeInternalRefPtr _mfGeoRoots; 
     426    MFGeometryInternalRefPtr _mfGeometries; 
     427    MFChunkMaterialInternalRefPtr _mfMaterials; 
     428    MFMaterialChunkInternalRefPtr _mfMaterialChunks; 
     429    MFGeoPnt3fPropertyInternalRefPtr _mfPositions; 
     430    MFGeoUInt32PropertyInternalRefPtr _mfLength; 
     431    MFGeoUInt8PropertyInternalRefPtr _mfTypes; 
     432    MFGeoColor4fPropertyInternalRefPtr _mfColors; 
     433    MFGeoVec3fPropertyInternalRefPtr _mfNormals; 
    434434 
    435435    /*! \}                                                                 */ 
     
    526526typedef VTKMapperBase *VTKMapperBaseP; 
    527527 
    528 /** Type specific RefPtr type for VTKMapper. */ 
    529 typedef RefPtr<VTKMapper>   VTKMapperRefPtr; 
    530 typedef MTRefPtr<VTKMapper> VTKMapperMTRefPtr; 
    531  
    532 typedef InternalRefPtr<VTKMapper>       VTKMapperInternalRefPtr; 
    533 typedef InternalRefPtr<VTKMapper> const VTKMapperInternalRefPtrConst; 
    534 typedef InternalRefPtr<VTKMapper> const VTKMapperInternalRefPtrConstArg; 
     528typedef RefCountPtrBuilder<VTKMapper>::Ptr         VTKMapperRefPtr; 
     529typedef MTRefCountPtrBuilder<VTKMapper>::Ptr       VTKMapperMTRefPtr; 
     530typedef WeakRefCountPtrBuilder<VTKMapper>::Ptr     VTKMapperWeakRefPtr; 
     531typedef InternalRefCountPtrBuilder<VTKMapper>::Ptr VTKMapperInternalRefPtr; 
     532 
     533typedef ParentPtrBuilder<VTKMapper>::Ptr           VTKMapperParentPtr; 
    535534 
    536535typedef boost::mpl::if_<