VTK in a VC++ Dialog

Asa'd Abu-Tarif tarifa at rpi.edu
Wed Mar 29 00:14:53 EST 2000


Hi Gerald,
All what you need to do is to put the visualization stuff in the
OnInitDialog message, the initialization in the constructor of the dialog
and the clean up in the DestroyWindow message.

Attached are two files (the header and the source) for a test VTKDialog that
I've created. It displays a cone.

The only thing that you might want to change for this example is to set the
renderer window size to be equal to the dialog size because currently it
exceeds the static size I'm specifying and so the OK and Cancel buttons are
not displayed.

Asad

----- Original Message -----
From: "Gerald E Dalley" <dalleyg at ee.eng.ohio-state.edu>
To: <vtkusers at public.kitware.com>
Sent: Tuesday, March 28, 2000 3:58 PM
Subject: VTK in a VC++ Dialog


> Does anyone know if it's possible to have VTK render inside a custom
> dialog control instead of in its own window?  I'm trying to figure out how
> to use the MS VC++ 6.0 visual dialog editor to handle setting up my GUI
> layout and controls instead of spending months trying to figure out how to
> program Windows apps.
>
> --Gerald Dalley
>   dalleyg at ee.eng.ohio-state.edu
>
>
> --------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at public.kitware.com>. For help, send message body containing
> "info vtkusers" to the same address.
> --------------------------------------------------------------------
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTKDialog.h
Type: application/octet-stream
Size: 1424 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000329/639c0309/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTKDialog.cpp
Type: application/octet-stream
Size: 2078 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000329/639c0309/attachment-0003.obj>


More information about the vtkusers mailing list