[vtkusers] ploting with vtk

yadin Bocuma Rivas conra2004 at yahoo.com
Mon Aug 27 03:46:21 EDT 2007


    yadin> hi can anyone tell me how can i change the dirrection of
    yadin> arrow in VTK how can i get varius arrows to point to
    yadin> specific dimensions?
   
    yadin>   if it is imposible how can i plot lines depending on
    yadin> theie end points that is i have 40 points and i want to
    yadin> plot a line beween each two points like if i had 4 point
    yadin> p1(1,0,0) p2(0,0,1) p3(1,0,1) p4(1,1,1) and i want a point
    yadin> between point p1 to p2 and other p3 to p4 I want to do this
    yadin> using python not c++ and on windows.
            thank You

  

JohnMark <zhaojunxp at hotmail.com> escribió:        .hmmessage P  {  margin:0px;  padding:0px  }  body.hmmessage  {  FONT-SIZE: 9pt;  FONT-FAMILY:Tahoma  }    Hi , 
     I compiled the example of  vtkImageTracerWidget in VC++ 6.0 : TestImageTracerWidget . and it  works very well . I can get any regions of the picture . but I  want to save the result , my code is as follows :

vtkImageCast * readerImageCast1 = vtkImageCast::New();
    // its data from the output of vtkImageStencil
    readerImageCast1->SetInput((vtkDataObject *)stencil->GetOutput()); 
    readerImageCast1->SetOutputScalarTypeToUnsignedChar();
vtkBMPWriter * bmp = vtkBMPWriter::New();
    bmp->SetInput(readerImageCast1->GetOutput());
    bmp->SetFileName("C:/test.bmp");    
    bmp->Write(); // problem !!!! it does not work any more !    
    bmp->Update();

     I use vtkImageCast to change the image type before I save the result .  but what I get is just a black line ( even though I use the Update()  method ), I want save the result within a spline after I draw the  spline on the picture .maybe many writer classes , like vtkBMPWriter ,  couldn't save the dynamic result . because I think the widget  result is dynamic . but what can I do if I want to get the result like  so ?

    waiting for your answer and thank you very much ! 

     Mark


---------------------------------
Windows Live Writer ÈÃÄú¸æ±ð¹êËÙÍøÂ磬ÇáËÉдÈÕÖ¾£¡ Á¢¼´Ê¹Óã¡_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers


 __________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070827/a80044da/attachment.htm>


More information about the vtkusers mailing list