MCPcopy Create free account
hub / github.com/ImageEngine/cortex / particleAttributes

Method particleAttributes

src/IECoreScene/ParticleReader.cpp:214–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void ParticleReader::particleAttributes( std::vector<std::string> &names )
215{
216 vector<string> allNames;
217 attributeNames( allNames );
218
219 ConstStringVectorDataPtr d = m_attributesParameter->getTypedValidatedValue<StringVectorData>();
220 if( !d->readable().size() )
221 {
222 names = allNames;
223 return;
224 }
225
226 names.clear();
227 for( vector<string>::const_iterator it = d->readable().begin(); it!=d->readable().end(); it++ )
228 {
229 if( find( allNames.begin(), allNames.end(), *it )!=allNames.end() )
230 {
231 names.push_back( *it );
232 }
233 }
234}
235
236ParticleReader::RealType ParticleReader::realType() const
237{

Callers

nothing calls this directly

Calls 7

findFunction · 0.85
readableMethod · 0.80
attributeNamesFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected