- Timestamp:
- 04/15/08 04:48:53 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Drawables/Geometry/Base/WS/OSGGeometryBase.cpp
r1158 r1161 125 125 126 126 127 pDesc = new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(128 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),127 pDesc = new SFUnrecChildGeoIntegralPropertyPtr::Description( 128 SFUnrecChildGeoIntegralPropertyPtr::getClassType(), 129 129 "types", 130 130 "The types property contains the primitive's types. Legal values are \n" … … 139 139 oType.addInitialDesc(pDesc); 140 140 141 pDesc = new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(142 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),141 pDesc = new SFUnrecChildGeoIntegralPropertyPtr::Description( 142 SFUnrecChildGeoIntegralPropertyPtr::getClassType(), 143 143 "lengths", 144 144 "The lengths property contains the number of vertices to use for the \n" … … 152 152 oType.addInitialDesc(pDesc); 153 153 154 pDesc = new MFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(155 MFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),154 pDesc = new MFUnrecChildGeoVectorPropertyPtr::Description( 155 MFUnrecChildGeoVectorPropertyPtr::getClassType(), 156 156 "properties", 157 157 "The attributes used to render the geometry. The order is based on the \n" … … 165 165 oType.addInitialDesc(pDesc); 166 166 167 pDesc = new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(168 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),167 pDesc = new MFUnrecChildGeoIntegralPropertyPtr::Description( 168 MFUnrecChildGeoIntegralPropertyPtr::getClassType(), 169 169 "propIndices", 170 170 "The indices property contains the index data. See \\ref \n" … … 351 351 352 352 //! Get the Geometry::_sfTypes field. 353 const SFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getSFTypes(void) const353 const SFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getSFTypes(void) const 354 354 { 355 355 return &_sfTypes; … … 357 357 358 358 //! Get the Geometry::_sfLengths field. 359 const SFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getSFLengths(void) const359 const SFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getSFLengths(void) const 360 360 { 361 361 return &_sfLengths; … … 363 363 364 364 //! Get the Geometry::_mfProperties field. 365 const MFUnrec FieldContainerChildGeoVectorPropertyPtr *GeometryBase::getMFProperties(void) const365 const MFUnrecChildGeoVectorPropertyPtr *GeometryBase::getMFProperties(void) const 366 366 { 367 367 return &_mfProperties; … … 369 369 370 370 //! Get the Geometry::_mfPropIndices field. 371 const MFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getMFPropIndices(void) const371 const MFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getMFPropIndices(void) const 372 372 { 373 373 return &_mfPropIndices; … … 445 445 } 446 446 447 void GeometryBase::assignProperties(const MFUnrec FieldContainerChildGeoVectorPropertyPtr &value)448 { 449 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator elemIt =447 void GeometryBase::assignProperties(const MFUnrecChildGeoVectorPropertyPtr &value) 448 { 449 MFUnrecChildGeoVectorPropertyPtr::const_iterator elemIt = 450 450 value.begin(); 451 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator elemEnd =451 MFUnrecChildGeoVectorPropertyPtr::const_iterator elemEnd = 452 452 value.end (); 453 453 … … 467 467 editMField(PropertiesFieldMask, _mfProperties); 468 468 469 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();469 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 470 470 471 471 //addRef(value); … … 525 525 editMField(PropertiesFieldMask, _mfProperties); 526 526 527 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();527 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 528 528 529 529 fieldIt += uiIndex; … … 543 543 editMField(PropertiesFieldMask, _mfProperties); 544 544 545 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();545 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 546 546 547 547 fieldIt += iElemIdx; … … 572 572 } 573 573 574 void GeometryBase::assignPropIndices(const MFUnrec FieldContainerChildGeoIntegralPropertyPtr &value)575 { 576 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator elemIt =574 void GeometryBase::assignPropIndices(const MFUnrecChildGeoIntegralPropertyPtr &value) 575 { 576 MFUnrecChildGeoIntegralPropertyPtr::const_iterator elemIt = 577 577 value.begin(); 578 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator elemEnd =578 MFUnrecChildGeoIntegralPropertyPtr::const_iterator elemEnd = 579 579 value.end (); 580 580 … … 594 594 editMField(PropIndicesFieldMask, _mfPropIndices); 595 595 596 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();596 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 597 597 598 598 //addRef(value); … … 652 652 editMField(PropIndicesFieldMask, _mfPropIndices); 653 653 654 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();654 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 655 655 656 656 fieldIt += uiIndex; … … 670 670 editMField(PropIndicesFieldMask, _mfPropIndices); 671 671 672 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();672 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 673 673 674 674 fieldIt += iElemIdx; … … 997 997 if(pTypedChild != NullFC) 998 998 { 999 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator pI =999 MFUnrecChildGeoVectorPropertyPtr::iterator pI = 1000 1000 _mfProperties.find_nc(pTypedChild); 1001 1001 … … 1025 1025 if(pTypedChild != NullFC) 1026 1026 { 1027 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator pI =1027 MFUnrecChildGeoIntegralPropertyPtr::iterator pI = 1028 1028 _mfPropIndices.find_nc(pTypedChild); 1029 1029 … … 1061 1061 this->setLengths(source->getLengths()); 1062 1062 1063 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator PropertiesIt =1063 MFUnrecChildGeoVectorPropertyPtr::const_iterator PropertiesIt = 1064 1064 source->_mfProperties.begin(); 1065 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator PropertiesEnd =1065 MFUnrecChildGeoVectorPropertyPtr::const_iterator PropertiesEnd = 1066 1066 source->_mfProperties.end (); 1067 1067 … … 1073 1073 } 1074 1074 1075 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator PropIndicesIt =1075 MFUnrecChildGeoIntegralPropertyPtr::const_iterator PropIndicesIt = 1076 1076 source->_mfPropIndices.begin(); 1077 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator PropIndicesEnd =1077 MFUnrecChildGeoIntegralPropertyPtr::const_iterator PropIndicesEnd = 1078 1078 source->_mfPropIndices.end (); 1079 1079 … … 1089 1089 GetFieldHandlePtr GeometryBase::getHandleTypes (void) const 1090 1090 { 1091 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1092 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1091 SFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1092 new SFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1093 1093 &_sfTypes, 1094 1094 this->getType().getFieldDesc(TypesFieldId))); … … 1099 1099 EditFieldHandlePtr GeometryBase::editHandleTypes (void) 1100 1100 { 1101 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1102 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1101 SFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1102 new SFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1103 1103 &_sfTypes, 1104 1104 this->getType().getFieldDesc(TypesFieldId))); … … 1114 1114 GetFieldHandlePtr GeometryBase::getHandleLengths (void) const 1115 1115 { 1116 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1117 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1116 SFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1117 new SFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1118 1118 &_sfLengths, 1119 1119 this->getType().getFieldDesc(LengthsFieldId))); … … 1124 1124 EditFieldHandlePtr GeometryBase::editHandleLengths (void) 1125 1125 { 1126 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1127 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1126 SFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1127 new SFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1128 1128 &_sfLengths, 1129 1129 this->getType().getFieldDesc(LengthsFieldId))); … … 1139 1139 GetFieldHandlePtr GeometryBase::getHandleProperties (void) const 1140 1140 { 1141 MFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1142 new MFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1141 MFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1142 new MFUnrecChildGeoVectorPropertyPtr::GetHandle( 1143 1143 &_mfProperties, 1144 1144 this->getType().getFieldDesc(PropertiesFieldId))); … … 1149 1149 EditFieldHandlePtr GeometryBase::editHandleProperties (void) 1150 1150 { 1151 MFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1152 new MFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1151 MFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1152 new MFUnrecChildGeoVectorPropertyPtr::EditHandle( 1153 1153 &_mfProperties, 1154 1154 this->getType().getFieldDesc(PropertiesFieldId))); … … 1164 1164 GetFieldHandlePtr GeometryBase::getHandlePropIndices (void) const 1165 1165 { 1166 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1167 new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1166 MFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1167 new MFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1168 1168 &_mfPropIndices, 1169 1169 this->getType().getFieldDesc(PropIndicesFieldId))); … … 1174 1174 EditFieldHandlePtr GeometryBase::editHandlePropIndices (void) 1175 1175 { 1176 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1177 new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1176 MFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1177 new MFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1178 1178 &_mfPropIndices, 1179 1179 this->getType().getFieldDesc(PropIndicesFieldId))); … … 1302 1302 OSG_FIELDTRAITS_GETTYPE(GeometryPtr) 1303 1303 1304 OSG_EXPORT_PTR_SFIELD_FULL( FieldContainerPtrSField,1304 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 1305 1305 GeometryPtr, 1306 1306 0); 1307 1307 1308 OSG_EXPORT_PTR_MFIELD_FULL( FieldContainerPtrMField,1308 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 1309 1309 GeometryPtr, 1310 1310 0);
