[vtkusers] vtkusers Digest, Vol 128, Issue 9
Cartik Sharma
cartik.sharma at gmail.com
Mon Dec 22 17:30:16 EST 2014
Hi,
I have a question regarding the rendering a sphere at the point picked
with vtkPointPicker.
I have setup style as a child class of vtkInteractorStyleTrackballCamera
where I
get the obtain coordinates of picked point from the current renderer, after
getting the current renderer from a findPokedRenderer call.
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.
Is there some way to fix this. Thanks in advance.
Best regards,
Cartik
On Mon, Dec 22, 2014 at 12:49 PM, <vtkusers-request at vtk.org> wrote:
> Send vtkusers mailing list submissions to
> vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://public.kitware.com/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> vtkusers-request at vtk.org
>
> You can reach the person managing the list at
> vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
> 1. (no subject) (Allavali Ballary)
> 2. Re: Writing multi-paged tiff image (Bradley Lowekamp)
> 3. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (Vincent32160)
> 4. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (David Gobbi)
> 5. Re: Writing multi-paged tiff image (Maarten Beek)
> 6. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (David Gobbi)
> 7. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (Vincent32160)
> 8. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (David Gobbi)
> 9. extract texture color from a vertex (marco)
> 10. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (Vincent32160)
> 11. Re: Unwrap a cylinder of data using vtkCylindricalTransform
> and vtkImageReslice (David Gobbi)
> 12. get tcoords from pointId (marco)
> 13. vtk actor size on screen (sadml at flexynet.org)
> 14. Re: get tcoords from pointId (Cory Quammen)
> 15. Re: get tcoords from pointId (marco)
> 16. Re: get tcoords from pointId (marco)
> 17. Re: get tcoords from pointId (Cory Quammen)
> 18. Re: [VTK] Creating an OS X bundle for a VTK example using Qt
> (Jon Haitz Legarreta)
> 19. Clearing vtkPlot object (Maarten Beek)
> 20. Re: Clearing vtkPlot object (Marcus D. Hanwell)
> 21. Re: Clearing vtkPlot object (Maarten Beek)
> 22. Issues with VTK Delaunay 2D for simple cases (updega2)
> 23. Re: Axes marker not working as expected (J?lio Hoffimann)
> 24. Re: vtkTypeMacro warning (J?lio Hoffimann)
> 25. How to read a dicom and display in the in the windows (cvinllen)
> 26. Re: Axes marker not working as expected (J?lio Hoffimann)
> 27. no crystal eye (quand_buffer) stereo with Qt5 / VTK 6.1 /
> Nvidia (Jean-Luc Szpyrka)
> 28. Bug in vtkContextInteractorStyle? (Maarten Beek)
> 29. How to select a VtkPlot object in a vtkChart? (Maarten Beek)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 18 Dec 2014 13:47:32 +0000
> From: "Allavali Ballary" <Allavali.Ballary at LntTechservices.com>
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: [vtkusers] (no subject)
> Message-ID:
> <
> 3BD743544268C04A827420A055435C93B8C178 at POCITMSEXMB06.LntUniverse.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
> In Dicom image how to measure distance between two points, angle multiple
> times.
> Now I can measure one time, but I need to measure multiple times.
>
> Thanks & Regards,
> Allavali Ballary
>
>
> L&T Technology Services Ltd
>
> www.LntTechservices.com<http://www.lnttechservices.com/>
>
> 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.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/09f5899a/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Dec 2014 09:10:19 -0500
> From: Bradley Lowekamp <blowekamp at mail.nih.gov>
> To: Maarten Beek <beekmaarten at yahoo.com>
> Cc: David Gobbi <david.gobbi at gmail.com>, VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Writing multi-paged tiff image
> Message-ID: <12B2ABE1-EAA7-4BC9-B7DB-7A51877FCEA8 at mail.nih.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> 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.
>
> I am not a big fan for 3D tiffs because there is no standard way to store
> z-spacing and image origin.
>
> Brad
>
> [1] 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
>
> On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <vtkusers at vtk.org>
> wrote:
>
> > Thanks for your reply David,
> >
> > 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 ;-)
> >
> > vtkImageWriter works fine as long as I remember the extent, spacing and
> origin.
> >
> > 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....
> >
> > Maarten
> >
> >
> > On Wednesday, December 17, 2014 4:30 PM, David Gobbi <
> david.gobbi at gmail.com> wrote:
> >
> >
> > On Wed, Dec 17, 2014 at 2:10 PM, Maarten Beek <beekmaarten at yahoo.com>
> wrote:
> > Hi David,
> >
> > Sorry, I'll try to remember. I did search the internet but couldn't find
> a clear answer.
> >
> > I am a bit confused though, because vtkTiffReader reads multi-page tiffs
> fine. What is preventing a multi-page writer?
> >
> > 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.
> >
> > 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.
> >
> >
> > 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?
> >
> > 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.
> >
> > - David
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/aa980cd3/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 18 Dec 2014 08:17:05 -0700 (MST)
> From: Vincent32160 <vsh at magellium.fr>
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID: <1418915825397-5729892.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> As I need to modify the angle from which the unrolling is starting I would
> use the sophisticated solution you advise.
> If I understand correctly the starting reslice axes are a 4x4 matrix
> (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).
> If I need to apply an angle, I could use only the 3x3 matrix
> (-1,0,0,0,-1,0,0,0,1).
> Can you tell me if I am right?
> Thanks
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729892.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 18 Dec 2014 08:40:44 -0700
> From: David Gobbi <david.gobbi at gmail.com>
> To: Vincent32160 <vsh at magellium.fr>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID:
> <CANwS1=
> EzzQfZu1ncFxdkXWvSBaXwAAaLEgRb24KcL4+k0xaWhg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Dec 18, 2014 at 8:17 AM, Vincent32160 <vsh at magellium.fr> wrote:
> >
> > As I need to modify the angle from which the unrolling is starting I
> would
> > use the sophisticated solution you advise.
> > If I understand correctly the starting reslice axes are a 4x4 matrix
> > (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).
> > If I need to apply an angle, I could use only the 3x3 matrix
> > (-1,0,0,0,-1,0,0,0,1).
> > Can you tell me if I am right?
> > Thanks
>
>
> Yes, the 3x3 matrix controls the orientation of the cylinder, and
> the final column is where you want the center to be.
>
> However: the bottom row should always be (0,0,0,1). And I'm
> not sure why you put in the "-1"s. Is there a reason why you want
> to rotate by 180 degrees?
>
> - David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/e69ba194/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 5
> Date: Thu, 18 Dec 2014 15:43:25 +0000 (UTC)
> From: Maarten Beek <beekmaarten at yahoo.com>
> To: Bradley Lowekamp <blowekamp at mail.nih.gov>
> Cc: David Gobbi <david.gobbi at gmail.com>, VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Writing multi-paged tiff image
> Message-ID:
> <
> 1485787823.490616.1418917405129.JavaMail.yahoo at jws100205.mail.ne1.yahoo.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Hey Bradley,
> Thanks for your reply, I'll have a look at the itk code.
> I just have some 3d tiff ct data and after soon processing, my first
> thought was to just save it in its original format.
> 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 ;-)
> Maarten
>
>
> On Thursday, December 18, 2014 9:20 AM, Bradley Lowekamp <
> blowekamp at mail.nih.gov> wrote:
>
>
> Hello,
> 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.
> I am not a big fan for 3D tiffs because there is no standard way to store
> z-spacing and image origin.
> Brad
> [1]?
> 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
> On Dec 17, 2014, at 4:42 PM, Maarten Beek via vtkusers <vtkusers at vtk.org>
> wrote:
>
>
> Thanks for your reply David,
> 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 ;-)
> vtkImageWriter works fine as long as I remember the extent, spacing and
> origin.
> 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....
> Maarten
>
>
> On Wednesday, December 17, 2014 4:30 PM, David Gobbi <
> david.gobbi at gmail.com> wrote:
>
>
> On Wed, Dec 17, 2014 at 2:10 PM, Maarten Beek <beekmaarten at yahoo.com>
> wrote:
> Hi David,
> Sorry, I'll try to remember. I did search the internet but couldn't find a
> clear answer.
> I am a bit confused though, because vtkTiffReader reads multi-page tiffs
> fine. What is preventing a multi-page writer?
>
> 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.
> 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.
>
>
> 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?
>
>
> 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. ?
> ?- David?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/00a72cdb/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 6
> Date: Thu, 18 Dec 2014 08:46:47 -0700
> From: David Gobbi <david.gobbi at gmail.com>
> To: Vincent32160 <vsh at magellium.fr>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID:
> <CANwS1=GXshcu70ab-rSGfYNhHGE5v4UoTri=
> 7Jt3Xr1jeMvnCA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Dec 18, 2014 at 8:40 AM, David Gobbi <david.gobbi at gmail.com>
> wrote:
> >
> > On Thu, Dec 18, 2014 at 8:17 AM, Vincent32160 <vsh at magellium.fr> wrote:
> >>
> >> As I need to modify the angle from which the unrolling is starting I
> would
> >> use the sophisticated solution you advise.
> >> If I understand correctly the starting reslice axes are a 4x4 matrix
> >> (-1,0,0,center[0],0,-1,0,center[1],0,0,1,center[2],0,0,0,0).
> >> If I need to apply an angle, I could use only the 3x3 matrix
> >> (-1,0,0,0,-1,0,0,0,1).
> >> Can you tell me if I am right?
> >> Thanks
> >
> >
> > Yes, the 3x3 matrix controls the orientation of the cylinder, and
> > the final column is where you want the center to be.
> >
> > However: the bottom row should always be (0,0,0,1). And I'm
> > not sure why you put in the "-1"s. Is there a reason why you want
> > to rotate by 180 degrees?
> >
>
>
> I can add a little bit more information about how to set the 3x3 matrix.
> The third column of the 3x3 matrix must be a unit vector that points
> along the axis of the cylinder. The first and second columns must
> be perpendicular to the third axis, and must be perpendicular to each
> other (if they aren't, then the matrix isn't a rotation matrix).
>
> The method vtkMath::Perpendiculars() can be used to compute the
> three columns for the 3x3 matrix, if you know the axis of the cylinder.
>
> - David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/cfeae831/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 7
> Date: Thu, 18 Dec 2014 09:06:19 -0700 (MST)
> From: Vincent32160 <vsh at magellium.fr>
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID: <1418918779189-5729896.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> I put in the "-1"s because I reuse the matrix presented in your code
> (rotate.SetResliceAxesDirectionCosines(
> -1, 0, 0,
> 0, -1, 0,
> 0, 0, 1 ) )
> Shouldn't I do this?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729896.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 18 Dec 2014 09:15:36 -0700
> From: David Gobbi <david.gobbi at gmail.com>
> To: Vincent32160 <vsh at magellium.fr>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID:
> <CANwS1=
> FLjyETsEhX1Mo8zCGya22+TyFmSnDZnwAGSfJxBMbpUw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Dec 18, 2014 at 9:06 AM, Vincent32160 <vsh at magellium.fr> wrote:
> >
> > I put in the "-1"s because I reuse the matrix presented in your code
> > (rotate.SetResliceAxesDirectionCosines(
> > -1, 0, 0,
> > 0, -1, 0,
> > 0, 0, 1 ) )
> > Shouldn't I do this?
>
>
> No, this isn't something that should be blindly copied. I added those -1's
> because
> it set up the cylinder orientation properly for my data. You have
> different data, so
> you will probably need a different matrix. Does that make sense?
>
> - David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/6daee451/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 9
> Date: Thu, 18 Dec 2014 11:19:47 -0500
> From: marco <piccima at gmail.com>
> To: vtkusers at vtk.org
> Subject: [vtkusers] extract texture color from a vertex
> Message-ID: <5492FEA3.1010508 at gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello,
> I want to get the texture value from a cell!
> I have the cellid as result of intersectWithLine.
>
> After I get the list of vertices of the cell:
> vtkIdList* nghList = vtkIdList::New();
> source->GetCellPoints(cellId, nghList);
> I iterate through the points in order to get their texture coordinates
> and interpolate them in the intersection position.
> Then with the (interpolated) texture coordinates, access the texture
> image to get the RGB point color!
>
> Is there a method faster than that?
>
> Thank you
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ae5021c0/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 10
> Date: Thu, 18 Dec 2014 09:25:00 -0700 (MST)
> From: Vincent32160 <vsh at magellium.fr>
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID: <1418919900723-5729899.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> That makes definitely sense.
> Apart this rotation and the variables radialSize and r, I got the
> impression
> that the rest of the code doesn't depend on the data. Do you agree with
> that?
> Thanks again
>
>
> David Gobbi wrote
> > On Thu, Dec 18, 2014 at 9:06 AM, Vincent32160 <
>
> > vsh@
>
> > > wrote:
> >>
> >> I put in the "-1"s because I reuse the matrix presented in your code
> >> (rotate.SetResliceAxesDirectionCosines(
> >> -1, 0, 0,
> >> 0, -1, 0,
> >> 0, 0, 1 ) )
> >> Shouldn't I do this?
> >
> >
> > No, this isn't something that should be blindly copied. I added those
> > -1's
> > because
> > it set up the cylinder orientation properly for my data. You have
> > different data, so
> > you will probably need a different matrix. Does that make sense?
> >
> > - David
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Unwrapping-a-cylinder-of-data-using-vtkCylindricalTransform-and-vtkImageReslice-tp5729719p5729899.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 11
> Date: Thu, 18 Dec 2014 09:34:20 -0700
> From: David Gobbi <david.gobbi at gmail.com>
> To: Vincent32160 <vsh at magellium.fr>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Unwrap a cylinder of data using
> vtkCylindricalTransform and vtkImageReslice
> Message-ID:
> <CANwS1=HPxNyiLgVr-jp=
> B8O3p_psp_B4MNmoRRe_Lmdw_iGpmw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Dec 18, 2014 at 9:25 AM, Vincent32160 <vsh at magellium.fr> wrote:
> >
> > That makes definitely sense.
> > Apart this rotation and the variables radialSize and r, I got the
> > impression
> > that the rest of the code doesn't depend on the data. Do you agree with
> > that?
> >
>
> In addition to those, the code also assumes that the center of the cylinder
> is at the center of the image, which might not be true for your data.
>
> That's why I said that you might want to use the full 4x4 ResliceAxes
> matrix
> instead of just using SetResliceAxesDirectionCosines. If you use a 4x4
> matrix, you can use the 4th column of the matrix to adjust the center.
>
> - David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141218/ef642198/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 12
> Date: Thu, 18 Dec 2014 13:58:40 -0500
> From: marco <piccima at gmail.com>
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: [vtkusers] get tcoords from pointId
> Message-ID: <549323E0.3020402 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hello,
> maybe it has been deprecated but I cannot find a method like
> GetTcoords(pointId)!
> Is there something similar in the library?
>
> Thank you
>
>
>
> ------------------------------
>
> Message: 13
> Date: Thu, 18 Dec 2014 20:14:21 +0100
> From: "sadml at flexynet.org" <sadml at flexynet.org>
> To: vtkusers at vtk.org
> Subject: [vtkusers] vtk actor size on screen
> Message-ID: <5493278D.7080300 at flexynet.org>
> Content-Type: text/plain; charset=iso-8859-15; format=flowed
>
> Hello,
> I would need to acquire the sizes of actors in pixel on screen, is there
> any method already present among classes to accomplish that?
> Any alternate method you would suggest?
> Thanks for cooperation
> Regards
>
> Paolo
>
>
> ------------------------------
>
> Message: 14
> Date: Thu, 18 Dec 2014 14:33:42 -0500
> From: Cory Quammen <cory.quammen at kitware.com>
> To: marco <piccima at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: Re: [vtkusers] get tcoords from pointId
> Message-ID:
> <CAB5Fpx7sgcjx_4sc+=
> aMj+Bj7HBAHZjHYK5fg4H8bfAE6LETdg at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Marco,
>
> Texture coordinates are stored in an array in a vtkDataSet's
> vtkPointData object. Say you have a vtkPolyData with texture
> coordinates. To access it, you would do something like
>
> vtkPointData* pd = polyData->GetPointData();
> vtkDataArray* tcoords = pd->GetTCoords();
>
> // Let's assume the tcoords are in a vtkFloatArray
> vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);
> if (floatTCoords)
> {
> float texCoord[3];
> floatTcoords->GetTupleValue(pointId, texCoord);
>
> // do something with texCoord
> }
>
> I hope that helps,
> Cory
>
> On Thu, Dec 18, 2014 at 1:58 PM, marco <piccima at gmail.com> wrote:
> > Hello,
> > maybe it has been deprecated but I cannot find a method like
> > GetTcoords(pointId)!
> > Is there something similar in the library?
> >
> > Thank you
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
>
> ------------------------------
>
> Message: 15
> Date: Thu, 18 Dec 2014 14:38:46 -0500
> From: marco <piccima at gmail.com>
> To: Cory Quammen <cory.quammen at kitware.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: Re: [vtkusers] get tcoords from pointId
> Message-ID: <54932D46.3010504 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Thank you
>
>
> On 12/18/2014 02:33 PM, Cory Quammen wrote:
> > Hi Marco,
> >
> > Texture coordinates are stored in an array in a vtkDataSet's
> > vtkPointData object. Say you have a vtkPolyData with texture
> > coordinates. To access it, you would do something like
> >
> > vtkPointData* pd = polyData->GetPointData();
> > vtkDataArray* tcoords = pd->GetTCoords();
> >
> > // Let's assume the tcoords are in a vtkFloatArray
> > vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);
> > if (floatTCoords)
> > {
> > float texCoord[3];
> > floatTcoords->GetTupleValue(pointId, texCoord);
> >
> > // do something with texCoord
> > }
> >
> > I hope that helps,
> > Cory
> >
> > On Thu, Dec 18, 2014 at 1:58 PM, marco <piccima at gmail.com> wrote:
> >> Hello,
> >> maybe it has been deprecated but I cannot find a method like
> >> GetTcoords(pointId)!
> >> Is there something similar in the library?
> >>
> >> Thank you
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://public.kitware.com/mailman/listinfo/vtkusers
> >
> >
>
>
>
> ------------------------------
>
> Message: 16
> Date: Thu, 18 Dec 2014 16:09:41 -0500
> From: marco <piccima at gmail.com>
> To: Cory Quammen <cory.quammen at kitware.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: Re: [vtkusers] get tcoords from pointId
> Message-ID: <54934295.4080009 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hello
> I was able to retrieve the tcoords for my Points.
> Now I'm trying to access the texture image to get the rgb value for that
> location.
> Is possible to use directly the tcoords to do that? or I have to compute
> the pixel coordinate with a transformation?
>
> Thank you for your help
>
> Marco
>
>
> On 12/18/2014 02:33 PM, Cory Quammen wrote:
> > Hi Marco,
> >
> > Texture coordinates are stored in an array in a vtkDataSet's
> > vtkPointData object. Say you have a vtkPolyData with texture
> > coordinates. To access it, you would do something like
> >
> > vtkPointData* pd = polyData->GetPointData();
> > vtkDataArray* tcoords = pd->GetTCoords();
> >
> > // Let's assume the tcoords are in a vtkFloatArray
> > vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);
> > if (floatTCoords)
> > {
> > float texCoord[3];
> > floatTcoords->GetTupleValue(pointId, texCoord);
> >
> > // do something with texCoord
> > }
> >
> > I hope that helps,
> > Cory
> >
> > On Thu, Dec 18, 2014 at 1:58 PM, marco <piccima at gmail.com> wrote:
> >> Hello,
> >> maybe it has been deprecated but I cannot find a method like
> >> GetTcoords(pointId)!
> >> Is there something similar in the library?
> >>
> >> Thank you
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://public.kitware.com/mailman/listinfo/vtkusers
> >
> >
>
>
>
> ------------------------------
>
> Message: 17
> Date: Thu, 18 Dec 2014 16:22:49 -0500
> From: Cory Quammen <cory.quammen at kitware.com>
> To: marco <piccima at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: Re: [vtkusers] get tcoords from pointId
> Message-ID:
> <CAB5Fpx56_hocGNH-6S9Nv=
> gDdAkhkD5vsqFNKQoy-6yQNjPNnA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Marco,
>
> I don't know of a class method that lets you look up the color given a
> texture coordinate. I think you'll have to compute the pixel
> coordinate, which shouldn't be too hard.
>
> - Cory
>
> On Thu, Dec 18, 2014 at 4:09 PM, marco <piccima at gmail.com> wrote:
> > Hello
> > I was able to retrieve the tcoords for my Points.
> > Now I'm trying to access the texture image to get the rgb value for that
> > location.
> > Is possible to use directly the tcoords to do that? or I have to compute
> the
> > pixel coordinate with a transformation?
> >
> > Thank you for your help
> >
> > Marco
> >
> >
> > On 12/18/2014 02:33 PM, Cory Quammen wrote:
> >>
> >> Hi Marco,
> >>
> >> Texture coordinates are stored in an array in a vtkDataSet's
> >> vtkPointData object. Say you have a vtkPolyData with texture
> >> coordinates. To access it, you would do something like
> >>
> >> vtkPointData* pd = polyData->GetPointData();
> >> vtkDataArray* tcoords = pd->GetTCoords();
> >>
> >> // Let's assume the tcoords are in a vtkFloatArray
> >> vtkFloatArray* floatTcoords = vtkFloatArray::SafeDownCast(tcoords);
> >> if (floatTCoords)
> >> {
> >> float texCoord[3];
> >> floatTcoords->GetTupleValue(pointId, texCoord);
> >>
> >> // do something with texCoord
> >> }
> >>
> >> I hope that helps,
> >> Cory
> >>
> >> On Thu, Dec 18, 2014 at 1:58 PM, marco <piccima at gmail.com> wrote:
> >>>
> >>> Hello,
> >>> maybe it has been deprecated but I cannot find a method like
> >>> GetTcoords(pointId)!
> >>> Is there something similar in the library?
> >>>
> >>> Thank you
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://public.kitware.com/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
>
> ------------------------------
>
> Message: 18
> Date: Fri, 19 Dec 2014 09:50:07 +0100
> From: Jon Haitz Legarreta <jhlegarreta at vicomtech.org>
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Subject: Re: [vtkusers] [VTK] Creating an OS X bundle for a VTK
> example using Qt
> Message-ID:
> <
> CAAKhGh8gnoms1XM28pnHGiCtZpzD3Jj8gpk4jUP2mx-m1B-+xw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi there,
> looks like the problem was unrelated to VTK or Qt themselves, but to the
> way we were trying to create the OS X bundle through our CMakeLists.
>
> Attached is a CMakeLists that should solve the issue.
>
> Please note that you will need to change the {VTK_BIN_PATH} for the
> location where your VTK binaries reside, for example
> /Users/your_username/Development/Binaries/VTK6/bin
>
> HTH,
> JON HAITZ
>
>
>
> On 15 December 2014 at 12:18, Jon Haitz Legarreta <
> jhlegarreta at vicomtech.org
> > wrote:
> >
> > Hi there,
> > we are having some trouble when trying to create an OS X bundle of an
> > imaging software of our own that uses ITK, VTK and Qt.
> >
> > We are using VTK 6.1.0 and Qt 5.3.2. And our OS X is Yosemite (10.10).
> >
> > In order to track the problem down, we tried to generate such a bundle
> for
> > one of the examples of VTK that uses Qt: QtVTKRenderWindows.
> >
> > The modified CMakeLists.txt is attached.
> >
> > We found that there seems to be a bug filed in kitware's CMake project in
> > mantis [1]. It dates back to 2013. It seems to be still open.
> >
> > I am posting below the errors we get when trying to run our *.app just in
> > case they are of any help.
> >
> >
> > Is this a problem strictly related to CMake, or either VTK or either Qt
> > for OS X platforms?
> >
> >
> > Does anybody know how to solve this issue?
> >
> >
> > Thank you,
> > JON HAITZ
> >
> >
> >
> >
> >
> > [1] http://public.kitware.com/Bug/view.php?id=14365
> >
> > [-] Error trace:
> >
> > When executing the *.app, the application crashes, and OS X's crash
> report
> > shows this message (this is just the beginning):
> >
> > Process: QtVTKRenderWindows [17872]
> > Path:
> >
> /Users/USER/Desktop/QtVTKRenderWindows.app/Contents/MacOS/QtVTKRenderWindows
> > Identifier: QtVTKRenderWindows
> > Version: ??? (???)
> > Code Type: X86-64 (Native)
> > Parent Process: ??? [1]
> > Responsible: QtVTKRenderWindows [17872]
> > User ID: 501
> > Date/Time: 2014-12-15 10:30:23.381 +0100
> > OS Version: Mac OS X 10.10.1 (14B25)
> > Report Version: 11
> > Anonymous UUID: E9092016-A746-70A3-34F4-DC5791286273
> > Sleep/Wake UUID: BAEA81DE-427D-44D8-BA6D-0189EBDA3FFD
> > Time Awake Since Boot: 42000 seconds
> > Time Since Wake: 5500 seconds
> > Crashed Thread: 0 Dispatch queue: com.apple.main-thread
> > Exception Type: EXC_CRASH (SIGABRT)
> > Exception Codes: 0x0000000000000000, 0x0000000000000000
> > Application Specific Information:
> > abort() called
> > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> > 0 libsystem_kernel.dylib 0x00007fff89fc9282 __pthread_kill +
> > 10
> > 1 libsystem_c.dylib 0x00007fff8f9bab73 abort + 129
> > 2 QtCore 0x00000001084a6649
> > qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) +
> 9
> > 3 QtCore 0x00000001084a7af1
> > QMessageLogger::fatal(char const*, ...) const + 161
> > 4 QtGui 0x0000000108ade948
> > QGuiApplicationPrivate::createPlatformIntegration() + 5672
> > 5 QtGui 0x0000000108ade96b
> > QGuiApplicationPrivate::createEventDispatcher() + 27
> > 6 QtCore 0x00000001086ccc41
> > QCoreApplication::init() + 113
> > 7 QtCore 0x00000001086ccbb7
> > QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) + 39
> > 8 QtGui 0x0000000108adc08e
> > QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) + 14
> > 9 QtWidgets 0x0000000109085aae
> > QApplication::QApplication(int&, char**, int) + 206
> > 10 0x0000000106c06c2c main + 60
> > 11 libdyld.dylib 0x00007fff948c85c9 start + 1
> >
> >
> >
> > If we try to execute the *.app from the command line, the error displayed
> > reads:
> >
> > MAC0001-D:Desktop usuario$ open QtVTKRenderWindows.app
> > LSOpenURLsWithRole() failed with error -10810 for the file
> > /Users/usuario/Desktop/QtVTKRenderWindows.app.
> > MAC0001-D:Desktop usuario$
> > QtVTKRenderWindows.app/Contents/MacOS/QtVTKRenderWindows
> > This application failed to start because it could not find or load the Qt
> > platform plugin "cocoa".
> >
> > Reinstalling the application may fix this problem.
> > Abort trap: 6
> >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141219/b25d0435/attachment-0001.html
> >
> -------------- next part --------------
> project(QtVTKRenderWindows)
>
> cmake_minimum_required(VERSION 2.6)
>
> if(POLICY CMP0020)
> cmake_policy(SET CMP0020 NEW)
> endif()
>
> find_package(VTK COMPONENTS
> vtkCommonCore
> vtkFiltersSources
> vtkGUISupportQt
> vtkIOImage
> vtkInteractionImage
> )
> include(${VTK_USE_FILE})
>
>
> if("${VTK_QT_VERSION}" STREQUAL "")
> message(FATAL_ERROR "VTK was not built with Qt")
> endif()
>
> # Set your files and resources here
> set( Srcs QtVTKRenderWindowsApp.cxx QtVTKRenderWindows.cxx)
>
> set( Hdrs QtVTKRenderWindows.h )
>
> set( MOC_Hdrs QtVTKRenderWindows.h )
>
> set( UIs QtVTKRenderWindows.ui )
>
> include_directories(
> ${CMAKE_CURRENT_BINARY_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR}
> )
>
> # Instruct CMake to run moc automatically when needed.
> set(CMAKE_AUTOMOC ON)
>
> INCLUDE(BundleUtilities)
> if(VTK_QT_VERSION VERSION_GREATER "4")
> find_package(Qt5Widgets REQUIRED QUIET)
> qt5_wrap_ui(UI_Srcs ${UIs})
>
> # CMAKE_AUTOMOC in ON so the MocHdrs will be automatically wrapped.
> add_executable(QtVTKRenderWindows MACOSX_BUNDLE ${Srcs} ${Hdrs}
> ${UI_Srcs} ${MOC_Hdrs})
> qt5_use_modules(QtVTKRenderWindows Core Gui Widgets)
> target_link_libraries(QtVTKRenderWindows ${VTK_LIBRARIES})
> else()
> find_package(Qt4 REQUIRED)
> include(${QT_USE_FILE})
> # Use what VTK built with
> set(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "")
> set(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "")
> set(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "")
> qt4_wrap_ui(UI_Srcs ${UIs})
>
> add_executable(QtVTKRenderWindows ${Srcs} ${Hdrs} ${UI_Srcs} ${MOC_Hdrs})
> target_link_libraries(QtVTKRenderWindows ${QT_LIBRARIES}
> ${VTK_LIBRARIES})
> endif()
>
> SET(QT_PLUGINS_DIR ${_qt5Gui_install_prefix}/plugins)
> MESSAGE(WARNING "QT_PLUGINS_DIR:${QT_PLUGINS_DIR}")
> 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")
> MESSAGE(WARNING "QTPLUGINS:${QTPLUGINS}")
> SET(QT_ADDITIONAL_PLUGINS ${QTPLUGINS})
> MESSAGE(WARNING "QT_ADDITIONAL_PLUGINS:${QT_ADDITIONAL_PLUGINS}")
>
>
> ADD_CUSTOM_COMMAND(TARGET QtVTKRenderWindows
> POST_BUILD
> COMMAND /usr/local/Cellar/qt5/5.3.2/bin/macdeployqt ARGS
> {VTK_BIN_PATH}/QtVTKRenderWindows.app
> )
> SET(BU_CHMOD_BUNDLE_ITEMS TRUE)
> FIXUP_BUNDLE({VTK_BIN_PATH}/QtVTKRenderWindows.app ""
> "${QT_INSTALL_PREFIX}/bin")
> VERIFY_BUNDLE_PREREQUISITES({VTK_BIN_PATH}/QtVTKRenderWindows.app
> QtVTKRenderWindows_BUNDLE_PREREQUISITES
> QtVTKRenderWindows_BUNDLE_PREREQUISITES_INFO)
> MESSAGE(WARNING
> "QtVTKRenderWindows_BUNDLE_PREREQUISITES:${QtVTKRenderWindows_BUNDLE_PREREQUISITES}(${QtVTKRenderWindows_BUNDLE_PREREQUISITES_INFO})")
>
> ------------------------------
>
> Message: 19
> Date: Fri, 19 Dec 2014 15:12:52 +0000 (UTC)
> From: Maarten Beek <beekmaarten at yahoo.com>
> To: VTK Users <vtkusers at vtk.org>
> Subject: [vtkusers] Clearing vtkPlot object
> Message-ID:
> <
> 80443368.768348.1419001972624.JavaMail.yahoo at jws100192.mail.ne1.yahoo.com>
>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
> Yesterday I started exploring the options to draw 2d graphs in VTK.
>
> Why does
> m_pChart->GetPlot(0)->SetInputData(0);
> not remove the graph from my chart?
>
> I am currently using
> vtkTable* table = m_pChart->GetPlot(0)->GetInput();if( 0 != table ){???
> while( 0? < table->GetNumberOfRows() )??? {???????
> table->RemoveRow(0);????}}
> m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!
> This works, but complains about trying to draw a line with less than 2
> points.
> Thanks - Maarten
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141219/7016213a/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 20
> Date: Fri, 19 Dec 2014 10:48:41 -0500
> From: "Marcus D. Hanwell" <marcus.hanwell at kitware.com>
> To: Maarten Beek <beekmaarten at yahoo.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Clearing vtkPlot object
> Message-ID:
> <CAMkPkZWt+Z6mZQkc=
> ne_YEf7kDdG92erzcxncxgsUpcXpHh40Q at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Fri, Dec 19, 2014 at 10:12 AM, Maarten Beek via vtkusers
> <vtkusers at vtk.org> wrote:
> > Hi all,
> >
> > Yesterday I started exploring the options to draw 2d graphs in VTK.
> >
> > Why does
> >
> > m_pChart->GetPlot(0)->SetInputData(0);
> >
> > not remove the graph from my chart?
> >
> That isn't how the API was designed, you can call remove for a plot,
> or clear all plots.
> >
> > I am currently using
> > vtkTable* table = m_pChart->GetPlot(0)->GetInput();
> > if( 0 != table )
> > {
> > while( 0 < table->GetNumberOfRows() )
> > {
> > table->RemoveRow(0);
> > }
> > }
> >
> > m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!
> >
> Unless the data is marked as modified then the plot is cached, and it
> would be slow to rebuild on every render. This is pretty common in the
> VTK API, if an object is not marked as modified it is not surprising.
> I guess you might expect SetInputData on the plot to mark that as
> modified, which could be a bug in that method.
>
> Hope that makes it clearer, it has been a while since I went through
> all of this logic, and it is possible we still have one or two bugs
> lurking in there.
>
> Marcus
>
>
> ------------------------------
>
> Message: 21
> Date: Fri, 19 Dec 2014 16:17:00 +0000 (UTC)
> From: Maarten Beek <beekmaarten at yahoo.com>
> To: "Marcus D. Hanwell" <marcus.hanwell at kitware.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Clearing vtkPlot object
> Message-ID:
> <
> 458881052.783681.1419005820937.JavaMail.yahoo at jws100193.mail.ne1.yahoo.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> In the debugger, I followed the call
> m_pChart->GetPlot(0)->SetInputData(0);
> all the way into vtkContextMapper2D::SetInputConnection()? and it seems to
> invoke the calls inputs->SetNumberOfInformationObjects(0); and
> this->Modified().
> 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)).
> 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.)
> So I think my problem is gone, as long as I don't try to understand what
> is going on. ;-)
> Maarten
>
>
>
> On Friday, December 19, 2014 10:48 AM, Marcus D. Hanwell <
> marcus.hanwell at kitware.com> wrote:
>
>
> On Fri, Dec 19, 2014 at 10:12 AM, Maarten Beek via vtkusers
> <vtkusers at vtk.org> wrote:
> > Hi all,
> >
> > Yesterday I started exploring the options to draw 2d graphs in VTK.
> >
> > Why does
> >
> > m_pChart->GetPlot(0)->SetInputData(0);
> >
> > not remove the graph from my chart?
> >
> That isn't how the API was designed, you can call remove for a plot,
> or clear all plots.
> >
> > I am currently using
> > vtkTable* table = m_pChart->GetPlot(0)->GetInput();
> > if( 0 != table )
> > {
> >? ? while( 0? < table->GetNumberOfRows() )
> >? ? {
> >? ? ? ? table->RemoveRow(0);
> >? ? }
> > }
> >
> > m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!
> >
> Unless the data is marked as modified then the plot is cached, and it
> would be slow to rebuild on every render. This is pretty common in the
> VTK API, if an object is not marked as modified it is not surprising.
> I guess you might expect SetInputData on the plot to mark that as
> modified, which could be a bug in that method.
>
> Hope that makes it clearer, it has been a while since I went through
> all of this logic, and it is possible we still have one or two bugs
> lurking in there.
>
> Marcus
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141219/bdcd33f1/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 22
> Date: Fri, 19 Dec 2014 14:15:48 -0700 (MST)
> From: updega2 <updega2 at berkeley.edu>
> To: vtkusers at vtk.org
> Subject: [vtkusers] Issues with VTK Delaunay 2D for simple cases
> Message-ID: <1419023748672-5729928.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I am using vtkDelaunay2D for triangulation of cells in 3D based on lines
> and
> points. Each one of the cells prior to triangulation has the boundary of a
> triangle. Obviously, there are other points and lines given within the
> triangle boundary, so there is something for the algorithm to triangulate.
> Here are few bullet points describing what I am doing.
>
> 1. I use a transform to transform each cell to the xy plane prior to
> running
> vtkDelaunay2D
>
> 2. Each cell has a triangular boundary, but there are other lines/points
> within the boundary
>
> 3. I am doing a constrained delaunay (i.e. I am providing the triangular
> boundary, so that cells can not be added outside the cell boundary)
>
> This is working well besides what seems to be the easiest triangulations.
> By
> easiest, I mean that the cell to be retriangulated lies in the xy plane, zx
> plane, or yz plane prior to the transformation. Something interesting to
> note, is if I take the transformed cell to be triangulated and I restrict
> the precision of the points in the cell to 6 or 7 digits, the triangulation
> works for any input cell. However, I don't want to have to restrict the
> precision of the cell points, as that may cause issues later.
>
> I was wondering if anyone has ever seen similar issues, or if anyone has
> any
> insight into this?
>
> Thanks in advance,
>
> Adam
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Issues-with-VTK-Delaunay-2D-for-simple-cases-tp5729928.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 23
> Date: Fri, 19 Dec 2014 14:50:01 -0800
> From: J?lio Hoffimann <julio.hoffimann at gmail.com>
> To: Bill Lorensen <bill.lorensen at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Axes marker not working as expected
> Message-ID:
> <
> CAFRVdT8CaRRoWOYczrk6+-3mtfcqwsbhF0bue-+zR13yMU9dwg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Can anyone confirm QVTKWidget is not intended to be used as a local
> variable (see code bellow)?
>
> I'm getting a runtime error whenever the mouse cursor moves over the
> QVTKWidget window.
>
> -J?lio
>
>
> >> > VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent)
> >> > {
> >> > QVTKWidget *qvtkwidget = new QVTKWidget;
> >> >
> >> > auto axes = vtkSmartPointer<vtkAxesActor>::New();
> >> > axes->SetXAxisLabelText("x");
> >> > axes->SetYAxisLabelText("y");
> >> > axes->SetZAxisLabelText("z");
> >> >
> >> > auto orientationMarker =
> >> > vtkSmartPointer<vtkOrientationMarkerWidget>::New();
> >> > orientationMarker->SetInteractor(qvtkwidget->GetInteractor());
> >> > orientationMarker->SetOrientationMarker(axes);
> >> > orientationMarker->SetEnabled(1);
> >> >
> >> > // sphere
> >> > auto sphereSource = vtkSmartPointer<vtkSphereSource>::New();
> >> > sphereSource->SetCenter(8, 8, 8);
> >> > sphereSource->SetRadius(5.0);
> >> > auto mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
> >> > mapper->SetInputConnection(sphereSource->GetOutputPort());
> >> > auto actor = vtkSmartPointer<vtkActor>::New();
> >> > actor->SetMapper(mapper);
> >> >
> >> > auto renderer = vtkSmartPointer<vtkRenderer>::New();
> >> > renderer->AddActor(axes);
> >> > renderer->AddActor(actor);
> >> >
> >> > vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();
> >> > renderWindow->AddRenderer(renderer);
> >> > }
> >>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141219/feb6d740/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 24
> Date: Fri, 19 Dec 2014 14:51:00 -0800
> From: J?lio Hoffimann <julio.hoffimann at gmail.com>
> To: Sean McBride <sean at rogue-research.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] vtkTypeMacro warning
> Message-ID:
> <
> CAFRVdT9PvBmRFqgMH_jkJc4se_TQ1EOWA+4DdQuhkmKimtjOMg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Sean,
>
> Did you solved this issue?
>
> -J?lio
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141219/f1d9fa52/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 25
> Date: Sat, 20 Dec 2014 21:34:05 +0800
> From: cvinllen <cvinllen at gmail.com>
> To: vtkusers at vtk.org
> Subject: [vtkusers] How to read a dicom and display in the in the
> windows
> Message-ID: <54957ACD.1060601 at gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello:
> I use vtk 4 before, last week, i install vtk 6, it's looks like
> some class and function changed. I write a simple code, read dicom and
> display, it's can run success before i update the vtk to 6:
>
> //read dicom
> vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
> reader->SetDataByteOrderToLittleEndian();
> reader->SetDirectoryName(path.c_str());
> reader->SetDataOrigin(0.0, 0.0, 0.0);
>
> //store in the vtkImageData
> vtkSmartPointer<vtkImageData> imageData =
> vtkSmartPointer<vtkImageData>::New();
> imageData = reader->GetOutput();
>
> //i think here has problem, because gdb show bug here
> vtkImageCast *cast = vtkImageCast::New();
> cast->SetInputData(imageData);
> cast->ClampOverflowOn();
> cast->SetOutputScalarTypeToUnsignedShort();
>
> vtkPiecewiseFunction *opacityTransferFunction =
> vtkPiecewiseFunction::New();
> opacityTransferFunction->RemoveAllPoints();
> opacityTransferFunction->AddPoint(0, 0.0);
> opacityTransferFunction->AddPoint(255, 1);
>
> vtkColorTransferFunction *colorTransferFunction =
> vtkColorTransferFunction::New();
> colorTransferFunction->RemoveAllPoints();
> colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0);
> colorTransferFunction->AddRGBPoint(255, 1.0, 1.0, 1.0);
>
> vtkVolumeProperty *volumeProperty = vtkVolumeProperty::New();
> volumeProperty->SetColor(colorTransferFunction);
> volumeProperty->SetScalarOpacity(opacityTransferFunction);
> volumeProperty->ShadeOn();
> volumeProperty->SetInterpolationTypeToLinear();
>
> vtkVolumeRayCastCompositeFunction *compositeFunction =
> vtkVolumeRayCastCompositeFunction::New();
> vtkVolumeRayCastMapper *volumeMapper = vtkVolumeRayCastMapper::New();
> volumeMapper->SetVolumeRayCastFunction(compositeFunction);
> volumeMapper->SetInputData(cast->GetOutput());
>
> vtkVolume *volume = vtkVolume::New();
> volume->SetMapper(volumeMapper);
> volume->SetProperty(volumeProperty);
>
> vtkCamera *aCamera = vtkCamera::New();
> aCamera->SetViewUp (0, 0, -1);
> aCamera->SetPosition (0, 1, 0);
> aCamera->SetFocalPoint (0, 0, 0);
> aCamera->ComputeViewPlaneNormal();
> aCamera->Dolly(1.0);
>
> vtkRenderer *renderer = vtkRenderer::New();
> renderer->RemoveAllViewProps();
> renderer->AddVolume(volume);
> renderer->SetActiveCamera(aCamera);
> renderer->SetBackground( 0,0,0 );
> renderer->ResetCamera ();
> //renderer->Render();
>
> vtkRenderWindow *renWin = vtkRenderWindow::New();
> renWin->AddRenderer(renderer);
> renWin->SetSize(500, 500);
> renWin->Start();
> renWin->Render(); // gdb show the bug occur
>
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> iren->SetRenderWindow(renWin);
> iren->Initialize();
> iren->Start();
>
> _the gdb show:_
> [New Thread 0x7fffe1385700 (LWP 4012)]
> [Thread 0x7fffe1385700 (LWP 4012) exited]
> [New Thread 0x7fffe1385700 (LWP 4013)]
> [Thread 0x7fffe1385700 (LWP 4013) exited]
> [New Thread 0x7fffe1385700 (LWP 4014)]
> [Thread 0x7fffe1385700 (LWP 4014) exited]
>
> X Error of failed request: BadMatch (invalid parameter attributes)
> Major opcode of failed request: 156 (GLX)
> Minor opcode of failed request: 11 (X_GLXSwapBuffers)
> Serial number of failed request: 687
> Current serial number in output stream: 687
> [Inferior 1 (process 4006) exited with code 01]
>
>
>
> I dont kown what the difference between the vtk 6 and vtk 4, greate
> appreciates for anyone's reply!
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141220/8b16a776/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 26
> Date: Sun, 21 Dec 2014 18:45:48 -0800
> From: J?lio Hoffimann <julio.hoffimann at gmail.com>
> To: Bill Lorensen <bill.lorensen at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Subject: Re: [vtkusers] Axes marker not working as expected
> Message-ID:
> <
> CAFRVdT_Vm7tEvjubKHSHEGiTrDdmdasLK927hrog3V9Tmdrdsw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I recompiled VTK in debug mode and the vtkOrientationMarkerWidget segfaults
> in line 350 of vtkOrientationMarkerWidget.cxx (see screenshot).
>
> I'm using VTK 6.2 from Git, Qt5, GCC 4.9, C++14. The current code that is
> causing the segfault is:
>
> VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent){
> QVTKWidget *qvtkwidget = new QVTKWidget;
> qvtkwidget->setSizePolicy(QSizePolicy::MinimumExpanding,
> QSizePolicy::MinimumExpanding);
>
> auto renderer = vtkSmartPointer<vtkRenderer>::New();
>
> vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();
> renderWindow->AddRenderer(renderer);
>
> auto axes = vtkSmartPointer<vtkAxesActor>::New();
> axes->SetXAxisLabelText("x");
> axes->SetYAxisLabelText("y");
> axes->SetZAxisLabelText("z");
>
> auto orientationMarker =
> vtkSmartPointer<vtkOrientationMarkerWidget>::New();
> orientationMarker->SetInteractor(qvtkwidget->GetInteractor());
> orientationMarker->SetOrientationMarker(axes);
> orientationMarker->SetEnabled(1);}
>
> Could you please tell me why this implementation is failing?
>
> Appreciate any help,
> J?lio.
>
> 2014-12-19 14:50 GMT-08:00 J?lio Hoffimann <julio.hoffimann at gmail.com>:
>
> > Can anyone confirm QVTKWidget is not intended to be used as a local
> > variable (see code bellow)?
> >
> > I'm getting a runtime error whenever the mouse cursor moves over the
> > QVTKWidget window.
> >
> > -J?lio
> >
> >
> >>> > VTKViewer::VTKViewer(QWidget *parent) : QWidget(parent)
> >>> > {
> >>> > QVTKWidget *qvtkwidget = new QVTKWidget;
> >>> >
> >>> > auto axes = vtkSmartPointer<vtkAxesActor>::New();
> >>> > axes->SetXAxisLabelText("x");
> >>> > axes->SetYAxisLabelText("y");
> >>> > axes->SetZAxisLabelText("z");
> >>> >
> >>> > auto orientationMarker =
> >>> > vtkSmartPointer<vtkOrientationMarkerWidget>::New();
> >>> > orientationMarker->SetInteractor(qvtkwidget->GetInteractor());
> >>> > orientationMarker->SetOrientationMarker(axes);
> >>> > orientationMarker->SetEnabled(1);
> >>> >
> >>> > // sphere
> >>> > auto sphereSource = vtkSmartPointer<vtkSphereSource>::New();
> >>> > sphereSource->SetCenter(8, 8, 8);
> >>> > sphereSource->SetRadius(5.0);
> >>> > auto mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
> >>> > mapper->SetInputConnection(sphereSource->GetOutputPort());
> >>> > auto actor = vtkSmartPointer<vtkActor>::New();
> >>> > actor->SetMapper(mapper);
> >>> >
> >>> > auto renderer = vtkSmartPointer<vtkRenderer>::New();
> >>> > renderer->AddActor(axes);
> >>> > renderer->AddActor(actor);
> >>> >
> >>> > vtkRenderWindow *renderWindow = qvtkwidget->GetRenderWindow();
> >>> > renderWindow->AddRenderer(renderer);
> >>> > }
> >>>
> >>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141221/d5f6720a/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 27
> Date: Mon, 22 Dec 2014 13:02:49 +0100
> From: Jean-Luc Szpyrka <Jean-Luc.Szpyrka at inria.fr>
> To: vtkusers at vtk.org
> Subject: [vtkusers] no crystal eye (quand_buffer) stereo with Qt5 /
> VTK 6.1 / Nvidia
> Message-ID: <638120AD-2199-4987-9A5B-6DD8E7767442 at inria.fr>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
>
> I am dealing with stereo rendering pb on VTK6 and Qt5.
>
> The attached code sample correctly displays stereo rendering
> (quad_buffer/crystal eyes, but also other stereo types e.g
> horizontal_split
> or anaglyph) when compiled with QT4. It works with VTK6.0 and VTK6.1
>
> The same code compiled with QT5 (5.3) and VTK6.1 does not render
> quad_buffer stereo (anaglyph and horizontal_split stereo are OK).
>
> The host runs FedoraCore20, with the distrib version of Nvidia drivers
> (331-39-2). Both binaries are linked with the same opengl dirvers.
>
> It is a known issue with quand_buffer rendering with VTK6.1 and QT5?
> Or?. what did I wrong ?
>
> Here is the code:
>
> --
> Jean-luc.Szpyrka at inria.fr <mailto:Jean-luc.Szpyrka at inria.fr>
> Tel: (33/0) 4 92 38 79 69
> INRIA - 2004 route des lucioles - BP 93 - 06902 SOPHIA-ANTIPOLIS cedex
> (France)
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0002.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: RenderWindowNoUiFile.cxx
> Type: application/octet-stream
> Size: 3167 bytes
> Desc: not available
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0001.obj
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141222/70b27b4d/attachment-0003.html
> >
>
> ------------------------------
>
> Message: 28
> Date: Mon, 22 Dec 2014 15:07:54 +0000 (UTC)
> From: Maarten Beek <beekmaarten at yahoo.com>
> To: VTK Users <vtkusers at vtk.org>
> Subject: [vtkusers] Bug in vtkContextInteractorStyle?
> Message-ID:
> <
> 2060571987.116971.1419260874413.JavaMail.yahoo at jws100162.mail.ne1.yahoo.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
> I happened to be looking at the source of the vtkContextInteractorStyle
> class.
> In the OnKeyPress() and OnKeyRelease() functions I see the folowwing:
> vtkVector2i
> position(this->Interactor->GetEventPosition()[0],???????????????????????????????
> this->Interactor->GetEventPosition()[0]);
> which to me looks wrong.
> Not sure whether one of the vtk developers has already been made aware of
> this.
>
> Maarten
> ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141222/4b299789/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 29
> Date: Mon, 22 Dec 2014 17:49:16 +0000 (UTC)
> From: Maarten Beek <beekmaarten at yahoo.com>
> To: VTK Users <vtkusers at vtk.org>
> Subject: [vtkusers] How to select a VtkPlot object in a vtkChart?
> Message-ID:
> <
> 682874823.161846.1419270556334.JavaMail.yahoo at jws100171.mail.ne1.yahoo.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
> I would like to know how I would select a vtkPlot (better: vtkPlotLine)
> object in a vtkChart (better: vtkChartXY)?
> 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)?
>
> Thanks - Maarten
> ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/vtkusers/attachments/20141222/bde205cd/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> ------------------------------
>
> End of vtkusers Digest, Vol 128, Issue 9
> ****************************************
>
--
"There is plenty of room at the bottom!" R. Feynman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141222/f587450d/attachment.html>
More information about the vtkusers
mailing list