[Smtk-developers] Attribute system change
David Thompson
david.thompson at kitware.com
Fri Apr 28 16:39:46 EDT 2017
Hi all,
I've submitted merge requests for SMTK[1] and CMB[2] that convert SMTK's API to use shared pointers for attribute system instances. This is needed in order for the model manager to properly update associations with attributes when model entities are split or merged by modeling operations.
What this means for you is that you can no longer create attribute systems like so:
smtk::attribute::System someSystem; // C++
someSystem = smtk.attribute.System() # Python
Instead, you should:
auto someSystem = smtk::attribute::System::create(); // C++, returns a SystemPtr
someSystem = smtk.attribute.System.create() # Python
Note that this makes creating an attribute system the same as creating a model manager (which already has a static "create" method).
David
[1]: https://gitlab.kitware.com/cmb/smtk/merge_requests/567
[2]: https://gitlab.kitware.com/cmb/cmb/merge_requests/378
More information about the Smtk-developers
mailing list