[Paraview] SOLVED: Problem with: ArrayMenu property="SelectInputVectors"

Patrick boenzli patrick at orxonox.net
Mon Feb 5 23:24:41 EST 2007


Hi all,

I just wanted you to inform, that I found the problem: I had a syntax
error in the xml file that was not reported by ParaView.
Instead of:
class="vtkPointSet"/>
I had written:
class="vtkPointSet">

took me some hours to find out :D

thx again, and may this help some other people.

Patrick

Patrick boenzli wrote:
>
> Hi Amy,
>
> thx for the tip but I already have the id tag included.
>
> Is there another possibility for this behavour? Do I need to write some
> extra C++ code?
>
> - Patrick
>
> Amy Squillacote wrote:
>> Hi Patrick,
>>
>> In the GUI XML for your filter, does the InputMenu menu XML tag have 
>> an id entry in it where id="im"? For example, see the bolded section 
>> in the below XML code.
>>
>> <InputMenu trace_name="Input" property="Input"
>>            *id="im"*
>>            label="Input"
>>            help="Set the input to this filter."
>>            input_name="Input"/>
>>
>> The InputMenu and the ArrayMenu have to be linked together like this 
>> for the VectorMenu to know where to get its list of vectors from.
>>
>> - Amy
>>
>> Patrick boenzli wrote:
>>>
>>> Hi Paraviewers!
>>>
>>> I'm implementing a filter as a plugin and would like to make the 
>>> VECTOR input array chooseable via GUI (as it is for example in the 
>>> WarpVector filter). I added the following lines of code to the xml 
>>> file (found at the end of the mail). The vector menu entry is 
>>> displayed, but it is always empty (also if data should be available).
>>>
>>> Did I get something wrong? Thanks very much for your help!
>>>
>>> Patrick
>>>
>>>
>>> File containing: <ModuleInterfaces>
>>>    <ArrayMenu property="SelectInputVectors"
>>>               trace_name="Vectors"
>>>               label="Vectors"
>>>               input_menu="im"
>>>               help="Select the input normals to process."/>
>>>
>>>
>>> File containing: <ServerManagerConfiguration>
>>>     <StringVectorProperty
>>>        name="SelectInputVectors"
>>>        command="SetInputArrayToProcess"
>>>        number_of_elements="5"
>>>        element_types="0 0 0 0 2"
>>>        animateable="0">
>>>           <ArrayListDomain name="array_list" attribute_type="Vectors">
>>>             <RequiredProperties>
>>>                <Property name="Input" function="Input"/>
>>>             </RequiredProperties>
>>>           </ArrayListDomain>
>>>     </StringVectorProperty>
>>>
>>> Please find the whole source under:
>>> http://svn.orxonox.net/biomed/source/lod_filter/src/
>>> the important c++ file is vtkETHZBioMedicalLODFilter.cxx
>>>
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview




More information about the ParaView mailing list