[Paraview-developers] c++ plugin; viewing parameters and output names

Phil Amburn phil.amburn at gmail.com
Sat Aug 11 23:33:57 EDT 2012


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.

 

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.  I have been trying to learn the C++ server manager
interface, but have found it daunting.  

 

Is it possible to modify the "Color by" setting from within the plugin?

Is there 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.

 

Any help would be greatly appreciated.

 

Phil Amburn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120811/9c65615c/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120811/9c65615c/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkwtIsobaric.cxx
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120811/9c65615c/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wtIsobaric.xml
Type: text/xml
Size: 1003 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120811/9c65615c/attachment.bin>


More information about the Paraview-developers mailing list