[vtkusers] MFC application

lydia many vtklydia at hotmail.com
Tue Nov 6 08:32:40 EST 2001


I create an MFC interface for clicking on button to view for example.
When the user clicks the button view on MFC menu, I create an instance of 
vtkimageviwer to visualise the image. The vtkimageviewer creates its own 
window and after that I need to interact with this window.



>From: "Gopalakrishnan, Gowri" <Gowri.Gopalakrishnan at inteq.com>
>To: "'lydia many'" <vtklydia at hotmail.com>
>Subject: RE: [vtkusers] MFC application
>Date: Tue, 6 Nov 2001 06:49:09 -0600
>
>Question:
>In the MFC application do you create a window or do you let the vtk create 
>a
>window?
>
>If you create the window then in your winproc if you put a debugging
>statement or a break poitn you can see that it will come to your winproc,
>after that you can directly do what vtk does (change colour, update 
>renderer
>etc)
>
>If you let vtk create the window then use a debug dll of the vtk and trace
>the call.
>
>Let me know which one of the above is your situation, we can go from there.
>My suggestion is to create your own window and pass the hwnd to vtk using
>ren->SetWindow(hwnd).
>Do you have a debug dll. It might be worth it to generate it.
>
>more soon
>Gowri
>
>-----Original Message-----
>From: lydia many [mailto:vtklydia at hotmail.com]
>Sent: Tuesday, November 06, 2001 12:23 PM
>To: Gowri.Gopalakrishnan at inteq.com
>Subject: RE: [vtkusers] MFC application
>
>
>
>Hi,
>It would be helpful, please when the viewer window is displayed how to know
>tht the key mouse is pressed. If you need more information let me know
>
> >From: "Gopalakrishnan, Gowri" <Gowri.Gopalakrishnan at inteq.com>
> >CC: vtkusers at public.kitware.com
> >Subject: RE: [vtkusers] MFC application
> >Date: Tue, 6 Nov 2001 05:12:17 -0600
> >
> >I dont have experience with image functionality, but i have some 
>experience
> >with MFC. I can help you on the MFC side if you wish to see if the key
> >press, mouse press is getting detected or not.
> >
> >let me know
> >Gowri
> >
> >
> >-----Original Message-----
> >From: Ted Christiansen [mailto:ted at caept.com]
> >Sent: Monday, November 05, 2001 8:05 PM
> >To: Lydia Yahia-Cherif
> >Cc: vtkusers at public.kitware.com
> >Subject: Re: [vtkusers] MFC application, vtk libary static
> >
> >
> >Lydia,
> >
> >Sorry.  I am new to vtk and haven't use the image functionality (yet).  
>All
> >I
> >can suggest is to keep trying with your questions and the code.  VTK is
> >undoubtedly powerful, but also complex.  It doesn't help that there isn't
> >much
> >documentation.  I bought both books published by the authors of the
> >software
> >and consider them to be borderline useless for people who want to use the
> >software.  The books don't contain enough complete examples that show how
> >the
> >objects work together.  I even thought about writing a book of my own to
> >fill
> >the void.  I have a lot to learn about VTK before I could do something 
>like
> >that, and am not sure if I have the time, interest, etc. for such an
> >undertaking.
> >
> >Ted
> >
> >
> >Lydia Yahia-Cherif wrote:
> >
> > > Dear Ted,
> > > I' have a problem with interaction and none could answer me.
> > > I 'm using MFC with vtk . I want to display an vtkimagedata using
> > > vtkimageviwer and to interact with the viewer using the mouse.
> > > Could you help me please if you have any information??
> > > ----- Original Message -----
> > > From: "Ted Christiansen" <ted at caept.com>
> > > To: <vtkusers at public.kitware.com>
> > > Sent: Monday, November 05, 2001 7:09 PM
> > > Subject: [vtkusers] MFC application, vtk libary static
> > >
> > > > Hello,
> > > >
> > > > I am developing an application using that needs to be lightweight.  
>I
> > > > have coded the initial functionality in two versions to compare the
> >size
> > > > of the application.  One with OpenGL calls only and the other using
> >VTK
> > > > Both versions are dynamically linked to MFC.  The OpenGL version is
> >200
> > > > KB, while the VTK version is 1 MB (release builds).  I am using only
> >the
> > > > basic functionality of:
> > > >
> > > > vtkPoints;
> > > > vtkUnstructuredGrid;
> > > > vtkDataSetMapper;
> > > > vtkActor;
> > > > vtkScalars;
> > > > vtkLookupTable;
> > > > class vtkScalarBarActor;
> > > > class vtkActor2D;
> > > > class vtkTextMapper;
> > > >
> > > > Is there any way to lighten up the vtk version?  The problem with 
>the
> > > > straight OpenGL approach is that the functionality of vtkStripper
> >would
> > > > be missing, lighting is harder, the interactor would have to be 
>coded,
> > > > etc.
> > > >
> > > > Ted
> > > >
> > > > _______________________________________________
> > > > This is the private VTK discussion list.
> > > > Please keep messages on-topic. Check the FAQ at:
> > > > <http://public.kitware.com/cgi-bin/vtkfaq>
> > > > Follow this link to subscribe/unsubscribe:
> > > > http://public.kitware.com/mailman/listinfo/vtkusers
> >
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>_________________________________________________________________
>Téléchargez MSN Explorer gratuitement à l'adresse
>http://explorer.msn.fr/intl.asp


_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp




More information about the vtkusers mailing list