- Timestamp:
- 10/20/07 18:11:52 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork/Source/Contrib/Manipulators/OSGMoveManipulatorFields.h
r969 r976 58 58 #include "OSGContribGUIDef.h" 59 59 60 #include "OSG ParentContainer.h"61 #include "OSG InternalRefPtr.h"60 #include "OSGReferenceCountPointer.h" 61 #include "OSGParentPointer.h" 62 62 63 63 #include "OSGManipulatorFields.h" 64 64 65 #include "OSGSFieldAdaptor.h" 66 #include "OSGMFieldAdaptor.h" 67 65 #include "OSGSPointerFieldAdapter.h" 66 #include "OSGMPointerFieldAdapter.h" 68 67 69 68 OSG_BEGIN_NAMESPACE 69 70 #if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 71 //! MoveManipulatorPtr 70 72 71 73 class MoveManipulator; … … 73 75 OSG_GEN_CONTAINERPTR(MoveManipulator); 74 76 75 typedef RefPtr<MoveManipulator> MoveManipulatorRefPtr; 76 typedef MTRefPtr<MoveManipulator> MoveManipulatorMTRefPtr; 77 typedef RefCountPtrBuilder<MoveManipulator>::Ptr MoveManipulatorRefPtr; 78 typedef MTRefCountPtrBuilder<MoveManipulator>::Ptr MoveManipulatorMTRefPtr; 79 typedef WeakRefCountPtrBuilder<MoveManipulator>::Ptr MoveManipulatorWeakRefPtr; 80 typedef InternalRefCountPtrBuilder<MoveManipulator>::Ptr MoveManipulatorInternalRefPtr; 77 81 78 typedef InternalRefPtr<MoveManipulator> MoveManipulatorInternalRefPtr; 79 typedef InternalRefPtr<MoveManipulator> const MoveManipulatorInternalRefPtrConst; 80 typedef InternalRefPtr<MoveManipulator> const MoveManipulatorInternalRefPtrConstArg; 81 82 typedef PtrWrapper<MoveManipulator, 83 MoveManipulatorPtr> ParentMoveManipulatorPtr; 84 typedef PtrWrapper<MoveManipulator, 85 MoveManipulatorPtr> const ParentMoveManipulatorPtrConst; 86 87 #if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 88 //! MoveManipulatorPtr 89 90 OSG_GEN_CONTAINERPTR(MoveManipulator); 82 typedef ParentPtrBuilder<MoveManipulator>::Ptr MoveManipulatorParentPtr; 91 83 92 84 #endif … … 100 92 101 93 template <> 102 struct FieldTraits<MoveManipulator Ptr> :103 public FieldTraitsFC PtrBase<MoveManipulatorPtr>94 struct FieldTraits<MoveManipulatorInternalRefPtr> : 95 public FieldTraitsFCReferenceCountPointerBase<MoveManipulatorInternalRefPtr> 104 96 { 105 97 private: 106 98 107 static DataType _type;99 static DataType _type; 108 100 109 101 public: 110 102 111 typedef FieldTraits<MoveManipulator Ptr> Self;103 typedef FieldTraits<MoveManipulatorInternalRefPtr> Self; 112 104 113 enum { Convertible = NotConvertible };105 enum { Convertible = NotConvertible }; 114 106 }; 115 107 116 #if !defined(OSG_DOC_DEV_TRAITS)117 /*! \class FieldTraitsTemplateBase<MoveManipulatorPtr, 0>118 \hideinhierarchy119 */120 #endif121 122 #endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)123 124 #if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)125 108 /*! \ingroup GrpContribGUIFieldTraits 126 109 */ … … 130 113 131 114 template <> 132 struct FieldTraits<MoveManipulator InternalRefPtr> :133 public FieldTraitsFC PtrBase<MoveManipulatorInternalRefPtr>115 struct FieldTraits<MoveManipulatorWeakRefPtr> : 116 public FieldTraitsFCReferenceCountPointerBase<MoveManipulatorWeakRefPtr> 134 117 { 135 118 private: 136 119 137 static DataType _type;120 static DataType _type; 138 121 139 122 public: 140 123 141 typedef FieldTraits<MoveManipulator InternalRefPtr> Self;124 typedef FieldTraits<MoveManipulatorWeakRefPtr> Self; 142 125 143 enum { Convertible = NotConvertible };126 enum { Convertible = NotConvertible }; 144 127 }; 145 128 146 #if !defined(OSG_DOC_DEV_TRAITS)147 /*! \class FieldTraitsTemplateBase<MoveManipulatorPtr, 0>148 \hideinhierarchy149 */150 #endif151 152 #endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)153 154 #if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)155 129 /*! \ingroup GrpContribGUIFieldTraits 156 130 */ … … 160 134 161 135 template <> 162 struct FieldTraits< ParentMoveManipulatorPtr> :163 public FieldTraitsFCP trBase<ParentMoveManipulatorPtr>136 struct FieldTraits<MoveManipulatorParentPtr> : 137 public FieldTraitsFCParentPointerBase<MoveManipulatorParentPtr> 164 138 { 165 139 private: 166 140 167 static DataType _type;141 static DataType _type; 168 142 169 143 public: 170 144 171 typedef FieldTraits< ParentMoveManipulatorPtr> Self;145 typedef FieldTraits<MoveManipulatorParentPtr> Self; 172 146 173 enum { Convertible = NotConvertible };147 enum { Convertible = NotConvertible }; 174 148 }; 175 149
