Hi!

I don't like it, but I have to get some plugins running with Paraview in Windohs. I just installed 3.8 RC1 for that purpose. At first, everything seemed fine. Two of my filters that worked in Linux worked right out of the box, after compiling them with Visual Studio Express. But a third one wouldn't. I chose to set the environment variable PV_PLUGIN_DEBUG to see if I can detect what goes wrong. It turned out that Paraview gets unstable in this mode, i.e. it doesn't load any simple Plugin anymore, it just crashes when trying.

I have attached a CMakeList and two xmls that define a new Paraview plugin. It is an already existing vtk filter. Paraview crashes when I try to load it, only if the pv_plugin_debug variable is set. Without the debugging variable, the filter loads and works just fine.

What shall I do?


Best regards,
Christian
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
IF(COMMAND CMAKE_POLICY)
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)

PROJECT(GaussianSmooth3D)

#find and load ParaView settings
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})

ADD_PARAVIEW_PLUGIN(GaussianSmooth3D "1.0"
  SERVER_MANAGER_XML GaussianSmooth3D.xml
  GUI_RESOURCE_FILES GaussianSmooth3DGUI.xml
)
  <ServerManagerConfiguration>
    <!-- This is the server manager configuration XML. It defines the interface to
        our new filter. As a rule of thumb, try to locate the configuration for
        a filter already in ParaView (in Servers/ServerManager/Resources/*.xml)
        that matches your filter and then model your xml on it -->
    <ProxyGroup name="filters">
    <SourceProxy name="GaussianSmooth3D" class="vtkImageGaussianSmooth" label="Gaussian Smooth 3D">
      <Documentation
          long_help="Computes the Gaussian Smooth of the input image. 3D Version"
          short_help="Gauss filter.">
          Performs a gaussian convolution.
      </Documentation>
          <InputProperty
              name="Input"
              command="SetInputConnection"
              port_index="0">
              <ProxyGroupDomain name="groups">
                <Group name="sources"/>
                <Group name="filters"/>
              </ProxyGroupDomain>
              <DataTypeDomain name="input_type">
                <DataType value="vtkImageData"/>
              </DataTypeDomain>
              <Documentation>
                  Classical Gauss Smoothing.
              </Documentation>
          </InputProperty>

          <IntVectorProperty
              name="Dimensionality"
              command="SetDimensionality"
              number_of_elements="1"
              default_values="3">
          </IntVectorProperty>

          <DoubleVectorProperty
              name="Standard Deviations"
              command="SetStandardDeviations"
              number_of_elements="3"
              default_values="11 11 11">
          </DoubleVectorProperty>
          
          <Hints>
              <Property name="Dimensionality" show="0"/>
          </Hints>
    <!-- End GaussianSmooth3D -->
    </SourceProxy>
  </ProxyGroup>
  </ServerManagerConfiguration>
<ParaViewFilters>
    <Category name="Extensions" menu_label="&amp;Extensions">
      <!-- adds a new category and then adds our filter to it -->
      <Filter name="GaussianSmooth3D" />
    </Category>
</ParaViewFilters>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to