[Insight-users] Interfacing itk+vtk with visual studio
Luis Ibanez
luis.ibanez at kitware.com
Sun May 22 19:58:03 EDT 2011
Hi Dora,
What version of FLTK are you using ?
Here is the content of a minimal myProjectGUI.fl file,
after creating it from "fluid":
# data file for the Fltk User Interface Designer (fluid)
version 1.0110
header_name {.h}
code_name {.cxx}
class myProjectGUI {open
} {
Function {myProjectGUI()} {open
} {
Fl_Window controlPanel {open selected
xywh {4 72 225 130} type Double visible
} {
Fl_Button {} {
label button
xywh {25 25 70 20}
}
}
}
}
and here is the header file that it generates:
// generated by Fast Light User Interface Designer (fluid) version 1.0110
#ifndef myProjectGUI_h
#define myProjectGUI_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
class myProjectGUI {
public:
myProjectGUI();
Fl_Double_Window *controlPanel;
};
#endif
As you can see, the type should be "Fl_Double_Window",
or "Fl_Window" instead of the plain type "Window".
Luis
----------------------------------------------------------
On Sun, May 22, 2011 at 4:20 AM, Dora Szasz <dora.szasz at yahoo.com> wrote:
> Hi Luis,
> I have tried to run the example from GettingStarted IV, itk integration with
> FLTK, but when I am building it, it returns me an error on the generated
> myProjectGUI.h:
> 2>D:\Lib\Project\MyProject_Qt\bin\myProjectGUI.h(10) : error C2143: syntax
> error : missing ';' before '*'
>
> This .h file is automatically generated, so I don't know what is the problem
> here.
> It looks like:
> #ifndef myProjectGUI_h
> #define myProjectGUI_h
> #include <FL/Fl.H>
> class myProjectGUI {
> public:
> myProjectGUI();
> Window *controlPanel;
> ~myProjectGUI();
> void Quit();
> void Hide();
> void Show();
> };
> #endif
> thank you, Luis for helping me a lot!
> ________________________________
> From: Luis Ibanez <luis.ibanez at kitware.com>
> To: Dora Szasz <dora.szasz at yahoo.com>
> Cc: "insight-users at itk.org" <insight-users at itk.org>
> Sent: Saturday, May 21, 2011 8:40 PM
> Subject: Re: [Insight-users] Interfacing itk+vtk with visual studio
>
> Hi Dora,
>
> Please read the Tutorials:
> http://www.itk.org/ITK/help/tutorials.html
>
> in particular:
> "Getting Started II: Using ITK with VTK"
> http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf
>
>
> You may also find useful the examples in
> Insight Applications:
>
> InsightApplications/Auxiliary/vtk
>
> itkReadITKImage3DExtractContourVTK.cxx
> itkReadITKImage3DSegmentShowVTK.cxx
> itkReadITKImageSegmentShowVTK.cxx
> itkReadITKImageShowSplineVTK.cxx
> itkReadITKImageShowVTK.cxx
>
>
> and the following paper in the Insight Journal:
> http://www.insight-journal.org/browse/publication/146
> http://hdl.handle.net/1926/495
>
>
>
> Luis
>
>
> ----------------------------------------------------
> On Thu, May 19, 2011 at 12:14 PM, Dora Szasz <dora.szasz at yahoo.com> wrote:
>> Hello all,
>> Have you ever made or know an example of interfacing itk+vtk with visual
>> studio? I want something from I can begin to make an application. A GUI
>> created in Visual Studio in order to coordonate the vtk window. Some
>> interactive buttons and to coordonate an image/3d volume or something
>> created with vtk.
>> I am a beginer in Visual Studio interfacing and vtk and I want something
>> for
>> the start point. A basic application.
>> Thank you a lot!
>> Dora
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myProjectGUI.fl
Type: application/x-fluid
Size: 362 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110522/05f0ec6d/attachment.bin>
More information about the Insight-users
mailing list