[IGSTK-Users] adding another tracker to hello world & View->RequestSetTransformAndParent( )

Ray Tayek rtayek at ca.rr.com
Thu Jul 17 11:41:54 EDT 2008


hi, trying to write a tracker. so i duplicated the mouse tracker and 
mouse tracker tool code in some other classes, added SetTracking2 and 
SetTracker2 to the fui. i added an object like the ellipseoid to 
track and added another set of calls  to hello world as follows..

         m_GUI->View->RequestSetTransformAndParent(myIdentityTransform,myTracker);
         m_GUI->SetTracker2(myTracker);

         m_GUI->View->RequestSetTransformAndParent( 
identityTransform, tracker );
         m_GUI->SetTracker( tracker );


i only see one object. it seems that the last call to: 
m_GUI->View->RequestSetTransformAndParent( ) wins. internal update 
status is only being called for one tracker.

RequestSetTransformAndParent seems to call CoordinateSystemDelegator. 
so it looks like the view can only have one of these?

or perhaps i am confused.

any pointers will be appreciated.

thanks


---
vice-chair http://ocjug.org/





More information about the IGSTK-Users mailing list