[Paraview-developers] Custom object panels for writers

Lodron, Gerald Gerald.Lodron at joanneum.at
Thu Mar 13 03:57:20 EDT 2014


Hello

I found out that the custom object panel does not work for writers. I inherited the pqGPCXWriter from Auto Panel with a throw in the constructor (so app should crash if panel is constructed), so I am really sure that constructor is never called.

Here my cmake of the writer plugin:

set(GUI_INT)
set(GUI_SRCS)
QT4_WRAP_CPP( MOC_SRCS pqGPCXWriter.h)

ADD_PARAVIEW_OBJECT_PANEL(
        IFACES IFACE_SRCS
        CLASS_NAME pqGPCXWriter
        XML_NAME GPCXWriter
        XML_GROUP writer
        )
list(APPEND GUI_INT
    ${IFACES}
    )
list(APPEND GUI_SRCS
    ${IFACE_SRCS}
    ${MOC_SRCS}
    pqGPCXWriter.cxx
    )
ADD_PARAVIEW_PLUGIN(GPCXPlugin "${GPCXPLUGIN_VERSION_MAJOR}.${GPCXPLUGIN_VERSION_MINOR}"
        GUI_INTERFACES ${GUI_INT}
        GUI_SOURCES ${GUI_SRCS}
        SERVER_MANAGER_XML GPCXReader.xml GPCXWriter.xml
        SERVER_MANAGER_SOURCES vtkGPCXReader.cxx vtkGPCXWriter.cxx
        REQUIRED_ON_SERVER )

With the xml:

<ServerManagerConfiguration>

  <ProxyGroup name="writers">

    <WriterProxy name="GPCXWriter"
                 class="vtkGPCXWriter"
                 label="GPCX Writer">
      <Documentation short_help="Write image data as a TIF file.">
        Writes image data as a GPCX data file. Data must be initially constructed from a GPCX reader, currently no support for generated data from stratch.
      </Documentation>

      <InputProperty name="Input" command="SetInputConnection">
        <ProxyGroupDomain name="groups">
          <Group name="sources"/>
          <Group name="filters"/>
        </ProxyGroupDomain>
        <DataTypeDomain name="input_type" composite_data_supported="0">
          <DataType value="vtkPolyData"/>
        </DataTypeDomain>
      </InputProperty>

      <StringVectorProperty name="FileName"
                            command="SetFileName"
                            number_of_elements="1"
                            label="Filename">
        <Documentation>
          The file name of output.
        </Documentation>
      </StringVectorProperty>

       <StringVectorProperty name="test"
                            command="Settest"
                            number_of_elements="1"
                            >
        <Documentation>
          The file name of output.
        </Documentation>
      </StringVectorProperty>

      <Hints>
        <Property name="Input" show="0"/>
        <WriterFactory extensions="gpcx"
                       file_description="GPCX data file" />
      </Hints>

    </WriterProxy>

  </ProxyGroup>


Any suggestions?
_________________________________________________________________

JOANNEUM RESEARCH Forschungsgesellschaft mbH

DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria

phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

Please consider the environment before printing this page.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140313/18fc684e/attachment.html>


More information about the Paraview-developers mailing list