[Paraview-developers] c++ plugin; viewing parameters and output names
Phil Amburn
phil.amburn at gmail.com
Wed Aug 15 16:48:45 EDT 2012
Thanks, your suggested changes to the XML worked and does exactly what I
needed! Big help. Thanks.
You may be quite right, that it would be a hack to get to the display
properties. I'm trying to do something in a C++ plugin similar to the
following statements in a python script
DataRepresentation850h = GetDisplayProperties (Contour850p)
DataRepresentation850h = Show()
DataRepresentation850h.DiffuseColor = [0.,0.,0.]
DataRepresentation850h.LineWidth = 2.
In addition to setting a solid color, as above, I'm also wanting to set
"Color by" and set that to another of the scalars in the input data.
Any thoughts / recommendations?
Thanks,
Phil
From: burlen [mailto:burlen.loring at gmail.com]
Sent: Wednesday, August 15, 2012 10:51 AM
To: Phil Amburn
Cc: paraview-developers at paraview.org
Subject: Re: [Paraview-developers] c++ plugin; viewing parameters and output
names
you could name your outputs in the xml code, add something similar to the
following as suits your use case
<OutputPort name="Solar Wind" index="0" />
<OutputPort name="Magnetosphere" index="1" />
<OutputPort name="North Connected" index="2" />
<OutputPort name="South Connected" index="3" />
<OutputPort name="Null/Short Int." index="4" />
I'm sure you could access the display properties in a custom panel, however
it might be very hackish to do so.
On 08/13/2012 06:17 PM, Phil Amburn wrote:
I hope this hasn't been submitted twice, but I sent email on Saturday and
haven't seen it in my mail, so I'm trying again.
I'm working on a c++ plugin that is a filter that reads a vtkStructuredGrid
and generates 3 polygonal outputs. The environment I'm using is ParaView
3.10.1, MS Windows 7, and MS Visual Studio 2008.
One of the outputs is a 3D contour surface of one of four scalars in the
vtkStructuredGrid input, and I'd like to be able to modify the "Color by"
setting in the Display panel from "Solid Color" to color by one of the other
scalars in the input. Easy to do through the GUI, but I'd like to do this
from within the plugin.
Is it possible to modify the "Color by" setting from within the plugin?
Can I get a list of the groups being maintained by the server manager? I
expect (hope) I'm interested in the groups and properties associated with
the display panel, and hope to be able to set them from within the plugin.
I have another question. When this filter generates its three outputs, they
are named output-0, output-1, and output-2 in the Pipeline Browser. Can I
change those names to something more informative from within the plugin,
such as "constant pressure surface"?
I've attached the xml and cmake files I'm using along with C++ code.
Thanks, any help would be greatly appreciated.
Phil
_______________________________________________
Paraview-developers mailing list
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/20120815/991c2a17/attachment-0001.htm>
More information about the Paraview-developers
mailing list