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

    r965 r969  
    5858#include "OSGContribGUIDef.h" 
    5959 
     60#include "OSGParentContainer.h" 
    6061#include "OSGInternalRefPtr.h" 
    6162 
     
    6970 
    7071class Manipulator; 
     72 
     73OSG_GEN_CONTAINERPTR(Manipulator); 
    7174 
    7275typedef RefPtr<Manipulator>         ManipulatorRefPtr; 
     
    7679typedef InternalRefPtr<Manipulator> const ManipulatorInternalRefPtrConst; 
    7780typedef InternalRefPtr<Manipulator> const ManipulatorInternalRefPtrConstArg; 
     81 
     82typedef PtrWrapper<Manipulator, 
     83                   ManipulatorPtr>        ParentManipulatorPtr; 
     84typedef PtrWrapper<Manipulator, 
     85                   ManipulatorPtr> const  ParentManipulatorPtrConst; 
    7886 
    7987#if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 
     
    143151 
    144152    static const char *getSName(void) { return "SFManipulatorInternalRefPtr"; } 
    145     static const char *getMName(void) { return "MFManipulatorInetrnalRefPtr"; } 
     153    static const char *getMName(void) { return "MFManipulatorInternalRefPtr"; } 
    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 GrpContribGUIFieldTraits 
     166 */ 
     167#if !defined(OSG_DOC_DEV_TRAITS) 
     168/*! \hideinhierarchy */ 
     169#endif 
     170 
     171template <> 
     172struct FieldTraits<ParentManipulatorPtr> : 
     173    public FieldTraitsFCPtrBase<ParentManipulatorPtr> 
     174{ 
     175  private: 
     176 
     177    static DataType             _type; 
     178 
     179  public: 
     180 
     181    typedef FieldTraits<ParentManipulatorPtr>  Self; 
     182 
     183    enum                        { Convertible = NotConvertible }; 
     184 
     185    static OSG_CONTRIBGUI_DLLMAPPING DataType &getType(void); 
     186 
     187    static const char *getSName(void) { return "SFParentManipulatorPtr"; } 
     188    static const char *getMName(void) { return "MFParentManipulatorPtr"; } 
     189}; 
     190 
     191#if !defined(OSG_DOC_DEV_TRAITS) 
     192/*! \class  FieldTraitsTemplateBase<ManipulatorPtr, 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 GrpContribGUIFieldSingle */ 
     
    160203 
    161204typedef SFieldAdaptor<ManipulatorInternalRefPtr, SFFieldContainerPtr> SFManipulatorInternalRefPtr; 
     205 
     206typedef SFieldAdaptor<ParentManipulatorPtr, SFParentFieldContainerPtr> SFParentManipulatorPtr; 
    162207#endif 
    163208 
     
    169214 
    170215typedef MFieldAdaptor<ManipulatorInternalRefPtr, MFFieldContainerPtr> MFManipulatorInternalRefPtr; 
    171 #endif 
    172  
     216 
     217typedef MFieldAdaptor<ParentManipulatorPtr, MFParentFieldContainerPtr> MFParentManipulatorPtr; 
     218#endif 
    173219 
    174220OSG_END_NAMESPACE