Changeset 1032 for branches/Carsten_PtrWork2/Source/System/Cluster/Window/SortLast/OSGPipelineComposerBase.cpp
- Timestamp:
- 12/12/07 18:00:42 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/Cluster/Window/SortLast/OSGPipelineComposerBase.cpp
r1020 r1032 98 98 */ 99 99 100 100 101 101 void PipelineComposerBase::classDescInserter(TypeObject &oType) 102 102 { 103 103 FieldDescriptionBase *pDesc = NULL; 104 105 104 106 105 pDesc = new SFBool::Description( … … 108 107 "short", 109 108 "", 110 ShortFieldId, ShortFieldMask, 109 ShortFieldId, 110 ShortFieldMask, 111 111 false, 112 112 Field::SFDefaultFlags, 113 113 static_cast<FieldEditMethodSig>(&PipelineComposerBase::editHandleShort), 114 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleShort)); 115 116 oType.addInitialDesc(pDesc); 117 114 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleShort ) ); 115 116 oType.addInitialDesc(pDesc); 117 118 118 119 pDesc = new SFBool::Description( 119 120 SFBool::getClassType(), 120 121 "alpha", 121 122 "", 122 AlphaFieldId, AlphaFieldMask, 123 AlphaFieldId, 124 AlphaFieldMask, 123 125 false, 124 126 Field::SFDefaultFlags, 125 127 static_cast<FieldEditMethodSig>(&PipelineComposerBase::editHandleAlpha), 126 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleAlpha)); 127 128 oType.addInitialDesc(pDesc); 129 128 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleAlpha ) ); 129 130 oType.addInitialDesc(pDesc); 131 132 130 133 pDesc = new SFUInt32::Description( 131 134 SFUInt32::getClassType(), 132 135 "tileSize", 133 136 "", 134 TileSizeFieldId, TileSizeFieldMask, 137 TileSizeFieldId, 138 TileSizeFieldMask, 135 139 false, 136 140 Field::SFDefaultFlags, 137 141 static_cast<FieldEditMethodSig>(&PipelineComposerBase::editHandleTileSize), 138 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleTileSize)); 139 140 oType.addInitialDesc(pDesc); 141 142 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandleTileSize ) ); 143 144 oType.addInitialDesc(pDesc); 145 146 142 147 pDesc = new SFBool::Description( 143 148 SFBool::getClassType(), 144 149 "pipelined", 145 150 "", 146 PipelinedFieldId, PipelinedFieldMask, 151 PipelinedFieldId, 152 PipelinedFieldMask, 147 153 false, 148 154 Field::SFDefaultFlags, 149 155 static_cast<FieldEditMethodSig>(&PipelineComposerBase::editHandlePipelined), 150 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandlePipelined)); 151 152 oType.addInitialDesc(pDesc); 153 } 154 156 static_cast<FieldGetMethodSig >(&PipelineComposerBase::getHandlePipelined ) ); 157 158 oType.addInitialDesc(pDesc); 159 160 161 } 155 162 156 163 PipelineComposerBase::TypeObject PipelineComposerBase::_type( … … 216 223 "" 217 224 ); 218 225 219 226 /*------------------------------ get -----------------------------------*/ 220 227 … … 312 319 313 320 //! create a new instance of the class 314 PipelineComposerPtr PipelineComposerBase::create(void) 315 { 316 PipelineComposerPtr fc; 321 PipelineComposerBase::ObjRefPtr 322 PipelineComposerBase::create(void) 323 { 324 ObjRefPtr pFC; 317 325 318 326 if(getClassType().getPrototype() != NullFC) 319 327 { 320 fc = dynamic_cast<PipelineComposer::ObjPtr>(321 getClassType().getPrototype()-> shallowCopy());322 } 323 324 return fc;328 pFC = boost::dynamic_pointer_cast<PipelineComposer>( 329 getClassType().getPrototype()->shallowCopy()); 330 } 331 332 return pFC; 325 333 } 326 334 … … 335 343 } 336 344 337 FieldContainerPtr PipelineComposerBase::shallowCopy(void) const 338 { 339 PipelineComposerPtr returnValue; 345 FieldContainerRefPtr 346 PipelineComposerBase::shallowCopy(void) const 347 { 348 ObjPtr returnValue; 340 349 341 350 newPtr(returnValue, dynamic_cast<const PipelineComposer *>(this)); 342 351 343 return returnValue;352 return FieldContainerRefPtr(returnValue); 344 353 } 345 354
