<div>Hi, i have solved my problem. The solution is not very elegant, but it's work.</div> <div> </div> <div>the code is.</div> <div> </div> <div> </div><FONT color=#0000ff size=2> <div>double</FONT><FONT size=2> LastPos=0;</div></FONT><FONT color=#0000ff size=2> <div>int</FONT><FONT size=2> visible;</div></FONT> <div><FONT color=#008000 size=2></FONT> </div> <div><FONT color=#008000 size=2></FONT> </div> <div><FONT color=#008000 size=2>for(unsigned int i=0; i<1000; i++)</div></FONT><FONT size=2> <div></FONT><FONT color=#008000 size=2> {</div></FONT><FONT size=2> <div>tracker->RequestUpdateStatus();</div> <div>TransformType transform;</div> <div>VectorType position;</div> <div> </div> <div> </div> <div> </div> <div>coordSystemAObserver->Clear();</div> <div>trackerTool->RequestGetTransformToParent();</div> <div></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>
(coordSystemAObserver->GotTransform())</div> <div>{</div> <div>transform = coordSystemAObserver->GetTransform();</div> <div>position = transform.GetTranslation();</div></FONT><FONT color=#008000 size=2> <div></FONT><FONT size=2> </div> <div></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (LastPos!=position[2])</div> <div>visible =1;</div> <div></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </div> <div>visible=0;</div> <div>LastPos=position[2];</div> <div></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (visible)</div> <div>printf (</FONT><FONT color=#a31515 size=2>"%f %f %f %d\n"</FONT><FONT size=2>,position[0],position[1],position[2], visible);</FONT></div> <div><FONT size=2></FONT> </div> <div><FONT size=2>}</div></FONT> <div>}</div> <div> </div> <div> </div> <div>Julio Daniel<BR><BR><B><I>Daniel Gil <daniel_taek@yahoo.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT:
5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>my name is Julio Daniel Gil Cano. I just a question. how to verify if a tool is visible or not. I use the code of igstkPolarisTrackerTest2.cxx but the the fonction <FONT size=2>GotTransform() is always true. and i can't know when the tool is visible or not.</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2>Thanks.</FONT></DIV> <DIV> </DIV> <DIV>Julio Daniel<BR></DIV> <div></div></BLOCKQUOTE><BR><p>