Show
Ignore:
Timestamp:
05/05/08 06:39:01 (7 months ago)
Author:
vossg
Message:

changed: base rebuild

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/NodeCores/Drawables/Particles/OSGParticlesBase.cpp

    r1161 r1193  
    554554} 
    555555 
     556SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFPositions      (void) 
     557{ 
     558    editSField(PositionsFieldMask); 
     559 
     560    return &_sfPositions; 
     561} 
     562 
    556563MFVec3f *ParticlesBase::editMFSizes(void) 
    557564{ 
     
    579586} 
    580587 
     588SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFSecPositions   (void) 
     589{ 
     590    editSField(SecPositionsFieldMask); 
     591 
     592    return &_sfSecPositions; 
     593} 
     594 
    581595//! Get the Particles::_sfColors field. 
    582596const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFColors(void) const 
     
    585599} 
    586600 
     601SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFColors         (void) 
     602{ 
     603    editSField(ColorsFieldMask); 
     604 
     605    return &_sfColors; 
     606} 
     607 
    587608//! Get the Particles::_sfNormals field. 
    588609const SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::getSFNormals(void) const 
    589610{ 
     611    return &_sfNormals; 
     612} 
     613 
     614SFUnrecChildGeoVectorPropertyPtr *ParticlesBase::editSFNormals        (void) 
     615{ 
     616    editSField(NormalsFieldMask); 
     617 
    590618    return &_sfNormals; 
    591619} 
     
    11731201    if(source != NULL) 
    11741202    { 
    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()); 
    11831212    } 
    11841213}