[IGSTK-Users] Question about the tracker coordinate transformations

ling Shui shuiling119 at hotmail.com
Tue Jul 27 09:34:43 EDT 2010


Hi Patrick,

 

   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.

 

Best Regards,

 

Shuiling
 
> Date: Mon, 26 Jul 2010 12:11:47 -0700
> From: cheng at isis.georgetown.edu
> To: igstk-users at public.kitware.com
> Subject: Re: [IGSTK-Users] Question about the tracker coordinate transformations
> 
> Hi Shuiling,
> 
> If you do need to get the Tref and Traw. Here is the method you should
> be using:
> 
> refTool->RequestGetTransformToParent();
> tool->->RequestGetTransformToParent();
> 
> or you can use explicit method:
> 
> refTool->RequestComputeTransformTo( tracker );
> tool->RequestComputeTransformTo( tracker );
> 
> You need to setup an observer to receive the transform.
> 
> Here is some sample code:
> 
> // Connect observer
> typedef igstk::TransformObserver ObserverType;
> ObserverType::Pointer transformObserver = ObserverType::New();
> transformObserver->ObserveTransformEventsFrom( m_ActiveTool );
> transformObserver->Clear();
> 
> // Request for transform
> m_ActiveTool->RequestComputeTransformTo( m_WorldReference );
> // Check the recipient
> if ( transformObserver->GotTransform() )
> {
> // Retreive the transform
> igstk::Transform transform = transformObserver->GetTransform() ;
> }
> 
> 
> Patrick
> 
> 
> 
> On 7/25/2010 8:26 PM, ling Shui wrote:
> > Hi all,
> > 
> > Sorry to disturb you again! Maybe my last email didn't represent the 
> > question clearly.
> > On page 139 of IGSTK Book - formula (9.2) and (9.3) - I don't know how 
> > to obtain the transform Tref and Traw with the class of IGSTK. Who can 
> > help me? Thank you advance for any help.
> > 
> > Best Regards,
> > 
> > Shuiling
> > 
> > ------------------------------------------------------------------------
> > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign 
> > up now. <https://signup.live.com/signup.aspx?id=60969>
> > 
> > 
> > 
> > _______________________________________________
> > Powered by www.kitware.com
> > 
> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> > 
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20100727/3d47df4e/attachment-0001.html>


More information about the IGSTK-Users mailing list