[vtkusers] VTK with C#

Andrew Dolgert ajd27 at cornell.edu
Fri Dec 5 12:31:02 EST 2003


I have most of that working but haven't packaged it.  I use Activiz/COM
on my desk but can't afford it for students.

C# Windows Form calls -> managed C++ .NET Control calls
  -> native C++ class with VTK pipeline.

I followed the VTK 3.2 MFC sample, pulling HWNDs and events from the 
Control, instead.  You could do this without using managed C++, too,
if you want.

Maybe someone else put together a sample doing this?

- Drew Dolgert, Cornell Theory Center

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Asad Abu-Tarif
Sent: Friday, December 05, 2003 10:40 AM
To: Pedram Rezaei; vtkusers at vtk.org
Subject: Re: [vtkusers] VTK with C#


Hi,
Thanks for the info. I was just searching the vtkDonNetWrapper
for that specific function (SetParentID).

Only the GUI is in C# in my case, but the application logic is
all in unmanaged C++. So, really all what I need is to know how
to pass a C# window to an unmanaged function.

If complete wrappers do exist with plans to update them for
future VTK releases, that would be great. Otherwise, does
anyone know how to pass a C# window to an unmanaged C++
code so that VTK could render in that window?

Thanks,
- Asad





More information about the vtkusers mailing list