OK! Please help
I am trying to write an open inventor code that draws, say,
a sphere of a given radius.
The radius will be read from a UNIX socket, or file, or
even generated internally, by a function.
I am trying to find a way to make the scene redraw every time
data is read, and data is being read CONTINUSOUSLY
In other words, I would like to call a function fxn() that
sets a global variable, say, size, to be used in the scaleing
of an image.
The only tool I can see of any use is SoTimerSenso, but that one
creates a callback that is called every 1/30 of a second, so
in my mind, it is NOT a process that is running in the background
It seems sill that there is no node that does nothing but loop over:
1) calls a function to set variables (whether from file, socket, etc.)
2) redraws the scene.
I see rotor objects, translation objects, but those do not
allow me to plot a trajectory.
Other objects allow me to calcualte a trajectory, but then I lose
the ablility to continuosly call that function in the background.
OpenGL's GLUT library has this option:
where tick is continuosly called in the background.
For example, look at example 17-3 in the text.
I would like to render this way:
SbViewportRegion myViewport(WINWIDTH, WINHEIGHT);
something like that?
I look at the SoCalculator, and can envision a way I can kludge this
to make it work, but what I am trying to do seems so basic that I must
be missing something.