From houssen at ipgp.fr Sun Apr 2 12:01:02 2017 From: houssen at ipgp.fr (houssen) Date: Sun, 02 Apr 2017 18:01:02 +0200 Subject: [vtk-developers] =?utf-8?q?How_to_set_several_scalars_to_vtkPoint?= =?utf-8?q?_=3F?= Message-ID: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> Hello, How to set several scalars to vtkPoint ? Seems vtkDataPoint scratchs the previous scalar array ?! vtkSmartPointer data1 = vtkSmartPointer::New(); data1->SetName("data1"); vtkSmartPointer data2 = vtkSmartPointer::New(); data2->SetName("data2"); for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } uGrid->GetPointdata()->SetScalars(data1); // OK uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I need : seems that it activate data1 back but "scratch" data2 back. uGrid is a vtkUnstructuredGrid : the final goal is to write the grid to a file (with vtkWriter). In this file, I'd like to have BOTH data1 and data2 for points. I only get either one or the other... How to get both ? Also tried to create a N-sized-vector (N=2 or 4) to associate to the vtkPoint : does not work as it seems vector dimension MUST be 3. I somebody knows a solution to attach a N-sized-vector to a vtkPoint, it could solve my problem Franck PS : found nothing relevant on the web, targetting VTK-7. From bill.lorensen at gmail.com Sun Apr 2 12:24:40 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sun, 2 Apr 2017 12:24:40 -0400 Subject: [vtk-developers] How to set several scalars to vtkPoint ? In-Reply-To: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> References: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> Message-ID: Try uGrid->GetPointdata()->AddArray(data2); On Sun, Apr 2, 2017 at 12:01 PM, houssen wrote: > Hello, > > How to set several scalars to vtkPoint ? > > Seems vtkDataPoint scratchs the previous scalar array ?! > > vtkSmartPointer data1 = vtkSmartPointer::New(); > data1->SetName("data1"); > vtkSmartPointer data2 = vtkSmartPointer::New(); > data2->SetName("data2"); > for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } > uGrid->GetPointdata()->SetScalars(data1); // OK > uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! > > uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I need : > seems that it activate data1 back but "scratch" data2 back. > > uGrid is a vtkUnstructuredGrid : the final goal is to write the grid to a > file (with vtkWriter). In this file, I'd like to have BOTH data1 and data2 > for points. > I only get either one or the other... How to get both ? > > Also tried to create a N-sized-vector (N=2 or 4) to associate to the > vtkPoint : does not work as it seems vector dimension MUST be 3. I somebody > knows a solution to attach a N-sized-vector to a vtkPoint, it could solve my > problem > > Franck > > PS : found nothing relevant on the web, targetting VTK-7. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > -- Unpaid intern in BillsBasement at noware dot com From houssen at ipgp.fr Sun Apr 2 12:39:50 2017 From: houssen at ipgp.fr (houssen) Date: Sun, 02 Apr 2017 18:39:50 +0200 Subject: [vtk-developers] =?utf-8?q?How_to_set_several_scalars_to_vtkPoint?= =?utf-8?q?_=3F?= In-Reply-To: References: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> Message-ID: <5a5edb3e1d56945e0f022d5f2fb0d048@imap.ipgp.fr> KO ! Does not work (realize I tried this before !) => I only get data1 OR data2 (never both of them) in the written .vtu file... It is possible to make this work or to create a N-sized-vector. BTW, data1 is "pressure", data2 is "velocity" (that is data 1 and 2 are not related to each other) Franck Le 2017-04-02 18:24, Bill Lorensen a ?crit?: > Try > uGrid->GetPointdata()->AddArray(data2); > > > On Sun, Apr 2, 2017 at 12:01 PM, houssen wrote: >> Hello, >> >> How to set several scalars to vtkPoint ? >> >> Seems vtkDataPoint scratchs the previous scalar array ?! >> >> vtkSmartPointer data1 = >> vtkSmartPointer::New(); >> data1->SetName("data1"); >> vtkSmartPointer data2 = >> vtkSmartPointer::New(); >> data2->SetName("data2"); >> for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, >> d2[idx]) } >> uGrid->GetPointdata()->SetScalars(data1); // OK >> uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! >> >> uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I >> need : >> seems that it activate data1 back but "scratch" data2 back. >> >> uGrid is a vtkUnstructuredGrid : the final goal is to write the grid >> to a >> file (with vtkWriter). In this file, I'd like to have BOTH data1 and >> data2 >> for points. >> I only get either one or the other... How to get both ? >> >> Also tried to create a N-sized-vector (N=2 or 4) to associate to the >> vtkPoint : does not work as it seems vector dimension MUST be 3. I >> somebody >> knows a solution to attach a N-sized-vector to a vtkPoint, it could >> solve my >> problem >> >> Franck >> >> PS : found nothing relevant on the web, targetting VTK-7. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: >> http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> From houssen at ipgp.fr Sun Apr 2 13:12:00 2017 From: houssen at ipgp.fr (houssen) Date: Sun, 02 Apr 2017 19:12:00 +0200 Subject: [vtk-developers] =?utf-8?q?How_to_set_several_scalars_to_vtkPoint?= =?utf-8?q?_=3F?= In-Reply-To: <5a5edb3e1d56945e0f022d5f2fb0d048@imap.ipgp.fr> References: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> <5a5edb3e1d56945e0f022d5f2fb0d048@imap.ipgp.fr> Message-ID: <011494d16d8bf6cb79ea06b0d01873d5@imap.ipgp.fr> May use a lookup table ? Not familiar with that but seems it's not what I need ?!... Somebody knows how to get back to this broken link ttp://article.gmane.org/gmane.comp.lib.vtk.user/6761/match=points+scalar+color I got from http://public.kitware.com/pipermail/vtkusers/2003-August/019748.html Le 2017-04-02 18:39, houssen a ?crit?: > KO ! Does not work (realize I tried this before !) => I only get > data1 OR data2 (never both of them) in the written .vtu file... > It is possible to make this work or to create a N-sized-vector. > > BTW, data1 is "pressure", data2 is "velocity" (that is data 1 and 2 > are not related to each other) > > Franck > > Le 2017-04-02 18:24, Bill Lorensen a ?crit?: >> Try >> uGrid->GetPointdata()->AddArray(data2); >> >> >> On Sun, Apr 2, 2017 at 12:01 PM, houssen wrote: >>> Hello, >>> >>> How to set several scalars to vtkPoint ? >>> >>> Seems vtkDataPoint scratchs the previous scalar array ?! >>> >>> vtkSmartPointer data1 = >>> vtkSmartPointer::New(); >>> data1->SetName("data1"); >>> vtkSmartPointer data2 = >>> vtkSmartPointer::New(); >>> data2->SetName("data2"); >>> for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, >>> d2[idx]) } >>> uGrid->GetPointdata()->SetScalars(data1); // OK >>> uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! >>> >>> uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I >>> need : >>> seems that it activate data1 back but "scratch" data2 back. >>> >>> uGrid is a vtkUnstructuredGrid : the final goal is to write the >>> grid to a >>> file (with vtkWriter). In this file, I'd like to have BOTH data1 >>> and data2 >>> for points. >>> I only get either one or the other... How to get both ? >>> >>> Also tried to create a N-sized-vector (N=2 or 4) to associate to >>> the >>> vtkPoint : does not work as it seems vector dimension MUST be 3. I >>> somebody >>> knows a solution to attach a N-sized-vector to a vtkPoint, it could >>> solve my >>> problem >>> >>> Franck >>> >>> PS : found nothing relevant on the web, targetting VTK-7. >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: >>> http://markmail.org/search/?q=vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> From joachim.pouderoux at kitware.com Tue Apr 4 16:05:06 2017 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Tue, 4 Apr 2017 16:05:06 -0400 Subject: [vtk-developers] How to set several scalars to vtkPoint ? In-Reply-To: <011494d16d8bf6cb79ea06b0d01873d5@imap.ipgp.fr> References: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> <5a5edb3e1d56945e0f022d5f2fb0d048@imap.ipgp.fr> <011494d16d8bf6cb79ea06b0d01873d5@imap.ipgp.fr> Message-ID: Houssen, PointData (as CellData) is basically a set of arrays where some of them can be flagged as "the normal array", "the texture coordinates array", or even "the default scalar array". Only one of the arrays of the PointData can be tagged a the scalar array but it does not mean you cannot have more than one array that could be considered as a scalar array. Those flags are used by some VTK filters/algorithms to determine on which array to operate by default there are other mechanism (ie. SetArrayToProcess) to specify the array(s) to be used by a filter. See vtkDataSetAttributes for more info on this mechanism. As Bill said, try this: vtkSmartPointer data1 = vtkSmartPointer::New(); data1->SetName("data1"); vtkSmartPointer data2 = vtkSmartPointer::New(); data2->SetName("data2"); for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } uGrid->GetPointdata()->AddArray(data1); uGrid->GetPointdata()->AddArray(data2); uGrid->GetPointdata()->SetScalars(data1); // specify that data1 is the array flagged as the scalar array Save your grid and you will have both arrays saved but only "data1" in the vtk file output for sure. Best, *Joachim Pouderoux*, PhD *Technical Expert - Scientific Computing Team* *Kitware SAS * 2017-04-02 13:12 GMT-04:00 houssen : > May use a lookup table ? Not familiar with that but seems it's not what I > need ?!... > > Somebody knows how to get back to this broken link ttp:// > article.gmane.org/gmane.comp.lib.vtk.user/6761/match=points+scalar+color > I got from http://public.kitware.com/pipermail/vtkusers/2003-August/ > 019748.html > > > Le 2017-04-02 18:39, houssen a ?crit : > >> KO ! Does not work (realize I tried this before !) => I only get >> data1 OR data2 (never both of them) in the written .vtu file... >> It is possible to make this work or to create a N-sized-vector. >> >> BTW, data1 is "pressure", data2 is "velocity" (that is data 1 and 2 >> are not related to each other) >> >> Franck >> >> Le 2017-04-02 18:24, Bill Lorensen a ?crit : >> >>> Try >>> uGrid->GetPointdata()->AddArray(data2); >>> >>> >>> On Sun, Apr 2, 2017 at 12:01 PM, houssen wrote: >>> >>>> Hello, >>>> >>>> How to set several scalars to vtkPoint ? >>>> >>>> Seems vtkDataPoint scratchs the previous scalar array ?! >>>> >>>> vtkSmartPointer data1 = vtkSmartPointer:: >>>> New(); >>>> data1->SetName("data1"); >>>> vtkSmartPointer data2 = vtkSmartPointer:: >>>> New(); >>>> data2->SetName("data2"); >>>> for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } >>>> uGrid->GetPointdata()->SetScalars(data1); // OK >>>> uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! >>>> >>>> uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I >>>> need : >>>> seems that it activate data1 back but "scratch" data2 back. >>>> >>>> uGrid is a vtkUnstructuredGrid : the final goal is to write the grid to >>>> a >>>> file (with vtkWriter). In this file, I'd like to have BOTH data1 and >>>> data2 >>>> for points. >>>> I only get either one or the other... How to get both ? >>>> >>>> Also tried to create a N-sized-vector (N=2 or 4) to associate to the >>>> vtkPoint : does not work as it seems vector dimension MUST be 3. I >>>> somebody >>>> knows a solution to attach a N-sized-vector to a vtkPoint, it could >>>> solve my >>>> problem >>>> >>>> Franck >>>> >>>> PS : found nothing relevant on the web, targetting VTK-7. >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Search the list archives at: http://markmail.org/search/?q= >>>> vtk-developers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>> >>>> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joachim.pouderoux at kitware.com Tue Apr 4 16:06:22 2017 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Tue, 4 Apr 2017 16:06:22 -0400 Subject: [vtk-developers] How to set several scalars to vtkPoint ? In-Reply-To: References: <7d8e8e1f4fa6297ab951e4efa6c0ad6a@imap.ipgp.fr> <5a5edb3e1d56945e0f022d5f2fb0d048@imap.ipgp.fr> <011494d16d8bf6cb79ea06b0d01873d5@imap.ipgp.fr> Message-ID: Sorry last sentence is was incomplete: Save your grid and you will have both arrays saved in the vtk file output for sure - and you will see that data1 is tagged as the SCALAR array. *Joachim Pouderoux*, PhD *Technical Expert - Scientific Computing Team* *Kitware SAS * 2017-04-04 16:05 GMT-04:00 Joachim Pouderoux : > Houssen, > > PointData (as CellData) is basically a set of arrays where some of them > can be flagged as "the normal array", "the texture coordinates array", or > even "the default scalar array". > Only one of the arrays of the PointData can be tagged a the scalar array > but it does not mean you cannot have more than one array that could be > considered as a scalar array. > Those flags are used by some VTK filters/algorithms to determine on which > array to operate by default there are other mechanism (ie. > SetArrayToProcess) to specify the > array(s) to be used by a filter. See vtkDataSetAttributes > for > more info on this mechanism. > > As Bill said, try this: > > vtkSmartPointer data1 = vtkSmartPointer::New(); > data1->SetName("data1"); > vtkSmartPointer data2 = vtkSmartPointer::New(); > data2->SetName("data2"); > for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } > uGrid->GetPointdata()->AddArray(data1); > uGrid->GetPointdata()->AddArray(data2); > uGrid->GetPointdata()->SetScalars(data1); // specify that data1 is the > array flagged as the scalar array > > Save your grid and you will have both arrays saved but only "data1" in the > vtk file output for sure. > > Best, > > *Joachim Pouderoux*, PhD > > *Technical Expert - Scientific Computing Team* > *Kitware SAS * > > > 2017-04-02 13:12 GMT-04:00 houssen : > >> May use a lookup table ? Not familiar with that but seems it's not what I >> need ?!... >> >> Somebody knows how to get back to this broken link ttp:// >> article.gmane.org/gmane.comp.lib.vtk.user/6761/match=points+scalar+color >> I got from http://public.kitware.com/pipermail/vtkusers/2003-August/019 >> 748.html >> >> >> Le 2017-04-02 18:39, houssen a ?crit : >> >>> KO ! Does not work (realize I tried this before !) => I only get >>> data1 OR data2 (never both of them) in the written .vtu file... >>> It is possible to make this work or to create a N-sized-vector. >>> >>> BTW, data1 is "pressure", data2 is "velocity" (that is data 1 and 2 >>> are not related to each other) >>> >>> Franck >>> >>> Le 2017-04-02 18:24, Bill Lorensen a ?crit : >>> >>>> Try >>>> uGrid->GetPointdata()->AddArray(data2); >>>> >>>> >>>> On Sun, Apr 2, 2017 at 12:01 PM, houssen wrote: >>>> >>>>> Hello, >>>>> >>>>> How to set several scalars to vtkPoint ? >>>>> >>>>> Seems vtkDataPoint scratchs the previous scalar array ?! >>>>> >>>>> vtkSmartPointer data1 = vtkSmartPointer:: >>>>> New(); >>>>> data1->SetName("data1"); >>>>> vtkSmartPointer data2 = vtkSmartPointer:: >>>>> New(); >>>>> data2->SetName("data2"); >>>>> for (...) {data1->SetValue(idx, d1[i]); data2->SetValue(idx, d2[idx]) } >>>>> uGrid->GetPointdata()->SetScalars(data1); // OK >>>>> uGrid->GetPointdata()->SetScalars(data2); // data2 scratch data1 ?! >>>>> >>>>> uGrid->GetPointdata()->SetActiveScalar("data1") does not do what I >>>>> need : >>>>> seems that it activate data1 back but "scratch" data2 back. >>>>> >>>>> uGrid is a vtkUnstructuredGrid : the final goal is to write the grid >>>>> to a >>>>> file (with vtkWriter). In this file, I'd like to have BOTH data1 and >>>>> data2 >>>>> for points. >>>>> I only get either one or the other... How to get both ? >>>>> >>>>> Also tried to create a N-sized-vector (N=2 or 4) to associate to the >>>>> vtkPoint : does not work as it seems vector dimension MUST be 3. I >>>>> somebody >>>>> knows a solution to attach a N-sized-vector to a vtkPoint, it could >>>>> solve my >>>>> problem >>>>> >>>>> Franck >>>>> >>>>> PS : found nothing relevant on the web, targetting VTK-7. >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q= >>>>> vtk-developers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>>> >>>>> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Apr 5 14:19:03 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 5 Apr 2017 14:19:03 -0400 Subject: [vtk-developers] ANN: New remote module SplineDrivenImageslicer Message-ID: Folks, The new remote module is SplineDrivenImageSlicer based on the VTK Journal article: http://www.vtkjournal.org/browse/publication/838 by Jerome Velut. I forked the git repo from the VTK Journal, reorganized the tree and converted the code to vtk7. Tests were included by the author. I also made a wiki example of the vtkFrenetSerretFrame class: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Remote/FrenetSerretFrame I will also add an example to show illustrates the spline driven sampler. The example page tells how to build the new remote module. Enjoy, Bill -- Unpaid intern in BillsLoft at noware dot com From sankhesh.jhaveri at kitware.com Wed Apr 5 16:57:55 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Wed, 05 Apr 2017 20:57:55 +0000 Subject: [vtk-developers] OffScreenRendering crash on CircleCI (Mac OSX) Message-ID: Folks, We?re running into a strange crash on mac containers (OSX 10.11.6) created by CircleCI with VTK (OpenGL backend). VTK compiles fine and seems to work with OffScreenRenderingOff but crashes at the first OpenGL call with OffScreenRenderingOn(). Unfortunately, I can?t reproduce this on my mac machine and haven?t been able to make headway within the half hour that CircleCI provides. Again, this is the OpenGL backend. No crashes with the OpenGL2 backend. If anyone has come across this or has an idea how to debug/reproduce/fix this, kindly drop me a hint. Thanks, Sankhesh ? -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ganesh.Sankaranarayanan at BSWHealth.org Thu Apr 6 10:21:51 2017 From: Ganesh.Sankaranarayanan at BSWHealth.org (Sankaranarayanan, Ganesh) Date: Thu, 6 Apr 2017 14:21:51 +0000 Subject: [vtk-developers] VTK with Oculus Rift - Problem with DLL Message-ID: Hello, I am having problem running the VTKRenderingOculusCxxTests program. I get the following error -- see the attached picture. I am using Visual Studio 2013 and the latest Oculus SDK 1.130. To be sure, I did the following 1. Recompiled the Oculus SDK libraries on VS 2013. 2. Cleaned and rebuilt the VTK libraries Standalone program with Oculus SDK works fine on the commercial version of Oculus Rift. I am having this problem only with VTK. I might be doing something wrong when building the library. Any help is greatly appreciated. Thanks, Ganesh Sankaranarayanan Ph.D. Assistant Director, Center for Evidence Based Simulation Baylor University Medical Center, Dallas Clinical Associate Professor Department of Surgery Texas A&M Health Science Center Office: 214-820-6755 ********************************************************************** The information contained in this e-mail may be privileged and/or confidential, and protected from disclosure, and no waiver of any attorney-client, work product, or other privilege is intended. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden and possibly a violation of federal or state law and regulations. The sender and Baylor Scott & White Health, and its affiliated entities, hereby expressly reserve all privileges and confidentiality that might otherwise be waived as a result of an erroneous or misdirected e-mail transmission. No employee or agent is authorized to conclude any binding agreement on behalf of Baylor Scott & White Health, or any affiliated entity, by e-mail without express written confirmation by the CEO, the Senior Vice President of Supply Chain Services or other duly authorized representative of Baylor Scott & White Health. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture.PNG Type: image/png Size: 16066 bytes Desc: Capture.PNG URL: From aron.helser at kitware.com Thu Apr 6 11:05:12 2017 From: aron.helser at kitware.com (Aron Helser) Date: Thu, 6 Apr 2017 11:05:12 -0400 Subject: [vtk-developers] VTK with Oculus Rift - Problem with DLL In-Reply-To: References: Message-ID: Have you tried using 'depends' (http://www.dependencywalker.com/) on that DLL? It may be able to give you an idea of what is wrong, or if there is some dependent lib/dll which is causing the problem instead. HTH, Aron On Thu, Apr 6, 2017 at 10:21 AM, Sankaranarayanan, Ganesh < Ganesh.Sankaranarayanan at bswhealth.org> wrote: > Hello, > > > > I am having problem running the VTKRenderingOculusCxxTests program. I get > the following error -- see the attached picture. > > I am using Visual Studio 2013 and the latest Oculus SDK 1.130. > > > > To be sure, I did the following > > 1. Recompiled the Oculus SDK libraries on VS 2013. > > 2. Cleaned and rebuilt the VTK libraries > > > > Standalone program with Oculus SDK works fine on the commercial version of > Oculus Rift. I am having this problem only with VTK. I might be doing > something wrong when building the library. > > > > Any help is greatly appreciated. > > > > Thanks, > > > > > > Ganesh Sankaranarayanan Ph.D. > > Assistant Director, Center for Evidence Based Simulation > > Baylor University Medical Center, Dallas > > > > Clinical Associate Professor > > Department of Surgery > > Texas A&M Health Science Center > > Office: 214-820-6755 <(214)%20820-6755> > > > > > > > ------------------------------ > The information contained in this e-mail may be privileged and/or > confidential, and protected from disclosure, and no waiver of any > attorney-client, work product, or other privilege is intended. If you are > the intended recipient, further disclosures are prohibited without proper > authorization. If you are not the intended recipient (or have received this > e-mail in error) please notify the sender immediately and destroy this > e-mail. Any unauthorized copying, disclosure or distribution of the > material in this e-mail is strictly forbidden and possibly a violation of > federal or state law and regulations. The sender and Baylor Scott & White > Health, and its affiliated entities, hereby expressly reserve all > privileges and confidentiality that might otherwise be waived as a result > of an erroneous or misdirected e-mail transmission. No employee or agent is > authorized to conclude any binding agreement on behalf of Baylor Scott & > White Health, or any affiliated entity, by e-mail without express written > confirmation by the CEO, the Senior Vice President of Supply Chain Services > or other duly authorized representative of Baylor Scott & White Health. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Thu Apr 6 14:50:44 2017 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Thu, 6 Apr 2017 12:50:44 -0600 Subject: [vtk-developers] Issue calling GetRange() on vtkColorTransferFunction from Python Message-ID: Hi folks, I recently noticed this seems broken in VTK master, while it was fine in an older VTK (around December 2016). Here is how I reproduced the issue: (in a vtkpython session) from vtkRenderingCorePython import vtkColorTransferFunction f = vtkColorTransferFunction() f.GetRange() While this used to return (0.0, 0.0), it now returns something like: '_0000000000ad0880_p_void' Does this ring any bells for anyone? David, are you aware of some change in the Python wrapping that may have caused this change in behavior? Cheers, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Apr 6 15:38:40 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 6 Apr 2017 15:38:40 -0400 Subject: [vtk-developers] OffScreenRendering crash on CircleCI (Mac OSX) In-Reply-To: References: Message-ID: <20170406193840.2116474851@mail.rogue-research.com> On Wed, 5 Apr 2017 20:57:55 +0000, Sankhesh Jhaveri said: >We?re running into a strange crash on mac containers (OSX 10.11.6) created >by CircleCI with VTK (OpenGL backend). > >VTK compiles fine and seems to work with OffScreenRenderingOff but crashes >at the first OpenGL call with OffScreenRenderingOn(). Unfortunately, I >can?t reproduce this on my mac machine and haven?t been able to make >headway within the half hour that CircleCI provides. > >Again, this is the OpenGL backend. No crashes with the OpenGL2 backend. >If anyone has come across this or has an idea how to debug/reproduce/fix >this, kindly drop me a hint. Sankhesh, You don't give enough information for anyone to help you. If you can't reproduce, what can any of us say if we don't even have your code? :) How about at least a backtrace of the crash, that might be something someone recognises. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From sean at rogue-research.com Thu Apr 6 15:46:23 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 6 Apr 2017 15:46:23 -0400 Subject: [vtk-developers] ready to branch for 8.0.0? In-Reply-To: References: Message-ID: <20170406194623.435889664@mail.rogue-research.com> On Tue, 21 Mar 2017 09:24:22 -0400, Cory Quammen said: >VTK 8.0.0 seems like a good target for some of the bigger API change >merge requests that have been put off for a while Examples include: > >https://gitlab.kitware.com/vtk/vtk/merge_requests/1455 >https://gitlab.kitware.com/vtk/vtk/merge_requests/917 > >If we are aspiring toward using semantic versioning [1], now would be >the time to make such API changes. And document them nicely as well, >of course. Even though I authored those MRs, it seems to me too late to merge them since the 8.0 branch is imminent. Maybe after 8.0 is branched, they could be merged to master? Will an eventual 8.0.1 or 8.1 come from master or the 8.0 branch? It is indeed not clear when such breaking changes can actually get merged... Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From sean at rogue-research.com Thu Apr 6 16:05:00 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 6 Apr 2017 16:05:00 -0400 Subject: [vtk-developers] Allowable C++11 Features in VTK In-Reply-To: References: Message-ID: <20170406200500.1562177155@mail.rogue-research.com> On Mon, 27 Mar 2017 14:03:16 -0400, Robert Maynard said: >As everyone is aware over the past couple of months we have updated >VTK to require a C++11 compiler, but have not explicitly stated what >C++11 features are usable. > >We do not intend to incorporate all features of the language at this >time because of incompatibilities with the structure of VTK and/or >incomplete support for the features by all of the compilers that VTK >aims to support. > >The current proposed C++11 features, and where they are allowed can be >found at: It looks pretty good to me. I'm a little trepidacious about 'auto'. I think it can certainly be beneficial if used judiciously, but I worry that overuse will hurt the readability and debuggability of the codebase. A shame that VS didn't support constexpr until recently, it would be nice to use too. In general, one thing I've always liked about VTK's C++ is that it isn't unnecessarily 'clever' using any and every funky C++ feature. I hope that continues. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From sankhesh.jhaveri at kitware.com Thu Apr 6 16:21:13 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 06 Apr 2017 20:21:13 +0000 Subject: [vtk-developers] OffScreenRendering crash on CircleCI (Mac OSX) In-Reply-To: <20170406193840.2116474851@mail.rogue-research.com> References: <20170406193840.2116474851@mail.rogue-research.com> Message-ID: Hi Sean, I understand. The issue is cataloged here: https://github.com/UV-CDAT/vcs/issues/130 The issue only occurs on a CircleCI provisioned container and I was unable to reproduce it on a physical machine. By asking this question here, I wanted to see if anyone else has come across and tackled this issue. Since my previous email, I was able to test a sample OpenGL application and reproduce the crash on a CircleCI VM, indicating it is an opengl/driver issue specific to circleci machines. Thanks, Sankhesh On Thu, Apr 6, 2017 at 3:38 PM Sean McBride wrote: On Wed, 5 Apr 2017 20:57:55 +0000, Sankhesh Jhaveri said: >We?re running into a strange crash on mac containers (OSX 10.11.6) created >by CircleCI with VTK (OpenGL backend). > >VTK compiles fine and seems to work with OffScreenRenderingOff but crashes >at the first OpenGL call with OffScreenRenderingOn(). Unfortunately, I >can?t reproduce this on my mac machine and haven?t been able to make >headway within the half hour that CircleCI provides. > >Again, this is the OpenGL backend. No crashes with the OpenGL2 backend. >If anyone has come across this or has an idea how to debug/reproduce/fix >this, kindly drop me a hint. Sankhesh, You don't give enough information for anyone to help you. If you can't reproduce, what can any of us say if we don't even have your code? :) How about at least a backtrace of the crash, that might be something someone recognises. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ganesh.Sankaranarayanan at BSWHealth.org Thu Apr 6 17:20:18 2017 From: Ganesh.Sankaranarayanan at BSWHealth.org (Sankaranarayanan, Ganesh) Date: Thu, 6 Apr 2017 21:20:18 +0000 Subject: [vtk-developers] {EXTERNAL} Re: VTK with Oculus Rift - Problem with DLL In-Reply-To: References: Message-ID: Thank you Aron for the help! I fixed the problem. I had the output as DLL but building as static library. Is there any other standalone example program available for testing with Oculus Rift? Thanks, Ganesh From: Aron Helser [mailto:aron.helser at kitware.com] Sent: Thursday, April 06, 2017 10:05 AM To: Sankaranarayanan, Ganesh Cc: vtk-developers at vtk.org Subject: {EXTERNAL} Re: [vtk-developers] VTK with Oculus Rift - Problem with DLL Have you tried using 'depends' (http://www.dependencywalker.com/) on that DLL? It may be able to give you an idea of what is wrong, or if there is some dependent lib/dll which is causing the problem instead. HTH, Aron On Thu, Apr 6, 2017 at 10:21 AM, Sankaranarayanan, Ganesh > wrote: Hello, I am having problem running the VTKRenderingOculusCxxTests program. I get the following error -- see the attached picture. I am using Visual Studio 2013 and the latest Oculus SDK 1.130. To be sure, I did the following 1. Recompiled the Oculus SDK libraries on VS 2013. 2. Cleaned and rebuilt the VTK libraries Standalone program with Oculus SDK works fine on the commercial version of Oculus Rift. I am having this problem only with VTK. I might be doing something wrong when building the library. Any help is greatly appreciated. Thanks, Ganesh Sankaranarayanan Ph.D. Assistant Director, Center for Evidence Based Simulation Baylor University Medical Center, Dallas Clinical Associate Professor Department of Surgery Texas A&M Health Science Center Office: 214-820-6755 ________________________________ The information contained in this e-mail may be privileged and/or confidential, and protected from disclosure, and no waiver of any attorney-client, work product, or other privilege is intended. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden and possibly a violation of federal or state law and regulations. The sender and Baylor Scott & White Health, and its affiliated entities, hereby expressly reserve all privileges and confidentiality that might otherwise be waived as a result of an erroneous or misdirected e-mail transmission. No employee or agent is authorized to conclude any binding agreement on behalf of Baylor Scott & White Health, or any affiliated entity, by e-mail without express written confirmation by the CEO, the Senior Vice President of Supply Chain Services or other duly authorized representative of Baylor Scott & White Health. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=vtk-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtk-developers ********************************************************************** The information contained in this e-mail may be privileged and/or confidential, and protected from disclosure, and no waiver of any attorney-client, work product, or other privilege is intended. If you are the intended recipient, further disclosures are prohibited without proper authorization. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden and possibly a violation of federal or state law and regulations. The sender and Baylor Scott & White Health, and its affiliated entities, hereby expressly reserve all privileges and confidentiality that might otherwise be waived as a result of an erroneous or misdirected e-mail transmission. No employee or agent is authorized to conclude any binding agreement on behalf of Baylor Scott & White Health, or any affiliated entity, by e-mail without express written confirmation by the CEO, the Senior Vice President of Supply Chain Services or other duly authorized representative of Baylor Scott & White Health. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Apr 7 16:36:21 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 7 Apr 2017 16:36:21 -0400 Subject: [vtk-developers] next vtk hackathon - 4/19? In-Reply-To: References: Message-ID: The doodle poll indicates that Thursday April 27th is a good date. Hope to see many of you then. Thanks! David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Mar 20, 2017 at 5:14 PM, David E DeMarle wrote: > Well this is awkward. Turns out my proposed date isn't good on my own > calendar. > > Here is a doodle poll to vote in. > http://doodle.com/poll/w49hsaf42qcx9rev > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Fri, Mar 17, 2017 at 10:34 PM, Cory Quammen > wrote: > >> +1 >> >> On Fri, Mar 17, 2017 at 4:21 PM, David E DeMarle >> wrote: >> > Hey Devs, >> > >> > It's about time for the next VTK hackathon. How does April 19'th sound >> to >> > you? >> > >> > I propose "examples" as the focus this time around. I for one would >> like to >> > move the in source examples out to the wiki examples project, add more >> > dashboard testers for the wiki examples, and shore them up with >> > demonstrations of more of what VTK can do. >> > >> > cheers, >> > >> > David E DeMarle >> > Kitware, Inc. >> > R&D Engineer >> > 21 Corporate Drive >> > Clifton Park, NY 12065-8662 >> > Phone: 518-881-4909 >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Search the list archives at: http://markmail.org/search/?q= >> vtk-developers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtk-developers >> > >> > >> >> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Sat Apr 8 07:31:53 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Sat, 8 Apr 2017 07:31:53 -0400 Subject: [vtk-developers] ready to branch for 8.0.0? In-Reply-To: <20170406194623.435889664@mail.rogue-research.com> References: <20170406194623.435889664@mail.rogue-research.com> Message-ID: Apologies for not saying so earlier but I'm going to delay 8.0 to give people time to make the changes mentioned in this thread and because the project that requested it slackened. I'm now aiming for a May 1st branch. 8.0.1 will come from the 8.0.0 tag (at that point aka release branch) and only if important bugs turn up in 8.0.0. 8.1 will come from master a few months down the road. On Thursday, April 6, 2017, Sean McBride wrote: > On Tue, 21 Mar 2017 09:24:22 -0400, Cory Quammen said: > > >VTK 8.0.0 seems like a good target for some of the bigger API change > >merge requests that have been put off for a while Examples include: > > > >https://gitlab.kitware.com/vtk/vtk/merge_requests/1455 > >https://gitlab.kitware.com/vtk/vtk/merge_requests/917 > > > >If we are aspiring toward using semantic versioning [1], now would be > >the time to make such API changes. And document them nicely as well, > >of course. > > Even though I authored those MRs, it seems to me too late to merge them > since the 8.0 branch is imminent. Maybe after 8.0 is branched, they could > be merged to master? Will an eventual 8.0.1 or 8.1 come from master or the > 8.0 branch? It is indeed not clear when such breaking changes can actually > get merged... > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > -- David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From voroscsaba.kanizsa at gmail.com Sat Apr 8 19:37:49 2017 From: voroscsaba.kanizsa at gmail.com (=?UTF-8?B?Q3NhYmEgVsO2csO2cw==?=) Date: Sun, 9 Apr 2017 01:37:49 +0200 Subject: [vtk-developers] Java wrapping Message-ID: Dear VTK Developers! I am a BsC student and now I'm writing my degree thesis. I programming in Java and I would use the vtk for the visualize my 3D model. I use MacOS 10.12.2 (Sierra). I downloaded from the web the latest version of VTK and I followed the instruction of vtk wiki. I configured the building with CMake and I used make command to compiling. After that I installed the vtk with make install command. In the terminal appeared the /usr/local/lib folder with the vtk.jar and .dylib files. At the CMake step I signed over the default ON variables the VTK_WRAP_JAVA, VTK_JAVA_INSTALL, VTK_JAVA_CLEANUP_INSTALL fields. I added the following variables to CMake correspond to VTK wiki and signed ON: DVTK_USE_QVTK, DVTK_USE_CARBON, DVTK_USE_GUISUPPORT and DCMAKE_INSTALL_PREFIX=/usr/local. I use NetBeans development environment and I setted up the vtk.jar to the Libraries and I added the following Virtual Machine options: -Djava.library.path="/usr/local/natives-Darwin-x86_64" When I would run a a simple code thrown the following exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path The source code contain this: static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); } I have no idea what is the solution for this problem. Thank you for taking the time to read my letter. Csaba V?r?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Sat Apr 8 20:01:54 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sat, 8 Apr 2017 18:01:54 -0600 Subject: [vtk-developers] Java wrapping In-Reply-To: References: Message-ID: Hi Csaba, I'm hoping that /usr/local was empty as the VTK_JAVA_CLEANUP_INSTALL property will wipe that directory before packaging the jars and so on. Usually, when using VTK_JAVA_CLEANUP_INSTALL a local dedicated directory is set to CMAKE_INSTALL_PREFIX. Then you can copy its content anywhere else. Regarding your issue I believe that you have all library names. Instead you should be using the helper enum vtkNativeLibrary. Which can be used like in our Demo example here: https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/Demo.java#L51-L61 Seb On Sat, Apr 8, 2017 at 5:37 PM, Csaba V?r?s wrote: > Dear VTK Developers! > > I am a BsC student and now I'm writing my degree thesis. I programming in > Java and I would use the vtk for the visualize my 3D model. I use MacOS > 10.12.2 (Sierra). > I downloaded from the web the latest version of VTK and I followed the > instruction of vtk wiki. I configured the building with CMake and I used > make command to compiling. After that I installed the vtk with make install > command. In the terminal appeared the /usr/local/lib folder with the > vtk.jar and .dylib files. > At the CMake step I signed over the default ON variables the > VTK_WRAP_JAVA, VTK_JAVA_INSTALL, VTK_JAVA_CLEANUP_INSTALL fields. I added > the following variables to CMake correspond to VTK wiki and signed ON: > DVTK_USE_QVTK, DVTK_USE_CARBON, DVTK_USE_GUISUPPORT and > DCMAKE_INSTALL_PREFIX=/usr/local. > > I use NetBeans development environment and I setted up the vtk.jar to the > Libraries and I added the following Virtual Machine options: > -Djava.library.path="/usr/local/natives-Darwin-x86_64" > > When I would run a a simple code thrown the following exception: > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > vtkCommonJava in java.library.path > > The source code contain this: > static { > System.loadLibrary("vtkCommonJava"); > System.loadLibrary("vtkFilteringJava"); > System.loadLibrary("vtkIOJava"); > System.loadLibrary("vtkImagingJava"); > System.loadLibrary("vtkGraphicsJava"); > System.loadLibrary("vtkRenderingJava"); > } > > I have no idea what is the solution for this problem. > > Thank you for taking the time to read my letter. > > Csaba V?r?s > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Mon Apr 10 08:53:12 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 10 Apr 2017 14:53:12 +0200 Subject: [vtk-developers] Supported TBB versions? Message-ID: Hi all, What TBB versions are supported by 7.1.1? Is the one in Ubuntu 16.05 (2015.09.R2-1) sufficient? Thanks in advance, Elvis From sujin.philip at kitware.com Mon Apr 10 10:07:01 2017 From: sujin.philip at kitware.com (Sujin Philip) Date: Mon, 10 Apr 2017 10:07:01 -0400 Subject: [vtk-developers] Supported TBB versions? In-Reply-To: References: Message-ID: Hi Elvis, We are only using basic TBB features (parallel_for, atomic and enumerable_thread_specific) so it should work with that version. Please let us know if it doesn't work for you. Thanks Sujin On Mon, Apr 10, 2017 at 8:53 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Hi all, > > What TBB versions are supported by 7.1.1? Is the one in Ubuntu 16.05 > (2015.09.R2-1) sufficient? > > Thanks in advance, > Elvis > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Mon Apr 10 10:11:11 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 10 Apr 2017 16:11:11 +0200 Subject: [vtk-developers] Supported TBB versions? In-Reply-To: References: Message-ID: 2017-04-10 16:07 GMT+02:00 Sujin Philip : > Hi Elvis, > > We are only using basic TBB features (parallel_for, atomic and > enumerable_thread_specific) so it should work with that version. Please let > us know if it doesn't work for you. Alright, thanks for the info. I'll have a go at it. The reason I asked is that I just found out that my build on Ubuntu was neither using TBB nor OpenMP, so I think the vtkSMPTools I have will do everything sequentially, so I wanted to fix that :) Elvis > > Thanks > Sujin > > > On Mon, Apr 10, 2017 at 8:53 AM, Elvis Stansvik > wrote: >> >> Hi all, >> >> What TBB versions are supported by 7.1.1? Is the one in Ubuntu 16.05 >> (2015.09.R2-1) sufficient? >> >> Thanks in advance, >> Elvis >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> > From james.patrick.marion at gmail.com Mon Apr 10 14:07:23 2017 From: james.patrick.marion at gmail.com (Pat Marion) Date: Mon, 10 Apr 2017 14:07:23 -0400 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: Message-ID: Hi Elvis, In prior emails you mentioned that you use a QVTKWidget subclass (or QVTKWidget2?) that contains a workaround for this event issue. Is this class something that you can share? Do you recommend using this workaround, or is the patched qt5.5 preferable? Pat On Mon, Mar 20, 2017 at 4:55 PM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > > On Mon, Jul 13, 2015 at 16:51:34 -0400, Ben Boeckel wrote: > >> On Mon, Jul 13, 2015 at 15:00:56 -0400, Ben Boeckel wrote: > >>> https://codereview.qt-project.org/#/c/115531/ > >> > >> Applying this patch (with one conflicting hunk) to 5.5.0 fixes the > >> problem for me. I'll poke the review to see if some movement can't be > >> made. > > > > It looks like the patch has been merged for 5.6.0 (due at the end of > > October). > > Just in case anyone is in the same boat like me, hitting this bug on > Ubuntu 16.04 LTS (which has Qt 5.5.1), just FYI I'm trying to get an > SRU (Stable Release Update) going with this fix: > > https://bugs.launchpad.net/ubuntu/+source/qtbase- > opensource-src/+bug/1598173 > > Elvis > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Mon Apr 10 15:10:17 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 10 Apr 2017 21:10:17 +0200 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: Message-ID: 2017-04-10 20:07 GMT+02:00 Pat Marion : > Hi Elvis, > > In prior emails you mentioned that you use a QVTKWidget subclass (or > QVTKWidget2?) that contains a workaround for this event issue. Is this > class something that you can share? Do you recommend using this workaround, > or is the patched qt5.5 preferable? Sure, I'm attaching VTKWidget.h/cpp, which contains the QVTKWidget subclass I'm currently using. If I remember correctly, it was David Gobbi who led me to this workaround, so he should have the credit. It's of course preferable to use a fixed Qt (5.6 or higher, or patched 5.5.1), but I'll use this workaround until the patched package is in the xenial-updates repo (the upload to xenial-proposed seems to take some time, I guess the approvers are busy). Elvis > > Pat > > On Mon, Mar 20, 2017 at 4:55 PM, Elvis Stansvik > wrote: >> >> > On Mon, Jul 13, 2015 at 16:51:34 -0400, Ben Boeckel wrote: >> >> On Mon, Jul 13, 2015 at 15:00:56 -0400, Ben Boeckel wrote: >> >>> https://codereview.qt-project.org/#/c/115531/ >> >> >> >> Applying this patch (with one conflicting hunk) to 5.5.0 fixes the >> >> problem for me. I'll poke the review to see if some movement can't be >> >> made. >> > >> > It looks like the patch has been merged for 5.6.0 (due at the end of >> > October). >> >> Just in case anyone is in the same boat like me, hitting this bug on >> Ubuntu 16.04 LTS (which has Qt 5.5.1), just FYI I'm trying to get an >> SRU (Stable Release Update) going with this fix: >> >> >> https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1598173 >> >> Elvis >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: VTKWidget.h Type: text/x-chdr Size: 488 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: VTKWidget.cpp Type: text/x-c++src Size: 1681 bytes Desc: not available URL: From elvis.stansvik at orexplore.com Mon Apr 10 15:13:46 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Mon, 10 Apr 2017 21:13:46 +0200 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: Message-ID: 2017-04-10 21:10 GMT+02:00 Elvis Stansvik : > 2017-04-10 20:07 GMT+02:00 Pat Marion : >> Hi Elvis, >> >> In prior emails you mentioned that you use a QVTKWidget subclass (or >> QVTKWidget2?) that contains a workaround for this event issue. Is this >> class something that you can share? Do you recommend using this workaround, >> or is the patched qt5.5 preferable? > > Sure, I'm attaching VTKWidget.h/cpp, which contains the QVTKWidget > subclass I'm currently using. > > If I remember correctly, it was David Gobbi who led me to this > workaround, so he should have the credit. My bad, it was Clint and David together who helped me out. This was the original thread: http://public.kitware.com/pipermail/vtkusers/2016-July/095802.html Elvis > > It's of course preferable to use a fixed Qt (5.6 or higher, or patched > 5.5.1), but I'll use this workaround until the patched package is in > the xenial-updates repo (the upload to xenial-proposed seems to take > some time, I guess the approvers are busy). > > Elvis > >> >> Pat >> >> On Mon, Mar 20, 2017 at 4:55 PM, Elvis Stansvik >> wrote: >>> >>> > On Mon, Jul 13, 2015 at 16:51:34 -0400, Ben Boeckel wrote: >>> >> On Mon, Jul 13, 2015 at 15:00:56 -0400, Ben Boeckel wrote: >>> >>> https://codereview.qt-project.org/#/c/115531/ >>> >> >>> >> Applying this patch (with one conflicting hunk) to 5.5.0 fixes the >>> >> problem for me. I'll poke the review to see if some movement can't be >>> >> made. >>> > >>> > It looks like the patch has been merged for 5.6.0 (due at the end of >>> > October). >>> >>> Just in case anyone is in the same boat like me, hitting this bug on >>> Ubuntu 16.04 LTS (which has Qt 5.5.1), just FYI I'm trying to get an >>> SRU (Stable Release Update) going with this fix: >>> >>> >>> https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1598173 >>> >>> Elvis >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q=vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >> From david.gobbi at gmail.com Mon Apr 10 16:07:40 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 10 Apr 2017 14:07:40 -0600 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: Message-ID: My strong preference is only call Render() within Qt's paintEvent(), and to disable Render() everywhere else. Then, when I want VTK to render, I call update() on my QWidget to let Qt know that it has to re-paint. This keeps things nicely synchronized between VTK and Qt, which is especially important for things like resizing the window. Another thing that I do differently from QVTKWidget is that I install a dummy QPaintEngine so that Qt never executes any drawing commands within the widget, but that's a separate issue from the event loop bug. - David On Mon, Apr 10, 2017 at 1:13 PM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2017-04-10 21:10 GMT+02:00 Elvis Stansvik : > > 2017-04-10 20:07 GMT+02:00 Pat Marion : > >> Hi Elvis, > >> > >> In prior emails you mentioned that you use a QVTKWidget subclass (or > >> QVTKWidget2?) that contains a workaround for this event issue. Is this > >> class something that you can share? Do you recommend using this > workaround, > >> or is the patched qt5.5 preferable? > > > > Sure, I'm attaching VTKWidget.h/cpp, which contains the QVTKWidget > > subclass I'm currently using. > > > > If I remember correctly, it was David Gobbi who led me to this > > workaround, so he should have the credit. > > My bad, it was Clint and David together who helped me out. This was > the original thread: > > http://public.kitware.com/pipermail/vtkusers/2016-July/095802.html > > Elvis > > > > > It's of course preferable to use a fixed Qt (5.6 or higher, or patched > > 5.5.1), but I'll use this workaround until the patched package is in > > the xenial-updates repo (the upload to xenial-proposed seems to take > > some time, I guess the approvers are busy). > > > > Elvis > > > >> > >> Pat > >> > >> On Mon, Mar 20, 2017 at 4:55 PM, Elvis Stansvik > >> wrote: > >>> > >>> > On Mon, Jul 13, 2015 at 16:51:34 -0400, Ben Boeckel wrote: > >>> >> On Mon, Jul 13, 2015 at 15:00:56 -0400, Ben Boeckel wrote: > >>> >>> https://codereview.qt-project.org/#/c/115531/ > >>> >> > >>> >> Applying this patch (with one conflicting hunk) to 5.5.0 fixes the > >>> >> problem for me. I'll poke the review to see if some movement can't > be > >>> >> made. > >>> > > >>> > It looks like the patch has been merged for 5.6.0 (due at the end of > >>> > October). > >>> > >>> Just in case anyone is in the same boat like me, hitting this bug on > >>> Ubuntu 16.04 LTS (which has Qt 5.5.1), just FYI I'm trying to get an > >>> SRU (Stable Release Update) going with this fix: > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Mon Apr 10 19:04:39 2017 From: clinton at elemtech.com (clinton at elemtech.com) Date: Tue, 11 Apr 2017 08:04:39 +0900 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 Message-ID: <4b440164-43bf-4adb-bb14-500fd89e85b4@email.android.com> An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Apr 11 03:19:34 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 11 Apr 2017 09:19:34 +0200 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: <4b440164-43bf-4adb-bb14-500fd89e85b4@email.android.com> References: <4b440164-43bf-4adb-bb14-500fd89e85b4@email.android.com> Message-ID: 2017-04-11 1:04 GMT+02:00 : > That is my preference too. > > It's my understanding this approach is necessary & recommended when using > QOpenGLWidget. Unless one uses QWidget::repaint to force an immediate > paintEvent(). > > Clint > > > On Apr 11, 2017 05:07, David Gobbi wrote: > > My strong preference is only call Render() within Qt's paintEvent(), > and to disable Render() everywhere else. Then, when I want VTK > to render, I call update() on my QWidget to let Qt know that it has > to re-paint. > > This keeps things nicely synchronized between VTK and Qt, which > is especially important for things like resizing the window. > > Another thing that I do differently from QVTKWidget is that I install > a dummy QPaintEngine so that Qt never executes any drawing > commands within the widget, but that's a separate issue from the > event loop bug. Thanks David & Clint for your insights. David: Is your VTK/Qt widget class something you could share? It sounds like it has accumulated a lot of battlefield wisdom that could be useful to others :) Regarding your noop QPaintEngine, what problem have you bumped into that this is solving? Elvis > > - David > > > On Mon, Apr 10, 2017 at 1:13 PM, Elvis Stansvik > wrote: > > 2017-04-10 21:10 GMT+02:00 Elvis Stansvik : >> 2017-04-10 20:07 GMT+02:00 Pat Marion : >>> Hi Elvis, >>> >>> In prior emails you mentioned that you use a QVTKWidget subclass (or >>> QVTKWidget2?) that contains a workaround for this event issue. Is this >>> class something that you can share? Do you recommend using this >>> workaround, >>> or is the patched qt5.5 preferable? >> >> Sure, I'm attaching VTKWidget.h/cpp, which contains the QVTKWidget >> subclass I'm currently using. >> >> If I remember correctly, it was David Gobbi who led me to this >> workaround, so he should have the credit. > > My bad, it was Clint and David together who helped me out. This was > the original thread: > > http://public.kitware.com/pipermail/vtkusers/2016-July/095802.html > > Elvis > >> >> It's of course preferable to use a fixed Qt (5.6 or higher, or patched >> 5.5.1), but I'll use this workaround until the patched package is in >> the xenial-updates repo (the upload to xenial-proposed seems to take >> some time, I guess the approvers are busy). >> >> Elvis >> >>> >>> Pat >>> >>> On Mon, Mar 20, 2017 at 4:55 PM, Elvis Stansvik >>> wrote: >>>> >>>> > On Mon, Jul 13, 2015 at 16:51:34 -0400, Ben Boeckel wrote: >>>> >> On Mon, Jul 13, 2015 at 15:00:56 -0400, Ben Boeckel wrote: >>>> >>> https://codereview.qt-project.org/#/c/115531/ >>>> >> >>>> >> Applying this patch (with one conflicting hunk) to 5.5.0 fixes the >>>> >> problem for me. I'll poke the review to see if some movement can't be >>>> >> made. >>>> > >>>> > It looks like the patch has been merged for 5.6.0 (due at the end of >>>> > October). >>>> >>>> Just in case anyone is in the same boat like me, hitting this bug on >>>> Ubuntu 16.04 LTS (which has Qt 5.5.1), just FYI I'm trying to get an >>>> SRU (Stable Release Update) going with this fix: > > From elvis.stansvik at orexplore.com Tue Apr 11 04:45:19 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 11 Apr 2017 10:45:19 +0200 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) Message-ID: Hi all, Cross-posting since I'm not sure if vtkusers@ or vtk-developers@ is most appropriate for this. On Linux, I'm using the vtkRendereringFreeTypeFontConfig module, so that I can use system fonts (e.g. for charts labels et.c). The goal is to make VTK fonts match those used by Qt, so I'm using QFontDatabase::system(...) to query for the user's preferred font, and then use that in my VTK code. This is all working quite well. I'm now porting the application to Windows. Does VTK have any support for loading system fonts on Windows? Something similar to the vtkRendereringFreeTypeFontConfig, but for whatever font backend Windows uses? If not, has anyone had luck in building fontconfig for Windows, and using the vtkRendereringFreeTypeFontConfig module there? (I'm not even sure if fontconfig has support for hooking into Windows' font backend, so this may not be a solution at all). Many thanks in advance, Elvis From sebastien.jourdain at kitware.com Tue Apr 11 09:15:24 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 11 Apr 2017 07:15:24 -0600 Subject: [vtk-developers] Java wrapping In-Reply-To: References: Message-ID: The issue (I believe) is that you are not using the EDT to do your interaction with VTK. Specially for the part below: // // now we loop over 360 degreeees and render the cone each time // int i; for (i = 0; i < 360; ++i) { // render the image renWin.Render(); // rotate the active camera by one degree ren1.GetActiveCamera().Azimuth( 1 ); } } Moreover, on Mac, you can not really use the standard render window with Java. You should build VTK with JOGL and use the JOGL rendering component like in the example here: https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/rendering/JoglConeRendering.java For JOGL, you may want to read that first: https://github.com/Kitware/VTK/blob/master/Wrapping/Java/README.txt On Tue, Apr 11, 2017 at 4:25 AM, Csaba V?r?s wrote: > Hi Sebastian! > > I tried Load AllNativeLibraries() function and I got some exception that > not found the .dylib libraries. I rewrote the libraries path to my build > folder and it seems to me the code is correctly run. But the problem is I > don't see anything because the window is close very fast. I uploaded the > source code to Google Drive that you can see. > > https://drive.google.com/file/d/0BxKX9JI3_72IdHlpWkNZbHhqcW8/view?usp= > sharing > > Thank you > > Csaba > > 2017-04-09 2:01 GMT+02:00 Sebastien Jourdain com>: > >> Hi Csaba, >> >> I'm hoping that /usr/local was empty as the VTK_JAVA_CLEANUP_INSTALL >> property will wipe that directory before packaging the jars and so on. >> Usually, when using VTK_JAVA_CLEANUP_INSTALL a local dedicated directory >> is set to CMAKE_INSTALL_PREFIX. Then you can copy its content anywhere else. >> >> Regarding your issue I believe that you have all library names. Instead >> you should be using the helper enum vtkNativeLibrary. Which can be used >> like in our Demo example here: https://github.com/Kitwa >> re/VTK/blob/master/Wrapping/Java/vtk/sample/Demo.java#L51-L61 >> >> Seb >> >> On Sat, Apr 8, 2017 at 5:37 PM, Csaba V?r?s > > wrote: >> >>> Dear VTK Developers! >>> >>> I am a BsC student and now I'm writing my degree thesis. I programming >>> in Java and I would use the vtk for the visualize my 3D model. I use MacOS >>> 10.12.2 (Sierra). >>> I downloaded from the web the latest version of VTK and I followed the >>> instruction of vtk wiki. I configured the building with CMake and I used >>> make command to compiling. After that I installed the vtk with make install >>> command. In the terminal appeared the /usr/local/lib folder with the >>> vtk.jar and .dylib files. >>> At the CMake step I signed over the default ON variables the >>> VTK_WRAP_JAVA, VTK_JAVA_INSTALL, VTK_JAVA_CLEANUP_INSTALL fields. I added >>> the following variables to CMake correspond to VTK wiki and signed ON: >>> DVTK_USE_QVTK, DVTK_USE_CARBON, DVTK_USE_GUISUPPORT and >>> DCMAKE_INSTALL_PREFIX=/usr/local. >>> >>> I use NetBeans development environment and I setted up the vtk.jar to >>> the Libraries and I added the following Virtual Machine options: >>> -Djava.library.path="/usr/local/natives-Darwin-x86_64" >>> >>> When I would run a a simple code thrown the following exception: >>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >>> vtkCommonJava in java.library.path >>> >>> The source code contain this: >>> static { >>> System.loadLibrary("vtkCommonJava"); >>> System.loadLibrary("vtkFilteringJava"); >>> System.loadLibrary("vtkIOJava"); >>> System.loadLibrary("vtkImagingJava"); >>> System.loadLibrary("vtkGraphicsJava"); >>> System.loadLibrary("vtkRenderingJava"); >>> } >>> >>> I have no idea what is the solution for this problem. >>> >>> Thank you for taking the time to read my letter. >>> >>> Csaba V?r?s >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Apr 11 12:03:46 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 11 Apr 2017 10:03:46 -0600 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: <4b440164-43bf-4adb-bb14-500fd89e85b4@email.android.com> Message-ID: On Tue, Apr 11, 2017 at 1:19 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > > Thanks David & Clint for your insights. > > David: Is your VTK/Qt widget class something you could share? It > sounds like it has accumulated a lot of battlefield wisdom that could > be useful to others :) > It's part of an internal project, so I can't release it (or at least, not yet). Regarding your noop QPaintEngine, what problem have you bumped into > that this is solving? This was needed in order to get rendering to work on a Windows system. Qt was always erasing the VTK scene by painting over it with the widget's background color. I tried setting the WA_NoSystemBackground flag and the WA_PaintOnScreen flag to stop Qt from doing this, but the only trick that always worked was replacing the QPaintEngine with a dummy. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Tue Apr 11 12:43:19 2017 From: david.lonie at kitware.com (David Lonie) Date: Tue, 11 Apr 2017 12:43:19 -0400 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: References: Message-ID: AFAIK, the only option on windows would be to load the font file directly using vtkTextProperty::SetFontFamily(VTK_FONT_FILE) and vtkTextProperty::SetFontFile(...). I've never heard of FontConfig being used on Windows, but I haven't really looked into it, either. Good luck! Dave On Tue, Apr 11, 2017 at 4:45 AM, Elvis Stansvik wrote: > Hi all, > > Cross-posting since I'm not sure if vtkusers@ or vtk-developers@ is > most appropriate for this. > > On Linux, I'm using the vtkRendereringFreeTypeFontConfig module, so > that I can use system fonts (e.g. for charts labels et.c). The goal is > to make VTK fonts match those used by Qt, so I'm using > QFontDatabase::system(...) to query for the user's preferred font, and > then use that in my VTK code. This is all working quite well. > > I'm now porting the application to Windows. Does VTK have any support > for loading system fonts on Windows? Something similar to the > vtkRendereringFreeTypeFontConfig, but for whatever font backend > Windows uses? > > If not, has anyone had luck in building fontconfig for Windows, and > using the vtkRendereringFreeTypeFontConfig module there? (I'm not even > sure if fontconfig has support for hooking into Windows' font backend, > so this may not be a solution at all). > > Many thanks in advance, > Elvis > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > From elvis.stansvik at orexplore.com Tue Apr 11 12:45:40 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 11 Apr 2017 18:45:40 +0200 Subject: [vtk-developers] Delayed mouse interaction due to event-loop bug in Qt5 In-Reply-To: References: <4b440164-43bf-4adb-bb14-500fd89e85b4@email.android.com> Message-ID: Den 11 apr. 2017 6:04 em skrev "David Gobbi" : > > On Tue, Apr 11, 2017 at 1:19 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> >> Thanks David & Clint for your insights. >> >> David: Is your VTK/Qt widget class something you could share? It >> sounds like it has accumulated a lot of battlefield wisdom that could >> be useful to others :) > > > It's part of an internal project, so I can't release it (or at least, not yet). Alright. > >> Regarding your noop QPaintEngine, what problem have you bumped into >> that this is solving? > > > This was needed in order to get rendering to work on a Windows system. > Qt was always erasing the VTK scene by painting over it with the widget's > background color. I tried setting the WA_NoSystemBackground flag and > the WA_PaintOnScreen flag to stop Qt from doing this, but the only trick > that always worked was replacing the QPaintEngine with a dummy. Ah, very interesting. I was porting our app to Windows just today actually. Only just gotten it to build, but can't test running it yet since I'm relegated to VirtualBox until we get a Windows test machine, and the VirtualBox OpenGL driver is not capable enough (ARB_geometry_shader4 missing, probably more). Thanks for the heads up, I may run into this soon. Elvis > > - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Apr 11 15:54:20 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 11 Apr 2017 21:54:20 +0200 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: References: Message-ID: 2017-04-11 18:43 GMT+02:00 David Lonie : > AFAIK, the only option on windows would be to load the font file > directly using vtkTextProperty::SetFontFamily(VTK_FONT_FILE) and > vtkTextProperty::SetFontFile(...). I've never heard of FontConfig > being used on Windows, but I haven't really looked into it, either. Hm, alright. QFont (as returned by QFontDatabase::system(...) etc.) unfortunately can't give me a specific font file (it's not part of its API, QFont should actually be thought of as query to the underlying font backend, not a specific font file), so I don't have a file path to pass to SetFontFile :/ Would it make sense as future improvement to add a VTK module similar to vtkRenderingFreeTypeFontConfig, but which interfaces with the Windows font backend? How are people dealing with this in VTK applications today? Do they just accept that fonts in VTK will look out of place compared to surrounding UI elements and other programs (and not respecting the user's font settings)? What's the situation on macOS? We're planning a port to macOS as well, and would of course like to respect the user's font choice there as well. Elvis > > Good luck! > > Dave > > On Tue, Apr 11, 2017 at 4:45 AM, Elvis Stansvik > wrote: >> Hi all, >> >> Cross-posting since I'm not sure if vtkusers@ or vtk-developers@ is >> most appropriate for this. >> >> On Linux, I'm using the vtkRendereringFreeTypeFontConfig module, so >> that I can use system fonts (e.g. for charts labels et.c). The goal is >> to make VTK fonts match those used by Qt, so I'm using >> QFontDatabase::system(...) to query for the user's preferred font, and >> then use that in my VTK code. This is all working quite well. >> >> I'm now porting the application to Windows. Does VTK have any support >> for loading system fonts on Windows? Something similar to the >> vtkRendereringFreeTypeFontConfig, but for whatever font backend >> Windows uses? >> >> If not, has anyone had luck in building fontconfig for Windows, and >> using the vtkRendereringFreeTypeFontConfig module there? (I'm not even >> sure if fontconfig has support for hooking into Windows' font backend, >> so this may not be a solution at all). >> >> Many thanks in advance, >> Elvis >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> From david.lonie at kitware.com Tue Apr 11 16:00:15 2017 From: david.lonie at kitware.com (David Lonie) Date: Tue, 11 Apr 2017 16:00:15 -0400 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: References: Message-ID: On Tue, Apr 11, 2017 at 3:54 PM, Elvis Stansvik wrote: > Would it make sense as future improvement to add a VTK module similar > to vtkRenderingFreeTypeFontConfig, but which interfaces with the > Windows font backend? Sure, that would be useful. > How are people dealing with this in VTK applications today? Do they > just accept that fonts in VTK will look out of place compared to > surrounding UI elements and other programs (and not respecting the > user's font settings)? What's the situation on macOS? We're planning a > port to macOS as well, and would of course like to respect the user's > font choice there as well. Most of the applications I'm aware of that use a consistent font across components with VTK do so by specifying a font file explicitly as part of their distribution, or just settle for matching serif/sans-serif/monospace properties. HTH, Dave From elvis.stansvik at orexplore.com Tue Apr 11 16:04:27 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 11 Apr 2017 22:04:27 +0200 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: References: Message-ID: 2017-04-11 22:00 GMT+02:00 David Lonie : > On Tue, Apr 11, 2017 at 3:54 PM, Elvis Stansvik > wrote: >> Would it make sense as future improvement to add a VTK module similar >> to vtkRenderingFreeTypeFontConfig, but which interfaces with the >> Windows font backend? > > Sure, that would be useful. > >> How are people dealing with this in VTK applications today? Do they >> just accept that fonts in VTK will look out of place compared to >> surrounding UI elements and other programs (and not respecting the >> user's font settings)? What's the situation on macOS? We're planning a >> port to macOS as well, and would of course like to respect the user's >> font choice there as well. > > Most of the applications I'm aware of that use a consistent font > across components with VTK do so by specifying a font file explicitly > as part of their distribution, or just settle for matching > serif/sans-serif/monospace properties. Alright, I guess that's what we'll do for Windows/macOS for now then, even if the goal was to obey the user's settings and not impose a specific shipped font. The problem is that the font we choose to ship may not fit in well with the user's chosen font (which the surrounding Qt GUI will respect). Elvis > > HTH, > Dave From isaiah.norton at gmail.com Tue Apr 11 20:42:09 2017 From: isaiah.norton at gmail.com (Isaiah Norton) Date: Tue, 11 Apr 2017 20:42:09 -0400 Subject: [vtk-developers] ready to branch for 8.0.0? In-Reply-To: <20170327211140.1255596157@mail.rogue-research.com> References: <03adb949690649ad8877f1f62a0dcf7c@EXCHCS33.ornl.gov> <20170327211140.1255596157@mail.rogue-research.com> Message-ID: On Mon, Mar 27, 2017 at 5:11 PM, Sean McBride wrote: > On Thu, 23 Mar 2017 14:07:03 +0000, Hahn, Steven E. said: > > >With std::isinf clang generates code that is 3-4 times slower than > >one would naively expect for a type that doesn?t contain infinity. > > Is there a bug for that? A quick search didn't reveal anything: > This is the same underlying issue as: https://bugs.llvm.org//show_bug.cgi?id=18218 libc++ interpreted the standard in a way that doesn't make sense, such that any isinf and isnan arguments are cast to double (this makes no sense because the Inf bit pattern is a perfectly valid integer much smaller than the typemax). Whereas libstdc++ only defines std::isinf for float/double/long double, and all other types are a constexpr false. > > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From houssen at ipgp.fr Wed Apr 12 06:27:11 2017 From: houssen at ipgp.fr (houssen) Date: Wed, 12 Apr 2017 12:27:11 +0200 Subject: [vtk-developers] =?utf-8?q?How_to_=22see=22_labels_=28=22names=22?= =?utf-8?q?=29_of_points_of_a_vtkUnstructuredGrid_in_a_VTK_window_=3F?= Message-ID: How to "see" labels (= "names") of points of a vtkUnstructuredGrid in a VTK window ? Is there an existing filter for that ? (looked for it but didn't find it) Should I use vtkLabeledDataMapper: if yes, how ? Must I write myself a dedicated filter for that ? I have a valid vtkUnstructuredGrid (named "grid" in the following code snippets - points and cells have been set without problems). Now I add a string array to points (from a list called iVertexNames): vtkSmartPointer ptNames = vtkSmartPointer::New(); ptNames->SetName("names"); for (unsigned int idx = 0; idx < iVertexNames.size(); idx++) ptNames->SetValue(idx, iVertexNames[idx]); grid->GetPointData()->AddArray(ptNames); I have a VTK window in which I render the grid (works OK): now, I want to add point labels to the scene (does not work). I tried several things that didn't work: 1. grid->GetPointData()->SetActiveScalars("names") => nothing change in the VTK window. 2. Add an (2D) actor whose mapper is a vtkLabeledDataMapper (+ calling SetLabelModeToLabelScalars) vtkSmartPointer lblMap = vtkSmartPointer::New(); lblMap->SetInputData(grid->????()); // Does NOT compile ? What to put here ? lblMap->SetInputData(grid->GetPointData()->????()); // Does NOT compile ? What to put here ? => Does not compile (need to use SetInputConnection ? With which argument ?) 3. Use an existing filter for that : didn't find it ! (vtkVertexGlyphFilter seems to support only int/double/float ?) => Does not exist Is there another way to do that ? Franck From houssen at ipgp.fr Wed Apr 12 08:49:38 2017 From: houssen at ipgp.fr (houssen) Date: Wed, 12 Apr 2017 14:49:38 +0200 Subject: [vtk-developers] =?utf-8?q?How_to_=22see=22_labels_=28=22names=22?= =?utf-8?q?=29_of_points_of_a_vtkUnstructuredGrid_in_a_VTK_window_=3F?= In-Reply-To: References: Message-ID: The answer was here : http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelPlacementMapper. Franck Le 2017-04-12 12:27, houssen a ?crit?: > How to "see" labels (= "names") of points of a vtkUnstructuredGrid in > a VTK window ? > > Is there an existing filter for that ? (looked for it but didn't find > it) > Should I use vtkLabeledDataMapper: if yes, how ? > Must I write myself a dedicated filter for that ? > > I have a valid vtkUnstructuredGrid (named "grid" in the following > code snippets - points and cells have been set without problems). > > Now I add a string array to points (from a list called iVertexNames): > vtkSmartPointer ptNames = > vtkSmartPointer::New(); > ptNames->SetName("names"); > for (unsigned int idx = 0; idx < iVertexNames.size(); idx++) > ptNames->SetValue(idx, iVertexNames[idx]); > grid->GetPointData()->AddArray(ptNames); > > I have a VTK window in which I render the grid (works OK): now, I > want to add point labels to the scene (does not work). > > I tried several things that didn't work: > 1. grid->GetPointData()->SetActiveScalars("names") > => nothing change in the VTK window. > 2. Add an (2D) actor whose mapper is a vtkLabeledDataMapper (+ > calling SetLabelModeToLabelScalars) > vtkSmartPointer lblMap = > vtkSmartPointer::New(); > lblMap->SetInputData(grid->????()); // Does NOT compile ? What to > put here ? > lblMap->SetInputData(grid->GetPointData()->????()); // Does NOT > compile ? What to put here ? > => Does not compile (need to use SetInputConnection ? With which > argument ?) > 3. Use an existing filter for that : didn't find it ! > (vtkVertexGlyphFilter seems to support only int/double/float ?) > => Does not exist > > Is there another way to do that ? > > Franck > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers From houssen at ipgp.fr Wed Apr 12 11:09:14 2017 From: houssen at ipgp.fr (houssen) Date: Wed, 12 Apr 2017 17:09:14 +0200 Subject: [vtk-developers] =?utf-8?q?With_VTK_=3E=3D_6=2C_how_to_=22choose?= =?utf-8?q?=22_between_SetInputData=28=29_or_SetInputConnection=28=29_=3F?= Message-ID: With VTK >= 6, how to "choose" between SetInputData() or SetInputConnection() ? How to know which one SHOULD be used ? I read carefully this http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput, and, I digged several VTK examples http://www.vtk.org/Wiki/VTK/Examples/Cxx... Lot of things clarified but I'am still confused in exercising this: I feel like I missed some major stuffs... To make it quick, my understanding is that : 1. If I need B to be modified if A is changed, I NEED to do "B->SetInputConnection(A->GetOutputPort())". 2. Otherwise, "B->SetInputData(A)" is enough (A will be an input of B BUT no link will be set between A and B : changing A does not trigger update of B). Up to here I guess (?) I'am right (at least for the big headlines)... Stop me here if not ! Now, I want to have a source (grid) and I need to apply a filter on it. Say that in a call back I modify the source: I want BOTH source and filter to be updated when call backs are modifying the source. Here is what I have: vtkSmartPointer spGrid = vtkSmartPointer::New(); // Source // Fill the source with points and cells... vtkSmartPointer spVertexGlyphs = vtkSmartPointer::New(); spVertexGlyphs->SetInputData(spGrid); // Case 2 vtkSmartPointer spVertexGlyphMap = vtkSmartPointer::New(); spVertexGlyphMap->SetInputConnection(spVertexGlyphs->GetOutputPort()); // Case 1 : the filter is updated if the source is modified. This seems to works: the filter is updated if the source is modified. But, this does NOT work: the source is NOT modified (= updated in the VTK window) when the callback modify it (so the filter may OR NOT be updated accordingly ?!). I expected to be compelled to do: vtkSmartPointer spGridMap = vtkSmartPointer::New(); spGridMap->SetInputConnection(spGrid->GetOutputPort()); // Compilation KO because there is not SetInputConnection or GetOutputPort ??? So I'am compelled to do (found lots of examples that do that): spGridMap->SetInputData(spGrid); ... And I end up with a grid that does NOT update in the VTK window when call back modify the source. I found a way to update it: the callback modify the grid and, at the end of the callback, I added "spGrid->Modified()", this triggers the update of the source. So basically, I did what I need ... But: 1. Is the "spGrid->Modified()" a hack ? Or is it the "right" way to do ? If yes, why (as it seems to bypass the update process) ? 2. Why is there no SetInputConnection on spGridMap ? Why is there no GetOutputPort on vtkUnstructuredGrid ? I just would like to understand the logic behind.... Franck From joaolsvieira at gmail.com Thu Apr 13 11:51:25 2017 From: joaolsvieira at gmail.com (=?UTF-8?Q?Jo=C3=A3o_Luis?=) Date: Thu, 13 Apr 2017 11:51:25 -0400 Subject: [vtk-developers] CMake vs PCANormals VTK 7.0 Message-ID: Hello guy, Anybody knows which Module in CMake I have to check to build my version of VTK 7.0 with the following classes: #include #include #include Thank you very much for any help. Luis, -------------- next part -------------- An HTML attachment was scrubbed... URL: From haocheng.liu at kitware.com Thu Apr 13 12:42:06 2017 From: haocheng.liu at kitware.com (Haocheng Liu) Date: Thu, 13 Apr 2017 12:42:06 -0400 Subject: [vtk-developers] CMake vs PCANormals VTK 7.0 In-Reply-To: References: Message-ID: Hi Joao, A quick answer is: #include - > vtkFiltersPoints #include - > vtkFiltersPoints #include - > vtkFiltersPoints In the future, if you want to search for the right module for a specific class, you can do things as following: - find the path to the file: Ex. $VtkSrc/Filters/Points/vtkSignedDistance.h - look for a file in this path called module.cmake. the name after *vtk_module(* is the module you are looking for. Hope it helps. On Thu, Apr 13, 2017 at 11:51 AM, Jo?o Luis wrote: > Hello guy, > > Anybody knows which Module in CMake I have to check to build my version of > VTK 7.0 with the following classes: > > #include > #include > #include > > Thank you very much for any help. > > Luis, > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -- Best regards Haocheng Haocheng LIU Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4421 <(518)%20881-4421> -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Thu Apr 13 13:02:25 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 13 Apr 2017 13:02:25 -0400 Subject: [vtk-developers] CMake vs PCANormals VTK 7.0 In-Reply-To: References: Message-ID: vtkPCANormalEstimaiton requires vtk7.1 On Thu, Apr 13, 2017 at 11:51 AM, Jo?o Luis wrote: > Hello guy, > > Anybody knows which Module in CMake I have to check to build my version of > VTK 7.0 with the following classes: > > #include > #include > #include > > Thank you very much for any help. > > Luis, > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -- Unpaid intern in BillsBasement at noware dot com From joaolsvieira at gmail.com Thu Apr 13 13:40:32 2017 From: joaolsvieira at gmail.com (=?UTF-8?Q?Jo=C3=A3o_Luis?=) Date: Thu, 13 Apr 2017 13:40:32 -0400 Subject: [vtk-developers] CMake vs PCANormals VTK 7.0 In-Reply-To: References: Message-ID: Hi Liu, Unfortunately, didn't help. I am not looking for that. Actually my question is about CMAKE building VTK 7.0 with support to the following: #include - > vtkFiltersPoints #include - > vtkFiltersPoints #include - > vtkFiltersPoints But, I just figure out that VTK 7.0 doesn't have support to vtkFilterPoints. The CMAKE Module should be something like Module_SRCS. This is what I am trying to find. I am hopefully that somebody can help!! Thank you On Thu, Apr 13, 2017 at 12:42 PM, Haocheng Liu wrote: > Hi Joao, > > A quick answer is: > #include - > vtkFiltersPoints > #include - > vtkFiltersPoints > #include - > vtkFiltersPoints > > In the future, if you want to search for the right module for a specific > class, you can do things as following: > > > - find the path to the file: > > Ex. $VtkSrc/Filters/Points/vtkSignedDistance.h > > - look for a file in this path called module.cmake. the name after > *vtk_module(* is the module you are looking for. > > Hope it helps. > > > On Thu, Apr 13, 2017 at 11:51 AM, Jo?o Luis > wrote: > >> Hello guy, >> >> Anybody knows which Module in CMake I have to check to build my version >> of VTK 7.0 with the following classes: >> >> #include >> #include >> #include >> >> Thank you very much for any help. >> >> Luis, >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > > > -- > Best regards > Haocheng > > Haocheng LIU > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4421 <(518)%20881-4421> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaolsvieira at gmail.com Thu Apr 13 13:49:20 2017 From: joaolsvieira at gmail.com (=?UTF-8?Q?Jo=C3=A3o_Luis?=) Date: Thu, 13 Apr 2017 13:49:20 -0400 Subject: [vtk-developers] CMake vs PCANormals VTK 7.0 In-Reply-To: References: Message-ID: Yes, I saw that. Tks, On Thu, Apr 13, 2017 at 1:02 PM, Bill Lorensen wrote: > vtkPCANormalEstimaiton requires vtk7.1 > > > On Thu, Apr 13, 2017 at 11:51 AM, Jo?o Luis > wrote: > > Hello guy, > > > > Anybody knows which Module in CMake I have to check to build my version > of > > VTK 7.0 with the following classes: > > > > #include > > #include > > #include > > > > Thank you very much for any help. > > > > Luis, > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Search the list archives at: http://markmail.org/search/?q= > vtk-developers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtk-developers > > > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Apr 13 22:08:38 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 13 Apr 2017 22:08:38 -0400 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: References: Message-ID: <20170414020838.937128645@mail.rogue-research.com> On Tue, 11 Apr 2017 21:54:20 +0200, Elvis Stansvik said: >How are people dealing with this in VTK applications today? Do they >just accept that fonts in VTK will look out of place compared to >surrounding UI elements and other programs (and not respecting the >user's font settings)? What's the situation on macOS? We're planning a >port to macOS as well, and would of course like to respect the user's >font choice there as well. Elvis, I finally recently updated our app to use the macOS system font. I really feel it should be VTK's default behaviour, because otherwise most non-English characters are not going to render, and in this day and age, Unicode should "just work". I guess such a change would complicate VTK's test suite, at least the tests that compare images, because the system font is often tweaked from OS release to release. Perhaps VTK should at the very least provide an API that does the platform-specific work to return the path to the system font (for a given string at a given size). Here's our Mac code if you want to copy it: vtkTextProperty* property = textActor->GetTextProperty(); const char* fontPath = [[self fontPathForString:inString size:14] fileSystemRepresentation]; property->SetFontFile(fontPath); and - (nullable NSURL*)fontPathForString:(nullable NSString*)inString size:(CGFloat)inSize { NSURL* fontUrl = nil; if (inString) { NSFont* startFont = [NSFont systemFontOfSize:inSize]; CTFontRef font = CTFontCreateForString((__bridge CTFontRef)startFont, (__bridge CFStringRef)inString, CFRangeMake(0, [inString length])); if (font) { NSFontDescriptor* fontDesc = [(__bridge NSFont*)font fontDescriptor]; fontUrl = [fontDesc objectForKey:(__bridge NSString*)kCTFontURLAttribute]; CFRelease(font); } } return fontUrl; } Sean From elvis.stansvik at orexplore.com Fri Apr 14 03:07:08 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 14 Apr 2017 09:07:08 +0200 Subject: [vtk-developers] Using system fonts on Windows (fontconfig equivalent?) In-Reply-To: <20170414020838.937128645@mail.rogue-research.com> References: <20170414020838.937128645@mail.rogue-research.com> Message-ID: 2017-04-14 4:08 GMT+02:00 Sean McBride : > On Tue, 11 Apr 2017 21:54:20 +0200, Elvis Stansvik said: > >>How are people dealing with this in VTK applications today? Do they >>just accept that fonts in VTK will look out of place compared to >>surrounding UI elements and other programs (and not respecting the >>user's font settings)? What's the situation on macOS? We're planning a >>port to macOS as well, and would of course like to respect the user's >>font choice there as well. > > Elvis, > > I finally recently updated our app to use the macOS system font. I really feel it should be VTK's default behaviour, because otherwise most non-English characters are not going to render, and in this day and age, Unicode should "just work". > > I guess such a change would complicate VTK's test suite, at least the tests that compare images, because the system font is often tweaked from OS release to release. > > Perhaps VTK should at the very least provide an API that does the platform-specific work to return the path to the system font (for a given string at a given size). > > Here's our Mac code if you want to copy it: > > vtkTextProperty* property = textActor->GetTextProperty(); > const char* fontPath = [[self fontPathForString:inString size:14] fileSystemRepresentation]; > property->SetFontFile(fontPath); > > and > > - (nullable NSURL*)fontPathForString:(nullable NSString*)inString > size:(CGFloat)inSize > { > NSURL* fontUrl = nil; > > if (inString) > { > NSFont* startFont = [NSFont systemFontOfSize:inSize]; > CTFontRef font = CTFontCreateForString((__bridge CTFontRef)startFont, > (__bridge CFStringRef)inString, > CFRangeMake(0, [inString length])); > if (font) > { > NSFontDescriptor* fontDesc = [(__bridge NSFont*)font fontDescriptor]; > fontUrl = [fontDesc objectForKey:(__bridge NSString*)kCTFontURLAttribute]; > > CFRelease(font); > } > } > > return fontUrl; > } Thanks a lot for this snippet Sean, it'll come handy when I turn my attention to macOS. A cross-platform helper like you mention would sure be a useful addition. Elvis > > Sean > > From audreyc at sonic.net Fri Apr 21 13:58:40 2017 From: audreyc at sonic.net (Audrey Chan) Date: Fri, 21 Apr 2017 10:58:40 -0700 Subject: [vtk-developers] issue with interactor in viewport Message-ID: I currently have two viewports (a left and right viewport) but the interactorstlye for the right viewport isn't working correctly. It should display the labels of the different slices of the pie chart on hover, but the hovering only works in the left viewport. It looks like the "position" of the interactor is off. I attached a screenshot of this issue (this is when my mouse is hovering over the left viewport). # Set up a 2D scene, add a chart to it view = vtk.vtkContextView() chart = vtk.vtkChartPie() # Add renderer to render window and set viewport renWin.AddRenderer(view.GetRenderer()) view.GetScene().AddItem(chart) view.GetRenderer().SetViewport(viewport2[0], viewport2[1], viewport2[2], viewport2[3]) # Allow interactive piechart style = vtk.vtkContextInteractorStyle() style.SetScene(view.GetScene()) renWinInter.SetInteractorStyle(style) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2017-04-21 at 10.58.02 AM.png Type: image/png Size: 64785 bytes Desc: not available URL: From dave.demarle at kitware.com Mon Apr 24 09:43:10 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 24 Apr 2017 09:43:10 -0400 Subject: [vtk-developers] VTK Hackathon this Thursday Message-ID: Hello, Just a quick reminder about the upcoming VTK hackathon. The focus area will be VTK examples. Two different sets of which can be found here: https://gitlab.kitware.com/vtk/vtk/tree/master/Examples and here: http://www.vtk.org/Wiki/VTK/Examples We'll start at 9:30 EST time. If you happen to be near Clifton Park, NY, USA, drop me a line asap and I'll get you in to the building. Otherwise you can meet up with everyone online here: https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Apr 24 10:11:33 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 24 Apr 2017 10:11:33 -0400 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: I've started a shared doc with some suggestions of things we might work on. Please improve the list as you see fit. https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0CBN78LM91yg7oaKgOZ8/edit?usp=sharing David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle wrote: > Hello, > > Just a quick reminder about the upcoming VTK hackathon. > > The focus area will be VTK examples. Two different sets of which can be > found > here: > https://gitlab.kitware.com/vtk/vtk/tree/master/Examples > and here: > http://www.vtk.org/Wiki/VTK/Examples > > We'll start at 9:30 EST time. If you happen to be near Clifton Park, NY, > USA, drop me a line asap and I'll get you in to the building. > > Otherwise you can meet up with everyone online here: > https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Mon Apr 24 16:24:16 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 24 Apr 2017 16:24:16 -0400 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: Dave, For those attending the hackathon I suggest they fork the VTK wiki examples repo at https://github.com/lorensen/VTKWikiExamples and build them. Also, I'd like to give a short talk at the beginning of the hackathon to describe the current wiki example background and mechanisms. Thanks, Bill On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle wrote: > I've started a shared doc with some suggestions of things we might work on. > Please improve the list as you see fit. > > https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0CBN78LM91yg7oaKgOZ8/edit?usp=sharing > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle > wrote: >> >> Hello, >> >> Just a quick reminder about the upcoming VTK hackathon. >> >> The focus area will be VTK examples. Two different sets of which can be >> found >> here: >> https://gitlab.kitware.com/vtk/vtk/tree/master/Examples >> and here: >> http://www.vtk.org/Wiki/VTK/Examples >> >> We'll start at 9:30 EST time. If you happen to be near Clifton Park, NY, >> USA, drop me a line asap and I'll get you in to the building. >> >> Otherwise you can meet up with everyone online here: >> https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -- Unpaid intern in BillsBasement at noware dot com From h.moelle at googlemail.com Tue Apr 25 10:16:43 2017 From: h.moelle at googlemail.com (=?UTF-8?Q?Hagen_M=c3=b6lle?=) Date: Tue, 25 Apr 2017 16:16:43 +0200 Subject: [vtk-developers] vtkChartXY lines not visible when using logarithmic x axis In-Reply-To: References: <389b6adf-b84a-9f7c-6c37-f0387c2001e5@googlemail.com> <85b2f3dc-f769-79ae-3af2-d8ab587cc7da@googlemail.com> Message-ID: <53c7bb52-b90b-1d31-283b-b9b3bfaf2e40@googlemail.com> Hi guys, has any progress been made regarding this bug so far (https://gitlab.kitware.com/vtk/vtk/issues/16797)? It seems nobody is responsible for this bug any more. In the old mantis bug tracker Marcus was assigned to solve the bug. So far I remember two weeks afterwards reporting the bug all tickets were moved to new bug tracking system. The assignee field was left empty during this process. Best, Hagen On 27.07.2016 17:47, Marcus D. Hanwell wrote: > I can take a look when I return, I am currently out on travel and have > limited connectivity. > > On Tue, Jul 26, 2016 at 5:56 AM, Mathieu Westphal > wrote: >> Hello >> >> I indeed reproduce the problem, I will submit a bug report and ping Marcus >> to see if he knows what is going on. >> http://www.paraview.org/Bug/view.php?id=16797 >> >> Regards, >> >> Mathieu Westphal >> >> On Tue, Jul 26, 2016 at 11:19 AM, Hagen M?lle >> wrote: >>> Hi Andrew, Hi Mathieu, >>> >>> I can not see the line after it disappears. This might be a special >>> feature of the open source radeon graphics driver under Linux. >>> >>> Just for completeness one can easily see the line thickness fluctuation by >>> zooming into the scene just right before the line disappears. At this zoom >>> level just drag the scene using the left mouse button and move the mouse >>> around. >>> >>> In fact it would be very nice if this bug could be fixed at least when >>> logarithmic x axis is enabled. Because when logarithmic x axis is enabled >>> the error is visible after zooming in only a few steps. >>> >>> Hagen >>> >>> >>> On 26.07.2016 10:57, Andrew Maclean wrote: >>> >>> Hi Hagen, Mathieu, >>> >>> I agree with you, if I zoom in when the logarithmic axis is disabled, the >>> thick line vanishes, however if you look carefully there is a very faint >>> thin line. It may be (2) as you outline below. >>> >>> Regards >>> Andrew >>> >>> Andrew Maclean >>> >>> >>> On 26 Jul 2016 5:02 pm, "Hagen M?lle" wrote: >>>> Hi Andrew, Hi Mathieu, >>>> >>>> That's exactly the behaviour I see. By the way I am using ATI/AMD video >>>> cards in my Windows/Linux machine. >>>> >>>> !!!! UPDATE: The error also occurs when logarithmic x axis is not >>>> enabled. But you have to zoom in a lot more. See attached pictures. I am >>>> sorry for not realizing this earlier. >>>> >>>> >>>> I am not that familiar with OpenGL. But I can imagine two things: >>>> >>>> (1) Line is clipped >>>> (2) If shaders are used to draw the line thickness it might be a floating >>>> point precision problem. Actually this could be the problem because the line >>>> thickness starts fluctuating at some point of zoom level before it finally >>>> disappears. See attached picture. The line thickness is about the half the >>>> original line thickness. >>>> >>>> >>>> I hope this helps to fix the bug. One might also contact Marcus D. >>>> Hanwell. He is the developer who mainly implemented vtkCharts. I am not sure >>>> if he is still responsible. >>>> >>>> Hagen >>>> >>>> >>>> On 26.07.2016 01:52, Andrew Maclean wrote: >>>> >>>> Hi Hagen, >>>> I just tested your example and I get similar behaviou using an NVIDIA >>>> Video card, OpenGL2, VS2015 and the VTK Master. >>>> >>>> I can zoom in and, at some point the line disappears, but zooming out >>>> immediately restores the line. >>>> >>>> It seeme to me that once a certain zoom level is reached the line is not >>>> drawn, however zooming out restores it. >>>> >>>> Attached are two pngs showing the effect.When the line disappears it >>>> should still be visible as the scales on the axes have only changed >>>> slightly. >>>> >>>> Andrew >>>> >>>>> ---------- Forwarded message ---------- >>>>> From: "Hagen M?lle" >>>>> To: vtk-developers at vtk.org >>>>> Cc: >>>>> Date: Mon, 25 Jul 2016 10:14:21 +0200 >>>>> Subject: [vtk-developers] vtkChartXY lines not visible when using >>>>> logarithmic x axis >>>>> Hi, >>>>> >>>>> Due to spam reasons the bug tracker's user login is disabled right now. >>>>> One should send bug reports to the vtk's user mailing list, which I did >>>>> twice. My bug report was totally ignored. That's why I send it here again. >>>>> Hopefully someone can finally create a ticket in the bug tracker. Thanks. >>>>> >>>>> I want to report a bug for vtkChartXY. So I already send this Email two >>>>> days ago to the vtkUsers mailing list without receiving any answer. The bug >>>>> is not visible in the vtk bug tracker too. Thus I send the Email again. >>>>> >>>>> Bug environment: >>>>> a) I am using VTK 6.2. I checked my test code on machines running >>>>> Windows 7 (Visual Studio 2012/2015) and Ubuntu 15.10/Ubuntu 16.04 (gcc). On >>>>> all these systems the bug is visible. >>>>> b) I can also reproduce the bug in VTK 7.0 (here I used an Ubuntu 16.04 >>>>> machine and compiled VTK 7.0 using OpenGL2 interface). >>>>> >>>>> Bug description: >>>>> >>>>> I am using vtkChartXY to display one line. I also enabled logarithmic x >>>>> axis (chartXY->GetAxis(vtkAxis::BOTTOM)->SetLogScale(true);). Nothing more >>>>> special. In the compiled application I start zooming into the chart using >>>>> the mouse wheel, making sure I always have a line displayed in the view. At >>>>> some zoom level this line just disappears. At the zoom level the line >>>>> disappears I did the following: >>>>> >>>>> 1. Zooming more into the chart the line will not appear again. >>>>> 2. Zooming out twice (with mouse wheel) the line will reappear. >>>>> >>>>> How to reproduce the bug: >>>>> >>>>> I basically used the LinePlot example for vtkChartXY (see >>>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot). >>>>> >>>>> I added one line to the example code marked with *** (line was added >>>>> after line 54 in example code). >>>>> I added the full code to the end of the Email. >>>>> --------------- >>>>> >>>>> // Add multiple line plots, setting the colors etc >>>>> vtkSmartPointer chart= vtkSmartPointer>>>>> ::New(); *** chart.Get()->GetAxis(vtkAxis::BOTTOM)->SetLogScale(true); >>>>> view->GetScene()->AddItem(chart); >>>>> >>>>> --------------- >>>>> >>>>> Compile and execute the program. See my bug description above to >>>>> visualize the bug. >>>>> >>>>> >>>>> Please contact me if you need more information. I can also provide >>>>> images of the bug if needed. >>>>> I hope the bug can be fixed. >>>>> >>>>> Hagen. >>>>> >>>>> >>>>> >>>>> >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> #include >>>>> >>>>> int main(int, char *[]) >>>>> { >>>>> // Create a table with some points in it >>>>> vtkSmartPointer table = >>>>> vtkSmartPointer::New(); >>>>> >>>>> vtkSmartPointer arrX = >>>>> vtkSmartPointer::New(); >>>>> arrX->SetName("X Axis"); >>>>> table->AddColumn(arrX); >>>>> >>>>> vtkSmartPointer arrC = >>>>> vtkSmartPointer::New(); >>>>> arrC->SetName("Cosine"); >>>>> table->AddColumn(arrC); >>>>> >>>>> vtkSmartPointer arrS = >>>>> vtkSmartPointer::New(); >>>>> arrS->SetName("Sine"); >>>>> table->AddColumn(arrS); >>>>> >>>>> // Fill in the table with some example values >>>>> int numPoints = 69; >>>>> float inc = 7.5 / (numPoints-1); >>>>> table->SetNumberOfRows(numPoints); >>>>> for (int i = 0; i < numPoints; ++i) >>>>> { >>>>> table->SetValue(i, 0, i * inc); >>>>> table->SetValue(i, 1, cos(i * inc)); >>>>> table->SetValue(i, 2, sin(i * inc)); >>>>> } >>>>> >>>>> // Set up the view >>>>> vtkSmartPointer view = >>>>> vtkSmartPointer::New(); >>>>> view->GetRenderer()->SetBackground(1.0, 1.0, 1.0); >>>>> >>>>> // Add multiple line plots, setting the colors etc >>>>> vtkSmartPointer chart = >>>>> vtkSmartPointer::New(); >>>>> chart.Get()->GetAxis(vtkAxis::BOTTOM)->SetLogScale(true); >>>>> view->GetScene()->AddItem(chart); >>>>> vtkPlot *line = chart->AddPlot(vtkChart::LINE); >>>>> #if VTK_MAJOR_VERSION <= 5 >>>>> line->SetInput(table, 0, 1); >>>>> #else >>>>> line->SetInputData(table, 0, 1); >>>>> #endif >>>>> line->SetColor(0, 255, 0, 255); >>>>> line->SetWidth(1.0); >>>>> line = chart->AddPlot(vtkChart::LINE); >>>>> #if VTK_MAJOR_VERSION <= 5 >>>>> line->SetInput(table, 0, 2); >>>>> #else >>>>> line->SetInputData(table, 0, 2); >>>>> #endif >>>>> line->SetColor(255, 0, 0, 255); >>>>> line->SetWidth(5.0); >>>>> >>>>> // For dotted line, the line type can be from 2 to 5 for different >>>>> dash/dot >>>>> // patterns (see enum in vtkPen containing DASH_LINE, value 2): >>>>> #ifndef WIN32 >>>>> line->GetPen()->SetLineType(vtkPen::DASH_LINE); >>>>> #endif >>>>> // (ifdef-ed out on Windows because DASH_LINE does not work on >>>>> Windows >>>>> // machines with built-in Intel HD graphics card...) >>>>> >>>>> //view->GetRenderWindow()->SetMultiSamples(0); >>>>> >>>>> // Start interactor >>>>> view->GetInteractor()->Initialize(); >>>>> view->GetInteractor()->Start(); >>>>> >>>>> return EXIT_SUCCESS; >>>>> } >>>>> >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Search the list archives at: >>>>> http://markmail.org/search/?q=vtk-developers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>> >>>> >>>> >>>> -- >>>> ___________________________________________ >>>> Andrew J. P. Maclean >>>> >>>> ___________________________________________ >>>> >>>> From ken.martin at kitware.com Tue Apr 25 14:29:08 2017 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 25 Apr 2017 14:29:08 -0400 Subject: [vtk-developers] Did someone change eeloo? vtkXdmf3LightDataHandler.cxx:334:13: error: prototype Message-ID: Build errors started popping up and I don't see a topic that caused the issue -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.wittenburg at kitware.com Tue Apr 25 14:31:20 2017 From: scott.wittenburg at kitware.com (Scott Wittenburg) Date: Tue, 25 Apr 2017 12:31:20 -0600 Subject: [vtk-developers] Did someone change eeloo? vtkXdmf3LightDataHandler.cxx:334:13: error: prototype In-Reply-To: References: Message-ID: I ran into this just now. I looked deep enough to see a cppCheck (15f924ddd5ff6e72abfaa1ab2a8da9c9866dc686) topic that was merged in the last few days, and I was just making a comment on that closed MR. On Tue, Apr 25, 2017 at 12:29 PM, Ken Martin wrote: > Build errors started popping up and I don't see a topic that caused the > issue > > -- > Ken Martin PhD > Distinguished Engineer > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Tue Apr 25 14:32:44 2017 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 25 Apr 2017 14:32:44 -0400 Subject: [vtk-developers] Did someone change eeloo? vtkXdmf3LightDataHandler.cxx:334:13: error: prototype In-Reply-To: References: Message-ID: I installed updates on it yesterday morning and rebooted it. And it looks like that is about the time the errors started... I'll look into it. Shawn On Tue, Apr 25, 2017 at 2:29 PM, Ken Martin wrote: > Build errors started popping up and I don't see a topic that caused the > issue > > -- > Ken Martin PhD > Distinguished Engineer > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Tue Apr 25 14:51:29 2017 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 25 Apr 2017 14:51:29 -0400 Subject: [vtk-developers] Did someone change eeloo? vtkXdmf3LightDataHandler.cxx:334:13: error: prototype In-Reply-To: References: Message-ID: Apparently I forgot to reboot after the updates or it was canceled. So I rebooted the machine now just in case that had anything to do with it. I don't see anything weird on there. Shawn On Tue, Apr 25, 2017 at 2:32 PM, Shawn Waldon wrote: > I installed updates on it yesterday morning and rebooted it. And it looks > like that is about the time the errors started... I'll look into it. > > Shawn > > On Tue, Apr 25, 2017 at 2:29 PM, Ken Martin > wrote: > >> Build errors started popping up and I don't see a topic that caused the >> issue >> >> -- >> Ken Martin PhD >> Distinguished Engineer >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Apr 25 14:52:51 2017 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 25 Apr 2017 14:52:51 -0400 Subject: [vtk-developers] Did someone change eeloo? vtkXdmf3LightDataHandler.cxx:334:13: error: prototype In-Reply-To: References: Message-ID: Scott tracked it down, recently merged topic. I made a fix we can see if it solves it. Thanks! On Tue, Apr 25, 2017 at 2:32 PM, Shawn Waldon wrote: > I installed updates on it yesterday morning and rebooted it. And it looks > like that is about the time the errors started... I'll look into it. > > Shawn > > On Tue, Apr 25, 2017 at 2:29 PM, Ken Martin > wrote: > >> Build errors started popping up and I don't see a topic that caused the >> issue >> >> -- >> Ken Martin PhD >> Distinguished Engineer >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> >> This communication, including all attachments, contains confidential and >> legally privileged information, and it is intended only for the use of the >> addressee. Access to this email by anyone else is unauthorized. If you are >> not the intended recipient, any disclosure, copying, distribution or any >> action taken in reliance on it is prohibited and may be unlawful. If you >> received this communication in error please notify us immediately and >> destroy the original message. Thank you. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Thu Apr 27 12:03:51 2017 From: andy.bauer at kitware.com (Andy Bauer) Date: Thu, 27 Apr 2017 12:03:51 -0400 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: Hi, A thought on these tests -- I'd like to add minimal testing to some of them. The thought here being that we both show good coding practice as well as verify that the examples work as expected. The concern though is that this could make the examples too long and obfuscate what we're trying to demonstrate in an example. Below is what I was thinking for the XMLPUnstructuredGridWriter example ( http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter). It roughly doubles the amount of lines in the example file. Thoughts on this? At the VTK hackathon it seems to generally be thought of as a good idea but I thought I'd put it out to the full dev list. Thanks, Andy ================ #include #include #include #include #include #include #include int main(int, char *[]) { vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->Update(); vtkSmartPointer delaunay = vtkSmartPointer::New(); delaunay->SetInputConnection(sphereSource->GetOutputPort()); delaunay->Update(); vtkSmartPointer writer = vtkSmartPointer::New(); writer->SetInputConnection(delaunay->GetOutputPort()); writer->SetFileName("Test.pvtu"); writer->SetNumberOfPieces(4); writer->SetStartPiece(0); writer->SetEndPiece(3); writer->Update(); // We should have created a Test.pvtu and Test_[0-3].vtu. // Check that the files exist and have the expected number of cells. vtkSmartPointer preader = vtkSmartPointer::New(); preader->SetFileName("Test.pvtu"); preader->Update(); if (preader->GetOutput()->GetNumberOfCells() != 152) { cout << "Should have written out 152 cells but got " << preader->GetOutput()->GetNumberOfCells() << endl; return EXIT_FAILURE; } for (int i=0;i<4;i++) { vtkSmartPointer reader = vtkSmartPointer::New(); std::string fileName = "Test_" + std::to_string(i) + ".vtu"; reader->SetFileName(fileName.c_str()); reader->Update(); if (reader->GetOutput()->GetNumberOfCells() != 38) { cout << "Should have written out 38 cells but got " << reader->GetOutput()->GetNumberOfCells() << endl; return EXIT_FAILURE; } } return EXIT_SUCCESS; } ===================== On Mon, Apr 24, 2017 at 4:24 PM, Bill Lorensen wrote: > Dave, > > For those attending the hackathon I suggest they fork the VTK wiki > examples repo at https://github.com/lorensen/VTKWikiExamples and build > them. > > Also, I'd like to give a short talk at the beginning of the hackathon > to describe the current wiki example background and mechanisms. > > Thanks, > > Bill > > > On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle > wrote: > > I've started a shared doc with some suggestions of things we might work > on. > > Please improve the list as you see fit. > > > > https://docs.google.com/document/d/1U6NTAXWkdebcZp_ > ZhQo2LJm0CBN78LM91yg7oaKgOZ8/edit?usp=sharing > > > > > > David E DeMarle > > Kitware, Inc. > > R&D Engineer > > 21 Corporate Drive > > Clifton Park, NY 12065-8662 > > Phone: 518-881-4909 > > > > On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle < > dave.demarle at kitware.com> > > wrote: > >> > >> Hello, > >> > >> Just a quick reminder about the upcoming VTK hackathon. > >> > >> The focus area will be VTK examples. Two different sets of which can be > >> found > >> here: > >> https://gitlab.kitware.com/vtk/vtk/tree/master/Examples > >> and here: > >> http://www.vtk.org/Wiki/VTK/Examples > >> > >> We'll start at 9:30 EST time. If you happen to be near Clifton Park, NY, > >> USA, drop me a line asap and I'll get you in to the building. > >> > >> Otherwise you can meet up with everyone online here: > >> https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle > >> > >> David E DeMarle > >> Kitware, Inc. > >> R&D Engineer > >> 21 Corporate Drive > >> Clifton Park, NY 12065-8662 > >> Phone: 518-881-4909 > > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Search the list archives at: http://markmail.org/search/?q= > vtk-developers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtk-developers > > > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhlegarreta at vicomtech.org Thu Apr 27 12:40:21 2017 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Thu, 27 Apr 2017 18:40:21 +0200 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: Hi, although the example in this case does not seem too long to me, reaching a consensus in terms of what results in a too long code or an overly complicated example may be hard. There is already some sort of regression/baseline testing if the test produces an output in terms of an image/file, right? Without harm to the idea of steadily adding more tests to/improving the existing ones, if the examples are the entry-point for newcomers, I wouldn't add explicit regression in their code. I'd favor the idea of making clear in the examples what is essential for a VTK class to be used. Otherwise, if a given class requires a couple or a few examples to show all of its potential or essential features, I'd add them as needed. JON HAITZ -- On 27 April 2017 at 18:03, Andy Bauer wrote: > Hi, > > A thought on these tests -- I'd like to add minimal testing to some of > them. The thought here being that we both show good coding practice as well > as verify that the examples work as expected. The concern though is that > this could make the examples too long and obfuscate what we're trying to > demonstrate in an example. > > Below is what I was thinking for the XMLPUnstructuredGridWriter example ( > http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter). > It roughly doubles the amount of lines in the example file. > > Thoughts on this? At the VTK hackathon it seems to generally be thought of > as a good idea but I thought I'd put it out to the full dev list. > > Thanks, > Andy > > ================ > #include > #include > #include > #include > #include > #include > #include > > int main(int, char *[]) > { > vtkSmartPointer sphereSource = > vtkSmartPointer::New(); > sphereSource->Update(); > > vtkSmartPointer delaunay = > vtkSmartPointer::New(); > delaunay->SetInputConnection(sphereSource->GetOutputPort()); > delaunay->Update(); > > vtkSmartPointer writer = > vtkSmartPointer::New(); > writer->SetInputConnection(delaunay->GetOutputPort()); > writer->SetFileName("Test.pvtu"); > writer->SetNumberOfPieces(4); > writer->SetStartPiece(0); > writer->SetEndPiece(3); > writer->Update(); > > // We should have created a Test.pvtu and Test_[0-3].vtu. > // Check that the files exist and have the expected number of cells. > vtkSmartPointer preader = > vtkSmartPointer::New(); > preader->SetFileName("Test.pvtu"); > preader->Update(); > if (preader->GetOutput()->GetNumberOfCells() != 152) > { > cout << "Should have written out 152 cells but got " > << preader->GetOutput()->GetNumberOfCells() << endl; > return EXIT_FAILURE; > } > for (int i=0;i<4;i++) > { > vtkSmartPointer reader = > vtkSmartPointer::New(); > std::string fileName = "Test_" + std::to_string(i) + ".vtu"; > reader->SetFileName(fileName.c_str()); > reader->Update(); > if (reader->GetOutput()->GetNumberOfCells() != 38) > { > cout << "Should have written out 38 cells but got " > << reader->GetOutput()->GetNumberOfCells() << endl; > return EXIT_FAILURE; > } > } > return EXIT_SUCCESS; > } > ===================== > > On Mon, Apr 24, 2017 at 4:24 PM, Bill Lorensen > wrote: > >> Dave, >> >> For those attending the hackathon I suggest they fork the VTK wiki >> examples repo at https://github.com/lorensen/VTKWikiExamples and build >> them. >> >> Also, I'd like to give a short talk at the beginning of the hackathon >> to describe the current wiki example background and mechanisms. >> >> Thanks, >> >> Bill >> >> >> On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle >> wrote: >> > I've started a shared doc with some suggestions of things we might work >> on. >> > Please improve the list as you see fit. >> > >> > https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0 >> CBN78LM91yg7oaKgOZ8/edit?usp=sharing >> > >> > >> > David E DeMarle >> > Kitware, Inc. >> > R&D Engineer >> > 21 Corporate Drive >> > Clifton Park, NY 12065-8662 >> > Phone: 518-881-4909 >> > >> > On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle < >> dave.demarle at kitware.com> >> > wrote: >> >> >> >> Hello, >> >> >> >> Just a quick reminder about the upcoming VTK hackathon. >> >> >> >> The focus area will be VTK examples. Two different sets of which can be >> >> found >> >> here: >> >> https://gitlab.kitware.com/vtk/vtk/tree/master/Examples >> >> and here: >> >> http://www.vtk.org/Wiki/VTK/Examples >> >> >> >> We'll start at 9:30 EST time. If you happen to be near Clifton Park, >> NY, >> >> USA, drop me a line asap and I'll get you in to the building. >> >> >> >> Otherwise you can meet up with everyone online here: >> >> https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle >> >> >> >> David E DeMarle >> >> Kitware, Inc. >> >> R&D Engineer >> >> 21 Corporate Drive >> >> Clifton Park, NY 12065-8662 >> >> Phone: 518-881-4909 >> > >> > >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Search the list archives at: http://markmail.org/search/?q= >> vtk-developers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtk-developers >> > >> > >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Thu Apr 27 14:03:09 2017 From: daviddoria at gmail.com (David Doria) Date: Thu, 27 Apr 2017 13:03:09 -0500 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: I just wanted to say that I was very excited to see this event! It seems like it's going well already - high five to all involved! David On Thu, Apr 27, 2017 at 11:40 AM, Jon Haitz Legarreta < jhlegarreta at vicomtech.org> wrote: > Hi, > although the example in this case does not seem too long to me, reaching a > consensus in terms of what results in a too long code or an overly > complicated example may be hard. > > There is already some sort of regression/baseline testing if the test > produces an output in terms of an image/file, right? > > Without harm to the idea of steadily adding more tests to/improving the > existing ones, if the examples are the entry-point for newcomers, I > wouldn't add explicit regression in their code. > > I'd favor the idea of making clear in the examples what is essential for a > VTK class to be used. Otherwise, if a given class requires a couple or a > few examples to show all of its potential or essential features, I'd add > them as needed. > > JON HAITZ > > -- > > On 27 April 2017 at 18:03, Andy Bauer wrote: > >> Hi, >> >> A thought on these tests -- I'd like to add minimal testing to some of >> them. The thought here being that we both show good coding practice as well >> as verify that the examples work as expected. The concern though is that >> this could make the examples too long and obfuscate what we're trying to >> demonstrate in an example. >> >> Below is what I was thinking for the XMLPUnstructuredGridWriter example ( >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter). >> It roughly doubles the amount of lines in the example file. >> >> Thoughts on this? At the VTK hackathon it seems to generally be thought >> of as a good idea but I thought I'd put it out to the full dev list. >> >> Thanks, >> Andy >> >> ================ >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> >> int main(int, char *[]) >> { >> vtkSmartPointer sphereSource = >> vtkSmartPointer::New(); >> sphereSource->Update(); >> >> vtkSmartPointer delaunay = >> vtkSmartPointer::New(); >> delaunay->SetInputConnection(sphereSource->GetOutputPort()); >> delaunay->Update(); >> >> vtkSmartPointer writer = >> vtkSmartPointer::New(); >> writer->SetInputConnection(delaunay->GetOutputPort()); >> writer->SetFileName("Test.pvtu"); >> writer->SetNumberOfPieces(4); >> writer->SetStartPiece(0); >> writer->SetEndPiece(3); >> writer->Update(); >> >> // We should have created a Test.pvtu and Test_[0-3].vtu. >> // Check that the files exist and have the expected number of cells. >> vtkSmartPointer preader = >> vtkSmartPointer::New(); >> preader->SetFileName("Test.pvtu"); >> preader->Update(); >> if (preader->GetOutput()->GetNumberOfCells() != 152) >> { >> cout << "Should have written out 152 cells but got " >> << preader->GetOutput()->GetNumberOfCells() << endl; >> return EXIT_FAILURE; >> } >> for (int i=0;i<4;i++) >> { >> vtkSmartPointer reader = >> vtkSmartPointer::New(); >> std::string fileName = "Test_" + std::to_string(i) + ".vtu"; >> reader->SetFileName(fileName.c_str()); >> reader->Update(); >> if (reader->GetOutput()->GetNumberOfCells() != 38) >> { >> cout << "Should have written out 38 cells but got " >> << reader->GetOutput()->GetNumberOfCells() << endl; >> return EXIT_FAILURE; >> } >> } >> return EXIT_SUCCESS; >> } >> ===================== >> >> On Mon, Apr 24, 2017 at 4:24 PM, Bill Lorensen >> wrote: >> >>> Dave, >>> >>> For those attending the hackathon I suggest they fork the VTK wiki >>> examples repo at https://github.com/lorensen/VTKWikiExamples and build >>> them. >>> >>> Also, I'd like to give a short talk at the beginning of the hackathon >>> to describe the current wiki example background and mechanisms. >>> >>> Thanks, >>> >>> Bill >>> >>> >>> On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle >>> wrote: >>> > I've started a shared doc with some suggestions of things we might >>> work on. >>> > Please improve the list as you see fit. >>> > >>> > https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0 >>> CBN78LM91yg7oaKgOZ8/edit?usp=sharing >>> > >>> > >>> > David E DeMarle >>> > Kitware, Inc. >>> > R&D Engineer >>> > 21 Corporate Drive >>> > Clifton Park, NY 12065-8662 >>> > Phone: 518-881-4909 >>> > >>> > On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle < >>> dave.demarle at kitware.com> >>> > wrote: >>> >> >>> >> Hello, >>> >> >>> >> Just a quick reminder about the upcoming VTK hackathon. >>> >> >>> >> The focus area will be VTK examples. Two different sets of which can >>> be >>> >> found >>> >> here: >>> >> https://gitlab.kitware.com/vtk/vtk/tree/master/Examples >>> >> and here: >>> >> http://www.vtk.org/Wiki/VTK/Examples >>> >> >>> >> We'll start at 9:30 EST time. If you happen to be near Clifton Park, >>> NY, >>> >> USA, drop me a line asap and I'll get you in to the building. >>> >> >>> >> Otherwise you can meet up with everyone online here: >>> >> https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle >>> >> >>> >> David E DeMarle >>> >> Kitware, Inc. >>> >> R&D Engineer >>> >> 21 Corporate Drive >>> >> Clifton Park, NY 12065-8662 >>> >> Phone: 518-881-4909 >>> > >>> > >>> > >>> > _______________________________________________ >>> > Powered by www.kitware.com >>> > >>> > Visit other Kitware open-source projects at >>> > http://www.kitware.com/opensource/opensource.html >>> > >>> > Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> > >>> > Follow this link to subscribe/unsubscribe: >>> > http://public.kitware.com/mailman/listinfo/vtk-developers >>> > >>> > >>> >>> >>> >>> -- >>> Unpaid intern in BillsBasement at noware dot com >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Apr 27 14:40:43 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 27 Apr 2017 14:40:43 -0400 Subject: [vtk-developers] VTK Hackathon this Thursday In-Reply-To: References: Message-ID: Thanks David! Wish you could have made it. Next time perhaps. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Apr 27, 2017 at 2:03 PM, David Doria wrote: > I just wanted to say that I was very excited to see this event! It seems > like it's going well already - high five to all involved! > > David > > On Thu, Apr 27, 2017 at 11:40 AM, Jon Haitz Legarreta < > jhlegarreta at vicomtech.org> wrote: > >> Hi, >> although the example in this case does not seem too long to me, reaching >> a consensus in terms of what results in a too long code or an overly >> complicated example may be hard. >> >> There is already some sort of regression/baseline testing if the test >> produces an output in terms of an image/file, right? >> >> Without harm to the idea of steadily adding more tests to/improving the >> existing ones, if the examples are the entry-point for newcomers, I >> wouldn't add explicit regression in their code. >> >> I'd favor the idea of making clear in the examples what is essential for >> a VTK class to be used. Otherwise, if a given class requires a couple or a >> few examples to show all of its potential or essential features, I'd add >> them as needed. >> >> JON HAITZ >> >> -- >> >> On 27 April 2017 at 18:03, Andy Bauer wrote: >> >>> Hi, >>> >>> A thought on these tests -- I'd like to add minimal testing to some of >>> them. The thought here being that we both show good coding practice as well >>> as verify that the examples work as expected. The concern though is that >>> this could make the examples too long and obfuscate what we're trying to >>> demonstrate in an example. >>> >>> Below is what I was thinking for the XMLPUnstructuredGridWriter example ( >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter). >>> It roughly doubles the amount of lines in the example file. >>> >>> Thoughts on this? At the VTK hackathon it seems to generally be thought >>> of as a good idea but I thought I'd put it out to the full dev list. >>> >>> Thanks, >>> Andy >>> >>> ================ >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> #include >>> >>> int main(int, char *[]) >>> { >>> vtkSmartPointer sphereSource = >>> vtkSmartPointer::New(); >>> sphereSource->Update(); >>> >>> vtkSmartPointer delaunay = >>> vtkSmartPointer::New(); >>> delaunay->SetInputConnection(sphereSource->GetOutputPort()); >>> delaunay->Update(); >>> >>> vtkSmartPointer writer = >>> vtkSmartPointer::New(); >>> writer->SetInputConnection(delaunay->GetOutputPort()); >>> writer->SetFileName("Test.pvtu"); >>> writer->SetNumberOfPieces(4); >>> writer->SetStartPiece(0); >>> writer->SetEndPiece(3); >>> writer->Update(); >>> >>> // We should have created a Test.pvtu and Test_[0-3].vtu. >>> // Check that the files exist and have the expected number of cells. >>> vtkSmartPointer preader = >>> vtkSmartPointer::New(); >>> preader->SetFileName("Test.pvtu"); >>> preader->Update(); >>> if (preader->GetOutput()->GetNumberOfCells() != 152) >>> { >>> cout << "Should have written out 152 cells but got " >>> << preader->GetOutput()->GetNumberOfCells() << endl; >>> return EXIT_FAILURE; >>> } >>> for (int i=0;i<4;i++) >>> { >>> vtkSmartPointer reader = >>> vtkSmartPointer::New(); >>> std::string fileName = "Test_" + std::to_string(i) + ".vtu"; >>> reader->SetFileName(fileName.c_str()); >>> reader->Update(); >>> if (reader->GetOutput()->GetNumberOfCells() != 38) >>> { >>> cout << "Should have written out 38 cells but got " >>> << reader->GetOutput()->GetNumberOfCells() << endl; >>> return EXIT_FAILURE; >>> } >>> } >>> return EXIT_SUCCESS; >>> } >>> ===================== >>> >>> On Mon, Apr 24, 2017 at 4:24 PM, Bill Lorensen >>> wrote: >>> >>>> Dave, >>>> >>>> For those attending the hackathon I suggest they fork the VTK wiki >>>> examples repo at https://github.com/lorensen/VTKWikiExamples and build >>>> them. >>>> >>>> Also, I'd like to give a short talk at the beginning of the hackathon >>>> to describe the current wiki example background and mechanisms. >>>> >>>> Thanks, >>>> >>>> Bill >>>> >>>> >>>> On Mon, Apr 24, 2017 at 10:11 AM, David E DeMarle >>>> wrote: >>>> > I've started a shared doc with some suggestions of things we might >>>> work on. >>>> > Please improve the list as you see fit. >>>> > >>>> > https://docs.google.com/document/d/1U6NTAXWkdebcZp_ZhQo2LJm0 >>>> CBN78LM91yg7oaKgOZ8/edit?usp=sharing >>>> > >>>> > >>>> > David E DeMarle >>>> > Kitware, Inc. >>>> > R&D Engineer >>>> > 21 Corporate Drive >>>> > Clifton Park, NY 12065-8662 >>>> > Phone: 518-881-4909 >>>> > >>>> > On Mon, Apr 24, 2017 at 9:43 AM, David E DeMarle < >>>> dave.demarle at kitware.com> >>>> > wrote: >>>> >> >>>> >> Hello, >>>> >> >>>> >> Just a quick reminder about the upcoming VTK hackathon. >>>> >> >>>> >> The focus area will be VTK examples. Two different sets of which can >>>> be >>>> >> found >>>> >> here: >>>> >> https://gitlab.kitware.com/vtk/vtk/tree/master/Examples >>>> >> and here: >>>> >> http://www.vtk.org/Wiki/VTK/Examples >>>> >> >>>> >> We'll start at 9:30 EST time. If you happen to be near Clifton Park, >>>> NY, >>>> >> USA, drop me a line asap and I'll get you in to the building. >>>> >> >>>> >> Otherwise you can meet up with everyone online here: >>>> >> https://hangouts.google.com/hangouts/_/kitware.com/dave-demarle >>>> >> >>>> >> David E DeMarle >>>> >> Kitware, Inc. >>>> >> R&D Engineer >>>> >> 21 Corporate Drive >>>> >> Clifton Park, NY 12065-8662 >>>> >> Phone: 518-881-4909 >>>> > >>>> > >>>> > >>>> > _______________________________________________ >>>> > Powered by www.kitware.com >>>> > >>>> > Visit other Kitware open-source projects at >>>> > http://www.kitware.com/opensource/opensource.html >>>> > >>>> > Search the list archives at: http://markmail.org/search/?q= >>>> vtk-developers >>>> > >>>> > Follow this link to subscribe/unsubscribe: >>>> > http://public.kitware.com/mailman/listinfo/vtk-developers >>>> > >>>> > >>>> >>>> >>>> >>>> -- >>>> Unpaid intern in BillsBasement at noware dot com >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Search the list archives at: http://markmail.org/search/?q= >>>> vtk-developers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtk-developers >>>> >>>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Search the list archives at: http://markmail.org/search/?q= >>> vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Sat Apr 29 13:55:10 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 29 Apr 2017 13:55:10 -0400 Subject: [vtk-developers] Transitioning WikiExamples to gitlab Message-ID: Folks, At Thursday's hack-a-thon we discussed moving the VTK Wiki Examples to a gitlab wiki. The main advantage is that the gitlab repo would contain the master copy of the example. Currently the wiki contains the master copy. I am experimenting with gitlab's wiki to see what it would take to transition to gitlab's wiki. There is good news and bad news. First, look at this page that I created manually: https://gitlab.kitware.com/lorensen/VTKExamples/wikis/Cxx/Points/DensifyPoints and compare to the media wiki page: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Points/DensifyPoints Good news is that is looks pretty good and the image can be inserted from the gitlab repo. Bad news #1: you cannot include a file in a markdown page. Bad news #2: the name displayed for the markdown page Densifypoints is not the same as the tree name nor the markdown file name. Densifypoints versus DensifyPoints. Bad news #1 can be resolved by programmatically creating the .md file in the gitlab wiki. We could create scripts SyncWikiToRepo and ScrapeRepo. These scripts are similar in intent to what we do now with the media wiki's SyncRepoToWiki and ScrapeWiki. Bad news #2 is more troublesome and I don't have a solution. I don't know why gitlab is converting my camelcase names. Bill From bill.lorensen at gmail.com Sun Apr 30 15:52:42 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sun, 30 Apr 2017 15:52:42 -0400 Subject: [vtk-developers] Gitlab Wiki Examples Message-ID: I have made some progress. The C++ examples are populated. See: https://gitlab.kitware.com/lorensen/VTKExamples/wikis/Cxx I can't get rid of the file listing on the left. The wiki pages were created automaically from the pages in the repo. Still very crufty but we should be able to see if this will work for us. -- Unpaid intern in BillsBasement at noware dot com