Difference between revisions of "Documentation/Nightly/Developers/FAQ/IO"

From Slicer Wiki
Jump to: navigation, search
m (Created page with '<noinclude>{{documentation/versioncheck}}</noinclude> <noinclude>__TOC__ ={{#titleparts: {{PAGENAME}} | | -1 }}=</noinclude><includeonly> ='''Developer FAQ: {{{1}}}'''= </include…')
 
(Node writer not showing up in the Save dialog)
Line 5: Line 5:
 
</includeonly>
 
</includeonly>
  
<!--
+
== Why is my node writer not showing up in the Save dialog ? ==
== Why my registered qSlicerWriter is 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 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]
 +
* Your node needs to be a sub-class of [http://slicer.org/doc/html/classvtkMRMLStorableNode.html vtkMRMLStorableNode].

Revision as of 22:20, 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. 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