Doesn't anybody know, why a vtkAlgorithm which produces a custom class
(vtkTest) that is not derived from vtkDataSet show the error "... but a
vtkPolyData is required"?

A side remark, previously I wrote that the custom class "vtkTest" is
neither derived from vtkDataSet nor from vtkDataObject. Actually it is
derived from vtkDataObject.

If my question doesn't make sense, please let me know. Maybe it is against
every paraview design, so that I'll have to find a completely different
solution. But it becomes more and more urgent for me to include a data
source (mySQL database) of custom classes (not vtkDataSets) in the paraview
tree.

Thank you
Corinna

On Mon, Jul 4, 2016 at 3:09 PM, corinna reuter <[email protected]>
wrote:

> To anybody experienced in plugin programming:
>
> I am trying to include items in the paraview tree, which are not derived
> from vtkDataSet or vtkDataObject. For example, a mySQL database should be
> allowed as a data source, which delivers data in an intermediate format.
> Next I'd implement filters which take the intermediate format and produce
> vtkDataSets as output.
>
> Is it possible to use such "abstract" (not vtkDataSet) objects in the
> paraview tree as a representation of the intermediate format? I have tried
> to integrate the example for custom classes from
> http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source into a paraview
> plugin (CMakeLists and servermanager xml below). When the plugin is loaded
> and I add a source of the new type AlgorithmSourceExample, this error is
> thrown:
>
> ERROR: In
> /opt/ParaView-v5.0.1/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
> line 810
> vtkPVPostFilterExecutive (0x3857810): Input for connection index 0 on
> input port index 0 for algorithm vtkPVPostFilter(0x3858910) is of type
> vtkTest, but a vtkPolyData is required.
>
> What do I need to change such that the vtkTest objects, produced by
> AlgorithmSourceExample, can live in the paraview tree?
>
> Thank you
> Corinna
>
> CMakeLists.txt:
>
> FIND_PACKAGE(ParaView REQUIRED)
> INCLUDE(${PARAVIEW_USE_FILE})
> #changes required in
> http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source:
> # remove vtkCxxRevisionMacro calls
> # change vtkTypeRevisionMacro into vtkTypeMacro
> # remove call output->SetPipelineInformation( outInfo );
>  ADD_PARAVIEW_PLUGIN(
>    AlgorithmSourceExample
>   "1.0"
>    SERVER_MANAGER_XML AlgorithmSourceExample.xml
>    SERVER_MANAGER_SOURCES vtkTestSource.cxx vtkTest.cxx
>  )
>
> AlgorithmSourceExample.xml:
>
> <ServerManagerConfiguration>
>   <ProxyGroup name="sources">
>    <SourceProxy name="AlgorithmSourceExample" class="vtkTestSource"
> label="AlgorithmSourceExample">
>      <Documentation
>         long_help="AlgorithmSourceExample"
>         short_help="AlgorithmSourceExample">
>      </Documentation>
>    </SourceProxy>
>  </ProxyGroup>
> </ServerManagerConfiguration>
>
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to