- Timestamp:
- 04/15/08 04:48:53 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Drawables/Particles/OSGParticlesBase.cpp
r1158 r1161 172 172 oType.addInitialDesc(pDesc); 173 173 174 pDesc = new SFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(175 SFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),174 pDesc = new SFUnrecChildGeoVectorPropertyPtr::Description( 175 SFUnrecChildGeoVectorPropertyPtr::getClassType(), 176 176 "positions", 177 177 "The positions of the particles. This is the primary defining\n" … … 201 201 oType.addInitialDesc(pDesc); 202 202 203 pDesc = new SFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(204 SFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),203 pDesc = new SFUnrecChildGeoVectorPropertyPtr::Description( 204 SFUnrecChildGeoVectorPropertyPtr::getClassType(), 205 205 "secPositions", 206 206 "The secondary position of the particle. This information is only used\n" … … 215 215 oType.addInitialDesc(pDesc); 216 216 217 pDesc = new SFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(218 SFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),217 pDesc = new SFUnrecChildGeoVectorPropertyPtr::Description( 218 SFUnrecChildGeoVectorPropertyPtr::getClassType(), 219 219 "colors", 220 220 "The particle colors (optional).\n", … … 227 227 oType.addInitialDesc(pDesc); 228 228 229 pDesc = new SFUnrec FieldContainerChildGeoVectorPropertyPtr::Description(230 SFUnrec FieldContainerChildGeoVectorPropertyPtr::getClassType(),229 pDesc = new SFUnrecChildGeoVectorPropertyPtr::Description( 230 SFUnrecChildGeoVectorPropertyPtr::getClassType(), 231 231 "normals", 232 232 "Most particles will be automatically aligned to the view\n" … … 549 549 550 550 //! Get the Particles::_sfPositions field. 551 const SFUnrec FieldContainerChildGeoVectorPropertyPtr *ParticlesBase::getSFPositions(void) const551 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFPositions(void) const 552 552 { 553 553 return &_sfPositions; … … 574 574 575 575 //! Get the Particles::_sfSecPositions field. 576 const SFUnrec FieldContainerChildGeoVectorPropertyPtr *ParticlesBase::getSFSecPositions(void) const576 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFSecPositions(void) const 577 577 { 578 578 return &_sfSecPositions; … … 580 580 581 581 //! Get the Particles::_sfColors field. 582 const SFUnrec FieldContainerChildGeoVectorPropertyPtr *ParticlesBase::getSFColors(void) const582 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFColors(void) const 583 583 { 584 584 return &_sfColors; … … 586 586 587 587 //! Get the Particles::_sfNormals field. 588 const SFUnrec FieldContainerChildGeoVectorPropertyPtr *ParticlesBase::getSFNormals(void) const588 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFNormals(void) const 589 589 { 590 590 return &_sfNormals; … … 1208 1208 GetFieldHandlePtr ParticlesBase::getHandlePositions (void) const 1209 1209 { 1210 SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1211 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1210 SFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1211 new SFUnrecChildGeoVectorPropertyPtr::GetHandle( 1212 1212 &_sfPositions, 1213 1213 this->getType().getFieldDesc(PositionsFieldId))); … … 1218 1218 EditFieldHandlePtr ParticlesBase::editHandlePositions (void) 1219 1219 { 1220 SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1221 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1220 SFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1221 new SFUnrecChildGeoVectorPropertyPtr::EditHandle( 1222 1222 &_sfPositions, 1223 1223 this->getType().getFieldDesc(PositionsFieldId))); … … 1255 1255 GetFieldHandlePtr ParticlesBase::getHandleSecPositions (void) const 1256 1256 { 1257 SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1258 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1257 SFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1258 new SFUnrecChildGeoVectorPropertyPtr::GetHandle( 1259 1259 &_sfSecPositions, 1260 1260 this->getType().getFieldDesc(SecPositionsFieldId))); … … 1265 1265 EditFieldHandlePtr ParticlesBase::editHandleSecPositions (void) 1266 1266 { 1267 SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1268 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1267 SFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1268 new SFUnrecChildGeoVectorPropertyPtr::EditHandle( 1269 1269 &_sfSecPositions, 1270 1270 this->getType().getFieldDesc(SecPositionsFieldId))); … … 1280 1280 GetFieldHandlePtr ParticlesBase::getHandleColors (void) const 1281 1281 { 1282 SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1283 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1282 SFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1283 new SFUnrecChildGeoVectorPropertyPtr::GetHandle( 1284 1284 &_sfColors, 1285 1285 this->getType().getFieldDesc(ColorsFieldId))); … … 1290 1290 EditFieldHandlePtr ParticlesBase::editHandleColors (void) 1291 1291 { 1292 SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1293 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1292 SFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1293 new SFUnrecChildGeoVectorPropertyPtr::EditHandle( 1294 1294 &_sfColors, 1295 1295 this->getType().getFieldDesc(ColorsFieldId))); … … 1305 1305 GetFieldHandlePtr ParticlesBase::getHandleNormals (void) const 1306 1306 { 1307 SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandlePtr returnValue(1308 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::GetHandle(1307 SFUnrecChildGeoVectorPropertyPtr::GetHandlePtr returnValue( 1308 new SFUnrecChildGeoVectorPropertyPtr::GetHandle( 1309 1309 &_sfNormals, 1310 1310 this->getType().getFieldDesc(NormalsFieldId))); … … 1315 1315 EditFieldHandlePtr ParticlesBase::editHandleNormals (void) 1316 1316 { 1317 SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandlePtr returnValue(1318 new SFUnrec FieldContainerChildGeoVectorPropertyPtr::EditHandle(1317 SFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue( 1318 new SFUnrecChildGeoVectorPropertyPtr::EditHandle( 1319 1319 &_sfNormals, 1320 1320 this->getType().getFieldDesc(NormalsFieldId))); … … 1550 1550 OSG_FIELDTRAITS_GETTYPE(ParticlesPtr) 1551 1551 1552 OSG_EXPORT_PTR_SFIELD_FULL( FieldContainerPtrSField,1552 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 1553 1553 ParticlesPtr, 1554 1554 0); 1555 1555 1556 OSG_EXPORT_PTR_MFIELD_FULL( FieldContainerPtrMField,1556 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 1557 1557 ParticlesPtr, 1558 1558 0);
