So far I was able to add a few simple custom plugins, but am slowly
losing the grip.
I am trying to resample an image like this:

<SourceProxy name="ImageResample" class="vtkImageResample"
label="ImageResample">
<InputProperty name="Input" command="SetInputConnection">
        <ProxyGroupDomain name="groups">
                <Group name="sources"/>
                <Group name="filters"/>
        </ProxyGroupDomain>
        <DataTypeDomain name="input_type">
                <DataType value="vtkImageData"/>
        </DataTypeDomain>
</InputProperty>
<DoubleVectorProperty name="Magnification Factor"
command="SetAxisMagnificationFactor" number_of_elements="3"
number_of_elements_per_command="1" repeat_command="1" use_index="1"
default_values="1 1 1"/>

I get these 2 problems:

1) There appear two (!) outputs (named Output-0 and Output-1). I get
this message:

ERROR: In /home/dsz/pack/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx,
line 827
vtkPVPostFilterExecutive (0x3aa4f60): Input for connection index 0 on
input port index 0 for algorithm vtkPVPostFilter(0x2cfb850) is of type
vtkImageStencilData, but a vtkDataSet is required.

2) The first output has the expected Spacing, but it does not contain
the same scalar array as in the input. Instead, it contains a new
array ImageScalars ranging [0,0]. I get this message:

Warning: In 
/home/dsz/pack/ParaView/ParaViewCore/VTKExtensions/vtkTexturePainter.cxx,
line 179
vtkTexturePainter (0x339fa70): Failed to locate selected scalars. Will
use image scalars by default.

I have been so far successful with other image algorithms, however
they were all deriving from vtkImageAlgorithm. This one derives from
vtkThreadedImageAlgorithm - could this have anything to do here?
Could anyone point me into the right direction? After inspection of
the xml files in the ParaView source tree I am still clueless.

Thanks and regards,
Dominik
_______________________________________________
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