[prev in list] [next in list] [prev in thread] [next in thread]
List: paraview
Subject: [Paraview] Access on widget properties
From: "Stephan Rogge" <Stephan.Rogge () tu-cottbus ! de>
Date: 2012-03-30 13:25:37
Message-ID: 004501cd0e78$988611c0$c9923540$ () tu-cottbus ! de
[Download RAW message or body]
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.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic