[Paraview] Access on widget properties
Stephan Rogge
Stephan.Rogge at tu-cottbus.de
Wed Apr 11 03:00:35 EDT 2012
Is there any kind of documentation how proxy groups (sources, representation
and so on) are reachable via the proxy manager?
Thanks,
Stephan
-----Ursprüngliche Nachricht-----
Von: Stephan Rogge [mailto:Stephan.Rogge at tu-cottbus.de]
Gesendet: Freitag, 30. März 2012 15:26
An: 'paraview at paraview.org'
Betreff: Access on widget properties
Hello,
I want to have access on the HandlePositions property of a spline widget
(proxygroup="3d_widget_representations" proxyname="SplineRepresentation").
So I tried to search proxies and its properties via vtkSMProxyManager which
is similar to the way of the VR-Plugin.
To try this approach I've create a new scene with a single Spline widget and
saved the state file. The widget representation is named as
"DataRepresentation1". I thought I can now have access on certain properties
- let's say "HandlePositions" - and change the values as I desire.
Unfortunately, this does not work:
vtkSMProxy* Proxy =
vtkSMProxyManager::GetProxyManager()->
GetActiveSessionProxyManager()->
GetProxy( " DataRepresentation1" );
if(Proxy)
{
vtkSMDoubleVectorProperty* Property =
vtkSMDoubleVectorProperty::SafeDownCast(
Proxy->GetProperty( " HandlePositions " ));
}
The property would be NULL.
Can someone help me please?
Thanks.
More information about the ParaView
mailing list