- Timestamp:
- 05/05/08 06:39:01 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Drawables/Particles/OSGParticlesBase.cpp
r1161 r1193 554 554 } 555 555 556 SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFPositions (void) 557 { 558 editSField(PositionsFieldMask); 559 560 return &_sfPositions; 561 } 562 556 563 MFVec3f *ParticlesBase::editMFSizes(void) 557 564 { … … 579 586 } 580 587 588 SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFSecPositions (void) 589 { 590 editSField(SecPositionsFieldMask); 591 592 return &_sfSecPositions; 593 } 594 581 595 //! Get the Particles::_sfColors field. 582 596 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFColors(void) const … … 585 599 } 586 600 601 SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFColors (void) 602 { 603 editSField(ColorsFieldMask); 604 605 return &_sfColors; 606 } 607 587 608 //! Get the Particles::_sfNormals field. 588 609 const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFNormals(void) const 589 610 { 611 return &_sfNormals; 612 } 613 614 SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFNormals (void) 615 { 616 editSField(NormalsFieldMask); 617 590 618 return &_sfNormals; 591 619 } … … 1173 1201 if(source != NULL) 1174 1202 { 1175 1176 this->setPositions(source->getPositions()); 1177 1178 this->setSecPositions(source->getSecPositions()); 1179 1180 this->setColors(source->getColors()); 1181 1182 this->setNormals(source->getNormals()); 1203 Particles *pThis = static_cast<Particles *>(this); 1204 1205 pThis->setPositions(source->getPositions()); 1206 1207 pThis->setSecPositions(source->getSecPositions()); 1208 1209 pThis->setColors(source->getColors()); 1210 1211 pThis->setNormals(source->getNormals()); 1183 1212 } 1184 1213 }
