[vtkusers] question of ImplicitPlaneWidget

Florian Schmidt mista.tapas at gmx.net
Wed Dec 18 10:37:25 EST 2002


On Wed, 18 Dec 2002 16:31:58 +0100
"Chunyan Jiang" <jiang at TI.FhG.DE> wrote:

> Dear vtk-users,
> I have one question about implicit plane widget. I use vtk nightly
> Oct.6 and vc++. And I create my application as example
> /Examples/GUI/Tcl/ImplicitPlaneWidget.tcl . It works now. However, it
> uses vtk windows. When I try to use MFC window and set
> renWin->SetParentId(m_hWnd);//renWin is vtkRenderWindow *
> the implicit plane widget does not appear although I press key "i".
> How can I show the plane widget? Furthermore, I don't want to use the
> key"i" to control the widget. Is there some other mothed to let the
> widget appear or disappear?

The latter question can be answered by: Subclass vtkInteractorStyleUser
and handle all interaction yourself. If there is a way just to override
certain keypresses etc, i don't know.

-- 
mista.tapas at gmx.net
http://mistatapas.ath.cx
http://www.arted.biz/mista.tapas



More information about the vtkusers mailing list