<div dir="ltr">Thanks, Marcus, for pointing that out. <div><br></div><div>I still dont know why my picked points are not showing up in the right position.<div><br></div><div>Perhaps there is a way to ensure that the renderer for image plane widget is the same as the renderer for picking points. I'm also using vtkGenericOpenGLWindow for the render window. Perhaps it has something to do with that.</div><div><br></div><div>Best regards,</div><div>Cartik</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 23, 2014 at 11:25 AM, <span dir="ltr"><<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of vtkusers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Bug in vtkContextInteractorStyle? (Marcus D. Hanwell)<br>
2. Re: Bug in vtkContextInteractorStyle? (Marcus D. Hanwell)<br>
3. Re: How to select a VtkPlot object in a vtkChart?<br>
(Marcus D. Hanwell)<br>
4. Re: How to select a VtkPlot object in a vtkChart?<br>
(Marcus D. Hanwell)<br>
5. Re: vtkusers Digest, Vol 128, Issue 9 (Cartik Sharma)<br>
6. Error in vtkPCAAnalysisFilter (Lizeth Castellanos)<br>
7. Re: Error in vtkPCAAnalysisFilter (Lizeth Castellanos)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 22 Dec 2014 12:54:22 -0500<br>
From: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: Re: [vtkusers] Bug in vtkContextInteractorStyle?<br>
Message-ID:<br>
<CAMkPkZUYBvOB674fi=uc7TMSn5vmxxGE=gY-w58hmW59S=<a href="mailto:nWdQ@mail.gmail.com">nWdQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Mon, Dec 22, 2014 at 10:07 AM, Maarten Beek via vtkusers<br>
<<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
> Hi all,<br>
><br>
> I happened to be looking at the source of the vtkContextInteractorStyle<br>
> class.<br>
><br>
> In the OnKeyPress() and OnKeyRelease() functions I see the folowwing:<br>
><br>
> vtkVector2i position(this->Interactor->GetEventPosition()[0],<br>
> this->Interactor->GetEventPosition()[0]);<br>
><br>
> which to me looks wrong.<br>
><br>
> Not sure whether one of the vtk developers has already been made aware of<br>
> this.<br>
><br>
Thank you for pointing this out, I just submitted a patch to correct<br>
this on Gerrit,<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 22 Dec 2014 12:55:20 -0500<br>
From: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: Re: [vtkusers] Bug in vtkContextInteractorStyle?<br>
Message-ID:<br>
<<a href="mailto:CAMkPkZV2VKP3%2B%2B_a_N3RbrYW3Sm_gHm7SHSuo1XVMsA88Rtjuw@mail.gmail.com">CAMkPkZV2VKP3++_a_N3RbrYW3Sm_gHm7SHSuo1XVMsA88Rtjuw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Mon, Dec 22, 2014 at 12:54 PM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> On Mon, Dec 22, 2014 at 10:07 AM, Maarten Beek via vtkusers<br>
> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I happened to be looking at the source of the vtkContextInteractorStyle<br>
>> class.<br>
>><br>
>> In the OnKeyPress() and OnKeyRelease() functions I see the folowwing:<br>
>><br>
>> vtkVector2i position(this->Interactor->GetEventPosition()[0],<br>
>> this->Interactor->GetEventPosition()[0]);<br>
>><br>
>> which to me looks wrong.<br>
>><br>
>> Not sure whether one of the vtk developers has already been made aware of<br>
>> this.<br>
>><br>
> Thank you for pointing this out, I just submitted a patch to correct<br>
> this on Gerrit,<br>
<br>
<a href="http://review.source.kitware.com/#/t/5213" target="_blank">http://review.source.kitware.com/#/t/5213</a><br>
<br>
Sorry, GMail is overly eager when I tried to paste the URL...<br>
<br>
Thanks,<br>
<br>
Marcus<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 22 Dec 2014 13:05:22 -0500<br>
From: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: Re: [vtkusers] How to select a VtkPlot object in a vtkChart?<br>
Message-ID:<br>
<CAMkPkZUh=SqDJiq0UGRWXTqT=BE4t=<a href="mailto:cSuKaSUivfqDZcUcHRfA@mail.gmail.com">cSuKaSUivfqDZcUcHRfA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi Maarten,<br>
<br>
On Mon, Dec 22, 2014 at 12:49 PM, Maarten Beek via vtkusers<br>
<<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
> Hi all,<br>
><br>
> I would like to know how I would select a vtkPlot (better: vtkPlotLine)<br>
> object in a vtkChart (better: vtkChartXY)?<br>
><br>
> I get the impression that only points can be selected in a vtkContextScene.<br>
> However, I have two vertical lines each with two (bottom and top) points, to<br>
> indicate a (threshold) range, and that I would like to move left and right<br>
> with my mouse.<br>
> Would this be possible (or should I go back to something like QCustomPlot)?<br>
><br>
I worked on a somewhat similar type of chart in the tomviz project,<br>
see vtkChartHistogram in the CentralWidget.cxx file (that needs to be<br>
split out/refactored, but should illustrate). It has a vertical line<br>
marking the selected isosurface value the user clicked on<br>
(vtkHistogramMarker).<br>
<br>
I think we should make this simpler, when you add a plot you get its<br>
index, you can create a vtkPlotLine, add it to the chart, maintain a<br>
pointer to it, and update that object in your own code too.<br>
<br>
Marcus<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Mon, 22 Dec 2014 13:05:52 -0500<br>
From: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: Re: [vtkusers] How to select a VtkPlot object in a vtkChart?<br>
Message-ID:<br>
<CAMkPkZVQ=FwLPDvmhU70GpynhcgNDiovxK5Vr9UR=<a href="mailto:Devj05UAA@mail.gmail.com">Devj05UAA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Mon, Dec 22, 2014 at 1:05 PM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> Hi Maarten,<br>
><br>
> On Mon, Dec 22, 2014 at 12:49 PM, Maarten Beek via vtkusers<br>
> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I would like to know how I would select a vtkPlot (better: vtkPlotLine)<br>
>> object in a vtkChart (better: vtkChartXY)?<br>
>><br>
>> I get the impression that only points can be selected in a vtkContextScene.<br>
>> However, I have two vertical lines each with two (bottom and top) points, to<br>
>> indicate a (threshold) range, and that I would like to move left and right<br>
>> with my mouse.<br>
>> Would this be possible (or should I go back to something like QCustomPlot)?<br>
>><br>
> I worked on a somewhat similar type of chart in the tomviz project,<br>
> see vtkChartHistogram in the CentralWidget.cxx file (that needs to be<br>
> split out/refactored, but should illustrate). It has a vertical line<br>
> marking the selected isosurface value the user clicked on<br>
> (vtkHistogramMarker).<br>
><br>
> I think we should make this simpler, when you add a plot you get its<br>
> index, you can create a vtkPlotLine, add it to the chart, maintain a<br>
> pointer to it, and update that object in your own code too.<br>
><br>
Not enough coffee today...the link to the file I mentioned,<br>
<br>
<a href="https://github.com/OpenChemistry/tomviz/blob/master/CentralWidget.cxx" target="_blank">https://github.com/OpenChemistry/tomviz/blob/master/CentralWidget.cxx</a><br>
<br>
Marcus<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Mon, 22 Dec 2014 17:30:16 -0500<br>
From: Cartik Sharma <<a href="mailto:cartik.sharma@gmail.com">cartik.sharma@gmail.com</a>><br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 128, Issue 9<br>
Message-ID:<br>
<<a href="mailto:CANP4vsizDJDxhxifpPFB0o_xonBaQvfYUvG0b%2Bj0%2BGVN4EcNZQ@mail.gmail.com">CANP4vsizDJDxhxifpPFB0o_xonBaQvfYUvG0b+j0+GVN4EcNZQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi,<br>
<br>
I have a question regarding the rendering a sphere at the point picked<br>
with vtkPointPicker.<br>
<br>
I have setup style as a child class of vtkInteractorStyleTrackballCamera<br>
where I<br>
get the obtain coordinates of picked point from the current renderer, after<br>
getting the current renderer from a findPokedRenderer call.<br>
<br>
When I set the picked point coordinates to a sphereActor with setPosition,<br>
it does show up in the view window but not at the picked position.<br>
<br>
Is there some way to fix this. Thanks in advance.<br>
<br>
Best regards,<br>
Cartik<br>
<br>
On Mon, Dec 22, 2014 at 12:49 PM, <<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>> wrote:<br>
<br>
> Send vtkusers mailing list submissions to<br>
> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
><br>
> You can reach the person managing the list at<br>
> <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of vtkusers digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. (no subject) (Allavali Ballary)<br>
> 2. Re: Writing multi-paged tiff image (Bradley Lowekamp)<br>
> 3. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (Vincent32160)<br>
> 4. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (David Gobbi)<br>
> 5. Re: Writing multi-paged tiff image (Maarten Beek)<br>
> 6. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (David Gobbi)<br>
> 7. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (Vincent32160)<br>
> 8. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (David Gobbi)<br>
> 9. extract texture color from a vertex (marco)<br>
> 10. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (Vincent32160)<br>
> 11. Re: Unwrap a cylinder of data using vtkCylindricalTransform<br>
> and vtkImageReslice (David Gobbi)<br>
> 12. get tcoords from pointId (marco)<br>
> 13. vtk actor size on screen (<a href="mailto:sadml@flexynet.org">sadml@flexynet.org</a>)<br>
> 14. Re: get tcoords from pointId (Cory Quammen)<br>
> 15. Re: get tcoords from pointId (marco)<br>
> 16. Re: get tcoords from pointId (marco)<br>
> 17. Re: get tcoords from pointId (Cory Quammen)<br>
> 18. Re: [VTK] Creating an OS X bundle for a VTK example using Qt<br>
> (Jon Haitz Legarreta)<br>
> 19. Clearing vtkPlot object (Maarten Beek)<br>
> 20. Re: Clearing vtkPlot object (Marcus D. Hanwell)<br>
> 21. Re: Clearing vtkPlot object (Maarten Beek)<br>
> 22. Issues with VTK Delaunay 2D for simple cases (updega2)<br>
> 23. Re: Axes marker not working as expected (J?lio Hoffimann)<br>
> 24. Re: vtkTypeMacro warning (J?lio Hoffimann)<br>
> 25. How to read a dicom and display in the in the windows (cvinllen)<br>
> 26. Re: Axes marker not working as expected (J?lio Hoffimann)<br>
> 27. no crystal eye (quand_buffer) stereo with Qt5 / VTK 6.1 /<br>
> Nvidia (Jean-Luc Szpyrka)<br>
> 28. Bug in vtkContextInteractorStyle? (Maarten Beek)<br>
> 29. How to select a VtkPlot object in a vtkChart? (Maarten Beek)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Thu, 18 Dec 2014 13:47:32 +0000<br>
> From: "Allavali Ballary" <Allavali.Ballary@LntTechservices.com><br>
> To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: [vtkusers] (no subject)<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:3BD743544268C04A827420A055435C93B8C178@POCITMSEXMB06.LntUniverse.com">3BD743544268C04A827420A055435C93B8C178@POCITMSEXMB06.LntUniverse.com</a>><br>
> Content-Type: text/plain; charset="us-ascii"<br>
><br>
> Hi,<br>
> In Dicom image how to measure distance between two points, angle multiple<br>
> times.<br>
> Now I can measure one time, but I need to measure multiple times.<br>
><br>
> Thanks & Regards,<br>
> Allavali Ballary<br>
><br>
><br>
> L&T Technology Services Ltd<br>
><br>
> <a href="http://www.LntTechservices.com" target="_blank">www.LntTechservices.com</a><<a href="http://www.lnttechservices.com/" target="_blank">http://www.lnttechservices.com/</a>><br>
><br>
> This Email may contain confidential or privileged information for the<br>
> intended recipient (s). If you are not the intended recipient, please do<br>
> not use or disseminate the information, notify the sender and delete it<br>
> from your system.<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/09f5899a/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/09f5899a/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Thu, 18 Dec 2014 09:10:19 -0500<br>
> From: Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>><br>
> To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> Cc: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>>, VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Writing multi-paged tiff image<br>
> Message-ID: <<a href="mailto:12B2ABE1-EAA7-4BC9-B7DB-7A51877FCEA8@mail.nih.gov">12B2ABE1-EAA7-4BC9-B7DB-7A51877FCEA8@mail.nih.gov</a>><br>
> Content-Type: text/plain; charset="us-ascii"<br>
><br>
> Hello,<br>
><br>
> I have recently refactored ITK's TIFFImageIO mostly for improving reading,<br>
> but it supports writing 3D images as multi-paged tiffs. You can utilized<br>
> ITK ImageIO by using ITK's VTK bridge module [1]. Alternatively, you can<br>
> look at ITK's implementation as see about porting it to VTK[2]. I believe<br>
> the writing method still has an evident heritage from VTK.<br>
><br>
> I am not a big fan for 3D tiffs because there is no standard way to store<br>
> z-spacing and image origin.<br>
><br>
> Brad<br>
><br>
> [1] <a href="http://www.itk.org/Doxygen/html/group__ITKVTK.html" target="_blank">http://www.itk.org/Doxygen/html/group__ITKVTK.html</a><br>
> [2]<br>
> <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764" target="_blank">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764</a><br>
><br>
> On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> wrote:<br>
><br>
> > Thanks for your reply David,<br>
> ><br>
> > I would like to write multi-page tiffs, but I might not be smart enough.<br>
> I see one tiff file with all images stitched together in a long column, so<br>
> I am thinking of a missing page return or something. But I guess that's a<br>
> over-simplification ;-)<br>
> ><br>
> > vtkImageWriter works fine as long as I remember the extent, spacing and<br>
> origin.<br>
> ><br>
> > Last year I saw multi-page tiff phloro images, now I see multi-page tiff<br>
> ct data; maybe vtktiffwriter will be 3d capable some day....<br>
> ><br>
> > Maarten<br>
> ><br>
> ><br>
> > On Wednesday, December 17, 2014 4:30 PM, David Gobbi <<br>
> <a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
> ><br>
> ><br>
> > On Wed, Dec 17, 2014 at 2:10 PM, Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> wrote:<br>
> > Hi David,<br>
> ><br>
> > Sorry, I'll try to remember. I did search the internet but couldn't find<br>
> a clear answer.<br>
> ><br>
> > I am a bit confused though, because vtkTiffReader reads multi-page tiffs<br>
> fine. What is preventing a multi-page writer?<br>
> ><br>
> > All that's missing is someone with the need to write multi-page files,<br>
> who is willing to modify the writer so that it writes multi-page files! It<br>
> isn't a trivial project, because there are at least three different<br>
> semi-standard ways of storing 3D data in TIFF, and they aren't entirely<br>
> compatible with one another.<br>
> ><br>
> > Even with the reader, multi-page files were troublesome for a long time,<br>
> because it could read some 3D files but not others (again, because TIFF<br>
> has several semi-standard ways of storing 3D data). TIFF was not<br>
> initially designed to handle 3D, and all the ways of making it work with 3D<br>
> are a bit hackish.<br>
> ><br>
> ><br>
> > What are my options in vtk? What writers do write 3d images? Does a tool<br>
> exist that puts multiple tiffs in one multi-page tiff?<br>
> ><br>
> > Well, right now NIFTI is my favorite 3D image format. I don't use TIFF<br>
> much, so I don't know what TIFF tools are available.<br>
> ><br>
> > - David<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/aa980cd3/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/aa980cd3/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Thu, 18 Dec 2014 08:17:05 -0700 (MST)<br>
> From: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID: <<a href="mailto:1418915825397-5729892.post@n5.nabble.com">1418915825397-5729892.post@n5.nabble.com</a>><br>
> Content-Type: text/plain; charset=us-ascii<br>
><br>
> As I need to modify the angle from which the unrolling is starting I would<br>
> use the sophisticated solution you advise.<br>
> If I understand correctly the starting reslice axes are a 4x4 matrix<br>
> (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).<br>
> If I need to apply an angle, I could use only the 3x3 matrix<br>
> (-1,0,0,0,-1,0,0,0,1).<br>
> Can you tell me if I am right?<br>
> Thanks<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729892.html" target="_blank">http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729892.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 4<br>
> Date: Thu, 18 Dec 2014 08:40:44 -0700<br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
> To: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID:<br>
> <CANwS1=<br>
> <a href="mailto:EzzQfZu1ncFxdkXWvSBaXwAAaLEgRb24KcL4%2Bk0xaWhg@mail.gmail.com">EzzQfZu1ncFxdkXWvSBaXwAAaLEgRb24KcL4+k0xaWhg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> On Thu, Dec 18, 2014 at 8:17 AM, Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>> wrote:<br>
> ><br>
> > As I need to modify the angle from which the unrolling is starting I<br>
> would<br>
> > use the sophisticated solution you advise.<br>
> > If I understand correctly the starting reslice axes are a 4x4 matrix<br>
> > (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).<br>
> > If I need to apply an angle, I could use only the 3x3 matrix<br>
> > (-1,0,0,0,-1,0,0,0,1).<br>
> > Can you tell me if I am right?<br>
> > Thanks<br>
><br>
><br>
> Yes, the 3x3 matrix controls the orientation of the cylinder, and<br>
> the final column is where you want the center to be.<br>
><br>
> However: the bottom row should always be (0,0,0,1). And I'm<br>
> not sure why you put in the "-1"s. Is there a reason why you want<br>
> to rotate by 180 degrees?<br>
><br>
> - David<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/e69ba194/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/e69ba194/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 5<br>
> Date: Thu, 18 Dec 2014 15:43:25 +0000 (UTC)<br>
> From: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> To: Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>><br>
> Cc: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>>, VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Writing multi-paged tiff image<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:1485787823.490616.1418917405129.JavaMail.yahoo@jws100205.mail.ne1.yahoo.com">1485787823.490616.1418917405129.JavaMail.yahoo@jws100205.mail.ne1.yahoo.com</a><br>
> ><br>
><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hey Bradley,<br>
> Thanks for your reply, I'll have a look at the itk code.<br>
> I just have some 3d tiff ct data and after soon processing, my first<br>
> thought was to just save it in its original format.<br>
> Thanks for your remark re. spacing and origin; I was about to send an<br>
> email to the person who gave me the ct data, to ask about this data. I now<br>
> feel more confident that my code didn't screw up these numbers ;-)<br>
> Maarten<br>
><br>
><br>
> On Thursday, December 18, 2014 9:20 AM, Bradley Lowekamp <<br>
> <a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
><br>
><br>
> Hello,<br>
> I have recently refactored ITK's TIFFImageIO mostly for improving reading,<br>
> but it supports writing 3D images as multi-paged tiffs. You can utilized<br>
> ITK ImageIO by using ITK's VTK bridge module [1]. Alternatively, you can<br>
> look at ITK's implementation as see about porting it to VTK[2]. I believe<br>
> the writing method still has an evident heritage from VTK.<br>
> I am not a big fan for 3D tiffs because there is no standard way to store<br>
> z-spacing and image origin.<br>
> Brad<br>
> [1]?<br>
> <a href="http://www.itk.org/Doxygen/html/group__ITKVTK.html[2]?https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764" target="_blank">http://www.itk.org/Doxygen/html/group__ITKVTK.html[2]?https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/TIFF/src/itkTIFFImageIO.cxx#L504-L764</a><br>
> On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> wrote:<br>
><br>
><br>
> Thanks for your reply David,<br>
> I would like to write multi-page tiffs, but I might not be smart enough. I<br>
> see one tiff file with all images stitched together in a long column, so I<br>
> am thinking of a missing page return or something. But I guess that's a<br>
> over-simplification ;-)<br>
> vtkImageWriter works fine as long as I remember the extent, spacing and<br>
> origin.<br>
> Last year I saw multi-page tiff phloro images, now I see multi-page tiff<br>
> ct data; maybe vtktiffwriter will be 3d capable some day....<br>
> Maarten<br>
><br>
><br>
> On Wednesday, December 17, 2014 4:30 PM, David Gobbi <<br>
> <a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
><br>
><br>
> On Wed, Dec 17, 2014 at 2:10 PM, Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> wrote:<br>
> Hi David,<br>
> Sorry, I'll try to remember. I did search the internet but couldn't find a<br>
> clear answer.<br>
> I am a bit confused though, because vtkTiffReader reads multi-page tiffs<br>
> fine. What is preventing a multi-page writer?<br>
><br>
> All that's missing is someone with the need to write multi-page files, who<br>
> is willing to modify the writer so that it writes multi-page files!? It<br>
> isn't a trivial project, because there are at least three different<br>
> semi-standard ways of storing 3D data in TIFF, and they aren't entirely<br>
> compatible with one another.<br>
> Even with the reader, multi-page files were troublesome for a long time,<br>
> because it could read some 3D files but not others (again, because TIFF has<br>
> ?several semi-standard ways of storing 3D data).? TIFF was not initially<br>
> designed to handle 3D, and all the ways of making it work with 3D are a bit<br>
> hackish.<br>
><br>
><br>
> What are my options in vtk? What writers do write 3d images? Does a tool<br>
> exist that puts multiple tiffs in one multi-page tiff?<br>
><br>
><br>
> Well, right now NIFTI is my favorite 3D image format.? I don't use TIFF<br>
> much, so I don't know what TIFF tools are available. ?<br>
> ?- David?<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
><br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/00a72cdb/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/00a72cdb/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 6<br>
> Date: Thu, 18 Dec 2014 08:46:47 -0700<br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
> To: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID:<br>
> <CANwS1=GXshcu70ab-rSGfYNhHGE5v4UoTri=<br>
> <a href="mailto:7Jt3Xr1jeMvnCA@mail.gmail.com">7Jt3Xr1jeMvnCA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> On Thu, Dec 18, 2014 at 8:40 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
> wrote:<br>
> ><br>
> > On Thu, Dec 18, 2014 at 8:17 AM, Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>> wrote:<br>
> >><br>
> >> As I need to modify the angle from which the unrolling is starting I<br>
> would<br>
> >> use the sophisticated solution you advise.<br>
> >> If I understand correctly the starting reslice axes are a 4x4 matrix<br>
> >> (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).<br>
> >> If I need to apply an angle, I could use only the 3x3 matrix<br>
> >> (-1,0,0,0,-1,0,0,0,1).<br>
> >> Can you tell me if I am right?<br>
> >> Thanks<br>
> ><br>
> ><br>
> > Yes, the 3x3 matrix controls the orientation of the cylinder, and<br>
> > the final column is where you want the center to be.<br>
> ><br>
> > However: the bottom row should always be (0,0,0,1). And I'm<br>
> > not sure why you put in the "-1"s. Is there a reason why you want<br>
> > to rotate by 180 degrees?<br>
> ><br>
><br>
><br>
> I can add a little bit more information about how to set the 3x3 matrix.<br>
> The third column of the 3x3 matrix must be a unit vector that points<br>
> along the axis of the cylinder. The first and second columns must<br>
> be perpendicular to the third axis, and must be perpendicular to each<br>
> other (if they aren't, then the matrix isn't a rotation matrix).<br>
><br>
> The method vtkMath::Perpendiculars() can be used to compute the<br>
> three columns for the 3x3 matrix, if you know the axis of the cylinder.<br>
><br>
> - David<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/cfeae831/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/cfeae831/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 7<br>
> Date: Thu, 18 Dec 2014 09:06:19 -0700 (MST)<br>
> From: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID: <<a href="mailto:1418918779189-5729896.post@n5.nabble.com">1418918779189-5729896.post@n5.nabble.com</a>><br>
> Content-Type: text/plain; charset=us-ascii<br>
><br>
> I put in the "-1"s because I reuse the matrix presented in your code<br>
> (rotate.SetResliceAxesDirectionCosines(<br>
> -1, 0, 0,<br>
> 0, -1, 0,<br>
> 0, 0, 1 ) )<br>
> Shouldn't I do this?<br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729896.html" target="_blank">http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729896.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 8<br>
> Date: Thu, 18 Dec 2014 09:15:36 -0700<br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
> To: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID:<br>
> <CANwS1=<br>
> <a href="mailto:FLjyETsEhX1Mo8zCGya22%2BTyFmSnDZnwAGSfJxBMbpUw@mail.gmail.com">FLjyETsEhX1Mo8zCGya22+TyFmSnDZnwAGSfJxBMbpUw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> On Thu, Dec 18, 2014 at 9:06 AM, Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>> wrote:<br>
> ><br>
> > I put in the "-1"s because I reuse the matrix presented in your code<br>
> > (rotate.SetResliceAxesDirectionCosines(<br>
> > -1, 0, 0,<br>
> > 0, -1, 0,<br>
> > 0, 0, 1 ) )<br>
> > Shouldn't I do this?<br>
><br>
><br>
> No, this isn't something that should be blindly copied. I added those -1's<br>
> because<br>
> it set up the cylinder orientation properly for my data. You have<br>
> different data, so<br>
> you will probably need a different matrix. Does that make sense?<br>
><br>
> - David<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/6daee451/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/6daee451/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 9<br>
> Date: Thu, 18 Dec 2014 11:19:47 -0500<br>
> From: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: [vtkusers] extract texture color from a vertex<br>
> Message-ID: <<a href="mailto:5492FEA3.1010508@gmail.com">5492FEA3.1010508@gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
><br>
> Hello,<br>
> I want to get the texture value from a cell!<br>
> I have the cellid as result of intersectWithLine.<br>
><br>
> After I get the list of vertices of the cell:<br>
> vtkIdList* nghList = vtkIdList::New();<br>
> source->GetCellPoints(cellId, nghList);<br>
> I iterate through the points in order to get their texture coordinates<br>
> and interpolate them in the intersection position.<br>
> Then with the (interpolated) texture coordinates, access the texture<br>
> image to get the RGB point color!<br>
><br>
> Is there a method faster than that?<br>
><br>
> Thank you<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ae5021c0/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ae5021c0/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 10<br>
> Date: Thu, 18 Dec 2014 09:25:00 -0700 (MST)<br>
> From: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID: <<a href="mailto:1418919900723-5729899.post@n5.nabble.com">1418919900723-5729899.post@n5.nabble.com</a>><br>
> Content-Type: text/plain; charset=us-ascii<br>
><br>
> That makes definitely sense.<br>
> Apart this rotation and the variables radialSize and r, I got the<br>
> impression<br>
> that the rest of the code doesn't depend on the data. Do you agree with<br>
> that?<br>
> Thanks again<br>
><br>
><br>
> David Gobbi wrote<br>
> > On Thu, Dec 18, 2014 at 9:06 AM, Vincent32160 <<br>
><br>
> > vsh@<br>
><br>
> > > wrote:<br>
> >><br>
> >> I put in the "-1"s because I reuse the matrix presented in your code<br>
> >> (rotate.SetResliceAxesDirectionCosines(<br>
> >> -1, 0, 0,<br>
> >> 0, -1, 0,<br>
> >> 0, 0, 1 ) )<br>
> >> Shouldn't I do this?<br>
> ><br>
> ><br>
> > No, this isn't something that should be blindly copied. I added those<br>
> > -1's<br>
> > because<br>
> > it set up the cylinder orientation properly for my data. You have<br>
> > different data, so<br>
> > you will probably need a different matrix. Does that make sense?<br>
> ><br>
> > - David<br>
> ><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the VTK FAQ at:<br>
> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729899.html" target="_blank">http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729899.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 11<br>
> Date: Thu, 18 Dec 2014 09:34:20 -0700<br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
> To: Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using<br>
> vtkCylindricalTransform and vtkImageReslice<br>
> Message-ID:<br>
> <CANwS1=HPxNyiLgVr-jp=<br>
> <a href="mailto:B8O3p_psp_B4MNmoRRe_Lmdw_iGpmw@mail.gmail.com">B8O3p_psp_B4MNmoRRe_Lmdw_iGpmw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> On Thu, Dec 18, 2014 at 9:25 AM, Vincent32160 <<a href="mailto:vsh@magellium.fr">vsh@magellium.fr</a>> wrote:<br>
> ><br>
> > That makes definitely sense.<br>
> > Apart this rotation and the variables radialSize and r, I got the<br>
> > impression<br>
> > that the rest of the code doesn't depend on the data. Do you agree with<br>
> > that?<br>
> ><br>
><br>
> In addition to those, the code also assumes that the center of the cylinder<br>
> is at the center of the image, which might not be true for your data.<br>
><br>
> That's why I said that you might want to use the full 4x4 ResliceAxes<br>
> matrix<br>
> instead of just using SetResliceAxesDirectionCosines. If you use a 4x4<br>
> matrix, you can use the 4th column of the matrix to adjust the center.<br>
><br>
> - David<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ef642198/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ef642198/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 12<br>
> Date: Thu, 18 Dec 2014 13:58:40 -0500<br>
> From: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: [vtkusers] get tcoords from pointId<br>
> Message-ID: <<a href="mailto:549323E0.3020402@gmail.com">549323E0.3020402@gmail.com</a>><br>
> Content-Type: text/plain; charset=utf-8; format=flowed<br>
><br>
> Hello,<br>
> maybe it has been deprecated but I cannot find a method like<br>
> GetTcoords(pointId)!<br>
> Is there something similar in the library?<br>
><br>
> Thank you<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 13<br>
> Date: Thu, 18 Dec 2014 20:14:21 +0100<br>
> From: "<a href="mailto:sadml@flexynet.org">sadml@flexynet.org</a>" <<a href="mailto:sadml@flexynet.org">sadml@flexynet.org</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: [vtkusers] vtk actor size on screen<br>
> Message-ID: <<a href="mailto:5493278D.7080300@flexynet.org">5493278D.7080300@flexynet.org</a>><br>
> Content-Type: text/plain; charset=iso-8859-15; format=flowed<br>
><br>
> Hello,<br>
> I would need to acquire the sizes of actors in pixel on screen, is there<br>
> any method already present among classes to accomplish that?<br>
> Any alternate method you would suggest?<br>
> Thanks for cooperation<br>
> Regards<br>
><br>
> Paolo<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 14<br>
> Date: Thu, 18 Dec 2014 14:33:42 -0500<br>
> From: Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
> To: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] get tcoords from pointId<br>
> Message-ID:<br>
> <CAB5Fpx7sgcjx_4sc+=<br>
> <a href="mailto:aMj%2BBj7HBAHZjHYK5fg4H8bfAE6LETdg@mail.gmail.com">aMj+Bj7HBAHZjHYK5fg4H8bfAE6LETdg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=UTF-8<br>
><br>
> Hi Marco,<br>
><br>
> Texture coordinates are stored in an array in a vtkDataSet's<br>
> vtkPointData object. Say you have a vtkPolyData with texture<br>
> coordinates. To access it, you would do something like<br>
><br>
> vtkPointData* pd = polyData->GetPointData();<br>
> vtkDataArray* tcoords = pd->GetTCoords();<br>
><br>
> // Let's assume the tcoords are in a vtkFloatArray<br>
> vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);<br>
> if (floatTCoords)<br>
> {<br>
> float texCoord[3];<br>
> floatTcoords->GetTupleValue(pointId, texCoord);<br>
><br>
> // do something with texCoord<br>
> }<br>
><br>
> I hope that helps,<br>
> Cory<br>
><br>
> On Thu, Dec 18, 2014 at 1:58 PM, marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>> wrote:<br>
> > Hello,<br>
> > maybe it has been deprecated but I cannot find a method like<br>
> > GetTcoords(pointId)!<br>
> > Is there something similar in the library?<br>
> ><br>
> > Thank you<br>
> ><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the VTK FAQ at:<br>
> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
><br>
><br>
> --<br>
> Cory Quammen<br>
> R&D Engineer<br>
> Kitware, Inc.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 15<br>
> Date: Thu, 18 Dec 2014 14:38:46 -0500<br>
> From: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> To: Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
> Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] get tcoords from pointId<br>
> Message-ID: <<a href="mailto:54932D46.3010504@gmail.com">54932D46.3010504@gmail.com</a>><br>
> Content-Type: text/plain; charset=utf-8; format=flowed<br>
><br>
> Thank you<br>
><br>
><br>
> On 12/18/2014 02:33 PM, Cory Quammen wrote:<br>
> > Hi Marco,<br>
> ><br>
> > Texture coordinates are stored in an array in a vtkDataSet's<br>
> > vtkPointData object. Say you have a vtkPolyData with texture<br>
> > coordinates. To access it, you would do something like<br>
> ><br>
> > vtkPointData* pd = polyData->GetPointData();<br>
> > vtkDataArray* tcoords = pd->GetTCoords();<br>
> ><br>
> > // Let's assume the tcoords are in a vtkFloatArray<br>
> > vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);<br>
> > if (floatTCoords)<br>
> > {<br>
> > float texCoord[3];<br>
> > floatTcoords->GetTupleValue(pointId, texCoord);<br>
> ><br>
> > // do something with texCoord<br>
> > }<br>
> ><br>
> > I hope that helps,<br>
> > Cory<br>
> ><br>
> > On Thu, Dec 18, 2014 at 1:58 PM, marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>> wrote:<br>
> >> Hello,<br>
> >> maybe it has been deprecated but I cannot find a method like<br>
> >> GetTcoords(pointId)!<br>
> >> Is there something similar in the library?<br>
> >><br>
> >> Thank you<br>
> >><br>
> >> _______________________________________________<br>
> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> >><br>
> >> Visit other Kitware open-source projects at<br>
> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> >><br>
> >> Please keep messages on-topic and check the VTK FAQ at:<br>
> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> >><br>
> >> Follow this link to subscribe/unsubscribe:<br>
> >> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> ><br>
> ><br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 16<br>
> Date: Thu, 18 Dec 2014 16:09:41 -0500<br>
> From: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> To: Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
> Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] get tcoords from pointId<br>
> Message-ID: <<a href="mailto:54934295.4080009@gmail.com">54934295.4080009@gmail.com</a>><br>
> Content-Type: text/plain; charset=utf-8; format=flowed<br>
><br>
> Hello<br>
> I was able to retrieve the tcoords for my Points.<br>
> Now I'm trying to access the texture image to get the rgb value for that<br>
> location.<br>
> Is possible to use directly the tcoords to do that? or I have to compute<br>
> the pixel coordinate with a transformation?<br>
><br>
> Thank you for your help<br>
><br>
> Marco<br>
><br>
><br>
> On 12/18/2014 02:33 PM, Cory Quammen wrote:<br>
> > Hi Marco,<br>
> ><br>
> > Texture coordinates are stored in an array in a vtkDataSet's<br>
> > vtkPointData object. Say you have a vtkPolyData with texture<br>
> > coordinates. To access it, you would do something like<br>
> ><br>
> > vtkPointData* pd = polyData->GetPointData();<br>
> > vtkDataArray* tcoords = pd->GetTCoords();<br>
> ><br>
> > // Let's assume the tcoords are in a vtkFloatArray<br>
> > vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);<br>
> > if (floatTCoords)<br>
> > {<br>
> > float texCoord[3];<br>
> > floatTcoords->GetTupleValue(pointId, texCoord);<br>
> ><br>
> > // do something with texCoord<br>
> > }<br>
> ><br>
> > I hope that helps,<br>
> > Cory<br>
> ><br>
> > On Thu, Dec 18, 2014 at 1:58 PM, marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>> wrote:<br>
> >> Hello,<br>
> >> maybe it has been deprecated but I cannot find a method like<br>
> >> GetTcoords(pointId)!<br>
> >> Is there something similar in the library?<br>
> >><br>
> >> Thank you<br>
> >><br>
> >> _______________________________________________<br>
> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> >><br>
> >> Visit other Kitware open-source projects at<br>
> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> >><br>
> >> Please keep messages on-topic and check the VTK FAQ at:<br>
> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> >><br>
> >> Follow this link to subscribe/unsubscribe:<br>
> >> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> ><br>
> ><br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 17<br>
> Date: Thu, 18 Dec 2014 16:22:49 -0500<br>
> From: Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>><br>
> To: marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>><br>
> Cc: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] get tcoords from pointId<br>
> Message-ID:<br>
> <CAB5Fpx56_hocGNH-6S9Nv=<br>
> <a href="mailto:gDdAkhkD5vsqFNKQoy-6yQNjPNnA@mail.gmail.com">gDdAkhkD5vsqFNKQoy-6yQNjPNnA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=UTF-8<br>
><br>
> Marco,<br>
><br>
> I don't know of a class method that lets you look up the color given a<br>
> texture coordinate. I think you'll have to compute the pixel<br>
> coordinate, which shouldn't be too hard.<br>
><br>
> - Cory<br>
><br>
> On Thu, Dec 18, 2014 at 4:09 PM, marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>> wrote:<br>
> > Hello<br>
> > I was able to retrieve the tcoords for my Points.<br>
> > Now I'm trying to access the texture image to get the rgb value for that<br>
> > location.<br>
> > Is possible to use directly the tcoords to do that? or I have to compute<br>
> the<br>
> > pixel coordinate with a transformation?<br>
> ><br>
> > Thank you for your help<br>
> ><br>
> > Marco<br>
> ><br>
> ><br>
> > On 12/18/2014 02:33 PM, Cory Quammen wrote:<br>
> >><br>
> >> Hi Marco,<br>
> >><br>
> >> Texture coordinates are stored in an array in a vtkDataSet's<br>
> >> vtkPointData object. Say you have a vtkPolyData with texture<br>
> >> coordinates. To access it, you would do something like<br>
> >><br>
> >> vtkPointData* pd = polyData->GetPointData();<br>
> >> vtkDataArray* tcoords = pd->GetTCoords();<br>
> >><br>
> >> // Let's assume the tcoords are in a vtkFloatArray<br>
> >> vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);<br>
> >> if (floatTCoords)<br>
> >> {<br>
> >> float texCoord[3];<br>
> >> floatTcoords->GetTupleValue(pointId, texCoord);<br>
> >><br>
> >> // do something with texCoord<br>
> >> }<br>
> >><br>
> >> I hope that helps,<br>
> >> Cory<br>
> >><br>
> >> On Thu, Dec 18, 2014 at 1:58 PM, marco <<a href="mailto:piccima@gmail.com">piccima@gmail.com</a>> wrote:<br>
> >>><br>
> >>> Hello,<br>
> >>> maybe it has been deprecated but I cannot find a method like<br>
> >>> GetTcoords(pointId)!<br>
> >>> Is there something similar in the library?<br>
> >>><br>
> >>> Thank you<br>
> >>><br>
> >>> _______________________________________________<br>
> >>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> >>><br>
> >>> Visit other Kitware open-source projects at<br>
> >>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> >>><br>
> >>> Please keep messages on-topic and check the VTK FAQ at:<br>
> >>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> >>><br>
> >>> Follow this link to subscribe/unsubscribe:<br>
> >>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> >><br>
> >><br>
> >><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Cory Quammen<br>
> R&D Engineer<br>
> Kitware, Inc.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 18<br>
> Date: Fri, 19 Dec 2014 09:50:07 +0100<br>
> From: Jon Haitz Legarreta <<a href="mailto:jhlegarreta@vicomtech.org">jhlegarreta@vicomtech.org</a>><br>
> To: "<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] [VTK] Creating an OS X bundle for a VTK<br>
> example using Qt<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:CAAKhGh8gnoms1XM28pnHGiCtZpzD3Jj8gpk4jUP2mx-m1B-%2Bxw@mail.gmail.com">CAAKhGh8gnoms1XM28pnHGiCtZpzD3Jj8gpk4jUP2mx-m1B-+xw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi there,<br>
> looks like the problem was unrelated to VTK or Qt themselves, but to the<br>
> way we were trying to create the OS X bundle through our CMakeLists.<br>
><br>
> Attached is a CMakeLists that should solve the issue.<br>
><br>
> Please note that you will need to change the {VTK_BIN_PATH} for the<br>
> location where your VTK binaries reside, for example<br>
> /Users/your_username/Development/Binaries/VTK6/bin<br>
><br>
> HTH,<br>
> JON HAITZ<br>
><br>
><br>
><br>
> On 15 December 2014 at 12:18, Jon Haitz Legarreta <<br>
> <a href="mailto:jhlegarreta@vicomtech.org">jhlegarreta@vicomtech.org</a><br>
> > wrote:<br>
> ><br>
> > Hi there,<br>
> > we are having some trouble when trying to create an OS X bundle of an<br>
> > imaging software of our own that uses ITK, VTK and Qt.<br>
> ><br>
> > We are using VTK 6.1.0 and Qt 5.3.2. And our OS X is Yosemite (10.10).<br>
> ><br>
> > In order to track the problem down, we tried to generate such a bundle<br>
> for<br>
> > one of the examples of VTK that uses Qt: QtVTKRenderWindows.<br>
> ><br>
> > The modified CMakeLists.txt is attached.<br>
> ><br>
> > We found that there seems to be a bug filed in kitware's CMake project in<br>
> > mantis [1]. It dates back to 2013. It seems to be still open.<br>
> ><br>
> > I am posting below the errors we get when trying to run our *.app just in<br>
> > case they are of any help.<br>
> ><br>
> ><br>
> > Is this a problem strictly related to CMake, or either VTK or either Qt<br>
> > for OS X platforms?<br>
> ><br>
> ><br>
> > Does anybody know how to solve this issue?<br>
> ><br>
> ><br>
> > Thank you,<br>
> > JON HAITZ<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > [1] <a href="http://public.kitware.com/Bug/view.php?id=14365" target="_blank">http://public.kitware.com/Bug/view.php?id=14365</a><br>
> ><br>
> > [-] Error trace:<br>
> ><br>
> > When executing the *.app, the application crashes, and OS X's crash<br>
> report<br>
> > shows this message (this is just the beginning):<br>
> ><br>
> > Process: QtVTKRenderWindows [17872]<br>
> > Path:<br>
> ><br>
> /Users/USER/Desktop/QtVTKRenderWindows.app/Contents/MacOS/QtVTKRenderWindows<br>
> > Identifier: QtVTKRenderWindows<br>
> > Version: ??? (???)<br>
> > Code Type: X86-64 (Native)<br>
> > Parent Process: ??? [1]<br>
> > Responsible: QtVTKRenderWindows [17872]<br>
> > User ID: 501<br>
> > Date/Time: 2014-12-15 10:30:23.381 +0100<br>
> > OS Version: Mac OS X 10.10.1 (14B25)<br>
> > Report Version: 11<br>
> > Anonymous UUID: E9092016-A746-70A3-34F4-DC5791286273<br>
> > Sleep/Wake UUID: BAEA81DE-427D-44D8-BA6D-0189EBDA3FFD<br>
> > Time Awake Since Boot: 42000 seconds<br>
> > Time Since Wake: 5500 seconds<br>
> > Crashed Thread: 0 Dispatch queue: com.apple.main-thread<br>
> > Exception Type: EXC_CRASH (SIGABRT)<br>
> > Exception Codes: 0x0000000000000000, 0x0000000000000000<br>
> > Application Specific Information:<br>
> > abort() called<br>
> > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread<br>
> > 0 libsystem_kernel.dylib 0x00007fff89fc9282 __pthread_kill +<br>
> > 10<br>
> > 1 libsystem_c.dylib 0x00007fff8f9bab73 abort + 129<br>
> > 2 QtCore 0x00000001084a6649<br>
> > qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) +<br>
> 9<br>
> > 3 QtCore 0x00000001084a7af1<br>
> > QMessageLogger::fatal(char const*, ...) const + 161<br>
> > 4 QtGui 0x0000000108ade948<br>
> > QGuiApplicationPrivate::createPlatformIntegration() + 5672<br>
> > 5 QtGui 0x0000000108ade96b<br>
> > QGuiApplicationPrivate::createEventDispatcher() + 27<br>
> > 6 QtCore 0x00000001086ccc41<br>
> > QCoreApplication::init() + 113<br>
> > 7 QtCore 0x00000001086ccbb7<br>
> > QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) + 39<br>
> > 8 QtGui 0x0000000108adc08e<br>
> > QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) + 14<br>
> > 9 QtWidgets 0x0000000109085aae<br>
> > QApplication::QApplication(int&, char**, int) + 206<br>
> > 10 0x0000000106c06c2c main + 60<br>
> > 11 libdyld.dylib 0x00007fff948c85c9 start + 1<br>
> ><br>
> ><br>
> ><br>
> > If we try to execute the *.app from the command line, the error displayed<br>
> > reads:<br>
> ><br>
> > MAC0001-D:Desktop usuario$ open QtVTKRenderWindows.app<br>
> > LSOpenURLsWithRole() failed with error -10810 for the file<br>
> > /Users/usuario/Desktop/QtVTKRenderWindows.app.<br>
> > MAC0001-D:Desktop usuario$<br>
> > QtVTKRenderWindows.app/Contents/MacOS/QtVTKRenderWindows<br>
> > This application failed to start because it could not find or load the Qt<br>
> > platform plugin "cocoa".<br>
> ><br>
> > Reinstalling the application may fix this problem.<br>
> > Abort trap: 6<br>
> ><br>
> ><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141219/b25d0435/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141219/b25d0435/attachment-0001.html</a><br>
> ><br>
> -------------- next part --------------<br>
> project(QtVTKRenderWindows)<br>
><br>
> cmake_minimum_required(VERSION 2.6)<br>
><br>
> if(POLICY CMP0020)<br>
> cmake_policy(SET CMP0020 NEW)<br>
> endif()<br>
><br>
> find_package(VTK COMPONENTS<br>
> vtkCommonCore<br>
> vtkFiltersSources<br>
> vtkGUISupportQt<br>
> vtkIOImage<br>
> vtkInteractionImage<br>
> )<br>
> include(${VTK_USE_FILE})<br>
><br>
><br>
> if("${VTK_QT_VERSION}" STREQUAL "")<br>
> message(FATAL_ERROR "VTK was not built with Qt")<br>
> endif()<br>
><br>
> # Set your files and resources here<br>
> set( Srcs QtVTKRenderWindowsApp.cxx QtVTKRenderWindows.cxx)<br>
><br>
> set( Hdrs QtVTKRenderWindows.h )<br>
><br>
> set( MOC_Hdrs QtVTKRenderWindows.h )<br>
><br>
> set( UIs QtVTKRenderWindows.ui )<br>
><br>
> include_directories(<br>
> ${CMAKE_CURRENT_BINARY_DIR}<br>
> ${CMAKE_CURRENT_SOURCE_DIR}<br>
> )<br>
><br>
> # Instruct CMake to run moc automatically when needed.<br>
> set(CMAKE_AUTOMOC ON)<br>
><br>
> INCLUDE(BundleUtilities)<br>
> if(VTK_QT_VERSION VERSION_GREATER "4")<br>
> find_package(Qt5Widgets REQUIRED QUIET)<br>
> qt5_wrap_ui(UI_Srcs ${UIs})<br>
><br>
> # CMAKE_AUTOMOC in ON so the MocHdrs will be automatically wrapped.<br>
> add_executable(QtVTKRenderWindows MACOSX_BUNDLE ${Srcs} ${Hdrs}<br>
> ${UI_Srcs} ${MOC_Hdrs})<br>
> qt5_use_modules(QtVTKRenderWindows Core Gui Widgets)<br>
> target_link_libraries(QtVTKRenderWindows ${VTK_LIBRARIES})<br>
> else()<br>
> find_package(Qt4 REQUIRED)<br>
> include(${QT_USE_FILE})<br>
> # Use what VTK built with<br>
> set(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "")<br>
> set(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "")<br>
> set(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "")<br>
> qt4_wrap_ui(UI_Srcs ${UIs})<br>
><br>
> add_executable(QtVTKRenderWindows ${Srcs} ${Hdrs} ${UI_Srcs} ${MOC_Hdrs})<br>
> target_link_libraries(QtVTKRenderWindows ${QT_LIBRARIES}<br>
> ${VTK_LIBRARIES})<br>
> endif()<br>
><br>
> SET(QT_PLUGINS_DIR ${_qt5Gui_install_prefix}/plugins)<br>
> MESSAGE(WARNING "QT_PLUGINS_DIR:${QT_PLUGINS_DIR}")<br>
> SET(QTPLUGINS<br>
> "{VTK_BIN_PATH}/QtVTKRenderWindows.app/Contents/PlugIns/platforms/libqcocoa.dylib;{VTK_BIN_PATH}/QtVTKRenderWindows.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib;{VTK_BIN_PATH}/QtVTKRenderWindows.app/Contents/PlugIns/accessible/libqtaccessiblequick.dylib")<br>
> MESSAGE(WARNING "QTPLUGINS:${QTPLUGINS}")<br>
> SET(QT_ADDITIONAL_PLUGINS ${QTPLUGINS})<br>
> MESSAGE(WARNING "QT_ADDITIONAL_PLUGINS:${QT_ADDITIONAL_PLUGINS}")<br>
><br>
><br>
> ADD_CUSTOM_COMMAND(TARGET QtVTKRenderWindows<br>
> POST_BUILD<br>
> COMMAND /usr/local/Cellar/qt5/5.3.2/bin/macdeployqt ARGS<br>
> {VTK_BIN_PATH}/QtVTKRenderWindows.app<br>
> )<br>
> SET(BU_CHMOD_BUNDLE_ITEMS TRUE)<br>
> FIXUP_BUNDLE({VTK_BIN_PATH}/QtVTKRenderWindows.app ""<br>
> "${QT_INSTALL_PREFIX}/bin")<br>
> VERIFY_BUNDLE_PREREQUISITES({VTK_BIN_PATH}/QtVTKRenderWindows.app<br>
> QtVTKRenderWindows_BUNDLE_PREREQUISITES<br>
> QtVTKRenderWindows_BUNDLE_PREREQUISITES_INFO)<br>
> MESSAGE(WARNING<br>
> "QtVTKRenderWindows_BUNDLE_PREREQUISITES:${QtVTKRenderWindows_BUNDLE_PREREQUISITES}(${QtVTKRenderWindows_BUNDLE_PREREQUISITES_INFO})")<br>
><br>
> ------------------------------<br>
><br>
> Message: 19<br>
> Date: Fri, 19 Dec 2014 15:12:52 +0000 (UTC)<br>
> From: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> To: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: [vtkusers] Clearing vtkPlot object<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:80443368.768348.1419001972624.JavaMail.yahoo@jws100192.mail.ne1.yahoo.com">80443368.768348.1419001972624.JavaMail.yahoo@jws100192.mail.ne1.yahoo.com</a>><br>
><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi all,<br>
> Yesterday I started exploring the options to draw 2d graphs in VTK.<br>
><br>
> Why does<br>
> m_pChart->GetPlot(0)->SetInputData(0);<br>
> not remove the graph from my chart?<br>
><br>
> I am currently using<br>
> vtkTable* table = m_pChart->GetPlot(0)->GetInput();if( 0 != table ){???<br>
> while( 0? < table->GetNumberOfRows() )??? {???????<br>
> table->RemoveRow(0);????}}<br>
> m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!<br>
> This works, but complains about trying to draw a line with less than 2<br>
> points.<br>
> Thanks - Maarten<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141219/7016213a/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141219/7016213a/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 20<br>
> Date: Fri, 19 Dec 2014 10:48:41 -0500<br>
> From: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
> To: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Clearing vtkPlot object<br>
> Message-ID:<br>
> <CAMkPkZWt+Z6mZQkc=<br>
> <a href="mailto:ne_YEf7kDdG92erzcxncxgsUpcXpHh40Q@mail.gmail.com">ne_YEf7kDdG92erzcxncxgsUpcXpHh40Q@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=UTF-8<br>
><br>
> On Fri, Dec 19, 2014 at 10:12 AM, Maarten Beek via vtkusers<br>
> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
> > Hi all,<br>
> ><br>
> > Yesterday I started exploring the options to draw 2d graphs in VTK.<br>
> ><br>
> > Why does<br>
> ><br>
> > m_pChart->GetPlot(0)->SetInputData(0);<br>
> ><br>
> > not remove the graph from my chart?<br>
> ><br>
> That isn't how the API was designed, you can call remove for a plot,<br>
> or clear all plots.<br>
> ><br>
> > I am currently using<br>
> > vtkTable* table = m_pChart->GetPlot(0)->GetInput();<br>
> > if( 0 != table )<br>
> > {<br>
> > while( 0 < table->GetNumberOfRows() )<br>
> > {<br>
> > table->RemoveRow(0);<br>
> > }<br>
> > }<br>
> ><br>
> > m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!<br>
> ><br>
> Unless the data is marked as modified then the plot is cached, and it<br>
> would be slow to rebuild on every render. This is pretty common in the<br>
> VTK API, if an object is not marked as modified it is not surprising.<br>
> I guess you might expect SetInputData on the plot to mark that as<br>
> modified, which could be a bug in that method.<br>
><br>
> Hope that makes it clearer, it has been a while since I went through<br>
> all of this logic, and it is possible we still have one or two bugs<br>
> lurking in there.<br>
><br>
> Marcus<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 21<br>
> Date: Fri, 19 Dec 2014 16:17:00 +0000 (UTC)<br>
> From: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> To: "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Clearing vtkPlot object<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:458881052.783681.1419005820937.JavaMail.yahoo@jws100193.mail.ne1.yahoo.com">458881052.783681.1419005820937.JavaMail.yahoo@jws100193.mail.ne1.yahoo.com</a><br>
> ><br>
><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> In the debugger, I followed the call<br>
> m_pChart->GetPlot(0)->SetInputData(0);<br>
> all the way into vtkContextMapper2D::SetInputConnection()? and it seems to<br>
> invoke the calls inputs->SetNumberOfInformationObjects(0); and<br>
> this->Modified().<br>
> So although Modified() is called when the input is removed, I think the<br>
> scene is not re-rendered (I don't get a warning re. a mapper w/o input<br>
> either (what other mappers do)).<br>
> Turning the visibility on/off using SetVisible() works fine. But I find it<br>
> weird that the data is still dangling.(I don't want to remove the plot,<br>
> because that would mean I'll have to keep track of all the plot ids.)<br>
> So I think my problem is gone, as long as I don't try to understand what<br>
> is going on. ;-)<br>
> Maarten<br>
><br>
><br>
><br>
> On Friday, December 19, 2014 10:48 AM, Marcus D. Hanwell <<br>
> <a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
><br>
><br>
> On Fri, Dec 19, 2014 at 10:12 AM, Maarten Beek via vtkusers<br>
> <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
> > Hi all,<br>
> ><br>
> > Yesterday I started exploring the options to draw 2d graphs in VTK.<br>
> ><br>
> > Why does<br>
> ><br>
> > m_pChart->GetPlot(0)->SetInputData(0);<br>
> ><br>
> > not remove the graph from my chart?<br>
> ><br>
> That isn't how the API was designed, you can call remove for a plot,<br>
> or clear all plots.<br>
> ><br>
> > I am currently using<br>
> > vtkTable* table = m_pChart->GetPlot(0)->GetInput();<br>
> > if( 0 != table )<br>
> > {<br>
> >? ? while( 0? < table->GetNumberOfRows() )<br>
> >? ? {<br>
> >? ? ? ? table->RemoveRow(0);<br>
> >? ? }<br>
> > }<br>
> ><br>
> > m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!<br>
> ><br>
> Unless the data is marked as modified then the plot is cached, and it<br>
> would be slow to rebuild on every render. This is pretty common in the<br>
> VTK API, if an object is not marked as modified it is not surprising.<br>
> I guess you might expect SetInputData on the plot to mark that as<br>
> modified, which could be a bug in that method.<br>
><br>
> Hope that makes it clearer, it has been a while since I went through<br>
> all of this logic, and it is possible we still have one or two bugs<br>
> lurking in there.<br>
><br>
> Marcus<br>
><br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141219/bdcd33f1/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141219/bdcd33f1/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 22<br>
> Date: Fri, 19 Dec 2014 14:15:48 -0700 (MST)<br>
> From: updega2 <<a href="mailto:updega2@berkeley.edu">updega2@berkeley.edu</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: [vtkusers] Issues with VTK Delaunay 2D for simple cases<br>
> Message-ID: <<a href="mailto:1419023748672-5729928.post@n5.nabble.com">1419023748672-5729928.post@n5.nabble.com</a>><br>
> Content-Type: text/plain; charset=us-ascii<br>
><br>
> Hi,<br>
><br>
> I am using vtkDelaunay2D for triangulation of cells in 3D based on lines<br>
> and<br>
> points. Each one of the cells prior to triangulation has the boundary of a<br>
> triangle. Obviously, there are other points and lines given within the<br>
> triangle boundary, so there is something for the algorithm to triangulate.<br>
> Here are few bullet points describing what I am doing.<br>
><br>
> 1. I use a transform to transform each cell to the xy plane prior to<br>
> running<br>
> vtkDelaunay2D<br>
><br>
> 2. Each cell has a triangular boundary, but there are other lines/points<br>
> within the boundary<br>
><br>
> 3. I am doing a constrained delaunay (i.e. I am providing the triangular<br>
> boundary, so that cells can not be added outside the cell boundary)<br>
><br>
> This is working well besides what seems to be the easiest triangulations.<br>
> By<br>
> easiest, I mean that the cell to be retriangulated lies in the xy plane, zx<br>
> plane, or yz plane prior to the transformation. Something interesting to<br>
> note, is if I take the transformed cell to be triangulated and I restrict<br>
> the precision of the points in the cell to 6 or 7 digits, the triangulation<br>
> works for any input cell. However, I don't want to have to restrict the<br>
> precision of the cell points, as that may cause issues later.<br>
><br>
> I was wondering if anyone has ever seen similar issues, or if anyone has<br>
> any<br>
> insight into this?<br>
><br>
> Thanks in advance,<br>
><br>
> Adam<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/Issues-with-VTK-Delaunay-2D-for-simple-cases-tp5729928.html" target="_blank">http://vtk.1045678.n5.nabble.com/Issues-with-VTK-Delaunay-2D-for-simple-cases-tp5729928.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 23<br>
> Date: Fri, 19 Dec 2014 14:50:01 -0800<br>
> From: J?lio Hoffimann <<a href="mailto:julio.hoffimann@gmail.com">julio.hoffimann@gmail.com</a>><br>
> To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Axes marker not working as expected<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:CAFRVdT8CaRRoWOYczrk6%2B-3mtfcqwsbhF0bue-%2BzR13yMU9dwg@mail.gmail.com">CAFRVdT8CaRRoWOYczrk6+-3mtfcqwsbhF0bue-+zR13yMU9dwg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Can anyone confirm QVTKWidget is not intended to be used as a local<br>
> variable (see code bellow)?<br>
><br>
> I'm getting a runtime error whenever the mouse cursor moves over the<br>
> QVTKWidget window.<br>
><br>
> -J?lio<br>
><br>
><br>
> >> > VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent)<br>
> >> > {<br>
> >> > QVTKWidget *qvtkwidget = new QVTKWidget;<br>
> >> ><br>
> >> > auto axes = vtkSmartPointer<vtkAxesActor>::New();<br>
> >> > axes->SetXAxisLabelText("x");<br>
> >> > axes->SetYAxisLabelText("y");<br>
> >> > axes->SetZAxisLabelText("z");<br>
> >> ><br>
> >> > auto orientationMarker =<br>
> >> > vtkSmartPointer<vtkOrientationMarkerWidget>::New();<br>
> >> > orientationMarker->SetInteractor(qvtkwidget->GetInteractor());<br>
> >> > orientationMarker->SetOrientationMarker(axes);<br>
> >> > orientationMarker->SetEnabled(1);<br>
> >> ><br>
> >> > // sphere<br>
> >> > auto sphereSource = vtkSmartPointer<vtkSphereSource>::New();<br>
> >> > sphereSource->SetCenter(8, 8, 8);<br>
> >> > sphereSource->SetRadius(5.0);<br>
> >> > auto mapper = vtkSmartPointer<vtkPolyDataMapper>::New();<br>
> >> > mapper->SetInputConnection(sphereSource->GetOutputPort());<br>
> >> > auto actor = vtkSmartPointer<vtkActor>::New();<br>
> >> > actor->SetMapper(mapper);<br>
> >> ><br>
> >> > auto renderer = vtkSmartPointer<vtkRenderer>::New();<br>
> >> > renderer->AddActor(axes);<br>
> >> > renderer->AddActor(actor);<br>
> >> ><br>
> >> > vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();<br>
> >> > renderWindow->AddRenderer(renderer);<br>
> >> > }<br>
> >><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141219/feb6d740/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141219/feb6d740/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 24<br>
> Date: Fri, 19 Dec 2014 14:51:00 -0800<br>
> From: J?lio Hoffimann <<a href="mailto:julio.hoffimann@gmail.com">julio.hoffimann@gmail.com</a>><br>
> To: Sean McBride <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] vtkTypeMacro warning<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:CAFRVdT9PvBmRFqgMH_jkJc4se_TQ1EOWA%2B4DdQuhkmKimtjOMg@mail.gmail.com">CAFRVdT9PvBmRFqgMH_jkJc4se_TQ1EOWA+4DdQuhkmKimtjOMg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi Sean,<br>
><br>
> Did you solved this issue?<br>
><br>
> -J?lio<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141219/f1d9fa52/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141219/f1d9fa52/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 25<br>
> Date: Sat, 20 Dec 2014 21:34:05 +0800<br>
> From: cvinllen <<a href="mailto:cvinllen@gmail.com">cvinllen@gmail.com</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: [vtkusers] How to read a dicom and display in the in the<br>
> windows<br>
> Message-ID: <<a href="mailto:54957ACD.1060601@gmail.com">54957ACD.1060601@gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
><br>
> Hello:<br>
> I use vtk 4 before, last week, i install vtk 6, it's looks like<br>
> some class and function changed. I write a simple code, read dicom and<br>
> display, it's can run success before i update the vtk to 6:<br>
><br>
> //read dicom<br>
> vtkDICOMImageReader *reader = vtkDICOMImageReader::New();<br>
> reader->SetDataByteOrderToLittleEndian();<br>
> reader->SetDirectoryName(path.c_str());<br>
> reader->SetDataOrigin(0.0, 0.0, 0.0);<br>
><br>
> //store in the vtkImageData<br>
> vtkSmartPointer<vtkImageData> imageData =<br>
> vtkSmartPointer<vtkImageData>::New();<br>
> imageData = reader->GetOutput();<br>
><br>
> //i think here has problem, because gdb show bug here<br>
> vtkImageCast *cast = vtkImageCast::New();<br>
> cast->SetInputData(imageData);<br>
> cast->ClampOverflowOn();<br>
> cast->SetOutputScalarTypeToUnsignedShort();<br>
><br>
> vtkPiecewiseFunction *opacityTransferFunction =<br>
> vtkPiecewiseFunction::New();<br>
> opacityTransferFunction->RemoveAllPoints();<br>
> opacityTransferFunction->AddPoint(0, 0.0);<br>
> opacityTransferFunction->AddPoint(255, 1);<br>
><br>
> vtkColorTransferFunction *colorTransferFunction =<br>
> vtkColorTransferFunction::New();<br>
> colorTransferFunction->RemoveAllPoints();<br>
> colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0);<br>
> colorTransferFunction->AddRGBPoint(255, 1.0, 1.0, 1.0);<br>
><br>
> vtkVolumeProperty *volumeProperty = vtkVolumeProperty::New();<br>
> volumeProperty->SetColor(colorTransferFunction);<br>
> volumeProperty->SetScalarOpacity(opacityTransferFunction);<br>
> volumeProperty->ShadeOn();<br>
> volumeProperty->SetInterpolationTypeToLinear();<br>
><br>
> vtkVolumeRayCastCompositeFunction *compositeFunction =<br>
> vtkVolumeRayCastCompositeFunction::New();<br>
> vtkVolumeRayCastMapper *volumeMapper = vtkVolumeRayCastMapper::New();<br>
> volumeMapper->SetVolumeRayCastFunction(compositeFunction);<br>
> volumeMapper->SetInputData(cast->GetOutput());<br>
><br>
> vtkVolume *volume = vtkVolume::New();<br>
> volume->SetMapper(volumeMapper);<br>
> volume->SetProperty(volumeProperty);<br>
><br>
> vtkCamera *aCamera = vtkCamera::New();<br>
> aCamera->SetViewUp (0, 0, -1);<br>
> aCamera->SetPosition (0, 1, 0);<br>
> aCamera->SetFocalPoint (0, 0, 0);<br>
> aCamera->ComputeViewPlaneNormal();<br>
> aCamera->Dolly(1.0);<br>
><br>
> vtkRenderer *renderer = vtkRenderer::New();<br>
> renderer->RemoveAllViewProps();<br>
> renderer->AddVolume(volume);<br>
> renderer->SetActiveCamera(aCamera);<br>
> renderer->SetBackground( 0,0,0 );<br>
> renderer->ResetCamera ();<br>
> //renderer->Render();<br>
><br>
> vtkRenderWindow *renWin = vtkRenderWindow::New();<br>
> renWin->AddRenderer(renderer);<br>
> renWin->SetSize(500, 500);<br>
> renWin->Start();<br>
> renWin->Render(); // gdb show the bug occur<br>
><br>
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br>
> iren->SetRenderWindow(renWin);<br>
> iren->Initialize();<br>
> iren->Start();<br>
><br>
> _the gdb show:_<br>
> [New Thread 0x7fffe1385700 (LWP 4012)]<br>
> [Thread 0x7fffe1385700 (LWP 4012) exited]<br>
> [New Thread 0x7fffe1385700 (LWP 4013)]<br>
> [Thread 0x7fffe1385700 (LWP 4013) exited]<br>
> [New Thread 0x7fffe1385700 (LWP 4014)]<br>
> [Thread 0x7fffe1385700 (LWP 4014) exited]<br>
><br>
> X Error of failed request: BadMatch (invalid parameter attributes)<br>
> Major opcode of failed request: 156 (GLX)<br>
> Minor opcode of failed request: 11 (X_GLXSwapBuffers)<br>
> Serial number of failed request: 687<br>
> Current serial number in output stream: 687<br>
> [Inferior 1 (process 4006) exited with code 01]<br>
><br>
><br>
><br>
> I dont kown what the difference between the vtk 6 and vtk 4, greate<br>
> appreciates for anyone's reply!<br>
><br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141220/8b16a776/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141220/8b16a776/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 26<br>
> Date: Sun, 21 Dec 2014 18:45:48 -0800<br>
> From: J?lio Hoffimann <<a href="mailto:julio.hoffimann@gmail.com">julio.hoffimann@gmail.com</a>><br>
> To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> Cc: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: Re: [vtkusers] Axes marker not working as expected<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:CAFRVdT_Vm7tEvjubKHSHEGiTrDdmdasLK927hrog3V9Tmdrdsw@mail.gmail.com">CAFRVdT_Vm7tEvjubKHSHEGiTrDdmdasLK927hrog3V9Tmdrdsw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> I recompiled VTK in debug mode and the vtkOrientationMarkerWidget segfaults<br>
> in line 350 of vtkOrientationMarkerWidget.cxx (see screenshot).<br>
><br>
> I'm using VTK 6.2 from Git, Qt5, GCC 4.9, C++14. The current code that is<br>
> causing the segfault is:<br>
><br>
> VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent){<br>
> QVTKWidget *qvtkwidget = new QVTKWidget;<br>
> qvtkwidget->setSizePolicy(QSizePolicy::MinimumExpanding,<br>
> QSizePolicy::MinimumExpanding);<br>
><br>
> auto renderer = vtkSmartPointer<vtkRenderer>::New();<br>
><br>
> vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();<br>
> renderWindow->AddRenderer(renderer);<br>
><br>
> auto axes = vtkSmartPointer<vtkAxesActor>::New();<br>
> axes->SetXAxisLabelText("x");<br>
> axes->SetYAxisLabelText("y");<br>
> axes->SetZAxisLabelText("z");<br>
><br>
> auto orientationMarker =<br>
> vtkSmartPointer<vtkOrientationMarkerWidget>::New();<br>
> orientationMarker->SetInteractor(qvtkwidget->GetInteractor());<br>
> orientationMarker->SetOrientationMarker(axes);<br>
> orientationMarker->SetEnabled(1);}<br>
><br>
> Could you please tell me why this implementation is failing?<br>
><br>
> Appreciate any help,<br>
> J?lio.<br>
><br>
> 2014-12-19 14:50 GMT-08:00 J?lio Hoffimann <<a href="mailto:julio.hoffimann@gmail.com">julio.hoffimann@gmail.com</a>>:<br>
><br>
> > Can anyone confirm QVTKWidget is not intended to be used as a local<br>
> > variable (see code bellow)?<br>
> ><br>
> > I'm getting a runtime error whenever the mouse cursor moves over the<br>
> > QVTKWidget window.<br>
> ><br>
> > -J?lio<br>
> ><br>
> ><br>
> >>> > VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent)<br>
> >>> > {<br>
> >>> > QVTKWidget *qvtkwidget = new QVTKWidget;<br>
> >>> ><br>
> >>> > auto axes = vtkSmartPointer<vtkAxesActor>::New();<br>
> >>> > axes->SetXAxisLabelText("x");<br>
> >>> > axes->SetYAxisLabelText("y");<br>
> >>> > axes->SetZAxisLabelText("z");<br>
> >>> ><br>
> >>> > auto orientationMarker =<br>
> >>> > vtkSmartPointer<vtkOrientationMarkerWidget>::New();<br>
> >>> > orientationMarker->SetInteractor(qvtkwidget->GetInteractor());<br>
> >>> > orientationMarker->SetOrientationMarker(axes);<br>
> >>> > orientationMarker->SetEnabled(1);<br>
> >>> ><br>
> >>> > // sphere<br>
> >>> > auto sphereSource = vtkSmartPointer<vtkSphereSource>::New();<br>
> >>> > sphereSource->SetCenter(8, 8, 8);<br>
> >>> > sphereSource->SetRadius(5.0);<br>
> >>> > auto mapper = vtkSmartPointer<vtkPolyDataMapper>::New();<br>
> >>> > mapper->SetInputConnection(sphereSource->GetOutputPort());<br>
> >>> > auto actor = vtkSmartPointer<vtkActor>::New();<br>
> >>> > actor->SetMapper(mapper);<br>
> >>> ><br>
> >>> > auto renderer = vtkSmartPointer<vtkRenderer>::New();<br>
> >>> > renderer->AddActor(axes);<br>
> >>> > renderer->AddActor(actor);<br>
> >>> ><br>
> >>> > vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();<br>
> >>> > renderWindow->AddRenderer(renderer);<br>
> >>> > }<br>
> >>><br>
> >><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141221/d5f6720a/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141221/d5f6720a/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 27<br>
> Date: Mon, 22 Dec 2014 13:02:49 +0100<br>
> From: Jean-Luc Szpyrka <<a href="mailto:Jean-Luc.Szpyrka@inria.fr">Jean-Luc.Szpyrka@inria.fr</a>><br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: [vtkusers] no crystal eye (quand_buffer) stereo with Qt5 /<br>
> VTK 6.1 / Nvidia<br>
> Message-ID: <<a href="mailto:638120AD-2199-4987-9A5B-6DD8E7767442@inria.fr">638120AD-2199-4987-9A5B-6DD8E7767442@inria.fr</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi all,<br>
><br>
> I am dealing with stereo rendering pb on VTK6 and Qt5.<br>
><br>
> The attached code sample correctly displays stereo rendering<br>
> (quad_buffer/crystal eyes, but also other stereo types e.g<br>
> horizontal_split<br>
> or anaglyph) when compiled with QT4. It works with VTK6.0 and VTK6.1<br>
><br>
> The same code compiled with QT5 (5.3) and VTK6.1 does not render<br>
> quad_buffer stereo (anaglyph and horizontal_split stereo are OK).<br>
><br>
> The host runs FedoraCore20, with the distrib version of Nvidia drivers<br>
> (331-39-2). Both binaries are linked with the same opengl dirvers.<br>
><br>
> It is a known issue with quand_buffer rendering with VTK6.1 and QT5?<br>
> Or?. what did I wrong ?<br>
><br>
> Here is the code:<br>
><br>
> --<br>
> <a href="mailto:Jean-luc.Szpyrka@inria.fr">Jean-luc.Szpyrka@inria.fr</a> <mailto:<a href="mailto:Jean-luc.Szpyrka@inria.fr">Jean-luc.Szpyrka@inria.fr</a>><br>
> Tel: (33/0) 4 92 38 79 69<br>
> INRIA - 2004 route des lucioles - BP 93 - 06902 SOPHIA-ANTIPOLIS cedex<br>
> (France)<br>
><br>
><br>
><br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0002.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0002.html</a><br>
> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: RenderWindowNoUiFile.cxx<br>
> Type: application/octet-stream<br>
> Size: 3167 bytes<br>
> Desc: not available<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0001.obj" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0001.obj</a><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0003.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0003.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 28<br>
> Date: Mon, 22 Dec 2014 15:07:54 +0000 (UTC)<br>
> From: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> To: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: [vtkusers] Bug in vtkContextInteractorStyle?<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:2060571987.116971.1419260874413.JavaMail.yahoo@jws100162.mail.ne1.yahoo.com">2060571987.116971.1419260874413.JavaMail.yahoo@jws100162.mail.ne1.yahoo.com</a><br>
> ><br>
><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi all,<br>
> I happened to be looking at the source of the vtkContextInteractorStyle<br>
> class.<br>
> In the OnKeyPress() and OnKeyRelease() functions I see the folowwing:<br>
> vtkVector2i<br>
> position(this->Interactor->GetEventPosition()[0],???????????????????????????????<br>
> this->Interactor->GetEventPosition()[0]);<br>
> which to me looks wrong.<br>
> Not sure whether one of the vtk developers has already been made aware of<br>
> this.<br>
><br>
> Maarten<br>
> ?<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/4b299789/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/4b299789/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 29<br>
> Date: Mon, 22 Dec 2014 17:49:16 +0000 (UTC)<br>
> From: Maarten Beek <<a href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>><br>
> To: VTK Users <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
> Subject: [vtkusers] How to select a VtkPlot object in a vtkChart?<br>
> Message-ID:<br>
> <<br>
> <a href="mailto:682874823.161846.1419270556334.JavaMail.yahoo@jws100171.mail.ne1.yahoo.com">682874823.161846.1419270556334.JavaMail.yahoo@jws100171.mail.ne1.yahoo.com</a><br>
> ><br>
><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi all,<br>
> I would like to know how I would select a vtkPlot (better: vtkPlotLine)<br>
> object in a vtkChart (better: vtkChartXY)?<br>
> I get the impression that only points can be selected in a<br>
> vtkContextScene. However, I have two vertical lines each with two (bottom<br>
> and top) points, to indicate a (threshold) range, and that I would like to<br>
> move left and right with my mouse.Would this be possible (or should I go<br>
> back to something like QCustomPlot)?<br>
><br>
> Thanks - Maarten<br>
> ?<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/bde205cd/attachment.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/bde205cd/attachment.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Subject: Digest Footer<br>
><br>
> _______________________________________________<br>
> vtkusers mailing list<br>
> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> End of vtkusers Digest, Vol 128, Issue 9<br>
> ****************************************<br>
><br>
<br>
<br>
<br>
--<br>
"There is plenty of room at the bottom!" R. Feynman<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141222/f587450d/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141222/f587450d/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 23 Dec 2014 14:22:43 -0200<br>
From: Lizeth Castellanos <<a href="mailto:castellanoslizan@gmail.com">castellanoslizan@gmail.com</a>><br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: [vtkusers] Error in vtkPCAAnalysisFilter<br>
Message-ID:<br>
<<a href="mailto:CAHFO-cdeOWVj1r7Ai_4qWzLO9jufsMAJJxY2v-M7PZsAUR7myw@mail.gmail.com">CAHFO-cdeOWVj1r7Ai_4qWzLO9jufsMAJJxY2v-M7PZsAUR7myw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello vtk-users!<br>
<br>
I'm usign the TestPCA.py from<br>
<a href="http://vtk.org/gitwebp=VTK.git;a=blob;f=Filters/Hybrid/Testing/Python/TestPCA.py" target="_blank">http://vtk.org/gitwebp=VTK.git;a=blob;f=Filters/Hybrid/Testing/Python/TestPCA.py</a><br>
<br>
When I run the test, I get the next error:<br>
<br>
ERROR: In /media/hdd2/VTK/vtk-5.6.0/Filtering/vtkExecutive.cxx, line 757<br>
vtkStreamingDemandDrivenPipeline (0x23a12e0): Algorithm<br>
vtkProcrustesAlignmentFilter(0x23a0400) returned failure for request:<br>
vtkInformation (0x23a18e0)<br>
Debug: Off<br>
Modified Time: 894<br>
Reference Count: 1<br>
Registered Events: (none)<br>
Request: REQUEST_DATA_OBJECT<br>
ALGORITHM_AFTER_FORWARD: 1<br>
FORWARD_DIRECTION: 0<br>
FROM_OUTPUT_PORT: 0<br>
<br>
Traceback (most recent call last):<br>
File "TestPCA.py", line 63, in <module><br>
map2a.SetInputData(procrustes.GetOutput().GetBlock(0))<br>
AttributeError: SetInputData<br>
<br>
Someone have any idea about it?<br>
<br>
<br>
Thanks!<br>
<br>
-Lizeth<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141223/c35fbcec/attachment-0001.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141223/c35fbcec/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Tue, 23 Dec 2014 14:25:00 -0200<br>
From: Lizeth Castellanos <<a href="mailto:castellanoslizan@gmail.com">castellanoslizan@gmail.com</a>><br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] Error in vtkPCAAnalysisFilter<br>
Message-ID:<br>
<<a href="mailto:CAHFO-ceQef3YnaKG7BW6NT-yCnA1bvW%2BoyYT10A-9qjV8AzHKg@mail.gmail.com">CAHFO-ceQef3YnaKG7BW6NT-yCnA1bvW+oyYT10A-9qjV8AzHKg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
The Code here:<br>
<br>
#!/usr/bin/env python<br>
import vtk<br>
from vtk.test import Testing<br>
<br>
<br>
<br>
# This example shows how to visualise the variation in shape in a set of<br>
objects using<br>
# vtkPCAAnalysisFilter.<br>
#<br>
# We make three ellipsoids by distorting and translating a sphere and then<br>
align them together<br>
# using vtkProcrustesAlignmentFilter, and then pass the output to<br>
vtkPCAAnalysisFilter. We visualise<br>
# the first and second modes - the major sources of variation that were in<br>
the training set.<br>
sphere = vtk.vtkSphereSource()<br>
sphere.SetPhiResolution(36)<br>
sphere.SetThetaResolution(36)<br>
sphere.Update()<br>
# make two copies of the shape and distort them a little<br>
transform1 = vtk.vtkTransform()<br>
transform1.Translate(0.2,0.1,0.3)<br>
transform1.Scale(1.3,1.1,0.8)<br>
transform2 = vtk.vtkTransform()<br>
transform2.Translate(0.3,0.7,0.1)<br>
transform2.Scale(1.0,0.1,1.8)<br>
transformer1 = vtk.vtkTransformPolyDataFilter()<br>
transformer1.SetInputConnection(sphere.GetOutputPort())<br>
transformer1.SetTransform(transform1)<br>
transformer1.Update()<br>
transformer2 = vtk.vtkTransformPolyDataFilter()<br>
transformer2.SetInputConnection(sphere.GetOutputPort())<br>
transformer2.SetTransform(transform2)<br>
transformer2.Update()<br>
#------------------------------------------------------------------<br>
# map these three shapes into the first renderer<br>
#------------------------------------------------------------------<br>
map1a = vtk.vtkPolyDataMapper()<br>
map1a.SetInputConnection(sphere.GetOutputPort())<br>
Actor1a = vtk.vtkActor()<br>
Actor1a.SetMapper(map1a)<br>
Actor1a.GetProperty().SetDiffuseColor(1.0000,0.3882,0.2784)<br>
map1b = vtk.vtkPolyDataMapper()<br>
map1b.SetInputConnection(transformer1.GetOutputPort())<br>
Actor1b = vtk.vtkActor()<br>
Actor1b.SetMapper(map1b)<br>
Actor1b.GetProperty().SetDiffuseColor(0.3882,1.0000,0.2784)<br>
map1c = vtk.vtkPolyDataMapper()<br>
map1c.SetInputConnection(transformer2.GetOutputPort())<br>
Actor1c = vtk.vtkActor()<br>
Actor1c.SetMapper(map1c)<br>
Actor1c.GetProperty().SetDiffuseColor(0.3882,0.2784,1.0000)<br>
#------------------------------------------------------------------<br>
# align the shapes using Procrustes (using SetModeToRigidBody)<br>
# and map the aligned shapes into the second renderer<br>
#------------------------------------------------------------------<br>
group = vtk.vtkMultiBlockDataGroupFilter()<br>
group.AddInputConnection(sphere.GetOutputPort())<br>
group.AddInputConnection(transformer1.GetOutputPort())<br>
group.AddInputConnection(transformer2.GetOutputPort())<br>
procrustes = vtk.vtkProcrustesAlignmentFilter()<br>
procrustes.SetInputConnection(group.GetOutputPort())<br>
procrustes.GetLandmarkTransform().SetModeToRigidBody()<br>
procrustes.Update()<br>
map2a = vtk.vtkPolyDataMapper()<br>
map2a.SetInputData(procrustes.GetOutput().GetBlock(0))<br>
Actor2a = vtk.vtkActor()<br>
Actor2a.SetMapper(map2a)<br>
Actor2a.GetProperty().SetDiffuseColor(1.0000,0.3882,0.2784)<br>
map2b = vtk.vtkPolyDataMapper()<br>
map2b.SetInputData(procrustes.GetOutput().GetBlock(1))<br>
Actor2b = vtk.vtkActor()<br>
Actor2b.SetMapper(map2b)<br>
Actor2b.GetProperty().SetDiffuseColor(0.3882,1.0000,0.2784)<br>
map2c = vtk.vtkPolyDataMapper()<br>
map2c.SetInputData(procrustes.GetOutput().GetBlock(2))<br>
Actor2c = vtk.vtkActor()<br>
Actor2c.SetMapper(map2c)<br>
Actor2c.GetProperty().SetDiffuseColor(0.3882,0.2784,1.0000)<br>
#------------------------------------------------------------------<br>
# pass the output of Procrustes to vtkPCAAnalysisFilter<br>
#------------------------------------------------------------------<br>
pca = vtk.vtkPCAAnalysisFilter()<br>
pca.SetInputConnection(procrustes.GetOutputPort())<br>
pca.Update()<br>
# we need to call Update because GetParameterisedShape is not<br>
# part of the normal SetInput/GetOutput pipeline<br>
#------------------------------------------------------------------<br>
# map the first mode into the third renderer:<br>
# -3,0,3 standard deviations on the first mode<br>
# illustrate the extremes around the average shape<br>
#------------------------------------------------------------------<br>
params = vtk.vtkFloatArray()<br>
params.SetNumberOfComponents(1)<br>
params.SetNumberOfTuples(1)<br>
params.SetTuple1(0,0.0)<br>
shapea = vtk.vtkPolyData()<br>
shapea.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params,shapea)<br>
normalsa = vtk.vtkPolyDataNormals()<br>
normalsa.SetInputData(shapea)<br>
map3a = vtk.vtkPolyDataMapper()<br>
map3a.SetInputConnection(normalsa.GetOutputPort())<br>
Actor3a = vtk.vtkActor()<br>
Actor3a.SetMapper(map3a)<br>
Actor3a.GetProperty().SetDiffuseColor(1,1,1)<br>
params.SetTuple1(0,-3.0)<br>
shapeb = vtk.vtkPolyData()<br>
shapeb.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params,shapeb)<br>
normalsb = vtk.vtkPolyDataNormals()<br>
normalsb.SetInputData(shapeb)<br>
map3b = vtk.vtkPolyDataMapper()<br>
map3b.SetInputConnection(normalsb.GetOutputPort())<br>
Actor3b = vtk.vtkActor()<br>
Actor3b.SetMapper(map3b)<br>
Actor3b.GetProperty().SetDiffuseColor(1,1,1)<br>
params.SetTuple1(0,3.0)<br>
shapec = vtk.vtkPolyData()<br>
shapec.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params,shapec)<br>
normalsc = vtk.vtkPolyDataNormals()<br>
normalsc.SetInputData(shapec)<br>
map3c = vtk.vtkPolyDataMapper()<br>
map3c.SetInputConnection(normalsc.GetOutputPort())<br>
Actor3c = vtk.vtkActor()<br>
Actor3c.SetMapper(map3c)<br>
Actor3c.GetProperty().SetDiffuseColor(1,1,1)<br>
#------------------------------------------------------------------<br>
# map the second mode into the fourth renderer:<br>
#------------------------------------------------------------------<br>
params4 = vtk.vtkFloatArray()<br>
params4.SetNumberOfComponents(1)<br>
params4.SetNumberOfTuples(2)<br>
params4.SetTuple1(0,0.0)<br>
params4.SetTuple1(1,-3.0)<br>
shape4a = vtk.vtkPolyData()<br>
shape4a.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params4,shape4a)<br>
normals4a = vtk.vtkPolyDataNormals()<br>
normals4a.SetInputData(shape4a)<br>
map4a = vtk.vtkPolyDataMapper()<br>
map4a.SetInputConnection(normals4a.GetOutputPort())<br>
Actor4a = vtk.vtkActor()<br>
Actor4a.SetMapper(map4a)<br>
Actor4a.GetProperty().SetDiffuseColor(1,1,1)<br>
params4.SetTuple1(1,0.0)<br>
shape4b = vtk.vtkPolyData()<br>
shape4b.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params4,shape4b)<br>
normals4b = vtk.vtkPolyDataNormals()<br>
normals4b.SetInputData(shape4b)<br>
map4b = vtk.vtkPolyDataMapper()<br>
map4b.SetInputConnection(normals4b.GetOutputPort())<br>
Actor4b = vtk.vtkActor()<br>
Actor4b.SetMapper(map4b)<br>
Actor4b.GetProperty().SetDiffuseColor(1,1,1)<br>
params4.SetTuple1(1,3.0)<br>
shape4c = vtk.vtkPolyData()<br>
shape4c.DeepCopy(sphere.GetOutput())<br>
pca.GetParameterisedShape(params4,shape4c)<br>
normals4c = vtk.vtkPolyDataNormals()<br>
normals4c.SetInputData(shape4c)<br>
map4c = vtk.vtkPolyDataMapper()<br>
map4c.SetInputConnection(normals4c.GetOutputPort())<br>
Actor4c = vtk.vtkActor()<br>
Actor4c.SetMapper(map4c)<br>
Actor4c.GetProperty().SetDiffuseColor(1,1,1)<br>
#------------------------------------------------------------------<br>
# Create the RenderWindow and its four Renderers<br>
#------------------------------------------------------------------<br>
ren1 = vtk.vtkRenderer()<br>
ren2 = vtk.vtkRenderer()<br>
ren3 = vtk.vtkRenderer()<br>
ren4 = vtk.vtkRenderer()<br>
renWin = vtk.vtkRenderWindow()<br>
renWin.AddRenderer(ren1)<br>
renWin.AddRenderer(ren2)<br>
renWin.AddRenderer(ren3)<br>
renWin.AddRenderer(ren4)<br>
renWin.SetSize(600,200)<br>
iren = vtk.vtkRenderWindowInteractor()<br>
iren.SetRenderWindow(renWin)<br>
# Add the actors to the renderer<br>
ren1.AddActor(Actor1a)<br>
ren1.AddActor(Actor1b)<br>
ren1.AddActor(Actor1c)<br>
ren2.AddActor(Actor2a)<br>
ren2.AddActor(Actor2b)<br>
ren2.AddActor(Actor2c)<br>
ren3.AddActor(Actor3a)<br>
ren3.AddActor(Actor3b)<br>
ren3.AddActor(Actor3c)<br>
ren4.AddActor(Actor4a)<br>
ren4.AddActor(Actor4b)<br>
ren4.AddActor(Actor4c)<br>
# set the properties of the renderers<br>
ren1.SetBackground(1,1,1)<br>
ren1.SetViewport(0.0,0.0,0.25,1.0)<br>
ren1.ResetCamera()<br>
ren1.GetActiveCamera().SetPosition(1,-1,0)<br>
ren1.ResetCamera()<br>
ren2.SetBackground(1,1,1)<br>
ren2.SetViewport(0.25,0.0,0.5,1.0)<br>
ren2.ResetCamera()<br>
ren2.GetActiveCamera().SetPosition(1,-1,0)<br>
ren2.ResetCamera()<br>
ren3.SetBackground(1,1,1)<br>
ren3.SetViewport(0.5,0.0,0.75,1.0)<br>
ren3.ResetCamera()<br>
ren3.GetActiveCamera().SetPosition(1,-1,0)<br>
ren3.ResetCamera()<br>
ren4.SetBackground(1,1,1)<br>
ren4.SetViewport(0.75,0.0,1.0,1.0)<br>
ren4.ResetCamera()<br>
ren4.GetActiveCamera().SetPosition(1,-1,0)<br>
ren4.ResetCamera()<br>
# render the image<br>
#<br>
renWin.Render()<br>
# output the image to file (used to generate the initial regression image)<br>
#vtkWindowToImageFilter to_image<br>
#to_image SetInput renWin<br>
#vtkPNGWriter to_png<br>
#to_png SetFileName "TestPCA.png"<br>
#to_png SetInputConnection [to_image GetOutputPort]<br>
#to_png Write<br>
# prevent the tk window from showing up then start the event loop<br>
# --- end of script --<br>
<br>
<br>
On Tue, Dec 23, 2014 at 2:22 PM, Lizeth Castellanos <<br>
<a href="mailto:castellanoslizan@gmail.com">castellanoslizan@gmail.com</a>> wrote:<br>
<br>
> Hello vtk-users!<br>
><br>
> I'm usign the TestPCA.py from<br>
> <a href="http://vtk.org/gitwebp=VTK.git;a=blob;f=Filters/Hybrid/Testing/Python/TestPCA.py" target="_blank">http://vtk.org/gitwebp=VTK.git;a=blob;f=Filters/Hybrid/Testing/Python/TestPCA.py</a><br>
><br>
> When I run the test, I get the next error:<br>
><br>
> ERROR: In /media/hdd2/VTK/vtk-5.6.0/Filtering/vtkExecutive.cxx, line 757<br>
> vtkStreamingDemandDrivenPipeline (0x23a12e0): Algorithm<br>
> vtkProcrustesAlignmentFilter(0x23a0400) returned failure for request:<br>
> vtkInformation (0x23a18e0)<br>
> Debug: Off<br>
> Modified Time: 894<br>
> Reference Count: 1<br>
> Registered Events: (none)<br>
> Request: REQUEST_DATA_OBJECT<br>
> ALGORITHM_AFTER_FORWARD: 1<br>
> FORWARD_DIRECTION: 0<br>
> FROM_OUTPUT_PORT: 0<br>
><br>
> Traceback (most recent call last):<br>
> File "TestPCA.py", line 63, in <module><br>
> map2a.SetInputData(procrustes.GetOutput().GetBlock(0))<br>
> AttributeError: SetInputData<br>
><br>
> Someone have any idea about it?<br>
><br>
><br>
> Thanks!<br>
><br>
> -Lizeth<br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
--<br>
Lizeth Andrea Castellanos Beltr?n.<br>
MSc Student<br>
Federal University of Rio Grande do Sul (UFRGS)<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/vtkusers/attachments/20141223/b4cb38b5/attachment.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/attachments/20141223/b4cb38b5/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
<br>
------------------------------<br>
<br>
End of vtkusers Digest, Vol 128, Issue 10<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">"There is plenty of room at the bottom!" R. Feynman</div>
</div>