Q: How to use an arbitrary object as glyph?

Charles Law charles.law at kitware.com
Fri Jan 21 10:40:05 EST 2000


<x-flowed>Mirco,

You should be able to polyData->GetPointData()->SetScalars(...) to color 
the points in you data set (interpolated along the line segments).

polyData->GetCellData()->SetScalars(...) will color the lines (cells) or 
poly lines.

Charles.


At 03:16 PM 1/21/00 +0100, Mirco Müller wrote:
>Greetings vtk-users!
>
>     I would like to use a 2-colored line as glyph source-object. But the
>class vtkLineSource does not provide me with the nesseccary tools to
>generate such a 2-colored line.
>
>     Then I tried to build a line "by hand" using vtkPolyData, vtkPoints
>etc., but also in this case I was at no time able to set a special color
>for a certain vertex of the line. Only on the level of vtkActor I am
>able to change the appearance (colors) of the rendered object. But this
>is far to late within the visualization-pipeline).
>
>Any hints, thoughts or clues?
>
>Thanks in advance for your time and kind advice!
>
>Best regards...
>
>Mirco
>
>
>
>-----------------------------------------------------------------------------
>This is the private VTK discussion list.  Please keep messages on-topic.
>Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
>To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
><majordomo at gsao.med.ge.com>.  For help, send message body containing
>"info vtkusers" to the same address.     Live long and prosper.
>-----------------------------------------------------------------------------



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------

</x-flowed>



More information about the vtkusers mailing list