<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [vtkusers] Windows Forms Application and VTK under Visual C++ 2005</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I did get it to work inside a .NET application. I made .NET wrappers which are up-to-date for VTK 5.0.1 but not for 5.0.2 yet. You can either take the wrappers as-is or just look at the code to see how to embed VTK in a Windows Form and do it yourself. With managed C++, you could do most of the VTK as native C++ and make only a little managed C++. <A HREF="http://vtkdotnet.sourceforge.net/">http://vtkdotnet.sourceforge.net/</A><BR>
- Drew<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: vtkusers-bounces+ajd27=tc.cornell.edu@vtk.org on behalf of Bob Palank<BR>
Sent: Sat 4/14/2007 4:59 PM<BR>
To: Meisam Aliroteh; vtkusers@vtk.org<BR>
Subject: RE: [vtkusers] Windows Forms Application and VTK under Visual C++ 2005<BR>
<BR>
Following the MVC pattern, has anyone developed a VC++.Net application where<BR>
one form holds the controls and the other form displays the image.&nbsp; I would<BR>
still like the display form&nbsp; to have the mouse rotate and zoom controls.&nbsp; I<BR>
think I'm just adding to the previous message for clarity.<BR>
BR<BR>
&nbsp; Bob<BR>
&nbsp; -----Original Message-----<BR>
&nbsp; From: vtkusers-bounces+bob=stlcc.org@vtk.org<BR>
[<A HREF="mailto:vtkusers-bounces+bob=stlcc.org@vtk.org">mailto:vtkusers-bounces+bob=stlcc.org@vtk.org</A>]On Behalf Of Meisam Aliroteh<BR>
&nbsp; Sent: Friday, April 13, 2007 12:55 PM<BR>
&nbsp; To: vtkusers@vtk.org<BR>
&nbsp; Subject: [vtkusers] Windows Forms Application and VTK under Visual C++<BR>
2005<BR>
<BR>
<BR>
&nbsp; Hi,<BR>
<BR>
&nbsp; I have downloaded the latest source code for vtk and the latest cmake and<BR>
was able to compile VTK using Visual C++ 2005. I have also been able to<BR>
create some simple console application to render a sphere. I used cmake to<BR>
create the VS8 solution, opened the solution with VC++ and added the code<BR>
( i.e actor, renderer, interactor) for rendering a sphere on the screen.<BR>
<BR>
&nbsp; I would like to know if there is a rather easy and simple way to have a<BR>
Windows Forms Application instead of a Console Application, and have VTK<BR>
render/interact with that form. Basically, I would like to use VS8 IDE to<BR>
design the GUI of my form and VTK to do the 3D rendering !!!<BR>
<BR>
&nbsp; Thanks<BR>
--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.5.446 / Virus Database: 269.4.0/760 - Release Date: 4/13/2007<BR>
8:04 PM<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>