[vtkusers] Resetting points

david bahn bahndavid2006 at gmail.com
Fri Aug 16 11:42:58 EDT 2013


Hi All,
         I have a set of points in the form of (x1, y1, z1), (x2, y2, z3),
.... (xn, yn, zn), i have to replace these points by new points (m1, n1,
o1), (m2, n2, o2)....... (mN, nN, oN), anybody can suggest me how to do
this?


david


On Fri, Aug 16, 2013 at 4:53 PM, <vtkusers-request at vtk.org> wrote:

> Send vtkusers mailing list submissions to
>         vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
>         vtkusers-request at vtk.org
>
> You can reach the person managing the list at
>         vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>    1. Re: Problem of writing vtp file (Bill Lorensen)
>    2. Re: Problem of writing vtp file (Chenxi Zhang)
>    3. Re: Kitware release (Sebastien Jourdain)
>    4. Sorry (Altamash Abbasi)
>    5. crash after switching to vtk6 release mode (from vtk5)    of
>       QVTKWidget (curator)
>    6. Error . . . (Altamash Abbasi)
>    7. Re: Error . . . (David Cole)
>    8. Re: Error . . . (Brooke Steele)
>    9. Re: Error . . . (Altamash Abbasi)
>   10. QT+VTK (Altamash Abbasi)
>   11. Re: QT+VTK (curator)
>   12. Re: QT+VTK (Gib Bogle)
>   13. Re: QT+VTK (Altamash Abbasi)
>   14. Re: QT+VTK (curator)
>   15. Re: QT+VTK (Altamash Abbasi)
>   16. Re: crash after switching to vtk6 release mode (from vtk5) of
>       QVTKWidget [update] (curator)
>   17. Re: QT+VTK (David E DeMarle)
>   18. Re: QT+VTK (Christopher Mullins)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 Aug 2013 23:11:09 -0400
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Problem of writing vtp file
> To: Chenxi Zhang <chenxizhang at fudan.edu.cn>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID:
>         <
> CADZJ4hNfchgtL77CfcoMw6NBzchSHULD1RFwbLEyPYPXRFJdWQ at mail.gmail.com>
> Content-Type: text/plain; charset="gb2312"
>
> See:
> http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataPointNormals
>
>
>
> On Thu, Aug 15, 2013 at 10:29 PM, Chenxi Zhang <chenxizhang at fudan.edu.cn
> >wrote:
>
> > HI,
> >
> >    my result vtp file is as following:
> >
> > <?xml version="1.0"?>
> > <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"
> > compressor="vtkZLibDataCompressor">
> >   <PolyData>
> >     <Piece NumberOfPoints="9617"                 NumberOfVerts="0"
> >            NumberOfLines="0"                    NumberOfStrips="0"
> >            NumberOfPolys="0"                   >
> >       <PointData>
> >       </PointData>
> >       <CellData>
> >       </CellData>
> >       <Points>
> >         <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> > format="appended" RangeMin="63.129833223"         RangeMax="85.854495209"
> >       offset="0"                   />
> >       </Points>
> >       <Verts>
> >         <DataArray type="Int32" Name="connectivity" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27368"               />
> >         <DataArray type="Int32" Name="offsets" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27384"               />
> >       </Verts>
> >       <Lines>
> >         <DataArray type="Int32" Name="connectivity" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27400"               />
> >         <DataArray type="Int32" Name="offsets" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27416"               />
> >       </Lines>
> >       <Strips>
> >         <DataArray type="Int32" Name="connectivity" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27432"               />
> >         <DataArray type="Int32" Name="offsets" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27448"               />
> >       </Strips>
> >       <Polys>
> >         <DataArray type="Int32" Name="connectivity" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27464"               />
> >         <DataArray type="Int32" Name="offsets" format="appended"
> > RangeMin=""                     RangeMax=""
> > offset="27480"               />
> >       </Polys>
> >     </Piece>
> >   </PolyData>
> >   <AppendedData encoding="base64">
> >
> > my vtp file missed the information:
> >
> >         <PointData Normals="Normals">
> >
> >         <DataArray type="Float32" Name="Normals" NumberOfComponents="3"
> format="appended" RangeMin="0.9999999539"         RangeMax="1.0000000487"
>       offset="0"                   />
> >
> >         <DataArray type="Int32" Name="vtkOriginalPointIds"
> format="appended" RangeMin="0"                    RangeMax="128448"
>       offset="1541392"             />
> >
> >
> >    How can I add the normal information?  In the example
> > http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP, the method for adding
> > normal is not mentioned.
> >
> >     Thanks
> >
> > Chenxi
> >
> >
> >
> >
> > -----????-----
> > *???:* "Bill Lorensen" <bill.lorensen at gmail.com>
> > *????:* 2013?8?16? ???
> > *???:* "Chenxi Zhang" <chenxizhang at fudan.edu.cn>
> > *??:* "VTK Users" <vtkusers at vtk.org>
> > *??:* Re: [vtkusers] Problem of writing vtp file
> >
> >
> > What is wrong with the file create?
> >
> >
> >
> > On Thu, Aug 15, 2013 at 12:43 PM, Chenxi Zhang <chenxizhang at fudan.edu.cn
> >wrote:
> >
> >> HI
> >>
> >>    I have a set of points.I want to creat a vtp file like that:
> >>
> >>  <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
> >>   <PolyData>
> >>
> >>     <Piece NumberOfPoints="128449"               NumberOfVerts="128449"
>               NumberOfLines="0"                    NumberOfStrips="0"
>              NumberOfPolys="0"                   >
> >>       <PointData Normals="Normals">
> >>
> >>         <DataArray type="Float32" Name="Normals" NumberOfComponents="3"
> format="appended" RangeMin="0.9999999539"         RangeMax="1.0000000487"
>       offset="0"                   />
> >>
> >>         <DataArray type="Int32" Name="vtkOriginalPointIds"
> format="appended" RangeMin="0"                    RangeMax="128448"
>       offset="1541392"             />
> >>       </PointData>
> >>       <CellData>
> >>       </CellData>
> >>       <Points>
> >>
> >>         <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> format="appended" RangeMin="0.0080462906331"      RangeMax="0.11603941536"
>        offset="2055192"             />
> >>       </Points>
> >>       <Verts>
> >>
> >>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="3596584"             />
> >>
> >>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4110384"             />
> >>       </Verts>
> >>       <Lines>
> >>
> >>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624184"             />
> >>
> >>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624188"             />
> >>       </Lines>
> >>       <Strips>
> >>
> >>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624192"             />
> >>
> >>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624196"             />
> >>       </Strips>
> >>       <Polys>
> >>
> >>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624200"             />
> >>
> >>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624204"             />
> >>       </Polys>
> >>     </Piece>
> >>   </PolyData>
> >>   <AppendedData encoding="raw">
> >>
> >>    I followed the example:
> >>    http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP,
> >>    but I can't creat the vtp like the above.
> >>
> >>    Could you please tell me what went wrong?
> >>
> >>    Thanks a lot.
> >>
> >> Chenxi
> >>
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> >
> >
> >
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130815/bcec5fc0/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 16 Aug 2013 11:45:42 +0800 (CST)
> From: "Chenxi Zhang" <chenxizhang at fudan.edu.cn>
> Subject: Re: [vtkusers] Problem of writing vtp file
> To: "Bill Lorensen" <bill.lorensen at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID: <24235800.7385011376624742602.JavaMail.coremail at app1>
> Content-Type: text/plain; charset="gbk"
>
> HI
>
>    Thanks,Bill.
>
>
> Following
> http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataPointNormals, I can
> find normals in vtp, but the Range is too large:
> <DataArray type="Float64" Name="Normals_" NumberOfComponents="3"
> format="appended" RangeMin="1"
>  RangeMax="1.0872842531e+067"    offset="0"  />
>
>
> How can set the range small like "RangeMin="0.9999999539"
> RangeMax="1.0000000487""
>
>
> Besides, there is still no vtkOriginalPointIds like:
> <DataArray type="Int32" Name="vtkOriginalPointIds" format="appended"
> RangeMin="0"                    RangeMax="128448"
> offset="1541392"             />
>
>
> My code is as following:
>
>      vtkSmartPointer<vtkPoints> pointsSource =
>   vtkSmartPointer<vtkPoints>::New();
>        ......
>
>
>      vtkPolyData* pointsTemp=vtkPolyData::New();
>      pointsTemp->SetPoints(pointsSource);
>
>
>   //Set point normals
>      vtkSmartPointer<vtkDoubleArray> pointNormalsArray =
>      vtkSmartPointer<vtkDoubleArray>::New();
>      pointNormalsArray->SetNumberOfComponents(3); //3d normals (ie x,y,z)
>      pointNormalsArray->SetNumberOfTuples(pointsTemp->GetNumberOfPoints());
>
>
>   // Construct the normal vectors
>     double pN1[3] = {1.0, 0.0, 0.0};
>     double pN2[3] = {0.0, 1.0, 0.0};
>     double pN3[3] = {0.0, 0.0, 1.0};
>
>   // Add the data to the normals array
>     pointNormalsArray->SetTuple(0, pN1) ;
>     pointNormalsArray->SetTuple(1, pN2) ;
>     pointNormalsArray->SetTuple(2, pN3) ;
>
>   // Add the normals to the points in the polydata
>     pointsTemp->GetPointData()->SetNormals(pointNormalsArray);
>
>
>     vtkSmartPointer<vtkXMLPolyDataWriter> writerTemp3 =
>     vtkSmartPointer<vtkXMLPolyDataWriter>::New();
>
>     writerTemp3->SetInput(pointsTemp);
>     writerTemp3->SetFileName("test3.vtp");
>     writerTemp3->Write();
>
>
>      Thank you very much!
>
>
> Chenxi
>
>
> -----????-----
> ???: "Bill Lorensen" <bill.lorensen at gmail.com>
> ????: 2013?8?16? ???
> ???: "Chenxi Zhang" <chenxizhang at fudan.edu.cn>
> ??: "VTK Users" <vtkusers at vtk.org>
> ??: Re: Re: [vtkusers] Problem of writing vtp file
>
>
> See:
> http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataPointNormals
>
>
>
>
>
>
> On Thu, Aug 15, 2013 at 10:29 PM, Chenxi Zhang <chenxizhang at fudan.edu.cn>
> wrote:
>
> HI,
>
>    my result vtp file is as following:
>
>
>
> <?xml version="1.0"?>
> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
>   <PolyData>
>     <Piece NumberOfPoints="9617"                 NumberOfVerts="0"
>            NumberOfLines="0"                    NumberOfStrips="0"
>            NumberOfPolys="0"                   >
>       <PointData>
>       </PointData>
>       <CellData>
>       </CellData>
>       <Points>
>         <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> format="appended" RangeMin="63.129833223"         RangeMax="85.854495209"
>       offset="0"                   />
>       </Points>
>       <Verts>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27368"               />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27384"               />
>       </Verts>
>       <Lines>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27400"               />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27416"               />
>       </Lines>
>       <Strips>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27432"               />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27448"               />
>       </Strips>
>       <Polys>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27464"               />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="27480"               />
>       </Polys>
>     </Piece>
>   </PolyData>
>   <AppendedData encoding="base64">
>
>
> my vtp file missed the information:
>
>         <PointData Normals="Normals">
>         <DataArray type="Float32" Name="Normals" NumberOfComponents="3"
> format="appended" RangeMin="0.9999999539"         RangeMax="1.0000000487"
>       offset="0"                   />
>         <DataArray type="Int32" Name="vtkOriginalPointIds"
> format="appended" RangeMin="0"                    RangeMax="128448"
>       offset="1541392"             />
>
>
>
>    How can I add the normal information?  In the example
> http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP, the method for adding
> normal is not mentioned.
>
>
>     Thanks
>
>
> Chenxi
>
>
>
>
>
>
> -----????-----
> ???: "Bill Lorensen" <bill.lorensen at gmail.com>
> ????: 2013?8?16? ???
> ???: "Chenxi Zhang" <chenxizhang at fudan.edu.cn>
> ??: "VTK Users" <vtkusers at vtk.org>
> ??: Re: [vtkusers] Problem of writing vtp file
>
>
>
> What is wrong with the file create?
>
>
>
>
>
> On Thu, Aug 15, 2013 at 12:43 PM, Chenxi Zhang <chenxizhang at fudan.edu.cn>
> wrote:
> HI
>
>    I have a set of points.I want to creat a vtp file like that:
>
>  <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
>   <PolyData>
>     <Piece NumberOfPoints="128449"               NumberOfVerts="128449"
>             NumberOfLines="0"                    NumberOfStrips="0"
>            NumberOfPolys="0"                   >
>       <PointData Normals="Normals">
>         <DataArray type="Float32" Name="Normals" NumberOfComponents="3"
> format="appended" RangeMin="0.9999999539"         RangeMax="1.0000000487"
>       offset="0"                   />
>         <DataArray type="Int32" Name="vtkOriginalPointIds"
> format="appended" RangeMin="0"                    RangeMax="128448"
>       offset="1541392"             />
>       </PointData>
>       <CellData>
>       </CellData>
>       <Points>
>         <DataArray type="Float32" Name="Points" NumberOfComponents="3"
> format="appended" RangeMin="0.0080462906331"      RangeMax="0.11603941536"
>        offset="2055192"             />
>       </Points>
>       <Verts>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="3596584"             />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4110384"             />
>       </Verts>
>       <Lines>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624184"             />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624188"             />
>       </Lines>
>       <Strips>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624192"             />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624196"             />
>       </Strips>
>       <Polys>
>         <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624200"             />
>         <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin=""                     RangeMax=""
> offset="4624204"             />
>       </Polys>
>     </Piece>
>   </PolyData>
>   <AppendedData encoding="raw">
>
>    I followed the example:
>    http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP,
>    but I can't creat the vtp like the above.
>
>    Could you please tell me what went wrong?
>
>    Thanks a lot.
>
> Chenxi
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
>
>
>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/586356d8/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 16 Aug 2013 00:21:17 -0400
> From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
> Subject: Re: [vtkusers] Kitware release
> To: Max <smapersmaper at gmail.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID:
>         <CABObKxeBUPya_oPtgTNTuQcCbqipyATUWBwVJ3x5zWJ5Jkm=
> yQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I don't think there is any plan for an activiz release soon.
>
>
> On Thu, Aug 15, 2013 at 9:44 PM, Max <smapersmaper at gmail.com> wrote:
>
> > Hi Seb
> > I get it from http://www.kitware.com/opensource/avdownload.php
> > I talked about kitware activiz release.
> >
> > Max
> >
> >
> >
> > --
> > View this message in context:
> > http://vtk.1045678.n5.nabble.com/Kitware-release-tp5722806p5722808.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/eae01a33/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Fri, 16 Aug 2013 12:05:51 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] Sorry
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CACmdbMMTJuG-4_Z+NOtiHb8CyPTLbvA_4r8STYaWjuy9O_56yA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> My brother asked me to say sorry to David . . . He gave me a lecture . . .
> I know i'm not a big man . . . So David Sorry to you . . . There is nothing
> bad about you in my heart . . . I'm an undergrad student  ,very new to VTK
> and was unable to solved the problems that's why i was too much worried
> because my project was not working . . .
>
> Regards
> Altamash Abbasi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/f6717a52/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Fri, 16 Aug 2013 14:50:11 +0200
> From: curator <curator at gmx.de>
> Subject: [vtkusers] crash after switching to vtk6 release mode (from
>         vtk5)   of QVTKWidget
> To: vtkusers at vtk.org
> Message-ID: <520E2003.2050208 at gmx.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Dear all,
>
> I have quite a huge User Interface constructed with qt4 und vtk5 by
> basically using the QVTKWidget for showing the vtk stuff.
>
> In order to be up-to-date, I decided to port my code to qt5 and vtk6.
> After trying to build the libraries from source, I finally got a working
> version without to much modifications of my code.
>
> I am working in windows with VS2010 and everything works now in debug
> mode. Unfortunaly, as soon as I build my code in release mode, my gui
> crashes as soon as qt tries to add the vtk widget. Well, as I said, it
> is quite a huge amount of code an it is really hard to write an minimal
> example, especially with qt.
>
> Therefore, I add the first part the constructor of my class that
> directly inherits from QVTKWidget
> > My_Widget::My_Widget(QWidget  *i_Parent):QVTKWidget(i_Parent)
> > {
> >     m_vtkRenderWindow = vtkRenderWindow::New();
> >
> >     this->SetRenderWindow(m_vtkRenderWindow); // (*)
> >
> >     m_vtkRenderer = vtkRenderer::New();
> >
> >     m_vtkRenderWindow->AddRenderer(m_vtkRenderer);
> >
> >     vtkEventQtSlotConnect *t_connections = vtkEventQtSlotConnect::New();
> >     t_connections->Connect( this->GetRenderWindow()->GetInteractor(),
> >                               vtkCommand::RenderEvent ,
> >                               this,
> >                               SLOT(render()));
>
> When I add this widget to the GUI with
> > m_MainLayout->addWidget(m_VTKWidget);
> that is exactly the line where the code crashes. After commenting out
> the constructor starting from line // (*), the widget can be added, but
> crashed afterwords. So I guess I would start investigating here, but I
> have no further idea.
>
> Does anyone have a good idea to start?
>
> I would be happy to debug, but as I said, the crash does not occur in
> debug mode.
>
> kind regards,
> curator
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 16 Aug 2013 14:59:32 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] Error . . .
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CACmdbMP4isnw1C+2U6wbYX1BuvWi5+cSxA39-9Pa52K95QvNrQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> Xlib:  extension "GLX" missing on display ":0".
> ERROR: In
> /home/stame1/software/VTK6.0.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
> line 383
> vtkXOpenGLRenderWindow (0x13fe360): Could not find a decent visual
>
> Whats the solution of this Error . . .
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/011b74bd/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Fri, 16 Aug 2013 09:48:51 -0400 (EDT)
> From: David Cole <dlrdave at aol.com>
> Subject: Re: [vtkusers] Error . . .
> To: altamashabbasi at gmail.com, vtkusers at vtk.org
> Message-ID: <8D0689E79988CCF-1A60-3A8AF at webmail-m128.sysops.aol.com>
> Content-Type: text/plain; charset="utf-8"; format=flowed
>
> > Xlib: ?extension "GLX" missing on display ":0".
> > ERROR: In
> /home/stame1/software/VTK6.0.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cx
> x, line 383
> > vtkXOpenGLRenderWindow (0x13fe360): Could not find a decent visual
> >
> >
> > Whats the solution of this Error . . .
> >
>
>
>
> https://www.google.com/search?q=Xlib%3A++extension+%22GLX%22+missing+on+display+%22%3A0%22
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Fri, 16 Aug 2013 09:54:40 -0400
> From: Brooke Steele <bnsteel at gmail.com>
> Subject: Re: [vtkusers] Error . . .
> To: Altamash Abbasi <altamashabbasi at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CANu0A+XebY283y=aWHF4qFsbfiDt=
> XMCrgnkhxSYoCCjXXgT8Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Altamash,
>
> I asked the Google about your error and it suggests that you have a Nvidia
> graphics card which is not playing nicely with openGL. You should ask the
> Google and home in on the solution that best fits your hardware.
>
>
> On Fri, Aug 16, 2013 at 8:59 AM, Altamash Abbasi
> <altamashabbasi at gmail.com>wrote:
>
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > Xlib:  extension "GLX" missing on display ":0".
> > ERROR: In
> >
> /home/stame1/software/VTK6.0.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
> > line 383
> > vtkXOpenGLRenderWindow (0x13fe360): Could not find a decent visual
> >
> > Whats the solution of this Error . . .
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/1ebfb2c7/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 9
> Date: Fri, 16 Aug 2013 15:58:35 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: Re: [vtkusers] Error . . .
> To: Brooke Steele <bnsteel at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CACmdbMOaUNq+HRfj2m49O6d6Vu37Oxj=Yq=
> OAVFmXKwKrAWGSA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Brooke
>
>         Thanxalot . .  i think attendant did some thing wrong with my PC .
> . . Actually he was installing something last night . . .
>
> Regards
> Altamash Abbasi
>
>
> On Fri, Aug 16, 2013 at 3:54 PM, Brooke Steele <bnsteel at gmail.com> wrote:
>
> > Altamash,
> >
> > I asked the Google about your error and it suggests that you have a
> Nvidia
> > graphics card which is not playing nicely with openGL. You should ask the
> > Google and home in on the solution that best fits your hardware.
> >
> >
> > On Fri, Aug 16, 2013 at 8:59 AM, Altamash Abbasi <
> altamashabbasi at gmail.com
> > > wrote:
> >
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> Xlib:  extension "GLX" missing on display ":0".
> >> ERROR: In
> >>
> /home/stame1/software/VTK6.0.0/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
> >> line 383
> >> vtkXOpenGLRenderWindow (0x13fe360): Could not find a decent visual
> >>
> >> Whats the solution of this Error . . .
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/c1890702/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 10
> Date: Fri, 16 Aug 2013 16:12:33 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] QT+VTK
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CACmdbMMwfz1B8sB4qLaM-3MCH2r2S_ghDbc5sYg=
> wHoYtEWJkQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Guys i want to do another thing. Like when I clicked a push Button in GUI
> of QT Creater the VTK GUI containing an image should appear instead of
> ./Example this command. In simple words i want to link QT with VTK. Where
> should i code, in Example.cxx file or should i code Push Button. I know
> both needs connections so. What shouls i do??
>
> Regards
> Altamash Abbasi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/ad4ab595/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 11
> Date: Fri, 16 Aug 2013 16:14:29 +0200
> From: curator <curator at gmx.de>
> Subject: Re: [vtkusers] QT+VTK
> To: Altamash Abbasi <altamashabbasi at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID: <520E33C5.6060301 at gmx.de>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Hi,
>
> I think you would read a book about Qt or have a intensive look at some
> QtExamples in QtForums or so.
> I learned by working through several book incl. the examples.
>
> regards,
> curator
> Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> > Guys i want to do another thing. Like when I clicked a push Button in
> > GUI of QT Creater the VTK GUI containing an image should appear
> > instead of ./Example this command. In simple words i want to link QT
> > with VTK. Where should i code, in Example.cxx file or should i code
> > Push Button. I know both needs connections so. What shouls i do??
> >
> > Regards
> > Altamash Abbasi
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/e94e584d/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 12
> Date: Sat, 17 Aug 2013 02:16:15 +1200
> From: Gib Bogle <g.bogle at auckland.ac.nz>
> Subject: Re: [vtkusers] QT+VTK
> To: vtkusers at vtk.org
> Message-ID: <520E342F.90208 at auckland.ac.nz>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> On 17/08/2013 2:14 a.m., curator wrote:
> > Hi,
> >
> > I think you would read a book about Qt or have a intensive look at some
> > QtExamples in QtForums or so.
> > I learned by working through several book incl. the examples.
> >
> > regards,
> > curator
> > Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >> Guys i want to do another thing. Like when I clicked a push Button in
> GUI of
> >> QT Creater the VTK GUI containing an image should appear instead of
> ./Example
> >> this command. In simple words i want to link QT with VTK. Where should i
> >> code, in Example.cxx file or should i code Push Button. I know both
> needs
> >> connections so. What shouls i do??
> >>
> >> Regards
> >> Altamash Abbasi
> >>
> >>
> >> _______________________________________________
> >> Powered bywww.kitware.com
> >>
> >> Visit other Kitware open-source projects athttp://
> www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> Google is your friend.
>
> --
> Dr. Gib Bogle
> Senior Research Fellow
> Auckland Bioengineering Institute
> University of Auckland
> New Zealand
>
> http://www.bioeng.auckland.ac.nz
>
> g.bogle at auckland.ac.nz
> (64-9) 373-7599 Ext. 87030
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130817/51de9410/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 13
> Date: Fri, 16 Aug 2013 16:19:44 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: Re: [vtkusers] QT+VTK
> To: Gib Bogle <g.bogle at auckland.ac.nz>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CACmdbMNgJtH9BwOPa20zoB4JeRhJwn5iBhJfMFq2NUX0ZuDv5Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
> could you please suggest the name of the Book ?? . . .
>
> Regards
> Altamash Abbasi
>
>
> On Fri, Aug 16, 2013 at 4:16 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>
> >  On 17/08/2013 2:14 a.m., curator wrote:
> >
> > Hi,
> >
> > I think you would read a book about Qt or have a intensive look at some
> > QtExamples in QtForums or so.
> > I learned by working through several book incl. the examples.
> >
> > regards,
> > curator
> > Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >
> > Guys i want to do another thing. Like when I clicked a push Button in GUI
> > of QT Creater the VTK GUI containing an image should appear instead of
> > ./Example this command. In simple words i want to link QT with VTK. Where
> > should i code, in Example.cxx file or should i code Push Button. I know
> > both needs connections so. What shouls i do??
> >
> >  Regards
> > Altamash Abbasi
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >  Google is your friend.
> >
> > --
> > Dr. Gib Bogle
> > Senior Research Fellow
> > Auckland Bioengineering Institute
> > University of Auckland
> > New Zealand
> > http://www.bioeng.auckland.ac.nz
> > g.bogle at auckland.ac.nz
> > (64-9) 373-7599 Ext. 87030
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/5cd666e7/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 14
> Date: Fri, 16 Aug 2013 16:22:18 +0200
> From: curator <curator at gmx.de>
> Subject: Re: [vtkusers] QT+VTK
> To: vtkusers at vtk.org
> Message-ID: <520E359A.6020600 at gmx.de>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Hi,
>
> no Problem:
>
> http://www.amazon.de/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=sr_1_1?ie=UTF8&qid=1376662849&sr=8-1&keywords=c%2B%2B+gui+programming
>
> I would like to point out, that this is for Qt4, but current version is
> Qt5. Nevertheless, basics are still (approximatly) the same.
>
> regards,
> curator
> Am 16.08.2013 16:19, schrieb Altamash Abbasi:
> > Hi
> > could you please suggest the name of the Book ?? . . .
> >
> > Regards
> > Altamash Abbasi
> >
> >
> > On Fri, Aug 16, 2013 at 4:16 PM, Gib Bogle <g.bogle at auckland.ac.nz
> > <mailto:g.bogle at auckland.ac.nz>> wrote:
> >
> >     On 17/08/2013 2:14 a.m., curator wrote:
> >>     Hi,
> >>
> >>     I think you would read a book about Qt or have a intensive look
> >>     at some QtExamples in QtForums or so.
> >>     I learned by working through several book incl. the examples.
> >>
> >>     regards,
> >>     curator
> >>     Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >>>     Guys i want to do another thing. Like when I clicked a push
> >>>     Button in GUI of QT Creater the VTK GUI containing an image
> >>>     should appear instead of ./Example this command. In simple words
> >>>     i want to link QT with VTK. Where should i code, in Example.cxx
> >>>     file or should i code Push Button. I know both needs connections
> >>>     so. What shouls i do??
> >>>
> >>>     Regards
> >>>     Altamash Abbasi
> >>>
> >>>
> >>>     _______________________________________________
> >>>     Powered bywww.kitware.com  <http://www.kitware.com>
> >>>
> >>>     Visit other Kitware open-source projects athttp://
> www.kitware.com/opensource/opensource.html
> >>>
> >>>     Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>>     Follow this link to subscribe/unsubscribe:
> >>>     http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >>     _______________________________________________
> >>     Powered bywww.kitware.com  <http://www.kitware.com>
> >>
> >>     Visit other Kitware open-source projects athttp://
> www.kitware.com/opensource/opensource.html
> >>
> >>     Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >>     Follow this link to subscribe/unsubscribe:
> >>     http://www.vtk.org/mailman/listinfo/vtkusers
> >     Google is your friend.
> >
> >     --
> >     Dr. Gib Bogle
> >     Senior Research Fellow
> >     Auckland Bioengineering Institute
> >     University of Auckland
> >     New Zealand
> >
> >     http://www.bioeng.auckland.ac.nz
> >
> >     g.bogle at auckland.ac.nz  <mailto:g.bogle at auckland.ac.nz>
> >     (64-9) 373-7599 Ext. 87030
> >
> >
> >     _______________________________________________
> >     Powered by www.kitware.com <http://www.kitware.com>
> >
> >     Visit other Kitware open-source projects at
> >     http://www.kitware.com/opensource/opensource.html
> >
> >     Please keep messages on-topic and check the VTK FAQ at:
> >     http://www.vtk.org/Wiki/VTK_FAQ
> >
> >     Follow this link to subscribe/unsubscribe:
> >     http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/a564b5d6/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 15
> Date: Fri, 16 Aug 2013 16:25:46 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: Re: [vtkusers] QT+VTK
> To: curator <curator at gmx.de>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CACmdbMN51Usw7QyP6Pp3pD1EKjyXV3YGLc909PDz4X+k6FVqXA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thankew very much . . . I'm using a little low version . . .
>
>
> On Fri, Aug 16, 2013 at 4:22 PM, curator <curator at gmx.de> wrote:
>
> >  Hi,
> >
> > no Problem:
> >
> >
> http://www.amazon.de/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=sr_1_1?ie=UTF8&qid=1376662849&sr=8-1&keywords=c%2B%2B+gui+programming
> >
> > I would like to point out, that this is for Qt4, but current version is
> > Qt5. Nevertheless, basics are still (approximatly) the same.
> >
> > regards,
> > curator
> > Am 16.08.2013 16:19, schrieb Altamash Abbasi:
> >
> > Hi
> > could you please suggest the name of the Book ?? . . .
> >
> >  Regards
> > Altamash Abbasi
> >
> >
> > On Fri, Aug 16, 2013 at 4:16 PM, Gib Bogle <g.bogle at auckland.ac.nz>
> wrote:
> >
> >>   On 17/08/2013 2:14 a.m., curator wrote:
> >>
> >> Hi,
> >>
> >> I think you would read a book about Qt or have a intensive look at some
> >> QtExamples in QtForums or so.
> >> I learned by working through several book incl. the examples.
> >>
> >> regards,
> >> curator
> >> Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >>
> >> Guys i want to do another thing. Like when I clicked a push Button in
> GUI
> >> of QT Creater the VTK GUI containing an image should appear instead of
> >> ./Example this command. In simple words i want to link QT with VTK.
> >> Where should i code, in Example.cxx file or should i code Push Button. I
> >> know both needs connections so. What shouls i do??
> >>
> >>  Regards
> >> Altamash Abbasi
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>   Google is your friend.
> >>
> >> --
> >> Dr. Gib Bogle
> >> Senior Research Fellow
> >> Auckland Bioengineering Institute
> >> University of Auckland
> >> New Zealand
> >> http://www.bioeng.auckland.ac.nz
> >> g.bogle at auckland.ac.nz
> >> (64-9) 373-7599 Ext. 87030
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/29978d3e/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 16
> Date: Fri, 16 Aug 2013 16:24:55 +0200
> From: curator <curator at gmx.de>
> Subject: Re: [vtkusers] crash after switching to vtk6 release mode
>         (from vtk5) of QVTKWidget [update]
> To: vtkusers at vtk.org
> Message-ID: <520E3637.9090005 at gmx.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I just started trying around randomly, which typically doesn't help, but
> I found the behaviour to be even more strage:
>
> Everything works find with this line:
> m_VTKWidget->show();
>
> but crahes with:
> m_MainLayout->addWidget(m_VTKWidget);
>
> In other words: Placing the (inherated widget of) QVTKWidget in an
> seperate Window works fine, but placing it in a part of an existing
> Widget (with buttons and stuff) does not work.
> I tested: It works in debug mode and in linux.
>
> any ideas?
>
> regards,
> curator
>
> Am 16.08.2013 14:50, schrieb curator:
> > Dear all,
> >
> > I have quite a huge User Interface constructed with qt4 und vtk5 by
> > basically using the QVTKWidget for showing the vtk stuff.
> >
> > In order to be up-to-date, I decided to port my code to qt5 and vtk6.
> > After trying to build the libraries from source, I finally got a
> > working version without to much modifications of my code.
> >
> > I am working in windows with VS2010 and everything works now in debug
> > mode. Unfortunaly, as soon as I build my code in release mode, my gui
> > crashes as soon as qt tries to add the vtk widget. Well, as I said, it
> > is quite a huge amount of code an it is really hard to write an
> > minimal example, especially with qt.
> >
> > Therefore, I add the first part the constructor of my class that
> > directly inherits from QVTKWidget
> >> My_Widget::My_Widget(QWidget *i_Parent):QVTKWidget(i_Parent)
> >> {
> >>     m_vtkRenderWindow = vtkRenderWindow::New();
> >>
> >>     this->SetRenderWindow(m_vtkRenderWindow); // (*)
> >>
> >>     m_vtkRenderer = vtkRenderer::New();
> >>
> >>     m_vtkRenderWindow->AddRenderer(m_vtkRenderer);
> >>
> >>     vtkEventQtSlotConnect *t_connections = vtkEventQtSlotConnect::New();
> >>     t_connections->Connect( this->GetRenderWindow()->GetInteractor(),
> >>                               vtkCommand::RenderEvent ,
> >>                               this,
> >>                               SLOT(render()));
> >
> > When I add this widget to the GUI with
> >> m_MainLayout->addWidget(m_VTKWidget);
> > that is exactly the line where the code crashes. After commenting out
> > the constructor starting from line // (*), the widget can be added,
> > but crashed afterwords. So I guess I would start investigating here,
> > but I have no further idea.
> >
> > Does anyone have a good idea to start?
> >
> > I would be happy to debug, but as I said, the crash does not occur in
> > debug mode.
> >
> > kind regards,
> > curator
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> ------------------------------
>
> Message: 17
> Date: Fri, 16 Aug 2013 10:50:49 -0400
> From: David E DeMarle <dave.demarle at kitware.com>
> Subject: Re: [vtkusers] QT+VTK
> To: Altamash Abbasi <altamashabbasi at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CANjZAi9ittsBDUrc5n+Wp9pVnqjoAa4-3q397jKim=
> BtmkxaNA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> See also: http://www.kitware.com/media/protrainingwebinars.php#vtkqt
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Fri, Aug 16, 2013 at 10:25 AM, Altamash Abbasi
> <altamashabbasi at gmail.com>wrote:
>
> > Thankew very much . . . I'm using a little low version . . .
> >
> >
> > On Fri, Aug 16, 2013 at 4:22 PM, curator <curator at gmx.de> wrote:
> >
> >>  Hi,
> >>
> >> no Problem:
> >>
> >>
> http://www.amazon.de/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=sr_1_1?ie=UTF8&qid=1376662849&sr=8-1&keywords=c%2B%2B+gui+programming
> >>
> >> I would like to point out, that this is for Qt4, but current version is
> >> Qt5. Nevertheless, basics are still (approximatly) the same.
> >>
> >> regards,
> >> curator
> >> Am 16.08.2013 16:19, schrieb Altamash Abbasi:
> >>
> >> Hi
> >> could you please suggest the name of the Book ?? . . .
> >>
> >>  Regards
> >> Altamash Abbasi
> >>
> >>
> >> On Fri, Aug 16, 2013 at 4:16 PM, Gib Bogle <g.bogle at auckland.ac.nz
> >wrote:
> >>
> >>>   On 17/08/2013 2:14 a.m., curator wrote:
> >>>
> >>> Hi,
> >>>
> >>> I think you would read a book about Qt or have a intensive look at some
> >>> QtExamples in QtForums or so.
> >>> I learned by working through several book incl. the examples.
> >>>
> >>> regards,
> >>> curator
> >>> Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >>>
> >>> Guys i want to do another thing. Like when I clicked a push Button in
> >>> GUI of QT Creater the VTK GUI containing an image should appear
> instead of
> >>> ./Example this command. In simple words i want to link QT with VTK.
> >>> Where should i code, in Example.cxx file or should i code Push Button.
> I
> >>> know both needs connections so. What shouls i do??
> >>>
> >>>  Regards
> >>> Altamash Abbasi
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>   Google is your friend.
> >>>
> >>> --
> >>> Dr. Gib Bogle
> >>> Senior Research Fellow
> >>> Auckland Bioengineering Institute
> >>> University of Auckland
> >>> New Zealand
> >>> http://www.bioeng.auckland.ac.nz
> >>> g.bogle at auckland.ac.nz
> >>> (64-9) 373-7599 Ext. 87030
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/e7e6b108/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 18
> Date: Fri, 16 Aug 2013 10:53:32 -0400
> From: Christopher Mullins <christopher.mullins at kitware.com>
> Subject: Re: [vtkusers] QT+VTK
> To: David E DeMarle <dave.demarle at kitware.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CABVTP-KsVdUimvMUePB2jiYkXfHA6DqcVdvKX1An02SofSkzUw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> There are also some simple examples in the Qt section of the VTK examples
> [1].
>
> [1] http://www.vtk.org/Wiki/VTK/Examples/Cxx#Qt
>
>
> On Fri, Aug 16, 2013 at 10:50 AM, David E DeMarle
> <dave.demarle at kitware.com>wrote:
>
> > See also: http://www.kitware.com/media/protrainingwebinars.php#vtkqt
> >
> > David E DeMarle
> > Kitware, Inc.
> > R&D Engineer
> > 21 Corporate Drive
> > Clifton Park, NY 12065-8662
> > Phone: 518-881-4909
> >
> >
> > On Fri, Aug 16, 2013 at 10:25 AM, Altamash Abbasi <
> > altamashabbasi at gmail.com> wrote:
> >
> >> Thankew very much . . . I'm using a little low version . . .
> >>
> >>
> >> On Fri, Aug 16, 2013 at 4:22 PM, curator <curator at gmx.de> wrote:
> >>
> >>>  Hi,
> >>>
> >>> no Problem:
> >>>
> >>>
> http://www.amazon.de/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=sr_1_1?ie=UTF8&qid=1376662849&sr=8-1&keywords=c%2B%2B+gui+programming
> >>>
> >>> I would like to point out, that this is for Qt4, but current version is
> >>> Qt5. Nevertheless, basics are still (approximatly) the same.
> >>>
> >>> regards,
> >>> curator
> >>> Am 16.08.2013 16:19, schrieb Altamash Abbasi:
> >>>
> >>> Hi
> >>> could you please suggest the name of the Book ?? . . .
> >>>
> >>>  Regards
> >>> Altamash Abbasi
> >>>
> >>>
> >>> On Fri, Aug 16, 2013 at 4:16 PM, Gib Bogle <g.bogle at auckland.ac.nz
> >wrote:
> >>>
> >>>>   On 17/08/2013 2:14 a.m., curator wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>> I think you would read a book about Qt or have a intensive look at
> some
> >>>> QtExamples in QtForums or so.
> >>>> I learned by working through several book incl. the examples.
> >>>>
> >>>> regards,
> >>>> curator
> >>>> Am 16.08.2013 16:12, schrieb Altamash Abbasi:
> >>>>
> >>>> Guys i want to do another thing. Like when I clicked a push Button in
> >>>> GUI of QT Creater the VTK GUI containing an image should appear
> instead of
> >>>> ./Example this command. In simple words i want to link QT with VTK.
> >>>> Where should i code, in Example.cxx file or should i code Push
> Button. I
> >>>> know both needs connections so. What shouls i do??
> >>>>
> >>>>  Regards
> >>>> Altamash Abbasi
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Powered by www.kitware.com
> >>>>
> >>>> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>>>
> >>>> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>>
> >>>> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Powered by www.kitware.com
> >>>>
> >>>> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>>>
> >>>> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>>
> >>>> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>>
> >>>>   Google is your friend.
> >>>>
> >>>> --
> >>>> Dr. Gib Bogle
> >>>> Senior Research Fellow
> >>>> Auckland Bioengineering Institute
> >>>> University of Auckland
> >>>> New Zealand
> >>>> http://www.bioeng.auckland.ac.nz
> >>>> g.bogle at auckland.ac.nz
> >>>> (64-9) 373-7599 Ext. 87030
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Powered by www.kitware.com
> >>>>
> >>>> Visit other Kitware open-source projects at
> >>>> http://www.kitware.com/opensource/opensource.html
> >>>>
> >>>> Please keep messages on-topic and check the VTK FAQ at:
> >>>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>>
> >>>> Follow this link to subscribe/unsubscribe:
> >>>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>>
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at
> >>> http://www.kitware.com/opensource/opensource.html
> >>>
> >>> Please keep messages on-topic and check the VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
> --
> Christopher Mullins
> R&D Engineer
> Kitware Inc.,
> 919.869.8871
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130816/cf02d5d4/attachment.htm
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 112, Issue 35
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130816/89929d3a/attachment.htm>


More information about the vtkusers mailing list