[vtkusers] VTK feature request -- an actor's renderers
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Wed Apr 28 15:46:07 EDT 2004
Hi Bill,
There's no method: vtkRendererCollection * vtkActor::GetRenderers()...
Although I don't think it would be much trouble to implement.
What you could do is get the collection of renderers for a
vtkRenderWindow, then check each renderer for the actor using:
int vtkCollection::IsItemPresent (vtkObject *)
hth
Goodwin
--__--__--
Message: 7
From: William R Sherman <wsherman at ncsa.uiuc.edu>
Date: Wed, 28 Apr 2004 12:15:54 -0500 (CDT)
To: vtkusers at vtk.org
Cc: charles.law at kitware.com, wsherman at ncsa.uiuc.edu
Subject: [vtkusers] VTK feature request -- an actor's renderers
Hello,
I've recently been working on a tool where I would like to traverse the
visualization pipeline, including nodes on the graphics side of things.
And, given any node in the pipeline, I can just about reach all the
other nodes in the pipeline -- with one exception. I can't figure out
how to determine what vtkRenderers a vtkActor has been assigned to.
It is possible to get a list of actors assigned to a renderer, and in
just about every other case, move either direction in the pipeline,
and I would like to be able to move in the actor to renderer direction.
Perhaps it's already doable, but I couldn't find a function to do it.
If it isn't doable, I'd like to request this as a new feature in the 4.x
line of VTK.
Thank you,
Bill
More information about the vtkusers
mailing list