Thank you Utkarsh!<br><br>I used a property iterator to get the names of the properties you suggested; Finally with this lines of code I was able to get the information I needed:<br><br> vtkSMProxyProperty *Transform_prop = vtkSMProxyProperty::SafeDownCast(myFilters[0]->getProxy()->GetProperty("Transform")); <br>
vtkSMProxy* myTransformProxy=Transform_prop->GetProxy(0);<br> vtkSMDoubleVectorProperty *Position_prop = vtkSMDoubleVectorProperty::SafeDownCast(myTransformProxy->GetProperty("Position")); <br> vtkSMDoubleVectorProperty *Rotation_prop = vtkSMDoubleVectorProperty::SafeDownCast(myTransformProxy->GetProperty("Rotation"));<br>
<br>Thank you!<br><br><div class="gmail_quote">On Tue, Feb 17, 2009 at 5:23 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The "Transform" property is a vtkSMProxyProperty. Use GetProxy(0) to<br>
get the actual source proxy that produces the transform while is the<br>
("extended_sources", "Transform3") proxy. It does not have API to<br>
access the transform directly, however. You can only get the<br>
scale/translation/rotation values.<br>
<div><div></div><div class="Wj3C7c"><br>
On Tue, Feb 17, 2009 at 4:27 PM, Juan Fernando Duque Lombana<br>
<<a href="mailto:jduquelo@eafit.edu.co">jduquelo@eafit.edu.co</a>> wrote:<br>
> Good day everyone,<br>
><br>
> Does anyone knows how to extract the "Transform" matrix from a Transform<br>
> filter?<br>
><br>
> I've been trying using the following line:<br>
><br>
> vtkSMDoubleVectorProperty *Transform_prop =<br>
> vtkSMDoubleVectorProperty::SafeDownCast(myFilterPipeline->getProxy()->GetProperty("Transform"));<br>
><br>
> But when I try to access any:<br>
><br>
> Transform_prop->GetElement(i);<br>
><br>
> I get a segmentation fault,<br>
><br>
> Any hints or ideas?<br>
><br>
> Thank you in advance!<br>
><br>
><br>
> ... Juan Fernando Duque Lombana.<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>... Juan Fernando Duque Lombana.<br>