[IGSTK-Users] Polaris Tracking Issue
Ashwath Hegde, ERS-HCLTech
Ashwathh at hcl.com
Mon Jun 20 11:18:04 EDT 2011
Hi All,
I am testing my application in which GUI is developed in QT.
I have used the code in NeedleBiopsy for Tracking in my application.
The problem is that the "TrackerToolTransformUpdateEvent"
event is not getting triggered and Tracking callback function is not getting called.
Below is the way I have declared them .
1.)Inside .h file
typedef itk::ReceptorMemberCommand <QTFIRST> LoadedObserverType;
LoadedObserverType::Pointer m_TrackerToolUpdateObserver;
2.)Inside .cpp file:
void QTFIRST::SetActiveTrackerTool()
{
m_ActiveTool->AddObserver(igstk::TrackerToolTransformUpdateEvent(),m_TrackerToolUpdateObserver);
}
Inside,
QTFIRST::QTFIRST(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
m_TrackerToolUpdateObserver = LoadedObserverType::New();
m_TrackerToolUpdateObserver->SetCallbackFunction(this,&QTFIRST::Tracking);
}
Is there any problem in the above code.
Please provide some suggestion on this.
Thanks and Regards,
Ashwath.
________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20110620/ee224789/attachment.html>
More information about the IGSTK-Users
mailing list