External GUI Resources

From ParaQ Wiki
Revision as of 21:17, 31 January 2007 by Clinton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

There is a CMake macro from ParaView 2 PARAVIEW_INCLUDE_GUI_RESOURCES. There is now support for using that macro in ParaView 3. For a background on this macro, see Extending ParaView

  • Create a MyFancyParaViewReader.xml
<ParaViewReaders>
  <Reader name="MyFancyReader"
          extensions="fancy"
          file_description="MyFancy">
  </Reader>
</ParaViewReaders>
  • Create a MyFancyParaViewWriter.xml
<ParaViewWriters>
  <Writer name="MyFancyWriter"
          extensions="fancy"
          file_description="MyFancy">
  </Writer>
</ParaViewWriters>
  • Then add to MYFANCYParaViewImport.cmake
...
PARAVIEW_INCLUDE_GUI_RESOURCES("${MYFANCY_SOURCE_DIR}/MyFancyParaViewReader.xml" "${MYFANCY_SOURCE_DIR}/MyFancyParaViewWriter.xml")
...

The reader and writer now shows up in the file dialog with a .MyFancy extension.