Changeset 1032 for branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGRotateManipulatorBase.cpp
- Timestamp:
- 12/12/07 18:00:42 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGRotateManipulatorBase.cpp
r1020 r1032 78 78 */ 79 79 80 81 void RotateManipulatorBase::classDescInserter(TypeObject &oType) 82 { 83 FieldDescriptionBase *pDesc = NULL; 84 85 } 80 86 81 87 RotateManipulatorBase::TypeObject RotateManipulatorBase::_type( … … 106 112 "The MoveHandle is used for moving objects. It consist of three axis which can be picked and translated and one center box to translate freely in 3D.\n" 107 113 ); 108 114 109 115 /*------------------------------ get -----------------------------------*/ 110 116 … … 154 160 155 161 //! create a new instance of the class 156 RotateManipulatorPtr RotateManipulatorBase::create(void) 157 { 158 RotateManipulatorPtr fc; 162 RotateManipulatorBase::ObjRefPtr 163 RotateManipulatorBase::create(void) 164 { 165 ObjRefPtr pFC; 159 166 160 167 if(getClassType().getPrototype() != NullFC) 161 168 { 162 fc = dynamic_cast<RotateManipulator::ObjPtr>(163 getClassType().getPrototype()-> shallowCopy());169 pFC = boost::dynamic_pointer_cast<RotateManipulator>( 170 getClassType().getPrototype()->shallowCopy()); 164 171 } 165 172 166 return fc;173 return pFC; 167 174 } 168 175 … … 177 184 } 178 185 179 FieldContainerPtr RotateManipulatorBase::shallowCopy(void) const 180 { 181 RotateManipulatorPtr returnValue; 186 FieldContainerRefPtr 187 RotateManipulatorBase::shallowCopy(void) const 188 { 189 ObjPtr returnValue; 182 190 183 191 newPtr(returnValue, dynamic_cast<const RotateManipulator *>(this)); 184 192 185 return returnValue;193 return FieldContainerRefPtr(returnValue); 186 194 } 187 195
