<div><pre style="white-space: pre-wrap; word-wrap: break-word; font-family: 宋体; "> Hi All,</pre><pre style="white-space: pre-wrap; word-wrap: break-word; font-family: 宋体; ">I am a new vtker,I want to implement corsshair like in slicer3.Anyone who can help me !thanks!</pre><br></div><div></div><br><pre>在2009-09-07,vtkusers-request@vtk.org 写道:
&gt;Send vtkusers mailing list submissions to
&gt;        vtkusers@vtk.org
&gt;
&gt;To subscribe or unsubscribe via the World Wide Web, visit
&gt;        http://www.vtk.org/mailman/listinfo/vtkusers
&gt;or, via email, send a message with subject or body 'help' to
&gt;        vtkusers-request@vtk.org
&gt;
&gt;You can reach the person managing the list at
&gt;        vtkusers-owner@vtk.org
&gt;
&gt;When replying, please edit your Subject line so it is more specific
&gt;than "Re: Contents of vtkusers digest..."
&gt;
&gt;
&gt;Today's Topics:
&gt;
&gt;   1. Re: vtkSpline (Ho Ngoc Ha)
&gt;   2. Re: vtkSpline (Bill Lorensen)
&gt;   3. Re: vtkSpline (Kenneth Sloan)
&gt;   4. Re: vtkSpline (Ho Ngoc Ha)
&gt;   5. Re: vtkSpline (Bill Lorensen)
&gt;   6. Re: no VTK binary (Bill Lorensen)
&gt;   7. vtkCaptionWidget (Helvin Lui)
&gt;   8. Re: vtkCaptionWidget (Karthik Krishnan)
&gt;   9. Re: vtkCaptionWidget (Helvin Lui)
&gt;  10. How to implement that (Ali Habib)
&gt;
&gt;
&gt;----------------------------------------------------------------------
&gt;
&gt;Message: 1
&gt;Date: Sat, 5 Sep 2009 09:03:01 -0700 (PDT)
&gt;From: Ho Ngoc Ha &lt;ha_lennon@yahoo.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID: &lt;885185.23211.qm@web52311.mail.re2.yahoo.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt;Hi, these are the result
&gt;t: 0
&gt;t: 0.42105
&gt;t: 0.84210
&gt;t: 1.26316
&gt;t: 1.68421
&gt;t: 2.10526
&gt;t: 2.52632
&gt;t: 2.94737
&gt;t: 3.36842
&gt;t: 3.78947
&gt;t: 4.21053
&gt;t: 4.63158
&gt;t: 5.05263
&gt;t: 5.47368
&gt;t: 5.89474
&gt;t: 6.31579
&gt;t: 6.73684
&gt;t: 7.15789
&gt;t: 7.57895
&gt;t: 8
&gt;
&gt;i don't know what's wrong with it. Please help me :(
&gt;
&gt;--- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;
&gt;From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Date: Saturday, September 5, 2009, 7:17 PM
&gt;
&gt;Your code look OK. What is the resulting output of the std::cout &lt;&lt;
&gt;"t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;
&gt;Bill
&gt;
&gt;On Sat, Sep 5, 2009 at 1:45 AM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; I have a set of points, I just need to find a spline that pass through all
&gt;&gt; of those points and generate a number of output points.
&gt;&gt;
&gt;&gt; Here is what I did
&gt;&gt;
&gt;&gt; int numberOfInputPoints = points-&gt;GetNumberOfPoints();
&gt;&gt;
&gt;&gt; ? ? vtkCardinalSpline* aSplineX;
&gt;&gt; ? ? vtkCardinalSpline* aSplineY;
&gt;&gt; ? ? vtkCardinalSpline* aSplineZ;
&gt;&gt;
&gt;&gt; ? ? aSplineX = vtkCardinalSpline::New();
&gt;&gt; ? ? aSplineY = vtkCardinalSpline::New();
&gt;&gt; ? ? aSplineZ = vtkCardinalSpline::New();
&gt;&gt;
&gt;&gt; ? ? for (int i=0; i&lt;numberOfInputPoints; i++)
&gt;&gt; ??? {
&gt;&gt; ??? ? double x = points-&gt;GetPoint(i)[0];
&gt;&gt; ??? ? double y = points-&gt;GetPoint(i)[1];
&gt;&gt; ??? ? double z = points-&gt;GetPoint(i)[2];
&gt;&gt; ? ? ? ? ? aSplineX-&gt;AddPoint(i, x);
&gt;&gt; ? ? ? ? ? aSplineY-&gt;AddPoint(i, y);
&gt;&gt; ? ? ? ? ? aSplineZ-&gt;AddPoint(i, z);
&gt;&gt;
&gt;&gt; ??? }
&gt;&gt;
&gt;&gt; ??? vtkPoints* polypoints = vtkPoints::New();
&gt;&gt;
&gt;&gt;
&gt;&gt; ??? int numberOfOutputPoints = 20;
&gt;&gt;
&gt;&gt; ? ? ???double t;
&gt;&gt; ? ? ???for (int i=0; i&lt;numberOfOutputPoints; i++)
&gt;&gt; ??? {
&gt;&gt; ? ? ? t
&gt;&gt; =(double)(numberOfInputPoints-1)/(double)(numberOfOutputPoints-1)*(double)i;
&gt;&gt; ??? ? std::cout &lt;&lt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt; ? ? ? polypoints-&gt;InsertNextPoint(aSplineX-&gt;Evaluate(t),
&gt;&gt; aSplineY-&gt;Evaluate(t),
&gt;&gt; ? ? ? ? ? ? ? ? ? ? ???aSplineZ-&gt;Evaluate(t));
&gt;&gt; ? ? }
&gt;&gt;
&gt;&gt;
&gt;&gt; I thought the newly generated points will be stored in polypoints? But when
&gt;&gt; I checked it, it only contains the first and the last point of my input
&gt;&gt; points.
&gt;&gt;
&gt;&gt; I am new to vtk so please help me. Thank you very much
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;
&gt;      
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090905/947458a4/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 2
&gt;Date: Sat, 5 Sep 2009 12:52:05 -0400
&gt;From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: Ho Ngoc Ha &lt;ha_lennon@yahoo.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;4db4735c0909050952v423be411u4024afb39ae1d1d9@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1
&gt;
&gt;Please print:
&gt;std::cout &lt;&lt; "x: " &lt;&lt; aSplineX-&gt;Evaluate(t) &lt;&lt; ", y:  " &lt;&lt;
&gt;aSplineY-&gt;Evaluate(t) &lt;&lt; ", z: " &lt;&lt; aSplineZ-&gt;Evaluate(t) &lt;&lt;
&gt;std::endl;
&gt;
&gt;
&gt;On Sat, Sep 5, 2009 at 12:03 PM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt; Hi, these are the result
&gt;&gt; t: 0
&gt;&gt; t: 0.42105
&gt;&gt; t: 0.84210
&gt;&gt; t: 1.26316
&gt;&gt; t: 1.68421
&gt;&gt; t: 2.10526
&gt;&gt; t: 2.52632
&gt;&gt; t: 2.94737
&gt;&gt; t: 3.36842
&gt;&gt; t: 3.78947
&gt;&gt; t: 4.21053
&gt;&gt; t: 4.63158
&gt;&gt; t: 5.05263
&gt;&gt; t: 5.47368
&gt;&gt; t: 5.89474
&gt;&gt; t: 6.31579
&gt;&gt; t: 6.73684
&gt;&gt; t: 7.15789
&gt;&gt; t: 7.57895
&gt;&gt; t: 8
&gt;&gt;
&gt;&gt; i don't know what's wrong with it. Please help me :(
&gt;&gt;
&gt;&gt; --- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;&gt; Subject: Re: [vtkusers] vtkSpline
&gt;&gt; To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;&gt; Cc: vtkusers@vtk.org
&gt;&gt; Date: Saturday, September 5, 2009, 7:17 PM
&gt;&gt;
&gt;&gt; Your code look OK. What is the resulting output of the std::cout &lt;&lt;
&gt;&gt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;
&gt;&gt; Bill
&gt;&gt;
&gt;&gt; On Sat, Sep 5, 2009 at 1:45 AM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I have a set of points, I just need to find a spline that pass through all
&gt;&gt;&gt; of those points and generate a number of output points.
&gt;&gt;&gt;
&gt;&gt;&gt; Here is what I did
&gt;&gt;&gt;
&gt;&gt;&gt; int numberOfInputPoints = points-&gt;GetNumberOfPoints();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineX;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineY;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineZ;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? aSplineX = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineY = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineZ = vtkCardinalSpline::New();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? for (int i=0; i&lt;numberOfInputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ??? ? double x = points-&gt;GetPoint(i)[0];
&gt;&gt;&gt; ??? ? double y = points-&gt;GetPoint(i)[1];
&gt;&gt;&gt; ??? ? double z = points-&gt;GetPoint(i)[2];
&gt;&gt;&gt; ? ? ? ? ? aSplineX-&gt;AddPoint(i, x);
&gt;&gt;&gt; ? ? ? ? ? aSplineY-&gt;AddPoint(i, y);
&gt;&gt;&gt; ? ? ? ? ? aSplineZ-&gt;AddPoint(i, z);
&gt;&gt;&gt;
&gt;&gt;&gt; ??? }
&gt;&gt;&gt;
&gt;&gt;&gt; ??? vtkPoints* polypoints = vtkPoints::New();
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ??? int numberOfOutputPoints = 20;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? ???double t;
&gt;&gt;&gt; ? ? ???for (int i=0; i&lt;numberOfOutputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ? ? ? t
&gt;&gt;&gt;
&gt;&gt;&gt; =(double)(numberOfInputPoints-1)/(double)(numberOfOutputPoints-1)*(double)i;
&gt;&gt;&gt; ??? ? std::cout &lt;&lt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;&gt; ? ? ? polypoints-&gt;InsertNextPoint(aSplineX-&gt;Evaluate(t),
&gt;&gt;&gt; aSplineY-&gt;Evaluate(t),
&gt;&gt;&gt; ? ? ? ? ? ? ? ? ? ? ???aSplineZ-&gt;Evaluate(t));
&gt;&gt;&gt; ? ? }
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I thought the newly generated points will be stored in polypoints? But
&gt;&gt;&gt; when
&gt;&gt;&gt; I checked it, it only contains the first and the last point of my input
&gt;&gt;&gt; points.
&gt;&gt;&gt;
&gt;&gt;&gt; I am new to vtk so please help me. Thank you very much
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; Powered by www.kitware.com
&gt;&gt;&gt;
&gt;&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;&gt;
&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;&gt;
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 3
&gt;Date: Sat, 5 Sep 2009 11:29:40 -0500
&gt;From: Kenneth Sloan &lt;kennethrsloan@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: vtkusers &lt;vtkusers@vtk.org&gt;
&gt;Message-ID: &lt;9F99B77F-7302-4A4D-8CB9-CF4C9315ADEF@gmail.com&gt;
&gt;Content-Type: text/plain; charset="us-ascii"; Format="flowed";
&gt;        DelSp="yes"
&gt;
&gt;May I suggest that it would be helpful to add a section of code that  
&gt;*interrogates* the final "polypoints" and shows us why you think
&gt;that it includes only the first and last points.
&gt;
&gt;
&gt;On Sep 5, 2009, at 11:03 , Ho Ngoc Ha wrote:
&gt;
&gt;&gt; Hi, these are the result
&gt;&gt; t: 0
&gt;&gt; t: 0.42105
&gt;&gt; t: 0.84210
&gt;&gt; t: 1.26316
&gt;&gt; t: 1.68421
&gt;&gt; t: 2.10526
&gt;&gt; t: 2.52632
&gt;&gt; t: 2.94737
&gt;&gt; t: 3.36842
&gt;&gt; t: 3.78947
&gt;&gt; t: 4.21053
&gt;&gt; t: 4.63158
&gt;&gt; t: 5.05263
&gt;&gt; t: 5.47368
&gt;&gt; t: 5.89474
&gt;&gt; t: 6.31579
&gt;&gt; t: 6.73684
&gt;&gt; t: 7.15789
&gt;&gt; t: 7.57895
&gt;&gt; t: 8
&gt;&gt;
&gt;&gt; i don't know what's wrong with it. Please help me :(
&gt;&gt;
&gt;&gt; --- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;&gt; Subject: Re: [vtkusers] vtkSpline
&gt;&gt; To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;&gt; Cc: vtkusers@vtk.org
&gt;&gt; Date: Saturday, September 5, 2009, 7:17 PM
&gt;&gt;
&gt;&gt; Your code look OK. What is the resulting output of the std::cout &lt;&lt;
&gt;&gt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;
&gt;&gt; Bill
&gt;&gt;
&gt;&gt; On Sat, Sep 5, 2009 at 1:45 AM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt; &gt; Hi,
&gt;&gt; &gt;
&gt;&gt; &gt; I have a set of points, I just need to find a spline that pass  
&gt;&gt; through all
&gt;&gt; &gt; of those points and generate a number of output points.
&gt;&gt; &gt;
&gt;&gt; &gt; Here is what I did
&gt;&gt; &gt;
&gt;&gt; &gt; int numberOfInputPoints = points-&gt;GetNumberOfPoints();
&gt;&gt; &gt;
&gt;&gt; &gt;     vtkCardinalSpline* aSplineX;
&gt;&gt; &gt;     vtkCardinalSpline* aSplineY;
&gt;&gt; &gt;     vtkCardinalSpline* aSplineZ;
&gt;&gt; &gt;
&gt;&gt; &gt;     aSplineX = vtkCardinalSpline::New();
&gt;&gt; &gt;     aSplineY = vtkCardinalSpline::New();
&gt;&gt; &gt;     aSplineZ = vtkCardinalSpline::New();
&gt;&gt; &gt;
&gt;&gt; &gt;     for (int i=0; i&lt;numberOfInputPoints; i++)
&gt;&gt; &gt;     {
&gt;&gt; &gt;       double x = points-&gt;GetPoint(i)[0];
&gt;&gt; &gt;       double y = points-&gt;GetPoint(i)[1];
&gt;&gt; &gt;       double z = points-&gt;GetPoint(i)[2];
&gt;&gt; &gt;           aSplineX-&gt;AddPoint(i, x);
&gt;&gt; &gt;           aSplineY-&gt;AddPoint(i, y);
&gt;&gt; &gt;           aSplineZ-&gt;AddPoint(i, z);
&gt;&gt; &gt;
&gt;&gt; &gt;     }
&gt;&gt; &gt;
&gt;&gt; &gt;     vtkPoints* polypoints = vtkPoints::New();
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;     int numberOfOutputPoints = 20;
&gt;&gt; &gt;
&gt;&gt; &gt;        double t;
&gt;&gt; &gt;        for (int i=0; i&lt;numberOfOutputPoints; i++)
&gt;&gt; &gt;     {
&gt;&gt; &gt;       t
&gt;&gt; &gt; =(double)(numberOfInputPoints-1)/(double)(numberOfOutputPoints-1)* 
&gt;&gt; (double)i;
&gt;&gt; &gt;       std::cout &lt;&lt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt; &gt;       polypoints-&gt;InsertNextPoint(aSplineX-&gt;Evaluate(t),
&gt;&gt; &gt; aSplineY-&gt;Evaluate(t),
&gt;&gt; &gt;                        aSplineZ-&gt;Evaluate(t));
&gt;&gt; &gt;     }
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; I thought the newly generated points will be stored in polypoints?  
&gt;&gt; But when
&gt;&gt; &gt; I checked it, it only contains the first and the last point of my  
&gt;&gt; input
&gt;&gt; &gt; points.
&gt;&gt; &gt;
&gt;&gt; &gt; I am new to vtk so please help me. Thank you very much
&gt;&gt; &gt;
&gt;&gt; &gt; _______________________________________________
&gt;&gt; &gt; Powered by www.kitware.com
&gt;&gt; &gt;
&gt;&gt; &gt; Visit other Kitware open-source projects at
&gt;&gt; &gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt; &gt;
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; &gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt; &gt;
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;
&gt;--
&gt;Kenneth Sloan
&gt;KennethRSloan@gmail.com
&gt;
&gt;
&gt;
&gt;
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090905/22fb68a2/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 4
&gt;Date: Sat, 5 Sep 2009 09:57:05 -0700 (PDT)
&gt;From: Ho Ngoc Ha &lt;ha_lennon@yahoo.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID: &lt;120921.52634.qm@web52310.mail.re2.yahoo.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt;
&gt;
&gt;Hi, I picked another set of points and here are the results. Thanks a lot!
&gt;
&gt;t: 0
&gt;x: 519.751, y:? 1513.14, z: 0
&gt;
&gt;t: 0.473684
&gt;x: 519.726, y:? 1500.95, z: 0
&gt;
&gt;t: 0.947368
&gt;x: 519.741, y:? 1475.55, z: 0
&gt;
&gt;t: 1.42105
&gt;x: 519.87, y:? 1452.08, z: 0
&gt;
&gt;t: 1.89474
&gt;x: 519.826, y:? 1436.93, z: 0
&gt;
&gt;t: 2.36842
&gt;x: 519.203, y:? 1430.78, z: 0
&gt;
&gt;t: 2.84211
&gt;x: 517.644, y:? 1413.63, z: 0
&gt;
&gt;t: 3.31579
&gt;x: 515.1, y:? 1358.18, z: 0
&gt;
&gt;t: 3.78947
&gt;x: 514.835, y:? 1267.1, z: 0
&gt;
&gt;t: 4.26316
&gt;x: 521.848, y:? 1162.43, z: 0
&gt;
&gt;t: 4.73684
&gt;x: 534.034, y:? 1066.13, z: 0
&gt;
&gt;t: 5.21053
&gt;x: 543.353, y:? 999.33, z: 0
&gt;
&gt;t: 5.68421
&gt;x: 548.978, y:? 967.812, z: 0
&gt;
&gt;t: 6.15789
&gt;x: 558.516, y:? 959.351, z: 0
&gt;
&gt;t: 6.63158
&gt;x: 572.076, y:? 943.877, z: 0
&gt;
&gt;t: 7.10526
&gt;x: 577.448, y:? 865.487, z: 0
&gt;
&gt;t: 7.57895
&gt;x: 568.835, y:? 714.475, z: 0
&gt;
&gt;t: 8.05263
&gt;x: 556.11, y:? 582.674, z: 0
&gt;
&gt;t: 8.52632
&gt;x: 548.223, y:? 536.911, z: 0
&gt;
&gt;t: 9
&gt;x: 545.789, y:? 535.286, z: 0
&gt;
&gt;--- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;
&gt;From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Date: Saturday, September 5, 2009, 11:52 PM
&gt;
&gt;Please print:
&gt;std::cout &lt;&lt; "x: " &lt;&lt; aSplineX-&gt;Evaluate(t) &lt;&lt; ", y:? " &lt;&lt;
&gt;aSplineY-&gt;Evaluate(t) &lt;&lt; ", z: " &lt;&lt; aSplineZ-&gt;Evaluate(t) &lt;&lt;
&gt;std::endl;
&gt;
&gt;
&gt;On Sat, Sep 5, 2009 at 12:03 PM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt; Hi, these are the result
&gt;&gt; t: 0
&gt;&gt; t: 0.42105
&gt;&gt; t: 0.84210
&gt;&gt; t: 1.26316
&gt;&gt; t: 1.68421
&gt;&gt; t: 2.10526
&gt;&gt; t: 2.52632
&gt;&gt; t: 2.94737
&gt;&gt; t: 3.36842
&gt;&gt; t: 3.78947
&gt;&gt; t: 4.21053
&gt;&gt; t: 4.63158
&gt;&gt; t: 5.05263
&gt;&gt; t: 5.47368
&gt;&gt; t: 5.89474
&gt;&gt; t: 6.31579
&gt;&gt; t: 6.73684
&gt;&gt; t: 7.15789
&gt;&gt; t: 7.57895
&gt;&gt; t: 8
&gt;&gt;
&gt;&gt; i don't know what's wrong with it. Please help me :(
&gt;&gt;
&gt;&gt; --- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;&gt; Subject: Re: [vtkusers] vtkSpline
&gt;&gt; To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;&gt; Cc: vtkusers@vtk.org
&gt;&gt; Date: Saturday, September 5, 2009, 7:17 PM
&gt;&gt;
&gt;&gt; Your code look OK. What is the resulting output of the std::cout &lt;&lt;
&gt;&gt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;
&gt;&gt; Bill
&gt;&gt;
&gt;&gt; On Sat, Sep 5, 2009 at 1:45 AM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I have a set of points, I just need to find a spline that pass through all
&gt;&gt;&gt; of those points and generate a number of output points.
&gt;&gt;&gt;
&gt;&gt;&gt; Here is what I did
&gt;&gt;&gt;
&gt;&gt;&gt; int numberOfInputPoints = points-&gt;GetNumberOfPoints();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineX;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineY;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineZ;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? aSplineX = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineY = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineZ = vtkCardinalSpline::New();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? for (int i=0; i&lt;numberOfInputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ??? ? double x = points-&gt;GetPoint(i)[0];
&gt;&gt;&gt; ??? ? double y = points-&gt;GetPoint(i)[1];
&gt;&gt;&gt; ??? ? double z = points-&gt;GetPoint(i)[2];
&gt;&gt;&gt; ? ? ? ? ? aSplineX-&gt;AddPoint(i, x);
&gt;&gt;&gt; ? ? ? ? ? aSplineY-&gt;AddPoint(i, y);
&gt;&gt;&gt; ? ? ? ? ? aSplineZ-&gt;AddPoint(i, z);
&gt;&gt;&gt;
&gt;&gt;&gt; ??? }
&gt;&gt;&gt;
&gt;&gt;&gt; ??? vtkPoints* polypoints = vtkPoints::New();
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ??? int numberOfOutputPoints = 20;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? ???double t;
&gt;&gt;&gt; ? ? ???for (int i=0; i&lt;numberOfOutputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ? ? ? t
&gt;&gt;&gt;
&gt;&gt;&gt; =(double)(numberOfInputPoints-1)/(double)(numberOfOutputPoints-1)*(double)i;
&gt;&gt;&gt; ??? ? std::cout &lt;&lt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;&gt; ? ? ? polypoints-&gt;InsertNextPoint(aSplineX-&gt;Evaluate(t),
&gt;&gt;&gt; aSplineY-&gt;Evaluate(t),
&gt;&gt;&gt; ? ? ? ? ? ? ? ? ? ? ???aSplineZ-&gt;Evaluate(t));
&gt;&gt;&gt; ? ? }
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I thought the newly generated points will be stored in polypoints? But
&gt;&gt;&gt; when
&gt;&gt;&gt; I checked it, it only contains the first and the last point of my input
&gt;&gt;&gt; points.
&gt;&gt;&gt;
&gt;&gt;&gt; I am new to vtk so please help me. Thank you very much
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; Powered by www.kitware.com
&gt;&gt;&gt;
&gt;&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;&gt;
&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;&gt;
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;
&gt;      
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090905/04ebe574/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 5
&gt;Date: Sat, 5 Sep 2009 13:39:08 -0400
&gt;From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkSpline
&gt;To: Kenneth Sloan &lt;kennethrsloan@gmail.com&gt;
&gt;Cc: vtkusers &lt;vtkusers@vtk.org&gt;
&gt;Message-ID:
&gt;        &lt;4db4735c0909051039q3b0c8ab5t90d1dfd3e4225063@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1
&gt;
&gt;I agree with Ken. The interpolation looks good.
&gt;
&gt;Bill
&gt;
&gt;On Sat, Sep 5, 2009 at 12:29 PM, Kenneth Sloan&lt;kennethrsloan@gmail.com&gt; wrote:
&gt;&gt; May I suggest that it would be helpful to add a section of code that
&gt;&gt; *interrogates* the final "polypoints" and shows us why you think
&gt;&gt; that it includes only the first and last points.
&gt;&gt;
&gt;&gt; On Sep 5, 2009, at 11:03 , Ho Ngoc Ha wrote:
&gt;&gt;
&gt;&gt; Hi, these are the result
&gt;&gt; t: 0
&gt;&gt; t: 0.42105
&gt;&gt; t: 0.84210
&gt;&gt; t: 1.26316
&gt;&gt; t: 1.68421
&gt;&gt; t: 2.10526
&gt;&gt; t: 2.52632
&gt;&gt; t: 2.94737
&gt;&gt; t: 3.36842
&gt;&gt; t: 3.78947
&gt;&gt; t: 4.21053
&gt;&gt; t: 4.63158
&gt;&gt; t: 5.05263
&gt;&gt; t: 5.47368
&gt;&gt; t: 5.89474
&gt;&gt; t: 6.31579
&gt;&gt; t: 6.73684
&gt;&gt; t: 7.15789
&gt;&gt; t: 7.57895
&gt;&gt; t: 8
&gt;&gt;
&gt;&gt; i don't know what's wrong with it. Please help me :(
&gt;&gt;
&gt;&gt; --- On Sat, 9/5/09, Bill Lorensen &lt;bill.lorensen@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;&gt; Subject: Re: [vtkusers] vtkSpline
&gt;&gt; To: "Ho Ngoc Ha" &lt;ha_lennon@yahoo.com&gt;
&gt;&gt; Cc: vtkusers@vtk.org
&gt;&gt; Date: Saturday, September 5, 2009, 7:17 PM
&gt;&gt;
&gt;&gt; Your code look OK. What is the resulting output of the std::cout &lt;&lt;
&gt;&gt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;
&gt;&gt; Bill
&gt;&gt;
&gt;&gt; On Sat, Sep 5, 2009 at 1:45 AM, Ho Ngoc Ha&lt;ha_lennon@yahoo.com&gt; wrote:
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I have a set of points, I just need to find a spline that pass through all
&gt;&gt;&gt; of those points and generate a number of output points.
&gt;&gt;&gt;
&gt;&gt;&gt; Here is what I did
&gt;&gt;&gt;
&gt;&gt;&gt; int numberOfInputPoints = points-&gt;GetNumberOfPoints();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineX;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineY;
&gt;&gt;&gt; ? ? vtkCardinalSpline* aSplineZ;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? aSplineX = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineY = vtkCardinalSpline::New();
&gt;&gt;&gt; ? ? aSplineZ = vtkCardinalSpline::New();
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? for (int i=0; i&lt;numberOfInputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ??? ? double x = points-&gt;GetPoint(i)[0];
&gt;&gt;&gt; ??? ? double y = points-&gt;GetPoint(i)[1];
&gt;&gt;&gt; ??? ? double z = points-&gt;GetPoint(i)[2];
&gt;&gt;&gt; ? ? ? ? ? aSplineX-&gt;AddPoint(i, x);
&gt;&gt;&gt; ? ? ? ? ? aSplineY-&gt;AddPoint(i, y);
&gt;&gt;&gt; ? ? ? ? ? aSplineZ-&gt;AddPoint(i, z);
&gt;&gt;&gt;
&gt;&gt;&gt; ??? }
&gt;&gt;&gt;
&gt;&gt;&gt; ??? vtkPoints* polypoints = vtkPoints::New();
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ??? int numberOfOutputPoints = 20;
&gt;&gt;&gt;
&gt;&gt;&gt; ? ? ???double t;
&gt;&gt;&gt; ? ? ???for (int i=0; i&lt;numberOfOutputPoints; i++)
&gt;&gt;&gt; ??? {
&gt;&gt;&gt; ? ? ? t
&gt;&gt;&gt;
&gt;&gt;&gt; =(double)(numberOfInputPoints-1)/(double)(numberOfOutputPoints-1)*(double)i;
&gt;&gt;&gt; ??? ? std::cout &lt;&lt; "t: " &lt;&lt; t &lt;&lt; std::endl;
&gt;&gt;&gt; ? ? ? polypoints-&gt;InsertNextPoint(aSplineX-&gt;Evaluate(t),
&gt;&gt;&gt; aSplineY-&gt;Evaluate(t),
&gt;&gt;&gt; ? ? ? ? ? ? ? ? ? ? ???aSplineZ-&gt;Evaluate(t));
&gt;&gt;&gt; ? ? }
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; I thought the newly generated points will be stored in polypoints? But
&gt;&gt;&gt; when
&gt;&gt;&gt; I checked it, it only contains the first and the last point of my input
&gt;&gt;&gt; points.
&gt;&gt;&gt;
&gt;&gt;&gt; I am new to vtk so please help me. Thank you very much
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; Powered by www.kitware.com
&gt;&gt;&gt;
&gt;&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;&gt;
&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;&gt;
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;
&gt;&gt; --
&gt;&gt; Kenneth Sloan
&gt;&gt; KennethRSloan@gmail.com
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 6
&gt;Date: Sat, 5 Sep 2009 13:43:05 -0400
&gt;From: Bill Lorensen &lt;bill.lorensen@gmail.com&gt;
&gt;Subject: Re: [vtkusers] no VTK binary
&gt;To: steve.giessler@mail.wvu.edu
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;4db4735c0909051043v3dd4354bl20493f9db5ab3030@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1
&gt;
&gt;To generate the vtk binary, you have to turn on tcl wrapping when you configure.
&gt;
&gt;On Thu, Sep 3, 2009 at 10:43 AM, Steve
&gt;Giessler&lt;steve.giessler@mail.wvu.edu&gt; wrote:
&gt;&gt; Greetings,
&gt;&gt;
&gt;&gt; I work at West Virginia University. In the Math dept. they have a cluster
&gt;&gt; that they want to run VTK on. I have never installed or used this package. I
&gt;&gt; first installed cmake 2.6 and then compiled and installed VTK according to
&gt;&gt; the instructions. The only problem is, I can't find the vtk binary. I'm
&gt;&gt; assuming it should install under my install path/bin right?
&gt;&gt;
&gt;&gt; The only things it installed in my install path/bin were:
&gt;&gt;
&gt;&gt; -rwxr-xr-x 1 root root ?431171 Sep ?2 16:33 lproj
&gt;&gt; -rwxr-xr-x 1 root root ? 18986 Sep ?2 16:33 vtkEncodeString
&gt;&gt;
&gt;&gt; Where is vtk?
&gt;&gt;
&gt;&gt; It seemed to compile without error.
&gt;&gt;
&gt;&gt; --
&gt;&gt;
&gt;&gt; Steve Giessler, Professional Technologist
&gt;&gt; West Virginia University
&gt;&gt; Eberly College of Arts and Sciences
&gt;&gt; 201 Woodburn Hall
&gt;&gt; Morgantown, WV 26506
&gt;&gt; (304) 293-7405 x5252
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 7
&gt;Date: Sun, 6 Sep 2009 18:46:22 +1200
&gt;From: Helvin Lui &lt;helvinlui@gmail.com&gt;
&gt;Subject: [vtkusers] vtkCaptionWidget
&gt;To: vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;f27262c50909052346i5e955e0amfbf17a7e88875632@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt;I actually can't find a SINGLE example online about how to use
&gt;vtkCaptionWidget. Does anyone have any idea how to use it?At the moment, I
&gt;have only initiated it with caption = vtk.vtkCaptionWidget. What else?
&gt;
&gt;Btw, I'm using it to display options that the user can choose related to a
&gt;point that they pick in the display mesh.
&gt;
&gt;Thanks so much!
&gt;-- 
&gt;Helvin
&gt;
&gt;"Though the world may promise me more, I'm just made to be filled with the
&gt;Lord."
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090906/a1e6db3a/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 8
&gt;Date: Sun, 6 Sep 2009 03:38:20 -0400
&gt;From: Karthik Krishnan &lt;karthik.krishnan@kitware.com&gt;
&gt;Subject: Re: [vtkusers] vtkCaptionWidget
&gt;To: Helvin Lui &lt;helvinlui@gmail.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;9ddb27260909060038r1ecf8c91jd075bc4ee37776b1@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt;VTK/Widgets/Testing/Cxx/TestCaptionWidget.cxx
&gt;
&gt;On Sun, Sep 6, 2009 at 2:46 AM, Helvin Lui &lt;helvinlui@gmail.com&gt; wrote:
&gt;
&gt;&gt; I actually can't find a SINGLE example online about how to use
&gt;&gt; vtkCaptionWidget. Does anyone have any idea how to use it?At the moment, I
&gt;&gt; have only initiated it with caption = vtk.vtkCaptionWidget. What else?
&gt;&gt;
&gt;&gt; Btw, I'm using it to display options that the user can choose related to a
&gt;&gt; point that they pick in the display mesh.
&gt;&gt;
&gt;&gt; Thanks so much!
&gt;&gt; --
&gt;&gt; Helvin
&gt;&gt;
&gt;&gt; "Though the world may promise me more, I'm just made to be filled with the
&gt;&gt; Lord."
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Powered by www.kitware.com
&gt;&gt;
&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;
&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;
&gt;&gt;
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090906/d21cd5eb/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 9
&gt;Date: Sun, 6 Sep 2009 23:01:22 +1200
&gt;From: Helvin Lui &lt;helvinlui@gmail.com&gt;
&gt;Subject: Re: [vtkusers] vtkCaptionWidget
&gt;To: Karthik Krishnan &lt;karthik.krishnan@kitware.com&gt;
&gt;Cc: vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;f27262c50909060401m7509960en4ba7459e32fb24de@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt;Oh, I thought VTK/Widgets/Testing/Cxx/TestCaptionWidget.cxx was a testing
&gt;thing, and not an example as such, but I will have a look at it, thanks.
&gt;Though I am coding in python and not C, so if there are any python examples,
&gt;it would be very much appreciated, thanks!
&gt;Helvin
&gt;
&gt;On Sun, Sep 6, 2009 at 7:38 PM, Karthik Krishnan &lt;
&gt;karthik.krishnan@kitware.com&gt; wrote:
&gt;
&gt;&gt; VTK/Widgets/Testing/Cxx/TestCaptionWidget.cxx
&gt;&gt;
&gt;&gt; On Sun, Sep 6, 2009 at 2:46 AM, Helvin Lui &lt;helvinlui@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt;&gt; I actually can't find a SINGLE example online about how to use
&gt;&gt;&gt; vtkCaptionWidget. Does anyone have any idea how to use it? At the moment,
&gt;&gt;&gt; I have only initiated it with caption = vtk.vtkCaptionWidget. What else?
&gt;&gt;&gt;
&gt;&gt;&gt; Btw, I'm using it to display options that the user can choose related to a
&gt;&gt;&gt; point that they pick in the display mesh.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks so much!
&gt;&gt;&gt; --
&gt;&gt;&gt; Helvin
&gt;&gt;&gt;
&gt;&gt;&gt; "Though the world may promise me more, I'm just made to be filled with the
&gt;&gt;&gt; Lord."
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; Powered by www.kitware.com
&gt;&gt;&gt;
&gt;&gt;&gt; Visit other Kitware open-source projects at
&gt;&gt;&gt; http://www.kitware.com/opensource/opensource.html
&gt;&gt;&gt;
&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:
&gt;&gt;&gt; http://www.vtk.org/Wiki/VTK_FAQ
&gt;&gt;&gt;
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:
&gt;&gt;&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;-- 
&gt;Helvin
&gt;
&gt;"Though the world may promise me more, I'm just made to be filled with the
&gt;Lord."
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090906/7c1e9e95/attachment-0001.htm&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 10
&gt;Date: Sun, 6 Sep 2009 16:01:51 +0300
&gt;From: Ali Habib &lt;ali.mahmoud.habib@gmail.com&gt;
&gt;Subject: [vtkusers] How to implement that
&gt;To: vtk-developers@vtk.org, vtkusers@vtk.org
&gt;Message-ID:
&gt;        &lt;a065f39a0909060601hdd36445s31c02c3edf4f008a@mail.gmail.com&gt;
&gt;Content-Type: text/plain; charset="iso-8859-1"
&gt;
&gt; Hi All,
&gt;
&gt;I created a 3D of the skull from CT 2d slices, I want to select a part of
&gt;the skull and delete it , as example kindly find attached image , how to
&gt;implement that please
&gt;I tried clipping, but not work as I wish
&gt;
&gt;
&gt;best regards
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090906/4beb6234/attachment-0001.htm&gt;
&gt;-------------- next part --------------
&gt;A non-text attachment was scrubbed...
&gt;Name: skull_quarter_view_PA230104.jpg
&gt;Type: image/jpeg
&gt;Size: 44787 bytes
&gt;Desc: not available
&gt;URL: &lt;http://www.vtk.org/pipermail/vtkusers/attachments/20090906/4beb6234/attachment-0001.jpg&gt;
&gt;
&gt;------------------------------
&gt;
&gt;_______________________________________________
&gt;vtkusers mailing list
&gt;vtkusers@vtk.org
&gt;http://www.vtk.org/mailman/listinfo/vtkusers
&gt;
&gt;
&gt;End of vtkusers Digest, Vol 65, Issue 7
&gt;***************************************
</pre><br><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net/?from=footer">没有广告的终身免费邮箱,www.yeah.net</a>
</span>