> All of the above work, except the ScaleFactor setter. The scale factor is
> odd anyway: in the GUI a value of 1.8 appears by default (even though
> according to the doc it should be 1.0) . Any clue ?

Certain properties update their default values based on runtime data
values. This is done by what ParaView calls Domains. ScaleFactor is
one such property. To force the ScaleFactor to 1, do the change after
the "PostInialize" call.

> Last question: How do I gain access to the GlyphSource(=SphereSource) object
> in order to use the .SetRadius(1.0) function on it ?
> It is not clear to me whether it needs to be accessed through a
> vtkSMPropertyHelper or through a proxy ?

vtkSMPropertyHelper(glyph, "Source").Set(getSphereSource(glyph));
vtkSMProxy* sphere = vtkSMPropertyHelper(glyph, "Source").GetAsProxy();
vtkSMPropertyHelper(sphere, "Radius").Set(1.0);
sphere->UpdateVTKObjects();

Utkarsh
_______________________________________________
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://public.kitware.com/mailman/listinfo/paraview

Reply via email to