[vtkusers] Static positioned actor
Obada Mahdi
omahdi at gmx.de
Sat Nov 11 08:19:51 EST 2006
Hi Doug!
On 11/11/06, Doug Sheahan <doug.sheahan at gmail.com> wrote:
> Hi, I am trying to create a scene where I have a model in the center of
> view that can be rotated about with the camera (currently using a
> vtkRenderWindowInteractor) but I want to have a floor plane that stay
> constant. Is there a way to remove an actor from the interactor's control
> or to apply a reverse transform on the object?
Actually, you can do kind of both, but I am not sure if that is what
you are looking for.
If you use an interactor in "actor" mode, i.e. such that interaction
affects orientation, position etc. of a single actor, you can restrict
interaction via vtkProp::DragableOff() (disallowing translation) or
disable it altogether via vtkProp::PickableOff(), see
http://www.vtk.org/doc/nightly/html/classvtkProp.html
If you use an interactor in "camera" mode, you can use the specialized
actor "vtkFollower" instead of "vtkActor". A vtkFollower is
associated with a particular camera, and every time it is drawn, it
will automatically compute and apply a transformation based on the
camera view, such that it maintains its orientation relative to the
camera; see
http://www.vtk.org/doc/nightly/html/classvtkFollower.html
HTH,
Obada
More information about the vtkusers
mailing list