Difference between revisions of "Documentation/Nightly/Developers/FAQ/IO"
From Slicer Wiki
m (Created page with '<noinclude>{{documentation/versioncheck}}</noinclude> <noinclude>__TOC__ ={{#titleparts: {{PAGENAME}} | | -1 }}=</noinclude><includeonly> ='''Developer FAQ: {{{1}}}'''= </include…') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
</includeonly> | </includeonly> | ||
− | + | == Why is my node writer not showing up in the Save dialog ? == | |
− | == Why my | + | You have implemented a loadable module with a new MRML node, its storage node, and the [{{documentation/{{documentation/version}}/doxygen-class-url|qSlicerNodeWriter}} qSlicerNodeWriter] needed to save your node on your system file. If the writer is not showing up for your node in the [{{documentation/{{documentation/version}}/doxygen-class-url|qSlicerSaveDataDialog}} qSlicerSaveDataDialog], it could be one of those following reasons : |
− | + | * You need to register your writer in the [{{documentation/{{documentation/version}}/doxygen-class-url|qSlicerIOManager}} qSlicerIOManager] in ''qSlicerYourModule::setup()''. | |
− | -- | + | Example: [https://github.com/Slicer/Slicer/blob/3dd75da/Modules/Loadable/Markups/qSlicerMarkupsModule.cxx#L136-L138 qSlicerMarkupsModule writer registration] |
+ | * Your node needs to be a sub-class of [{{documentation/{{documentation/version}}/doxygen-class-url|vtkMRMLStorableNode}} vtkMRMLStorableNode]. |
Latest revision as of 22:32, 5 November 2015
Home < Documentation < Nightly < Developers < FAQ < IO
For the latest Slicer documentation, visit the read-the-docs. |
IO
Why is my node writer not showing up in the Save dialog ?
You have implemented a loadable module with a new MRML node, its storage node, and the qSlicerNodeWriter needed to save your node on your system file. If the writer is not showing up for your node in the qSlicerSaveDataDialog, it could be one of those following reasons :
- You need to register your writer in the qSlicerIOManager in qSlicerYourModule::setup().
Example: qSlicerMarkupsModule writer registration
- Your node needs to be a sub-class of vtkMRMLStorableNode.