<div dir="ltr">Hi,<div><br></div><div>I have a question regarding the rendering  a sphere at the point picked with vtkPointPicker.</div><div><br></div><div>I have setup style as a child class of vtkInteractorStyleTrackballCamera where I</div><div>get the obtain coordinates of picked point from the current renderer, after getting the current renderer from a findPokedRenderer call.</div><div><br></div><div>When I set the picked point coordinates to a sphereActor with setPosition, it does show up in the view window but not at the picked position.</div><div><br></div><div>Is there some way to fix this. Thanks in advance.</div><div><br></div><div>Best regards,</div><div>Cartik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 22, 2014 at 12:49 PM,  <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. (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>
        <<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 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 intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
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, but it supports writing 3D images as multi-paged tiffs. You can utilized ITK ImageIO by using ITK's VTK bridge module [1]. Alternatively, you can look at ITK's implementation as see about porting it to VTK[2]. I believe 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 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] <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>> 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. I see one tiff file with all images stitched together in a long column, so I am thinking of a missing page return or something. But I guess that's a over-simplification ;-)<br>
><br>
> vtkImageWriter works fine as long as I remember the extent, spacing and origin.<br>
><br>
> Last year I saw multi-page tiff phloro images, now I see multi-page tiff 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 <<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>> wrote:<br>
> Hi David,<br>
><br>
> Sorry, I'll try to remember. I did search the internet but couldn't find a clear answer.<br>
><br>
> I am a bit confused though, because vtkTiffReader reads multi-page tiffs 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 is willing to modify the writer so that it writes multi-page files!  It isn't a trivial project, because there are at least three different semi-standard ways of storing 3D data in TIFF, and they aren't entirely compatible with one another.<br>
><br>
> Even with the reader, multi-page files were troublesome for a long time, because it could read some 3D files but not others (again, because TIFF has  several semi-standard ways of storing 3D data).  TIFF was not initially designed to handle 3D, and all the ways of making it work with 3D are a bit hackish.<br>
><br>
><br>
> What are my options in vtk? What writers do write 3d images? Does a tool 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 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 <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: <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: <<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>
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: <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=<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 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: <<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>
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>
        <<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>
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 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 email to the person who gave me the ct data, to ask about this data. I now 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 <<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, but it supports writing 3D images as multi-paged tiffs. You can utilized ITK ImageIO by using ITK's VTK bridge module [1]. Alternatively, you can look at ITK's implementation as see about porting it to VTK[2]. I believe 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 z-spacing and image origin.<br>
Brad<br>
[1]?<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>> 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 see one tiff file with all images stitched together in a long column, so I am thinking of a missing page return or something. But I guess that's a over-simplification ;-)<br>
vtkImageWriter works fine as long as I remember the extent, spacing and origin.<br>
Last year I saw multi-page tiff phloro images, now I see multi-page tiff 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 <<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>> wrote:<br>
Hi David,<br>
Sorry, I'll try to remember. I did search the internet but couldn't find a clear answer.<br>
I am a bit confused though, because vtkTiffReader reads multi-page tiffs 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 is willing to modify the writer so that it writes multi-page files!? It isn't a trivial project, because there are at least three different semi-standard ways of storing 3D data in TIFF, and they aren't entirely compatible with one another.<br>
Even with the reader, multi-page files were troublesome for a long time, because it could read some 3D files but not others (again, because TIFF has ?several semi-standard ways of storing 3D data).? TIFF was not initially designed to handle 3D, and all the ways of making it work with 3D are a bit hackish.<br>
<br>
<br>
What are my options in vtk? What writers do write 3d images? Does a tool 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 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 <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: <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: <<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>
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=<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>> 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 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: <<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>
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: <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=<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: <<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>
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: <<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>
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 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 &lt;<br>
<br>
> vsh@<br>
<br>
> &gt; 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: <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=<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 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: <<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>
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+=<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=<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 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>
        <<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 <<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 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 report<br>
> shows this message (this is just the beginning):<br>
><br>
> Process:               QtVTKRenderWindows [17872]<br>
> Path:<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&) + 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: <<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>
-------------- 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} ${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} ${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 "{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 {VTK_BIN_PATH}/QtVTKRenderWindows.app<br>
)<br>
SET(BU_CHMOD_BUNDLE_ITEMS TRUE)<br>
FIXUP_BUNDLE({VTK_BIN_PATH}/QtVTKRenderWindows.app "" "${QT_INSTALL_PREFIX}/bin")<br>
VERIFY_BUNDLE_PREREQUISITES({VTK_BIN_PATH}/QtVTKRenderWindows.app QtVTKRenderWindows_BUNDLE_PREREQUISITES QtVTKRenderWindows_BUNDLE_PREREQUISITES_INFO)<br>
MESSAGE(WARNING "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>
        <<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 ){??? while( 0? < table->GetNumberOfRows() )??? {??????? 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 points.<br>
Thanks - Maarten<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
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=<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>
        <<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>
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 invoke the calls inputs->SetNumberOfInformationObjects(0); and this->Modified().<br>
So although Modified() is called when the input is removed, I think the scene is not re-rendered (I don't get a warning re. a mapper w/o input either (what other mappers do)).<br>
Turning the visibility on/off using SetVisible() works fine. But I find it weird that the data is still dangling.(I don't want to remove the plot, 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 is going on. ;-)<br>
Maarten<br>
<br>
<br>
<br>
     On Friday, December 19, 2014 10:48 AM, Marcus D. Hanwell <<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: <<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>
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 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 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. 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 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: <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>
        <<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: <<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>
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>
        <<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: <<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>
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: <<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>
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>
        <<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 = 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: <<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>
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 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>>                                                             Tel: (33/0) 4 92 38 79 69<br>
INRIA - 2004 route des lucioles - BP 93 - 06902  SOPHIA-ANTIPOLIS cedex (France)<br>
<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
-------------- 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: <<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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
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>
        <<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>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi all,<br>
I happened to be looking at the source of the vtkContextInteractorStyle class.<br>
In the OnKeyPress() and OnKeyRelease() functions I see the folowwing:<br>
vtkVector2i position(this->Interactor->GetEventPosition()[0],??????????????????????????????? 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 this.<br>
<br>
Maarten<br>
?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
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>
        <<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>
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) object in a vtkChart (better: vtkChartXY)?<br>
I get the impression that only points can be selected in a vtkContextScene. However, I have two vertical lines each with two (bottom and top) points, to indicate a (threshold) range, and that I would like to move left and right with my mouse.Would this be possible (or should I go back to something like QCustomPlot)?<br>
<br>
Thanks - Maarten<br>
?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>
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>
</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>