- Timestamp:
- 10/05/07 19:12:52 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork/Source/Contrib/Manipulators/OSGManipulatorFields.h
r965 r969 58 58 #include "OSGContribGUIDef.h" 59 59 60 #include "OSGParentContainer.h" 60 61 #include "OSGInternalRefPtr.h" 61 62 … … 69 70 70 71 class Manipulator; 72 73 OSG_GEN_CONTAINERPTR(Manipulator); 71 74 72 75 typedef RefPtr<Manipulator> ManipulatorRefPtr; … … 76 79 typedef InternalRefPtr<Manipulator> const ManipulatorInternalRefPtrConst; 77 80 typedef InternalRefPtr<Manipulator> const ManipulatorInternalRefPtrConstArg; 81 82 typedef PtrWrapper<Manipulator, 83 ManipulatorPtr> ParentManipulatorPtr; 84 typedef PtrWrapper<Manipulator, 85 ManipulatorPtr> const ParentManipulatorPtrConst; 78 86 79 87 #if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles … … 143 151 144 152 static const char *getSName(void) { return "SFManipulatorInternalRefPtr"; } 145 static const char *getMName(void) { return "MFManipulatorIn etrnalRefPtr"; }153 static const char *getMName(void) { return "MFManipulatorInternalRefPtr"; } 146 154 }; 147 155 … … 154 162 #endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3) 155 163 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 171 template <> 172 struct 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 156 199 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS) 157 200 /*! \ingroup GrpContribGUIFieldSingle */ … … 160 203 161 204 typedef SFieldAdaptor<ManipulatorInternalRefPtr, SFFieldContainerPtr> SFManipulatorInternalRefPtr; 205 206 typedef SFieldAdaptor<ParentManipulatorPtr, SFParentFieldContainerPtr> SFParentManipulatorPtr; 162 207 #endif 163 208 … … 169 214 170 215 typedef MFieldAdaptor<ManipulatorInternalRefPtr, MFFieldContainerPtr> MFManipulatorInternalRefPtr; 171 #endif 172 216 217 typedef MFieldAdaptor<ParentManipulatorPtr, MFParentFieldContainerPtr> MFParentManipulatorPtr; 218 #endif 173 219 174 220 OSG_END_NAMESPACE
