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

From Slicer Wiki
Jump to: navigation, search
(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 [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 [{{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 [http://slicer.org/doc/html/classqSlicerIOManager.html qSlicerIOManager] in ''qSlicerYourModule::setup()''.
+
* 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 [http://slicer.org/doc/html/classvtkMRMLStorableNode.html vtkMRMLStorableNode].
+
* 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