[IGSTK-Users] Question about the tracker coordinate transformations
Patrick Cheng
cheng at isis.georgetown.edu
Mon Jul 26 15:11:47 EDT 2010
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
More information about the IGSTK-Users
mailing list