[Paraview] Does servermanager.sources.TextSource Work?

Kent Eschenberg eschenbe at psc.edu
Mon Mar 24 15:02:41 EDT 2008


Here's the test case (3.2.1 on CentOS 5);

===
servermanager.Connect()
view = servermanager.CreateRenderView()
sphere = servermanager.sources.SphereSource()
sphereRep = servermanager.CreateRepresentation( sphere, view )
text = servermanager.sources.TextSource()
text.Text = "Hello World"
textRep = servermanager.CreateRepresentation( text, view )
view.StillRender()
view.ResetCamera()
view.StillRender()
raw_input("Exit: ")
---

and here is the first part from running this from pvpython:

===
vtkSphereSource : [ ...........]
vtkPVTextSource : [ ...........]
ERROR: In .../VTK/Filtering/vtkExecutive.cxx, line 757
vtkCompositeDataPipeline (0x8be1a10): Algorithm vtkPVExtractSelection(0x8bdec78) returned failure for request: vtkInformation (0x8be4798)
  Debug: Off
  Modified Time: 105440
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
<more>
---

This seems to be the only way to put text on the image; I cannot find any alternative. Help!

Kent
Pittsburgh Supercomputing Center


More information about the ParaView mailing list