Changeset 1032 for branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGScaleManipulatorBase.cpp
- Timestamp:
- 12/12/07 18:00:42 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/Contrib/Manipulators/OSGScaleManipulatorBase.cpp
r1020 r1032 78 78 */ 79 79 80 81 void ScaleManipulatorBase::classDescInserter(TypeObject &oType) 82 { 83 FieldDescriptionBase *pDesc = NULL; 84 85 } 80 86 81 87 ScaleManipulatorBase::TypeObject ScaleManipulatorBase::_type( … … 106 112 "The ScaleHandle is used for scaleing objects. It consist of three axis which can be picked and scaled and one center box to scale 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 ScaleManipulatorPtr ScaleManipulatorBase::create(void) 157 { 158 ScaleManipulatorPtr fc; 162 ScaleManipulatorBase::ObjRefPtr 163 ScaleManipulatorBase::create(void) 164 { 165 ObjRefPtr pFC; 159 166 160 167 if(getClassType().getPrototype() != NullFC) 161 168 { 162 fc = dynamic_cast<ScaleManipulator::ObjPtr>(163 getClassType().getPrototype()-> shallowCopy());169 pFC = boost::dynamic_pointer_cast<ScaleManipulator>( 170 getClassType().getPrototype()->shallowCopy()); 164 171 } 165 172 166 return fc;173 return pFC; 167 174 } 168 175 … … 177 184 } 178 185 179 FieldContainerPtr ScaleManipulatorBase::shallowCopy(void) const 180 { 181 ScaleManipulatorPtr returnValue; 186 FieldContainerRefPtr 187 ScaleManipulatorBase::shallowCopy(void) const 188 { 189 ObjPtr returnValue; 182 190 183 191 newPtr(returnValue, dynamic_cast<const ScaleManipulator *>(this)); 184 192 185 return returnValue;193 return FieldContainerRefPtr(returnValue); 186 194 } 187 195
