[Paraview-developers] getting server manager proxy?
Joshua Murphy
Joshua.Murphy at lasp.colorado.edu
Mon Feb 10 12:45:28 EST 2014
Sorry… It has been a very long night…
1. I am working on a custom C++ filter that uses a custom Property Panel
2. The Property panel utilizes the vtkSMProxy that is provided here
* ScInfoPropWidget::ScInfoPropWidget(vtkSMProxy *smproxy, vtkSMProperty *smproperty, QWidget *parentObject)
3. The class is defined as:
*
class ScInfoPropWidget : public pqPropertyWidget
{
Q_OBJECT
typedef pqPropertyWidget Superclass;
…
4. I use the smproxy to access the properties like this:
*
this->startTimeState = vtkSMDoubleVectorProperty::SafeDownCast(this->smProxy->GetProperty("TimeRangeInfoStart"));
this->endTimeState = vtkSMDoubleVectorProperty::SafeDownCast(this->smProxy->GetProperty("TimeRangeInfoEnd"));
5. Where SaveStateDataSet and startTimeState and endTimeState are defined as such
*
vtkSMDoubleVectorProperty *startTimeState;
vtkSMDoubleVectorProperty *endTimeState;
6. These values are generated within the properties panel, and are passed back to the Filter code utilizing call backs
7. The problem, however, is that when I restore state, these values are not made available before network calls are made
8. I need to be able to access these properties from within the primary filter code, thus I need to be able to access the vtkSMProxy from within the primary filter code.
9. How do I do this so I can have access to these properties?
Let me know if you need more information.
Thanks,
Josh
From: Sebastien Jourdain <sebastien.jourdain at kitware.com<mailto:sebastien.jourdain at kitware.com>>
Date: Monday, February 10, 2014 10:29 AM
To: Joshua Murphy <joshua.murphy at lasp.colorado.edu<mailto:joshua.murphy at lasp.colorado.edu>>
Cc: "paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>" <paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>>
Subject: Re: [Paraview-developers] getting server manager proxy?
Hi Joshua,
your question is so vague that I have trouble to come up with an answer.
Are you in Python, C++. Where is that piece of code that you try to write?
What do you try to access?
On Mon, Feb 10, 2014 at 10:14 AM, Joshua Murphy <Joshua.Murphy at lasp.colorado.edu<mailto:Joshua.Murphy at lasp.colorado.edu>> wrote:
Hi all, just a quick question:
How do I access the Server Manager Proxy from within my custom filter? I need to access the saved properties from my properties panel… I use the SMproxy extensively in the properties panel to open access to the properties defined in my XML file..
Anyway, if someone could shoot me a quick example, I would be grateful!
Thanks,
Josh
_______________________________________________
Paraview-developers mailing list
Paraview-developers at paraview.org<mailto:Paraview-developers at paraview.org>
http://public.kitware.com/mailman/listinfo/paraview-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140210/414e7270/attachment.html>
More information about the Paraview-developers
mailing list