[Paraview] vtkSMIntVectorProperty number of elements
papa ndéné NDIAYE
pnwireframe at gmail.com
Fri Jul 8 06:20:05 EDT 2011
Hi, all
I have built a Toolbar plugin in paraview with a button that applies
extractblock filter to a multiblock dataset
so as to get all the blocks seperately in different objects in the pipeline
browser.
I achieve getting the number of blocks from the selected multiblock but I
don't know how to set the block indice
of an extract block filter after having it buit.
*
vtkSMProperty* property= [the pqPipelineSource resulting from
createFilter]->GetProperty("BlockIndices");
vtkSMIntVectorProperty * indices=
vtkSMIntVectorProperty::SafeDownCast(property);
*but *"indices->GetNumberOfElements();" *returns 0 while the
compositeTreeWidget displays the blocks' hierarchy.
how can I modify a vtkSMProperty within the code?
thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110708/14fa30a5/attachment.htm>
More information about the ParaView
mailing list