Using 
pqPipelineSource::getRepresentation<http://www.paraview.org/ParaView3/Doc/Nightly/html/classpqPipelineSource.html#59fca04da90eff75f73e09be28c20584>(
pqView 
<http://www.paraview.org/ParaView3/Doc/Nightly/html/classpqView.html>*view)
to access the pqDataRepresentation for the source in a particular
view as follows:

pqDataRepresentation* repr = source->getRepresentation(view);
if (repr)
  {
  vtkSMPropertyHelper(repr->getProxy(), "Representation").Set(3);
   /*
   Where: 0 = Points, 1 = Wireframe, 2 = Surface, 3 = Outline, 4 = Volume, 5
= Surface with edges.
  */
  repr->getProxy()->UpdateVTKObjects();
  }



On Tue, Jun 16, 2009 at 6:06 PM, Juan Fernando Duque Lombana <
[email protected]> wrote:

> Good day guys,
>
> This is a fair simple (I think) question but still I haven't found a
> way to perform this via c++.
>
> Inside my code I have access to all my  "pqPipelineSource" s, and yet
> I haven't found a way to change the pipeline representation (is it
> style?) to outline or surface like one can using the GUI.
> Does anyone has any idea?
>
> Thanks in advance!
>
>
> ... Juan Fernando Duque Lombana.
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to