- Timestamp:
- 12/12/07 18:00:42 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGMoveManipulatorBase.cpp
r1020 r1032 78 78 */ 79 79 80 81 void MoveManipulatorBase::classDescInserter(TypeObject &oType) 82 { 83 FieldDescriptionBase *pDesc = NULL; 84 85 } 80 86 81 87 MoveManipulatorBase::TypeObject MoveManipulatorBase::_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 MoveManipulatorPtr MoveManipulatorBase::create(void) 157 { 158 MoveManipulatorPtr fc; 162 MoveManipulatorBase::ObjRefPtr 163 MoveManipulatorBase::create(void) 164 { 165 ObjRefPtr pFC; 159 166 160 167 if(getClassType().getPrototype() != NullFC) 161 168 { 162 fc = dynamic_cast<MoveManipulator::ObjPtr>(163 getClassType().getPrototype()-> shallowCopy());169 pFC = boost::dynamic_pointer_cast<MoveManipulator>( 170 getClassType().getPrototype()->shallowCopy()); 164 171 } 165 172 166 return fc;173 return pFC; 167 174 } 168 175 … … 177 184 } 178 185 179 FieldContainerPtr MoveManipulatorBase::shallowCopy(void) const 180 { 181 MoveManipulatorPtr returnValue; 186 FieldContainerRefPtr 187 MoveManipulatorBase::shallowCopy(void) const 188 { 189 ObjPtr returnValue; 182 190 183 191 newPtr(returnValue, dynamic_cast<const MoveManipulator *>(this)); 184 192 185 return returnValue;193 return FieldContainerRefPtr(returnValue); 186 194 } 187 195
