Difference between revisions of "Documentation/Nightly/Developers/FAQ/IO"
From Slicer Wiki
(Node writer not showing up in the Save dialog) |
|||
Line 6: | Line 6: | ||
== Why is my node writer not showing up in the Save dialog ? == | == 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 [http://slicer.org/doc/html/classqSlicerNodeWriter.html qSlicerNodeWriter] needed to save your node on your system. If the writer is not showing up for your node in the [http://slicer.org/doc/html/classqSlicerSaveDataDialog.html qSlicerSaveDataDialog], it could be one of those following reasons : | + | You have implemented a loadable module with a new MRML node, its storage node, and the [http://slicer.org/doc/html/classqSlicerNodeWriter.html qSlicerNodeWriter] needed to save your node on your system file. If the writer is not showing up for your node in the [http://slicer.org/doc/html/classqSlicerSaveDataDialog.html qSlicerSaveDataDialog], it could be one of those following reasons : |
* You need to register your writer in the [http://slicer.org/doc/html/classqSlicerIOManager.html qSlicerIOManager] in ''qSlicerYourModule::setup()''. | * You need to register your writer in the [http://slicer.org/doc/html/classqSlicerIOManager.html qSlicerIOManager] in ''qSlicerYourModule::setup()''. | ||
Example: [https://github.com/Slicer/Slicer/blob/3dd75da/Modules/Loadable/Markups/qSlicerMarkupsModule.cxx#L136-L138 qSlicerMarkupsModule writer registration] | 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 [http://slicer.org/doc/html/classvtkMRMLStorableNode.html vtkMRMLStorableNode]. | * Your node needs to be a sub-class of [http://slicer.org/doc/html/classvtkMRMLStorableNode.html vtkMRMLStorableNode]. |
Revision as of 22:21, 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.