<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<i></i>Hi all,<br>
<br>
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 <i>RequestResliceToPhysicalPoint(PointType point).</i><br>
<br>
Would you be interested in committing it into IGSTK ? Or do you think
this is not a right way to do ?<br>
<br>
Vincent<br>
<br>
Torleif Sandnes a écrit :
<blockquote cite="mid:037C4AC0-AA39-4D2D-B551-23E5E0A871F0@sintef.no"
 type="cite">Hi Vincent.
  <br>
  <br>
  <blockquote type="cite">Actually, the only solution is can see would
be to "manually" store relation between an
ImageSpatialObjectRepresentation and its ImageSpatialObject and
Orientation.
    <br>
  </blockquote>
  <br>
This is what I ended up doing too. Unfortunately, I couldn´t find any
other way to solve this problem.
  <br>
  <br>
Regards,
  <br>
  <br>
Torleif Sandnes<br>
</blockquote>
Vincent Gratsac wrote :<br>
<blockquote type="cite"><br>
Hi igstk-users,
  <br>
  <br>
I'm developing a Qt application which will be able to open as many
SpatialObjects as the user wants.
  <br>
Now I'm working on linking ImageSpatialObjectRepresentations with mouse
events.
  <br>
  <br>
My problem appears when I want to update all Representations' slice
number, depending on mouse coordinates :
  <br>
  <br>
   - 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.
  <br>
  <br>
   - 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 ?)
  <br>
  <br>
I suppose that ImageSpatialObject and Orientation are not exposed in
the ImageSpatialObjectRepresentation class for security reasons...
  <br>
  <br>
Actually, the only solution is can see would be to "manually" store
relation between an ImageSpatialObjectRepresentation and its
ImageSpatialObject and Orientation.
  <br>
  <br>
Does anyone have suggestions which could help me ?
  <br>
  <br>
Thank you,
  <br>
  <br>
Vincent
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
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: <a class="moz-txt-link-abbreviated" href="mailto:Vincent.Gratsac@irisa.fr">Vincent.Gratsac@irisa.fr</a>
<a class="moz-txt-link-freetext" href="http://www.irisa.fr/visages/">http://www.irisa.fr/visages/</a>
-----------------------------------------------------
</pre>
</body>
</html>