Show
Ignore:
Timestamp:
10/05/07 19:12:52 (1 year ago)
Author:
cneumann
Message:

added: typedefs for Parent@!Classname!@Ptr fields
removed: calls to ref counting functions

Still does NOT compile :(

Files:

Legend:

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

    r965 r969  
    5858#include "OSGContribVTKDef.h" 
    5959 
     60#include "OSGParentContainer.h" 
    6061#include "OSGInternalRefPtr.h" 
    6162 
     
    6970 
    7071class VTKMapper; 
     72 
     73OSG_GEN_CONTAINERPTR(VTKMapper); 
    7174 
    7275typedef RefPtr<VTKMapper>         VTKMapperRefPtr; 
     
    7679typedef InternalRefPtr<VTKMapper> const VTKMapperInternalRefPtrConst; 
    7780typedef InternalRefPtr<VTKMapper> const VTKMapperInternalRefPtrConstArg; 
     81 
     82typedef PtrWrapper<VTKMapper, 
     83                   VTKMapperPtr>        ParentVTKMapperPtr; 
     84typedef PtrWrapper<VTKMapper, 
     85                   VTKMapperPtr> const  ParentVTKMapperPtrConst; 
    7886 
    7987#if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 
     
    143151 
    144152    static const char *getSName(void) { return "SFVTKMapperInternalRefPtr"; } 
    145     static const char *getMName(void) { return "MFVTKMapperInetrnalRefPtr"; } 
     153    static const char *getMName(void) { return "MFVTKMapperInternalRefPtr"; } 
    146154}; 
    147155 
     
    154162#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
    155163 
     164#if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
     165/*! \ingroup GrpContribVTKFieldTraits 
     166 */ 
     167#if !defined(OSG_DOC_DEV_TRAITS) 
     168/*! \hideinhierarchy */ 
     169#endif 
     170 
     171template <> 
     172struct FieldTraits<ParentVTKMapperPtr> : 
     173    public FieldTraitsFCPtrBase<ParentVTKMapperPtr> 
     174{ 
     175  private: 
     176 
     177    static DataType             _type; 
     178 
     179  public: 
     180 
     181    typedef FieldTraits<ParentVTKMapperPtr>  Self; 
     182 
     183    enum                        { Convertible = NotConvertible }; 
     184 
     185    static OSG_CONTRIBVTK_DLLMAPPING DataType &getType(void); 
     186 
     187    static const char *getSName(void) { return "SFParentVTKMapperPtr"; } 
     188    static const char *getMName(void) { return "MFParentVTKMapperPtr"; } 
     189}; 
     190 
     191#if !defined(OSG_DOC_DEV_TRAITS) 
     192/*! \class  FieldTraitsTemplateBase<VTKMapperPtr, 0> 
     193    \hideinhierarchy 
     194 */ 
     195#endif 
     196 
     197#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 
     198 
    156199#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS) 
    157200/*! \ingroup GrpContribVTKFieldSingle */ 
     
    160203 
    161204typedef SFieldAdaptor<VTKMapperInternalRefPtr, SFFieldContainerPtr> SFVTKMapperInternalRefPtr; 
     205 
     206typedef SFieldAdaptor<ParentVTKMapperPtr, SFParentFieldContainerPtr> SFParentVTKMapperPtr; 
    162207#endif 
    163208 
     
    169214 
    170215typedef MFieldAdaptor<VTKMapperInternalRefPtr, MFFieldContainerPtr> MFVTKMapperInternalRefPtr; 
    171 #endif 
    172  
     216 
     217typedef MFieldAdaptor<ParentVTKMapperPtr, MFParentFieldContainerPtr> MFParentVTKMapperPtr; 
     218#endif 
    173219 
    174220OSG_END_NAMESPACE