<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Patrick,<BR>
 <BR>
   Thank you for your reply! According to your guidance, I've got the result that I wanted. Thank you very much! You always so kind! Thank you.<BR>
 <BR>
Best Regards,<BR>
 <BR>
Shuiling<BR> <BR>> Date: Mon, 26 Jul 2010 12:11:47 -0700<BR>> From: cheng@isis.georgetown.edu<BR>> To: igstk-users@public.kitware.com<BR>> Subject: Re: [IGSTK-Users] Question about the tracker coordinate transformations<BR>> <BR>> Hi Shuiling,<BR>> <BR>> If you do need to get the Tref and Traw. Here is the method you should<BR>> be using:<BR>> <BR>> refTool->RequestGetTransformToParent();<BR>> tool->->RequestGetTransformToParent();<BR>> <BR>> or you can use explicit method:<BR>> <BR>> refTool->RequestComputeTransformTo( tracker );<BR>> tool->RequestComputeTransformTo( tracker );<BR>> <BR>> You need to setup an observer to receive the transform.<BR>> <BR>> Here is some sample code:<BR>> <BR>> // Connect observer<BR>> typedef igstk::TransformObserver ObserverType;<BR>> ObserverType::Pointer transformObserver = ObserverType::New();<BR>> transformObserver->ObserveTransformEventsFrom( m_ActiveTool );<BR>> transformObserver->Clear();<BR>> <BR>> // Request for transform<BR>> m_ActiveTool->RequestComputeTransformTo( m_WorldReference );<BR>> // Check the recipient<BR>> if ( transformObserver->GotTransform() )<BR>> {<BR>> // Retreive the transform<BR>> igstk::Transform transform = transformObserver->GetTransform() ;<BR>> }<BR>> <BR>> <BR>> Patrick<BR>> <BR>> <BR>> <BR>> On 7/25/2010 8:26 PM, ling Shui wrote:<BR>> > Hi all,<BR>> > <BR>> > Sorry to disturb you again! Maybe my last email didn't represent the <BR>> > question clearly.<BR>> > On page 139 of IGSTK Book - formula (9.2) and (9.3) - I don't know how <BR>> > to obtain the transform Tref and Traw with the class of IGSTK. Who can <BR>> > help me? Thank you advance for any help.<BR>> > <BR>> > Best Regards,<BR>> > <BR>> > Shuiling<BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > Hotmail: Trusted email with Microsoft¡¯s powerful SPAM protection. Sign <BR>> > up now. <https://signup.live.com/signup.aspx?id=60969><BR>> > <BR>> > <BR>> > <BR>> > _______________________________________________<BR>> > Powered by www.kitware.com<BR>> > <BR>> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR>> > <BR>> > Follow this link to subscribe/unsubscribe:<BR>> > http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users<BR>> _______________________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR>> <BR>> Follow this link to subscribe/unsubscribe:<BR>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users<BR>                                        <br /><hr />Hotmail: Free, trusted and rich email service. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>