[vtkusers] How to build VTK 8.1.1 with vtkGUISupportMFC?

Jesse Kinross-Smith Jesse.Kinross-Smith at bentley.com
Wed Jul 4 10:57:03 EDT 2018


Would be nice if you could keep the support up – it’s rather important to us as we’re also using the vtkGUISupportMFC code in our app – using vtk 8.1.1 right now

It did require a small change in vtkMFCWindow.cpp – just an additional ,0 on line 195

GUISupport\MFC\vtkMFCWindow.cpp:
194:   unsigned char *pixels =
195:     this->pvtkWin32OpenGLRW->GetPixelData(0,0,size[0]-1,size[1]-1,0,0);

Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle

From: vtkusers [mailto:vtkusers-bounces at public.kitware.com] On Behalf Of David E DeMarle
Sent: Wednesday, 4 July 2018 12:29 AM
To: minpu.code at gmail.com
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] How to build VTK 8.1.1 with vtkGUISupportMFC?

We haven't actively maintained the MFC support for a while (6.0 as I recall). As a result the MFC interface never got updates for OpenGL2. The specific compilation failure you are seeing is because we added a left eye/right eye argument along the way and the old MFC interface code knows nothing about it.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jun 28, 2018 at 8:15 PM pnt1614 <minpu.code at gmail.com<mailto:minpu.code at gmail.com>> wrote:
I am trying to build VTK 8.1.1 with vtkGUISupportMFC option on Windows 10
64bit using CMake 3.11.4 and visual studio 2015 (64 bit). Everything is okay
in CMake, but in the visual studio 2015 I cannot build "ALL_BUILD" project
because of two following messsages:

1. "no instance of overloaded function
"vtkWin32OpenGLRenderWindow::GetPixelData" matches the argument list"
2. "vtkWin32OpenGLRenderWindow::GetPixelData": no overloaded function takes
5 arguments.

Is there anyone experienced this problem? Please, help me.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__vtk.1045678.n5.nabble.com_VTK-2DUsers-2Df1224199.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=MdgU5sJUsdlWx_F_q1VquM0VsTxnHTWc-l1y9c9Hkjo&e=>
_______________________________________________
Powered by www.kitware.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=fVuFOYaC_atXzcIEkZo3jHCtdDdMEPiJ8JFzR5e0pvg&e=>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=_6rsV7ZkhNDi1JnPwJcT3VZ6f-4V2sLHR-O2K4cXLA8&e=>

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=6UJIxLhYeMQBoB2-SXg_zo1qdjXIPJ4VjIDCCBK-Cj4&e=>

Search the list archives at: http://markmail.org/search/?q=vtkusers<https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=z0n9dVl-QCGkMJrpPn0h-EKT0qlKx_l6Ol_RLJsTz0E&e=>

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers<https://urldefense.proofpoint.com/v2/url?u=https-3A__public.kitware.com_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=Cd2GleRq-VYRf6eSrVqIkCJa4ZcUPWtFA1wa-p1MSLQ&s=DjMKX7lGy0e6knMfBGH0D1WvwfTPhGyuNSkWwJFGBEs&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180704/80f93b06/attachment-0001.html>


More information about the vtkusers mailing list