<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<pre>Hello everyone,<br> <br>I have a big problem with the ProgrammableGlyphFilter and hope to get <br>some help.<br>The calcGlyph does nothing important yet, except scaling an arrow and <br>set the transformed arrow as the source of my<br>programmableGlyphFilter. The transformation in the calcGlyph method has <br>no effect on changing the source of my<br> <br>programmableGlyphFilter, so it always shows me the old arrow as declared <br>in the main.<br> <br>code in main:<br>{<br>     .................<br>     vtkSmartPointer&lt;vtkArrowSource&gt; arrow = <br>vtkSmartPointer&lt;vtkArrowSource&gt;::New();<br>     vtkSmartPointer&lt;vtkProgrammableGlyphFilter&gt; filter =  <br>vtkSmartPointer&lt;vtkProgrammableGlyphFilter&gt;::New();<br>     filter-&gt;SetInput(polydata);<br>     filter-&gt;SetSource(arrow-&gt;GetOutput());<br>     filter-&gt;SetGlyphMethod(calcGlyph, filter);<br>     filter-&gt;Update();     // in case to use mitk::Surface<br>     .................<br>}<br> <br>void calcGlyph(void *arg)<br>{<br>     vtkProgrammableGlyphFilter *glyphFilter = <br>(vtkProgrammableGlyphFilter*) arg;<br> <br>     vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt; filter_transform = <br>vtkSmartPointer&lt;vtkTransformPolyDataFilter&gt;::New();<br>     vtkSmartPointer&lt;vtkTransform&gt; transform = <br>vtkSmartPointer&lt;vtkTransform&gt;::New();<br>     vtkSmartPointer&lt;vtkArrowSource&gt; arrow = <br>vtkSmartPointer&lt;vtkArrowSource&gt;::New();<br> <br>     transform-&gt;Scale(30, 2, 1);<br>     filter_transform-&gt;SetTransform(transform);<br>     filter_transform-&gt;SetInput(arrow-&gt;GetOutput());<br>     filter_transform-&gt;Update();<br> <br>     glyphFilter-&gt;SetSource(filter_transform-&gt;GetOutput());<br>};<br> <br>Can you imagine where the problem is?<br><br>Best regards<br><br>Johanna <br></pre>                                               </div></body>
</html>