[vtkusers] Urgent !! interactor problem
exomind
gael.goret at gmail.com
Fri Feb 27 03:35:12 EST 2009
I want to render the deformation of a molecular structure (polydata type). To
do this, I try to render all the actors (store in gfx.nma) and hide all of
them, after that as you can see, I show one actor and i render the scene.
the rendering is good, but i lose the interaction with my actor.
how can i maintain the interactor during the rendering loop ?
Should i use another method to represent the deformation ?
AnimationScene/Cue ? Transformation ?
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
def mol_nma_renderer(gfx):
gfx.renderer = vtk.vtkOpenGLRenderer()
gfx.renwin.AddRenderer(gfx.renderer)
beg=1
for mol in gfx.nma:
gfx.renderer.AddActor(mol.acteur)
mol.acteur.VisibilityOff()
gfx.renwin.SetDesiredUpdateRate(60)# useful ?
gfx.iren.SetStillUpdateRate(60)
while 1:
for mol in gfx.nma:
mol.acteur.VisibilityOn()
gfx.renwin.Render()
mol.acteur.VisibilityOff()
mol.acteur.VisibilityOn()
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
--
View this message in context: http://www.nabble.com/Urgent-%21%21-interactor-problem-tp22241506p22241506.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list