[Paraview] linking vtkSMStringVectorProperty to a SLOT
Nehme Bilal
nehmebilal at gmail.com
Thu Apr 9 08:21:21 EDT 2009
Hi again,
I found a way that seems to work, but I still have a problem.
The StringVectorProperty I'm using look like this:
<StringVectorProperty
name="Arrays"
command="SetArrays"
repeat_command="1"
number_of_elements_per_command="2"
element_types="2 0">
</StringVectorProperty>
to connect this property to a Qt SLOT, I used:
vtkSmartPointer<vtkEventQtSlotConnect> VTKConnect =
vtkSmartPointer<vtkEventQtSlotConnect>::New();
VTKConnect->Connect(arrays, vtkCommand::ModifiedEvent,
this, SLOT(onArraysModified()));
because repeat_command=1 the SLOT will be called every time an element
is modified in the StringVectorProperty
and that will cause a slow excecution if the number of elements in the
StringVectorProperty is to big.
Is there a way around this ?
Thanks
2009/4/9 Nehme Bilal <nehmebilal at gmail.com>:
> Hi All,
>
> I have a StringVectorProperty that I'm trying to link to a Qt SLOT in
> the client side of my plugin. I want the SLOT to be called when the
> StringVectorProperty is modified.
> Is that possible ?
>
> Thanks you
> Nehme
>
More information about the ParaView
mailing list