<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Dear All: </DIV>
<DIV>This is the first time I sending messeage to the list. I want to put some seeds points on special position of 3D image( lest say slice 100), but finally I can see the cursor at mutiple slice from 1-100.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I use QtVtkWidge and vtkImageView2 to display the image. When I move the slider in QT, I can go through the image slice by slice.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Below is my code to put seed points. vtkCurosr2D is used for painting the curosr. vtkPolyData is used to store all the seed points, I then add the Actor of SeedsGlyph to vtkImageViewer2 render.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; SeedsCursor = vtkCursor2D::New(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; //SeedsCursor = vtkImageCursor3D::New(); <BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsCursor-&gt;AllOff(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsCursor-&gt;AxesOn(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsCursor-&gt;PointOn(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; pts=vtkPoints::New();<BR>&nbsp;&nbsp;&nbsp; // for(unsigned int i=0;i&lt;200;i++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pts-&gt;InsertPoint( 0, 128*1.37, 128*1.37, 100 );<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; VisibleSeedsPolyData=vtkPolyData::New();<BR>&nbsp;&nbsp;&nbsp;&nbsp; VisibleSeedsPolyData-&gt;SetPoints(pts);///// input later<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph = vtkGlyph3D::New(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;SetVectorModeToVectorRotationOff(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;ScalingOn();
 <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;SetScaleModeToDataScalingOff(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;SetScaleFactor( 10); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;SetInput( VisibleSeedsPolyData ); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsGlyph-&gt;SetSource( SeedsCursor-&gt;GetOutput() ); </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; SeedsMapper = vtkPolyDataMapper::New(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsMapper-&gt;SetInput( SeedsGlyph-&gt;GetOutput() ); </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; SeedsActor = vtkActor::New(); <BR>&nbsp;&nbsp;&nbsp;&nbsp; SeedsActor-&gt;SetMapper( SeedsMapper ); <BR>&nbsp;&nbsp;&nbsp;&nbsp; //image_view2-&gt;GetImageActor()-&gt;SetOpacity(1.0);</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp; image_view2-&gt;GetRenderer()-&gt;AddActor(SeedsActor);</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can somebody teach me what is wrong with my code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>Baoyun<BR></DIV></div><br>

      </body></html>