<div dir="ltr">Hi Andinet,<br><br>Thanks for the answers. I will do that. I have two other questions though.<br><br>What happens if I attach a view to a tracking tool and the communication gets cut off in between? Does the entire view window go blank?<br>
<br>Now I am attaching my spatial object to a tracker tool and tracker tool to a tracker. The tracker's parent is a world reference. So, a position of (0,0,0) on the tracker implies the world_reference. Is that correct? <br>
<br>Thanks,<br><br>Aswin.<br><br><br><div class="gmail_quote">On Wed, Jul 16, 2008 at 9:29 AM, Andinet Enquobahrie <<a href="mailto:andinet.enqu@kitware.com">andinet.enqu@kitware.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Aswin,<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
<br>
I have noticed that in case I lose connection to my tracker, the spatial object connected to it disappears after the data validity time has expired. Would it be possible to change the color of the spatial object, say from green to red, rather than letting it disappear altogether?<br>
<br>
</blockquote></div>
You are correct. The current behavior is that the object will disappear if the transform<br>
time expires. We would like to keep it as it is in cvs ( main distribution )<br>
However, for your own use, you can locally modify the state machine configuration in<br>
ObjectRepresentation class to be able to change the actor color when the transform<br>
time expires. It is straight forward to do that.<br>
<br>
In the ObjectRepresentation::RequestVerifyTimeStampAndUpdateVisibility() method,<br>
<br>
1) InvalidTimeStamp input gets invoked if the time expires, otherwise the ValidTimeStamp input<br>
will be invoked.<br>
<br>
2) These state input will initiate a transition to methods that will turn on/off the actor<br>
visibility. All you need to do is modify these methods and change the actor colors instead of<br>
turning on/off the visibility.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, I need to write a tracker for spirometer input through NiDAQ. Now, by default, a tracker updates a transform. But mine's more of a signal (breathing) than position. Should I just write it that the signal is one axis of the transform with the other two set to zero? Is there a better way?<br>
</blockquote></div>
Yes, for minimal change, you can store the signal value as one of the components<br>
of the translation vector of the tool transform and keep the others to zero. You will need<br>
to write NiDAQ specific tracker and trackerTool classes. You might want to start<br>
with the current tracker classes.<br>
<br>
Let us know if you more questions..<br>
<br>
-Andinet<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
IGSTK-Users mailing list<br>
<a href="mailto:IGSTK-Users@public.kitware.com" target="_blank">IGSTK-Users@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br>
</blockquote>
<br>
<br>
-- <br>
==========================================================<br>
Andinet A. Enquobahrie, PhD<br>
R&D Engineer<br>
Kitware Inc.<br>
<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x124<br>
<a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
<br>
</blockquote></div><br></div>