[vtkusers] vtkGlyphSource2D with vtkGlyph2D in VTK 5.0

Renaud Isabelle renauisa at yahoo.fr
Wed Sep 21 16:34:00 EDT 2005


Hi,
 
Could someone tell me why my parameters settings of vtkGlyphSource2D, color, scale, and filleof, don't have any effect on my rendering anymore, (since I update from vtk 4.4 to vtk 5.0):
 
vtkGlyphSource2D* circle = vtkGlyphSource2D::New();
circle->SetGlyphTypeToCircle();
circle->SetScale(10);
circle->FilledOff();
 
All I have was small, white , points instead of bigger, red, and filled off circles. 
 
- Now, to have red color, I modified vtkActor's property. But, I don't know what to do to force my glyphs to be bigger. 
 
   vtkGlyphSource2D* circle = vtkGlyphSource2D::New();
   circle->SetGlyphTypeToCircle();
   circle->SetScale(10);
   circle->FilledOff();
 
   m_glyphMapper = vtkGlyph2DMapper::New();   
   m_glyphMapper->SetSource( circle->GetOutput() );
   
   m_glyphMapper->SetInput( m_polyData );
      
   m_glyphActor = vtkActor2D::New();
   m_glyphActor->SetMapper( m_glyphMapper ); 
   
    m_glyphActor->GetProperty()->SetColor(1.0, 0.0, 0.0);

 

 

  Thanks for help, 

 

 Isabelle

		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050921/9a81be14/attachment.htm>


More information about the vtkusers mailing list