MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / setCollection

Method setCollection

source/MaterialXCore/Geom.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50//
51
52void GeomElement::setCollection(ConstCollectionPtr collection)
53{
54 if (collection)
55 {
56 setCollectionString(collection->getName());
57 }
58 else
59 {
60 removeAttribute(COLLECTION_ATTRIBUTE);
61 }
62}
63
64CollectionPtr GeomElement::getCollection() const
65{

Callers 3

test_BuildDocumentMethod · 0.45
Look.cppFile · 0.45
document.spec.jsFile · 0.45

Calls 2

setCollectionStringFunction · 0.70
getNameMethod · 0.45

Tested by 1

test_BuildDocumentMethod · 0.36