[IGSTK-Users] How to generate tool out of volume message?

Arefin Shamsil marefin at uwo.ca
Wed Aug 24 12:58:14 EDT 2011


 Hi All,

I am trying to use TrackerToolNotAvailableToBeTrackedEvent to add the feature of messaging 'Out of Volume' when any tracker tool goes out of the volume while tracking. So far I have tried using it in two ways as follows. 

igstkEventMacro( TrackerToolOutOfVolume, igstk::TrackerToolNotAvailableToBeTrackedEvent );

Since I am still learning, I am struggling in how to invoke this event and generate a message when tool goes out of volume in TrackerDataLogger example.

I also tried following the Navigator example where they have used it from line 3799 to line 3824 in Navigator.cxx file. 

It works in Navigator example because only one tool pointer is instantiated : m_TrackerTool. But for my case, I have a vector of tools. So I don't know how to make it work for the vector of tools.

Any suggestions on this matter will be greatly appreciated.

Sincerely

Arefin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20110824/7c5d2cde/attachment.html>


More information about the IGSTK-Users mailing list