[IGSTK-Users] Problem while linking ObjectRepresentations withmouse events
Vincent Gratsac
vincent.gratsac at irisa.fr
Mon Jan 28 06:27:57 EST 2008
//Hi all,
I tried to add a method to ImageObjectRepresentation class in order to
be able to change its slice number by giving a physical point. This
method is called /RequestResliceToPhysicalPoint(PointType point)./
Would you be interested in committing it into IGSTK ? Or do you think
this is not a right way to do ?
Vincent
Torleif Sandnes a écrit :
> Hi Vincent.
>
>> Actually, the only solution is can see would be to "manually" store
>> relation between an ImageSpatialObjectRepresentation and its
>> ImageSpatialObject and Orientation.
>
> This is what I ended up doing too. Unfortunately, I couldn´t find any
> other way to solve this problem.
>
> Regards,
>
> Torleif Sandnes
Vincent Gratsac wrote :
>
> Hi igstk-users,
>
> I'm developing a Qt application which will be able to open as many
> SpatialObjects as the user wants.
> Now I'm working on linking ImageSpatialObjectRepresentations with
> mouse events.
>
> My problem appears when I want to update all Representations' slice
> number, depending on mouse coordinates :
>
> - First, there is no method like RequestGetImageSpatialObject() in
> the ImageSpatialObjectRepresentation class, so I can't call
> TransformPhysicalPointToIndex() method for translating mouse
> coordinates to image slice. I found no way to know which image object
> is related to each representation.
>
> - Second, I can't get the Representation's orientation. So I don't
> know which coordinate component I have to use when calling the
> RequestSetSliceNumber() method. (x, y or z ?)
>
> I suppose that ImageSpatialObject and Orientation are not exposed in
> the ImageSpatialObjectRepresentation class for security reasons...
>
> Actually, the only solution is can see would be to "manually" store
> relation between an ImageSpatialObjectRepresentation and its
> ImageSpatialObject and Orientation.
>
> Does anyone have suggestions which could help me ?
>
> Thank you,
>
> Vincent
--
Vincent Gratsac
----------------------------------------------------
Unité/Projet VisAGeS U746
INSERM/INRIA/CNRS/U. de Rennes I
IRISA
Campus de Beaulieu, 35042 Rennes Cedex, France
Ph: +33 (0) 2 23 23 49 20/ Fax: +33/0 2 99 84 71 71
email: Vincent.Gratsac at irisa.fr
http://www.irisa.fr/visages/
-----------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20080128/ddd563c9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: igstkImageSpatialObjectRepresentation.h
Type: text/x-chdr
Size: 7781 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20080128/ddd563c9/attachment.h>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: igstkImageSpatialObjectRepresentation.txx
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20080128/ddd563c9/attachment.ksh>
More information about the IGSTK-Users
mailing list