[Paraview] How to change a pipeline representation to Outline, surface, etc...

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 17 08:20:24 EDT 2009


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 <
jduquelo at eafit.edu.co> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090617/b54be97c/attachment.htm>


More information about the ParaView mailing list