# Slicer vtkMRMLSegmentationStorageNode in C++

**URL:** <https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515>\
**Category:** Development\
**Created:** [November 10, 2020, 1:02am UTC](https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515 "2020-11-10T01:02:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nm19](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@nm19](https://discourse.slicer.org/u/nm19)\
**Post date:** [November 10, 2020, 1:02am UTC](https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515/1 "2020-11-10T01:02:18Z")

</div>

Hi,

I was wondering what slicer.vtkMRMLSegmentationNode() did and how it could be implemented directly in C++. Moreover, I was not able to find its Python implementation in the Github repo. Any pointers would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [November 10, 2020, 2:38am UTC](https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515/2 "2020-11-10T02:38:44Z")

</div>

[vtkMRMLSegmentationNode](https://github.com/Slicer/Slicer/blob/f67f5feb6379ca5a5f57d722a5648f7e33ac66ec/Libs/MRML/Core/vtkMRMLSegmentationNode.cxx) is originally implemented in C++ in Slicer. What you specified `slicer.vtkMRMLSegmentationNode()` is available because most of the C++ code is python wrapped which is why you were able to use it in Python.

What was the reason for your question? Do you have a usage question as it relates to the vtkMRMLSegmentationNode object?

---

<div class="post-metadata">

**Author:** ![nm19](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@nm19](https://discourse.slicer.org/u/nm19)\
**Post date:** [November 11, 2020, 12:40am UTC](https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515/3 "2020-11-11T00:40:40Z")

</div>

Thanks for the response. I was in the process of converting some Slicer Python code to C++ and the initial Python code called slicer.vtkMRMLSegmentationNode(). I tried to implement it directly in C++ based off of the documentation [here](http://apidocs.slicer.org/master/classvtkMRMLSegmentationStorageNode.html), however some of the functionality isn’t quite right. So I wanted to get a better idea of what exactly slicer.vtkMRMLSegmentationNode() is doing.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 11, 2020, 3:53pm UTC](https://discourse.slicer.org/t/slicer-vtkmrmlsegmentationstoragenode-in-c/14515/4 "2020-11-11T15:53:00Z")

</div>

Majority of Slicer is implemented in C++, so you can find C++ examples for everything by doing full-text search in the entire Slicer source code.
