- Timestamp:
- 04/15/08 04:48:53 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Drawables/Geometry/Base/ES/OSGGeometryBase.cpp
r1158 r1161 121 121 122 122 123 pDesc = new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(124 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),123 pDesc = new SFUnrecChildGeoIntegralPropertyPtr::Description( 124 SFUnrecChildGeoIntegralPropertyPtr::getClassType(), 125 125 "types", 126 126 "The types property contains the primitive's types. Legal values are \n" … … 135 135 oType.addInitialDesc(pDesc); 136 136 137 pDesc = new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(138 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),137 pDesc = new SFUnrecChildGeoIntegralPropertyPtr::Description( 138 SFUnrecChildGeoIntegralPropertyPtr::getClassType(), 139 139 "lengths", 140 140 "The lengths property contains the number of vertices to use for the \n" … … 148 148 oType.addInitialDesc(pDesc); 149 149 150 pDesc = new MFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(151 MFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),150 pDesc = new MFUnrecChildGeoVectorPropertyPtr::Description( 151 MFUnrecChildGeoVectorPropertyPtr::getClassType(), 152 152 "properties", 153 153 "The attributes used to render the geometry. The order is based on the \n" … … 161 161 oType.addInitialDesc(pDesc); 162 162 163 pDesc = new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::Description(164 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::getClassType(),163 pDesc = new MFUnrecChildGeoIntegralPropertyPtr::Description( 164 MFUnrecChildGeoIntegralPropertyPtr::getClassType(), 165 165 "propIndices", 166 166 "The indices property contains the index data. See \\ref \n" … … 321 321 322 322 //! Get the Geometry::_sfTypes field. 323 const SFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getSFTypes(void) const323 const SFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getSFTypes(void) const 324 324 { 325 325 return &_sfTypes; … … 327 327 328 328 //! Get the Geometry::_sfLengths field. 329 const SFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getSFLengths(void) const329 const SFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getSFLengths(void) const 330 330 { 331 331 return &_sfLengths; … … 333 333 334 334 //! Get the Geometry::_mfProperties field. 335 const MFUnrec FieldContainerChildGeoVectorPropertyPtr *GeometryBase::getMFProperties(void) const335 const MFUnrecChildGeoVectorPropertyPtr *GeometryBase::getMFProperties(void) const 336 336 { 337 337 return &_mfProperties; … … 339 339 340 340 //! Get the Geometry::_mfPropIndices field. 341 const MFUnrec FieldContainerChildGeoIntegralPropertyPtr *GeometryBase::getMFPropIndices(void) const341 const MFUnrecChildGeoIntegralPropertyPtr *GeometryBase::getMFPropIndices(void) const 342 342 { 343 343 return &_mfPropIndices; … … 396 396 } 397 397 398 void GeometryBase::assignProperties(const MFUnrec FieldContainerChildGeoVectorPropertyPtr &value)399 { 400 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator elemIt =398 void GeometryBase::assignProperties(const MFUnrecChildGeoVectorPropertyPtr &value) 399 { 400 MFUnrecChildGeoVectorPropertyPtr::const_iterator elemIt = 401 401 value.begin(); 402 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator elemEnd =402 MFUnrecChildGeoVectorPropertyPtr::const_iterator elemEnd = 403 403 value.end (); 404 404 … … 418 418 editMField(PropertiesFieldMask, _mfProperties); 419 419 420 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();420 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 421 421 422 422 //addRef(value); … … 476 476 editMField(PropertiesFieldMask, _mfProperties); 477 477 478 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();478 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 479 479 480 480 fieldIt += uiIndex; … … 494 494 editMField(PropertiesFieldMask, _mfProperties); 495 495 496 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc();496 MFUnrecChildGeoVectorPropertyPtr::iterator fieldIt = _mfProperties.begin_nc(); 497 497 498 498 fieldIt += iElemIdx; … … 523 523 } 524 524 525 void GeometryBase::assignPropIndices(const MFUnrec FieldContainerChildGeoIntegralPropertyPtr &value)526 { 527 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator elemIt =525 void GeometryBase::assignPropIndices(const MFUnrecChildGeoIntegralPropertyPtr &value) 526 { 527 MFUnrecChildGeoIntegralPropertyPtr::const_iterator elemIt = 528 528 value.begin(); 529 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator elemEnd =529 MFUnrecChildGeoIntegralPropertyPtr::const_iterator elemEnd = 530 530 value.end (); 531 531 … … 545 545 editMField(PropIndicesFieldMask, _mfPropIndices); 546 546 547 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();547 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 548 548 549 549 //addRef(value); … … 603 603 editMField(PropIndicesFieldMask, _mfPropIndices); 604 604 605 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();605 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 606 606 607 607 fieldIt += uiIndex; … … 621 621 editMField(PropIndicesFieldMask, _mfPropIndices); 622 622 623 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc();623 MFUnrecChildGeoIntegralPropertyPtr::iterator fieldIt = _mfPropIndices.begin_nc(); 624 624 625 625 fieldIt += iElemIdx; … … 934 934 if(pTypedChild != NullFC) 935 935 { 936 MFUnrec FieldContainerChildGeoVectorPropertyPtr::iterator pI =936 MFUnrecChildGeoVectorPropertyPtr::iterator pI = 937 937 _mfProperties.find_nc(pTypedChild); 938 938 … … 962 962 if(pTypedChild != NullFC) 963 963 { 964 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::iterator pI =964 MFUnrecChildGeoIntegralPropertyPtr::iterator pI = 965 965 _mfPropIndices.find_nc(pTypedChild); 966 966 … … 998 998 this->setLengths(source->getLengths()); 999 999 1000 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator PropertiesIt =1000 MFUnrecChildGeoVectorPropertyPtr::const_iterator PropertiesIt = 1001 1001 source->_mfProperties.begin(); 1002 MFUnrec FieldContainerChildGeoVectorPropertyPtr::const_iterator PropertiesEnd =1002 MFUnrecChildGeoVectorPropertyPtr::const_iterator PropertiesEnd = 1003 1003 source->_mfProperties.end (); 1004 1004 … … 1010 1010 } 1011 1011 1012 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator PropIndicesIt =1012 MFUnrecChildGeoIntegralPropertyPtr::const_iterator PropIndicesIt = 1013 1013 source->_mfPropIndices.begin(); 1014 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::const_iterator PropIndicesEnd =1014 MFUnrecChildGeoIntegralPropertyPtr::const_iterator PropIndicesEnd = 1015 1015 source->_mfPropIndices.end (); 1016 1016 … … 1026 1026 GetFieldHandlePtr GeometryBase::getHandleTypes (void) const 1027 1027 { 1028 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1029 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1028 SFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1029 new SFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1030 1030 &_sfTypes, 1031 1031 this->getType().getFieldDesc(TypesFieldId))); … … 1036 1036 EditFieldHandlePtr GeometryBase::editHandleTypes (void) 1037 1037 { 1038 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1039 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1038 SFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1039 new SFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1040 1040 &_sfTypes, 1041 1041 this->getType().getFieldDesc(TypesFieldId))); … … 1051 1051 GetFieldHandlePtr GeometryBase::getHandleLengths (void) const 1052 1052 { 1053 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1054 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1053 SFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1054 new SFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1055 1055 &_sfLengths, 1056 1056 this->getType().getFieldDesc(LengthsFieldId))); … … 1061 1061 EditFieldHandlePtr GeometryBase::editHandleLengths (void) 1062 1062 { 1063 SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1064 new SFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1063 SFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1064 new SFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1065 1065 &_sfLengths, 1066 1066 this->getType().getFieldDesc(LengthsFieldId))); … … 1076 1076 GetFieldHandlePtr GeometryBase::getHandleProperties (void) const 1077 1077 { 1078 MFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1079 new MFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1078 MFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1079 new MFUnrecChildGeoVectorPropertyPtr::GetHandle( 1080 1080 &_mfProperties, 1081 1081 this->getType().getFieldDesc(PropertiesFieldId))); … … 1086 1086 EditFieldHandlePtr GeometryBase::editHandleProperties (void) 1087 1087 { 1088 MFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1089 new MFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1088 MFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1089 new MFUnrecChildGeoVectorPropertyPtr::EditHandle( 1090 1090 &_mfProperties, 1091 1091 this->getType().getFieldDesc(PropertiesFieldId))); … … 1101 1101 GetFieldHandlePtr GeometryBase::getHandlePropIndices (void) const 1102 1102 { 1103 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandlePtr returnValue(1104 new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::GetHandle(1103 MFUnrecChildGeoIntegralPropertyPtr::GetHandlePtr returnValue( 1104 new MFUnrecChildGeoIntegralPropertyPtr::GetHandle( 1105 1105 &_mfPropIndices, 1106 1106 this->getType().getFieldDesc(PropIndicesFieldId))); … … 1111 1111 EditFieldHandlePtr GeometryBase::editHandlePropIndices (void) 1112 1112 { 1113 MFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(1114 new MFUnrec FieldContainerChildGeoIntegralPropertyPtr::EditHandle(1113 MFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue( 1114 new MFUnrecChildGeoIntegralPropertyPtr::EditHandle( 1115 1115 &_mfPropIndices, 1116 1116 this->getType().getFieldDesc(PropIndicesFieldId))); … … 1217 1217 OSG_FIELDTRAITS_GETTYPE(GeometryPtr) 1218 1218 1219 OSG_EXPORT_PTR_SFIELD_FULL( FieldContainerPtrSField,1219 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 1220 1220 GeometryPtr, 1221 1221 0); 1222 1222 1223 OSG_EXPORT_PTR_MFIELD_FULL( FieldContainerPtrMField,1223 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 1224 1224 GeometryPtr, 1225 1225 0);
