[Insight-users] integration ITK,VTK and MFC ..
Luis Ibanez
luis.ibanez at kitware.com
Thu Dec 1 10:54:17 EST 2005
Hi Zien,
Yes, you are in the right path.
If you already managed to create a project
with ITK and MFC, adding VTK should be very easy.
You may want to do the following:
1) Add to your CMakeLists.txt file
FIND_PACKAGE(VTK REQUIRED)
IF (VTK_FOUND)
INCLUDE (${VTK_USE_FILE})
ENDIF (VTK_FOUND)
2) Add your VTK classes to the code in your project.
3) You will need to look at the examples in VTK on how to
display a VTK window in an MFC interface.
Please look at:
VTK/Examples/GUI/Win32/vtkMFC
Regards,
Luis
--------------------------------------------------------
Zien wrote:
> Hi,all:
>
> I want to integrate ITK,VTK and MFC into my application.
> First,I try to combine ITK and MFC
> followed by the example in the ' GettingStarted2_Using ITK with VTK.pdf '
> It is success to build a MFC project.
> But it's only ITK+MFC.......
>
> For some suggestion about my requirement:
> http://www.itk.org/pipermail/insight-users/2003-March/002751.html
>
> It says only add some code for VTK link into CMakeLists.txt.
>
> If I add the code about VTK link into my project's CMakeList.txt,
> and add VTK source code into my application.
> It is the way to integrate ITK,VTK and MFC.
>
> Is it right to do this ?
>
> Or how should I do about this question?
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list