Difference between revisions of "Documentation/Nightly/Developers/FAQ/IO"
From Slicer Wiki
(Node writer not showing up in the Save dialog) |
|||
(One intermediate revision by the same user not shown) | |||
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 [ | + | 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 [ | + | * 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] | 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 [ | + | * 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.