[vtkusers] TCL to C++, need HELP

Rio rioking13 at gmail.com
Fri Feb 2 06:35:31 EST 2007


Hi, everyone,

I am new to Tcl programming, a task require me to write a mouse selection
function. I have the code in tcl, and need to translate to C++. Finished
part of the work, but still not sure about the callbacl function, the code
is in tcl:

int Controller::cbLBR() //
{
// global MouseMotion

  if (int MouseMotion == 0) {
    eval picker Pick [iren GetEventPosition] 0 ren1
  }
  // Do the default things for the trackball style
  style OnLeftButtonUp
  }

Really dunt know how to convert : *eval picker Pick [iren GetEventPosition]
0 ren1*
to C++. . .
Anyone can help? any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070202/c61612e4/attachment.htm>


More information about the vtkusers mailing list