From 925345468 at qq.com Sun Mar 1 08:43:12 2015 From: 925345468 at qq.com (=?utf-8?B?anVzdF9yb29raWU=?=) Date: Sun, 1 Mar 2015 21:43:12 +0800 Subject: [vtkusers] how to set color for tube Message-ID: Hi all, I have followed the page to create a tube, and color of tube is varying from blue to red. What I want to do is to set single color for the tube. Any help? Thank you in advance!? -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Sun Mar 1 08:58:01 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 1 Mar 2015 06:58:01 -0700 Subject: [vtkusers] how to set color for tube In-Reply-To: References: Message-ID: On Sun, Mar 1, 2015 at 6:43 AM, just_rookie <925345468 at qq.com> wrote: > Hi all, > > I have followed the page > > to create a tube, and color of tube is varying from blue to red. What I > want to do is to set single color for the tube. Any help? Thank you in > advance! > Call ScalarVisibilityOff() on the mapper, and set the color by calling SetColor() on the property object. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From 925345468 at qq.com Mon Mar 2 02:17:29 2015 From: 925345468 at qq.com (=?ISO-8859-1?B?anVzdF9yb29raWU=?=) Date: Mon, 2 Mar 2015 15:17:29 +0800 Subject: [vtkusers] how to check if points is inside tube? Message-ID: Hi all, I have created a tube and some points, and my next step is to check if the points are inside the tube. I followed the page, but the result shown that no point was inside the tube. Any help? Thank you in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Mon Mar 2 08:20:44 2015 From: daviddoria at gmail.com (David Doria) Date: Mon, 2 Mar 2015 08:20:44 -0500 Subject: [vtkusers] how to check if points is inside tube? In-Reply-To: References: Message-ID: On Mon, Mar 2, 2015 at 2:17 AM, just_rookie <925345468 at qq.com> wrote: > Hi all, > > I have created a tube and some points, and my next step is to check if the > points are inside the tube. I followed the page > , > but the result shown that no point was inside the tube. Any help? Thank you > in advance! > What do you mean by a "tube"? Is it not a closed mesh? The type of method you referenced will not work if your tube does not have "caps" on the end. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Mar 2 14:34:17 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 2 Mar 2015 14:34:17 -0500 Subject: [vtkusers] VTK accepted for Google Summer of Code 2015 Message-ID: Good news everyone - VTK was chosen to be a mentor organization for Google's Summer of Code program! If you have the urge hone your development skills and want an internship working on VTK from the comfort of your own home this summer, please apply. See the list of project ideas that we've come up with so far ( http://www.vtk.org/Wiki/VTK/GSoC_2015) and apply through the Summer of Code web site (https://www.google-melange.com/gsoc/homepage/google/gsoc2015). Thank you and good luck to all applicants! 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 elvis.chen at gmail.com Mon Mar 2 15:05:07 2015 From: elvis.chen at gmail.com (Elvis Chen) Date: Mon, 2 Mar 2015 15:05:07 -0500 Subject: [vtkusers] how to crap/extract ROI without changing origin? Message-ID: Greetings, I am working a a visualization problem involving superimposing an vtkImageData (using vtkImageActor) and another object, both of which are spatially tracker. By themselves, they coincide in the correct location. I would like to display only a region of the vtkImageData. I tried using vtkImageClip and also vtkExtractVOI, both of which changed the origin of the vtkImageData, hence the vtkImageActor no longer coincide with other objects at the correct location. Is there a way to clip/extract ROI without changing the origin? What other classes can I use? any help is very much appreciated, -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Mon Mar 2 15:25:07 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Mon, 2 Mar 2015 15:25:07 -0500 Subject: [vtkusers] announce: vtk 6.2.0 release candidate 1 is ready In-Reply-To: References: Message-ID: Reported http://vtk.org/Bug/view.php?id=15354 http://vtk.org/Bug/view.php?id=15355 On Fri, Feb 27, 2015 at 10:04 AM, David E DeMarle wrote: > Looking into these. > > I'm strongly leaning towards fixes for examples without tests and smp > example not compiling on windows in 6.3. > > Dzenan, please file bug reports for each one so that we keep on track with > them. > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Feb 26, 2015 at 10:37 AM, D?enan Zuki? wrote: > >> All of the same compiler issues exist with VS2012 x64. >> >> On Wed, Feb 25, 2015 at 11:16 PM, D?enan Zuki? wrote: >> >>> I am using VS2013 Community Edition targeting AMD64. >>> >>> This error appears when compiling in both release and debug mode: >>> M:\Dev\VTK-6.2.0.rc1\Examples\ParallelProcessing\SMP\Cxx\vtkSMPMinMaxTree.cxx(81): >>> error C3861: '__sync_add_and_fetch': identifier not found >>> >>> In debug mode there is a linking error with tbb_debug.lib, even though I >>> specified its path in CMake configuration step along with all other things >>> setting VTK_SMP_IMPEMENTATION_TYPE to TBB required. It happens >>> for vtkFiltersModelingCxxTests, AmbientSpheres and many others. Example >>> message: >>> 5>------ Build started: Project: vtkFiltersSMPCxxTests, Configuration: >>> Debug x64 ------ >>> 5>LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib' >>> Build: 2 succeeded, 117 failed, 124 up-to-date, 7 skipped >>> >>> Also, this warning is repeated many times over (always for tutorial >>> step6): >>> CMake Warning (dev) in Examples/Tutorial/Step6/Cxx/CMakeLists.txt: >>> Policy CMP0020 is not set: Automatically link Qt executables to qtmain >>> target on Windows. Run "cmake --help-policy CMP0020" for policy >>> details. >>> Use the cmake_policy command to set the policy and suppress this >>> warning. >>> This warning is for project developers. Use -Wno-dev to suppress it. >>> >>> On Wed, Feb 25, 2015 at 9:43 PM, D?enan Zuki? wrote: >>> >>>> That file is part of a binary release of Qt 5.4.0. >>>> >>>> Another problem: enabling build_examples without enabling Build_Testing >>>> gives off "Requested modules not available: vtkTestingCore". >>>> >>>> Enabling Build_Testing creates COPY_ONLY issue. This issue disappears >>>> when using QT 5.4.1. In 5.4.1's version of Qt5CoreMacros.cmake that >>>> string is COPYONLY - so they have fixed it. >>>> >>>> I am now building it with examples and testing on. If I run into any >>>> more issues I will let you know. >>>> >>>> On Wed, Feb 25, 2015 at 8:33 PM, David E DeMarle < >>>> dave.demarle at kitware.com> wrote: >>>> >>>>> What is this file? >>>>> >>>>> C:/Dev/Qt5.4.0/5.4/msvc2013_64_opengl/lib/cmake/Qt5Core/Qt5CoreMacros.cmake >>>>> Maybe it needs "COPY_ONLY" replaced with "COPYONLY" >>>>> >>>>> David E DeMarle >>>>> Kitware, Inc. >>>>> R&D Engineer >>>>> 21 Corporate Drive >>>>> Clifton Park, NY 12065-8662 >>>>> Phone: 518-881-4909 >>>>> >>>>> On Wed, Feb 25, 2015 at 5:08 PM, D?enan Zuki? >>>>> wrote: >>>>> >>>>>> Hi David, >>>>>> >>>>>> I managed to select CMake configuration options which cause a >>>>>> mysterious error: configure_file called with unknown argument(s): >>>>>> COPY_ONLY. >>>>>> >>>>>> Attached are my changes to the configuration and CMake's configure >>>>>> log (error is at the end). >>>>>> >>>>>> Regards >>>>>> >>>>>> On Mon, Feb 16, 2015 at 4:43 PM, David E DeMarle < >>>>>> dave.demarle at kitware.com> wrote: >>>>>> >>>>>>> The VTK developement team is happy to announce that VTK 6.2 has >>>>>>> entered the release candidate stage! >>>>>>> >>>>>>> You can find the source, data, and new vtkpython binary packages >>>>>>> here: >>>>>>> >>>>>>> http://www.vtk.org/VTK/resources/software.html#latestcand >>>>>>> >>>>>>> Please try this version of VTK and report any issues to the list or >>>>>>> the bug tracker so that we can try to address them before VTK 6.2.0 final. >>>>>>> >>>>>>> The official release notes will be available when VTK final is >>>>>>> released in the next few weeks. In the meantime here is a preview: >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> VTK?s use of the parallelism available in modern architectures >>>>>>> continues to mature. To set the stage for this move, we have refactored how >>>>>>> pieces and extents are handled in the pipeline. The pipeline used to inject >>>>>>> extent translators into the pipeline to obtain structured sub-extents for >>>>>>> each requested unstructured piece. This approach had flaws so now the >>>>>>> translation responsibility falls to the readers which are best able to make >>>>>>> the computation and parallel filters are now responsible for dealing >>>>>>> gracefully with unexpected extents. Next we have we have updated to the >>>>>>> latest version of the Dax toolkit and begun to lay the groundwork for >>>>>>> adopting the vtk-m project as a successor to the Piston, Dax, and EAVL >>>>>>> efforts. There have been a series of minor improvements to the SMP >>>>>>> framework and vtkSMP filters too as we get ready to adopt them in a large >>>>>>> swath of VTK?s algorithms. In related work, note that we have begun to >>>>>>> support Xeon Phi (MIC) chips. For information about this please refer to: h >>>>>>> ttp://www.paraview.org/Wiki/ParaView_and_VTK_on_Xeon_Phi_%28KNC%29 >>>>>>> . >>>>>>> >>>>>>> >>>>>>> Similarly VTK?s support for the Web continues to advance in this >>>>>>> release. VTK-Web has migrated to WAMP 2.0 in 6.2 and there are now complete >>>>>>> and updated examples of using the web launcher to start vtkweb >>>>>>> applications. vtkWeb applications now support http-only server/client >>>>>>> configurations for situations when websockets are not acceptable. There >>>>>>> were also improvements made to VTK to support the creation and use of >>>>>>> Cinema and Workbench applications (in-situ deferred visualization) that are >>>>>>> described in a SuperComputing 2015 paper ?An Image-based Approach to >>>>>>> Extreme Scale In Situ Visualization and Analysis? >>>>>>> >>>>>>> Wrapped languages have gotten a share of the attention in this >>>>>>> release. There have been several fixes for ActiViz.Net which was recently >>>>>>> updated from 5.8 to VTK 6.1 and will soon be updated again to 6.2. The Tcl >>>>>>> examples have finally been upgraded following modularization and note that >>>>>>> it is now mandatory to invoke the method Start on the instance of >>>>>>> vtkRenderInteractor from Tcl. In Java, vtkPanel?s behavior was changed to >>>>>>> better support advanced class loader system like OSGI. VTK?s dashboards now >>>>>>> automatically build redistributable packages on Windows, Linux and Mac that >>>>>>> will allow us to feed Maven. >>>>>>> >>>>>>> Python has received the heaviest dose of updates. Wrapped namespaces >>>>>>> and enum types are now available in Python. We?ve also made significant >>>>>>> improvements to the VTK-numpy integration by introducing a number of Python >>>>>>> modules that provide numpy-compatible interfaces to VTK data structures. >>>>>>> See http://www.kitware.com/blog/home/post/723 for details. We?ve >>>>>>> also introduced vtkPythonAlgorithm, which makes it easier than ever to >>>>>>> quickly extend VTK with filters that are written directly in Python. See >>>>>>> http://www.kitware.com/blog/home/post/737 for details. >>>>>>> >>>>>>> VTK?s rendering is making both evolutionary and revolutionary >>>>>>> advances in this release. The evolutionary changes include the usual number >>>>>>> of incremental improvements. These include such things like advanced color >>>>>>> and display controls, "sticky" axes mode for vtkCubeAxesActor, out of range >>>>>>> color assignments, and indexed color lookups for vtkStringArrays. There are >>>>>>> also a number of text rendering improvements such as better multiline, >>>>>>> rotated, and aligned text as well as BackgroundColor and BackgroundOpacity >>>>>>> options. >>>>>>> >>>>>>> The revolutionary changes can be found in the OpenGL2 modules. These >>>>>>> are under active development at the moment, and the API will be subject to >>>>>>> change in the next release, but early adopters are encouraged to try it out >>>>>>> and report their experiences with it on the mailing list. OpenGL2 is a >>>>>>> rewrite of VTK?s rendering backend that brings VTK up to date with modern >>>>>>> OpenGL programming practices. By replacing antiquated rendering techniques >>>>>>> with modern ones, we have increased rendering performance by orders of >>>>>>> magnitude in some situations. This work, funded by the NIH VTK Maintenance >>>>>>> grant touches both surface and volume rendering techniques. You can read >>>>>>> about OpenGL2 at: http://www.kitware.com/source/home/post/144 and >>>>>>> http://www.kitware.com/source/home/post/154 >>>>>>> >>>>>>> Besides the above progress some of the most notable changes in VTK >>>>>>> 6.2 include >>>>>>> >>>>>>> - >>>>>>> >>>>>>> deprecated InfovisParallel >>>>>>> - >>>>>>> >>>>>>> vtkIOXdmf3, an interface to ARL?s greatly improved interface to >>>>>>> HDF5 backed data storage >>>>>>> - >>>>>>> >>>>>>> added a reader and writer for NIfTI files, including the 64-bit >>>>>>> NIfTI-2 format >>>>>>> - >>>>>>> >>>>>>> added support for SpaceMouse devices >>>>>>> - >>>>>>> >>>>>>> external rendering support for immersive environments >>>>>>> http://kitware.com/blog/home/post/688 >>>>>>> - >>>>>>> >>>>>>> removed -fobjc-gc from VTK_REQUIRED_OBJCXX_FLAGS >>>>>>> - >>>>>>> >>>>>>> Rewrote the OS X Cocoa mouse event handling code to make it more >>>>>>> robust. >>>>>>> >>>>>>> >>>>>>> We hope you enjoy this release of VTK! As always contact Kitware and >>>>>>> the mailing lists for assistance. >>>>>>> >>>>>>> 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 >>>>>>> >>>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>>> >>>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>>> >>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Mon Mar 2 15:54:14 2015 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Mon, 2 Mar 2015 15:54:14 -0500 Subject: [vtkusers] Trouble with VTK 6.2.0rc1 In-Reply-To: References: <54ECD753.9020702@cora.nwra.com> <54ECDEA3.7060403@cora.nwra.com> Message-ID: Hello, I don't think the default status of vtkRenderingVolumeAMR has changed. It was always OFF by default. Currently, the module depends solely on the OpenGL backend. However, that might have been an oversight. The AMR volume mapper should be able to use both the backends. I will push a fix soon. Thanks! Best Regards, Sankhesh Jhaveri Research & Development Engineer Kitware, Inc. *Phone*: (518) 881 4417 *Fax*: (518) 371 4573 On Fri, Feb 27, 2015 at 10:02 AM, David E DeMarle wrote: > Aashish and Sahnkesh, > > What is the status of vtkRenderingVolumeAMR? Is the default status (off or > on) different now than before and is it supported by both OpenGL and > OpenGL2? > > thanks, > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Feb 24, 2015 at 3:27 PM, Orion Poplawski > wrote: > >> On 02/24/2015 12:56 PM, Orion Poplawski wrote: >> > I'm testing out updating the Fedora vtk package to 6.2.0.rc1 >> >> As a follow up, should vtkRenderingVolumeAMR not be enabled by default any >> more? I only see: >> >> -- Backend OpenGL modules: >> >> vtkRenderingVolumeOpenGL;vtkRenderingOpenGL;vtkRenderingFreeTypeOpenGL;vtkRenderingVolumeAMR;vtkRenderingContextOpenGL >> -- Enabling modules for OpenGL. >> >> but it never gets listed as enabled. >> >> -- >> Orion Poplawski >> Technical Manager 303-415-9701 x222 >> NWRA, Boulder/CoRA Office FAX: 303-415-9702 >> 3380 Mitchell Lane orion at nwra.com >> Boulder, CO 80301 http://www.nwra.com >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeinsalah at gmail.com Tue Mar 3 05:03:58 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Tue, 3 Mar 2015 11:03:58 +0100 Subject: [vtkusers] Copy of vtkImageData Message-ID: Hi, I need to create mask of a vtkImageData, i.e., a binary image with exactly the same properties (dimensions, spacing, origin, etc.) of the original data image. For the creation,would a DeepCopy be ok or I would better create a new object and set the attributes like img->SetExtent(...), img->SetSpacing(), etc. Thanks, Zeno From josp.jorge at gmail.com Tue Mar 3 05:38:21 2015 From: josp.jorge at gmail.com (Jorge Perez) Date: Tue, 3 Mar 2015 11:38:21 +0100 Subject: [vtkusers] Copy of vtkImageData In-Reply-To: References: Message-ID: Hi if the scalar type is the same it could work for you. In other case you can create it with something like this: // Create an image data vtkSmartPointer imageData = vtkSmartPointer::New (); // Specify the size of the image data imageData->SetDimensions(10,20,30); // allocate the data array imageData->AllocateScalars(VTK_CHAR, 1); HTH, Jorge 2015-03-03 11:03 GMT+01:00 Zein Salah : > Hi, > > I need to create mask of a vtkImageData, i.e., a binary image with > exactly the same properties (dimensions, spacing, origin, etc.) of the > original data image. > > For the creation,would a DeepCopy be ok or I would better create a new > object and set the attributes like img->SetExtent(...), > img->SetSpacing(), etc. > > Thanks, > Zeno > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nigel.Mcfarlane at beds.ac.uk Tue Mar 3 07:16:28 2015 From: Nigel.Mcfarlane at beds.ac.uk (Nigel Mcfarlane) Date: Tue, 3 Mar 2015 12:16:28 +0000 Subject: [vtkusers] Is it possible to create a standalone vtkImage in vtk6 ? Message-ID: Dear mailing list, I am updating a colleague's code to compile with vtk6. It contains the following lines from vtk4/5, where the programmer is creating a vtkStructuredPoints. The code is not embedded in a vtk filter. I have indicated the lines which do not compile. std::cout << "Generating seg volume\n"; vtkStructuredPoints * vol = vtkStructuredPoints::New(); vol->SetDimensions(dim3d); vol->SetExtent(0, dim3d[0] - 1, 0, dim3d[1] - 1, 0, dim3d[2] - 1); vol->SetSpacing(spacing[0], spacing[1], spacing[2]); vol->SetOrigin(0, 0, 0); vol->SetNumberOfScalarComponents(1); // ERROR vol->SetScalarTypeToUnsignedChar(); // ERROR vol->AllocateScalars(); // ERROR vol->GetPointData()->GetScalars()->FillComponent(0,DrEyeLabels::LABEL_NONE); I know that SetNumberOfScalarComponents() and SetScalarTypeToUnsignedChar() have been replaced in vtk6 with SetPointDataActiveScalarInfo(), but this method requires a vtkInformation object, and is static, so I can't see any way to use this outside of a RequestInformation() method in a filter. Is it possible any longer to create a standalone vtkImage, or is this class now just a shell which can only be configured by a pipeline request? Thank you Nigel McFarlane University of Bedfordshire, UK -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Tue Mar 3 07:43:33 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Tue, 3 Mar 2015 12:43:33 +0000 Subject: [vtkusers] Disable rendering without blanking out screen Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2D669@exchange3.microbrightfield.com> Is there a way to disable a rendering without having the screen turn white? I tried using the vtkRenderer::EraseOff()/vtkRenderer::DrawOff() and this works great with not performing the rendering. However, for the viewports where renderers that were turned off, the screen is white. When I turn the erasing/drawing back on, the image is restored. I thought that the eraseoff would just leave the scene alone. Doug Doug Hoppes I Senior Software Engineer I [cid:image007.png at 01CEF686.037AE7C0] T: 802-288-9290 E: dhoppes at mbfbioscience.com MBF Bioscience 185 Allen Brook Lane Williston, VT 05495 USA www.mbfbioscience.com http://www.mbfbioscience.com/blog [cid:image008.png at 01CEF686.037AE7C0] [cid:image011.png at 01CEF686.037AE7C0] [cid:image012.png at 01CEF686.037AE7C0] [cid:image014.png at 01CEF686.037AE7C0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2645 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 787 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 927 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 1170 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 870 bytes Desc: image005.png URL: From daviddoria at gmail.com Tue Mar 3 07:48:07 2015 From: daviddoria at gmail.com (David Doria) Date: Tue, 3 Mar 2015 07:48:07 -0500 Subject: [vtkusers] Is it possible to create a standalone vtkImage in vtk6 ? In-Reply-To: References: Message-ID: On Tue, Mar 3, 2015 at 7:16 AM, Nigel Mcfarlane wrote: > Dear mailing list, > > > > I am updating a colleague?s code to compile with vtk6. It contains the > following lines from vtk4/5, where the programmer is creating a > vtkStructuredPoints. The code is not embedded in a vtk filter. I have > indicated the lines which do not compile. > > > > std::cout << "Generating seg volume\n"; > > vtkStructuredPoints * vol = vtkStructuredPoints::New(); > > vol->SetDimensions(dim3d); > > vol->SetExtent(0, dim3d[0] - 1, 0, dim3d[1] - 1, 0, dim3d[2] - 1); > > vol->SetSpacing(spacing[0], spacing[1], spacing[2]); > > vol->SetOrigin(0, 0, 0); > > vol->SetNumberOfScalarComponents(1); // ERROR > > vol->SetScalarTypeToUnsignedChar(); // ERROR > > vol->AllocateScalars(); // ERROR > > > vol->GetPointData()->GetScalars()->FillComponent(0,DrEyeLabels::LABEL_NONE); > > > > I know that SetNumberOfScalarComponents() and > SetScalarTypeToUnsignedChar() have been replaced in vtk6 with > SetPointDataActiveScalarInfo(), but this method requires a vtkInformation > object, and is static, so I can?t see any way to use this outside of a > RequestInformation() method in a filter. Is it possible any longer to > create a standalone vtkImage, or is this class now just a shell which can > only be configured by a pipeline request? > > > > Thank you > > Nigel McFarlane > > University of Bedfordshire, UK > The AllocateScalars function has absorbed both the type and number of components parameters: imageData->AllocateScalars(VTK_FLOAT, 3); See this for more details: http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Changes_to_Scalars_Manipulation_Functions David -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nigel.Mcfarlane at beds.ac.uk Tue Mar 3 08:40:39 2015 From: Nigel.Mcfarlane at beds.ac.uk (Nigel Mcfarlane) Date: Tue, 3 Mar 2015 13:40:39 +0000 Subject: [vtkusers] Is it possible to create a standalone vtkImage in vtk6 ? In-Reply-To: References: Message-ID: Dear David, Thank you. That has saved me from having to rewrite the method as a filter. Regards Nigel From: David Doria [mailto:daviddoria at gmail.com] Sent: 03 March 2015 12:48 To: Nigel Mcfarlane Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Is it possible to create a standalone vtkImage in vtk6 ? On Tue, Mar 3, 2015 at 7:16 AM, Nigel Mcfarlane > wrote: Dear mailing list, I am updating a colleague?s code to compile with vtk6. It contains the following lines from vtk4/5, where the programmer is creating a vtkStructuredPoints. The code is not embedded in a vtk filter. I have indicated the lines which do not compile. std::cout << "Generating seg volume\n"; vtkStructuredPoints * vol = vtkStructuredPoints::New(); vol->SetDimensions(dim3d); vol->SetExtent(0, dim3d[0] - 1, 0, dim3d[1] - 1, 0, dim3d[2] - 1); vol->SetSpacing(spacing[0], spacing[1], spacing[2]); vol->SetOrigin(0, 0, 0); vol->SetNumberOfScalarComponents(1); // ERROR vol->SetScalarTypeToUnsignedChar(); // ERROR vol->AllocateScalars(); // ERROR vol->GetPointData()->GetScalars()->FillComponent(0,DrEyeLabels::LABEL_NONE); I know that SetNumberOfScalarComponents() and SetScalarTypeToUnsignedChar() have been replaced in vtk6 with SetPointDataActiveScalarInfo(), but this method requires a vtkInformation object, and is static, so I can?t see any way to use this outside of a RequestInformation() method in a filter. Is it possible any longer to create a standalone vtkImage, or is this class now just a shell which can only be configured by a pipeline request? Thank you Nigel McFarlane University of Bedfordshire, UK The AllocateScalars function has absorbed both the type and number of components parameters: imageData->AllocateScalars(VTK_FLOAT, 3); See this for more details: http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Changes_to_Scalars_Manipulation_Functions David -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Tue Mar 3 10:42:02 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 3 Mar 2015 10:42:02 -0500 Subject: [vtkusers] VTK accepted for Google Summer of Code 2015 In-Reply-To: References: Message-ID: On Mon, Mar 2, 2015 at 2:34 PM, David E DeMarle wrote: > Good news everyone - VTK was chosen to be a mentor organization for Google's > Summer of Code program! > > If you have the urge hone your development skills and want an internship > working on VTK from the comfort of your own home this summer, please apply. > See the list of project ideas that we've come up with so far > (http://www.vtk.org/Wiki/VTK/GSoC_2015) and apply through the Summer of Code > web site (https://www.google-melange.com/gsoc/homepage/google/gsoc2015). > This is great news, looking forward to seeing what our students propose this year. If you know students thinking about taking part not on this list please let them know about our participation too. Marcus From majcjc at gmail.com Tue Mar 3 11:23:29 2015 From: majcjc at gmail.com (Lin M) Date: Tue, 3 Mar 2015 11:23:29 -0500 Subject: [vtkusers] find_package(ITK) and find_package(VTK) problems in CMake Message-ID: Hi guys, I met a strange problem when I try to use ITK and VTK in my projects. If I only use find_package( VTK required ) cmake will find all the right .h and .lib files and add them to the project, but if I use both find_package(ITK) and find_package(VTK), then some of the .h and .lib of VTK just disappeared in my VS projects. Does anyone have some suggestions for that? Thank you very much! My CMakeLists.txt is written as below: ... ... # QT FILES FIND_PACKAGE( Qt5Widgets ) FIND_PACKAGE( Qt5Xml ) FIND_PACKAGE( Qt5Core ) # ITK FILES FIND_PACKAGE( ITK REQUIRED ) INCLUDE( ${ITK_USE_FILE} ) # VTK FILES FIND_PACKAGE( VTK REQUIRED ) NCLUDE( ${VTK_USE_FILE} ) ... ... TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${Qt5Widgets_LIBRARIES} ${Qt5Xml_LIBRARIES} ${Qt5Core_LIBRARIES} ${VTK_LIBRARIES} ${ITK_LIBRARIES} ) Best, Lin -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Tue Mar 3 11:30:27 2015 From: serge at infolytica.com (Serge Lalonde) Date: Tue, 03 Mar 2015 11:30:27 -0500 Subject: [vtkusers] Problem with clip mesh filter In-Reply-To: <54F0F987.9050802@infolytica.com> References: <54F0F987.9050802@infolytica.com> Message-ID: <54F5E1A3.7070506@infolytica.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 19263 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 23921 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 28170 bytes Desc: not available URL: From michael.j.redmond at gmail.com Tue Mar 3 22:11:13 2015 From: michael.j.redmond at gmail.com (redmod79) Date: Tue, 3 Mar 2015 20:11:13 -0700 (MST) Subject: [vtkusers] VTK 6.2.0.rc1 - Rendering/Parallel module won't build Message-ID: <1425438673410-5730637.post@n5.nabble.com> I enabled VTK_Group_MPI, but there's no VTK_USE_PARALLEL option... I'd like to be able to use vtkParallelRenderManager, and other parallel features. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-0-rc1-Rendering-Parallel-module-won-t-build-tp5730637.html Sent from the VTK - Users mailing list archive at Nabble.com. From zeinsalah at gmail.com Wed Mar 4 03:50:31 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Wed, 4 Mar 2015 09:50:31 +0100 Subject: [vtkusers] surface reconstruction from a tack of contours Message-ID: Hi, does vtk actually have an algorithm for reconstructing a 3D surface from a stack of contours? Thanks, Zeno From Pauline.FOURTILLAN at cea.fr Wed Mar 4 05:26:36 2015 From: Pauline.FOURTILLAN at cea.fr (Pauline.FOURTILLAN at cea.fr) Date: Wed, 4 Mar 2015 10:26:36 +0000 Subject: [vtkusers] problem with vtkCaptionRepresentation axes Message-ID: Dear Mailing list, I have a problem with vtkCaptionRepresentation and vtkCaptionWidget. I used it when a point is picking to show coordinates. Unfortunately, I have axes which appear anchored to my point. vtkCpationRepresentation -> getAnchorRepresentation()-> GetBounds() is (-1,1,-1,1,-1,1). I would like to make axes visibility off or change bounds to (0,0,0,0,0,0) but I didn't succeed. Any help? Thanks a lot, Pauline -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Mar 4 09:56:19 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 4 Mar 2015 07:56:19 -0700 Subject: [vtkusers] surface reconstruction from a tack of contours In-Reply-To: References: Message-ID: On Wed, Mar 4, 2015 at 1:50 AM, Zein Salah wrote: > > does vtk actually have an algorithm for reconstructing a 3D surface > from a stack of contours? > No, I don't think that VTK has an algorithm for stitching contours to make a surface. But you could use VTK to convert the stack of contours into a stack of image slices, and then use e.g. MarchingCubes to generate a surface. There would be a loss of precision, however, so it isn't an ideal solution. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From vitkecar at gmail.com Wed Mar 4 10:06:28 2015 From: vitkecar at gmail.com (Dragan Vidovic) Date: Wed, 4 Mar 2015 16:06:28 +0100 Subject: [vtkusers] QVTKWidget rendering performance Message-ID: Hi I am writing a CAD program using VTK and Qt. I based it on the SimpleView example. When I rotate the view using the interactor the rendering is slow and lags behind the mouse movement. I am not posting any code here because this behavior is already apparent in the examples included with the distribution: if I start bin/SimpleView, press 't' to switch to the trackball mode, left click and rotate the scene around for a few seconds, when I stop it continues to move for a second or two before it stops. This does not happen with the examples not based on QVTKWidget, for instance with bin/SpecularSpheres. Is there a way to speed up the SimpleView example? I am using VTK-6.1.0 that I compiled myself under Ubuntu. From bill.lorensen at gmail.com Wed Mar 4 10:07:48 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 4 Mar 2015 10:07:48 -0500 Subject: [vtkusers] surface reconstruction from a tack of contours In-Reply-To: References: Message-ID: The vtkVoxelContoursToSurfaceFilter may do what you want. See http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface On Wed, Mar 4, 2015 at 3:50 AM, Zein Salah wrote: > Hi, > > does vtk actually have an algorithm for reconstructing a 3D surface > from a stack of contours? > > Thanks, Zeno > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From davis.vigneault at gmail.com Wed Mar 4 10:29:36 2015 From: davis.vigneault at gmail.com (DVigneault) Date: Wed, 4 Mar 2015 08:29:36 -0700 (MST) Subject: [vtkusers] vtkCellPicker: Check for a particular actor? Message-ID: <1425482976875-5730644.post@n5.nabble.com> All-- Starting with the the MoveAGlyph example [1], I've added additional actors to the scene. However, there is nothing to stop me from picking another actor, which leads to either unintended behavior or an out of bounds error. Here is the part of the code that checks the ID: void OnMiddleButtonDown() { // Forward events vtkInteractorStyleTrackballActor::OnMiddleButtonDown(); this->MoveActor->VisibilityOn(); if(static_cast(this->InteractionPicker)->GetPointId() >= 0) I see that vtkCellPicker can return a collection of actors intercepted by the ray (GetProp3Ds) and that vtkProp3DCollection can check whether an actor is present (IsItemPresent). I tried adding an "intended actor property," setting the actor in the body, and then checking whether the actor was present... vtkIdType candidateID = static_cast(this->InteractionPicker)->GetPointId(); vtkProp3DCollection* props = static_cast(this->InteractionPicker)->GetProp3Ds(); static_cast(props)->IsItemPresent(this->IntendedActor); ...but I then get an "invalid use of incomplete type" error on the last line. How can I go about ensuring that I've picked the right actor? Best, and thanks, --Davis [1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Interaction/MoveAGlyph -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkCellPicker-Check-for-a-particular-actor-tp5730644.html Sent from the VTK - Users mailing list archive at Nabble.com. From majcjc at gmail.com Wed Mar 4 10:38:21 2015 From: majcjc at gmail.com (Lin M) Date: Wed, 4 Mar 2015 10:38:21 -0500 Subject: [vtkusers] get pixel value from vtkimagedata regardless of its data type Message-ID: Hi guys, Is there a way to get scalar data from vtkimagedata regardless of the data type? Then I can always get the right value even though I don't know the original data type. I searched and vtkImageCast may change the entire data type which is not what I mostly wanted. Any ideas about that? Thank you very much! Best, Lin -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Mar 4 10:39:17 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 4 Mar 2015 10:39:17 -0500 Subject: [vtkusers] VTK 6.2.0.rc1 - Rendering/Parallel module won't build In-Reply-To: <1425438673410-5730637.post@n5.nabble.com> References: <1425438673410-5730637.post@n5.nabble.com> Message-ID: Since 6.0 the corresponding setting to VTK_USE_PARALLEL is to turn on Module_vtkRenderingParallel in the advanced cmake option set. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Mar 3, 2015 at 10:11 PM, redmod79 wrote: > I enabled VTK_Group_MPI, but there's no VTK_USE_PARALLEL option... I'd like > to be able to use vtkParallelRenderManager, and other parallel features. > Thanks. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK-6-2-0-rc1-Rendering-Parallel-module-won-t-build-tp5730637.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From majcjc at gmail.com Wed Mar 4 10:42:04 2015 From: majcjc at gmail.com (Lin M) Date: Wed, 4 Mar 2015 10:42:04 -0500 Subject: [vtkusers] get pixel value from vtkimagedata regardless of its data type In-Reply-To: References: Message-ID: OK It seems GetScalarComponentAsDouble is what I need. :-) On Wed, Mar 4, 2015 at 10:38 AM, Lin M wrote: > Hi guys, > > Is there a way to get scalar data from vtkimagedata regardless of the data > type? Then I can always get the right value even though I don't know the > original data type. > > I searched and vtkImageCast may change the entire data type which is not > what I mostly wanted. > > Any ideas about that? Thank you very much! > > Best, > Lin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Mar 4 11:01:58 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 4 Mar 2015 09:01:58 -0700 Subject: [vtkusers] vtkCellPicker: Check for a particular actor? In-Reply-To: <1425482976875-5730644.post@n5.nabble.com> References: <1425482976875-5730644.post@n5.nabble.com> Message-ID: On Wed, Mar 4, 2015 at 8:29 AM, DVigneault wrote: > > vtkProp3DCollection* props = > static_cast(this->InteractionPicker)->GetProp3Ds(); > > static_cast(props)->IsItemPresent(this->IntendedActor); > > ...but I then get an "invalid use of incomplete type" error on the last > line. How can I go about ensuring that I've picked the right actor? > If the compiler says "invalid use of incomplete type", that means you forgot to include the header: #include - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.kolb at dkfz-heidelberg.de Wed Mar 4 14:36:46 2015 From: c.kolb at dkfz-heidelberg.de (Christoph Kolb) Date: Wed, 04 Mar 2015 20:36:46 +0100 Subject: [vtkusers] QVTKWidget rendering performance In-Reply-To: References: Message-ID: <54F75ECE.2000504@dkfz-heidelberg.de> Hi Dragan, I'm assuming that you have used Qt5, because I have the same problem and posted it to the vtk-developers list: http://markmail.org/message/l76z3mppijvpy6sn May I ask which os you are using? Regards Christoph On 03/04/2015 04:06 PM, Dragan Vidovic wrote: > Hi > > I am writing a CAD program using VTK and Qt. I based it on the > SimpleView example. When I rotate the view using the interactor the > rendering is slow and lags behind the mouse movement. I am not posting > any code here because this behavior is already apparent in the > examples included with the distribution: if I start bin/SimpleView, > press 't' to switch to the trackball mode, left click and rotate the > scene around for a few seconds, when I stop it continues to move for a > second or two before it stops. This does not happen with the examples > not based on QVTKWidget, for instance with bin/SpecularSpheres. Is > there a way to speed up the SimpleView example? > > I am using VTK-6.1.0 that I compiled myself under Ubuntu. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From vitkecar at gmail.com Wed Mar 4 15:18:54 2015 From: vitkecar at gmail.com (Dragan Vidovic) Date: Wed, 4 Mar 2015 21:18:54 +0100 Subject: [vtkusers] QVTKWidget rendering performance In-Reply-To: <54F75ECE.2000504@dkfz-heidelberg.de> References: <54F75ECE.2000504@dkfz-heidelberg.de> Message-ID: Hi Christoph Sorry for the duplicate report, I should have searched better. Yes, I am using Qt5 under the current version of Ubuntu and some cheap NVidia card (maybe GeForce 8400) with proprietary drivers. If necessary I can be more precise in the morning when I get to work. Did you try to see whether you will get the same behavior with Qt4? Did you try the proposed patch? Regards, Dragan On Wed, Mar 4, 2015 at 8:36 PM, Christoph Kolb wrote: > Hi Dragan, > > I'm assuming that you have used Qt5, because I have the same problem and > posted it to the vtk-developers list: > > http://markmail.org/message/l76z3mppijvpy6sn > > May I ask which os you are using? > > Regards > Christoph > > > On 03/04/2015 04:06 PM, Dragan Vidovic wrote: >> >> Hi >> >> I am writing a CAD program using VTK and Qt. I based it on the >> SimpleView example. When I rotate the view using the interactor the >> rendering is slow and lags behind the mouse movement. I am not posting >> any code here because this behavior is already apparent in the >> examples included with the distribution: if I start bin/SimpleView, >> press 't' to switch to the trackball mode, left click and rotate the >> scene around for a few seconds, when I stop it continues to move for a >> second or two before it stops. This does not happen with the examples >> not based on QVTKWidget, for instance with bin/SpecularSpheres. Is >> there a way to speed up the SimpleView example? >> >> I am using VTK-6.1.0 that I compiled myself under Ubuntu. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > From franko at mixzon.com Wed Mar 4 16:07:39 2015 From: franko at mixzon.com (franko) Date: Wed, 4 Mar 2015 14:07:39 -0700 (MST) Subject: [vtkusers] how to get information about picked actors from vtkAreaPicker when vtkAssembly is picked up In-Reply-To: References: Message-ID: <1425503259679-5730653.post@n5.nabble.com> Hi vtkers, I have a configuration with nested assemblies. When I use vtkPropPicker in a LeftButtonPressEvt event handler, I'm able to pick an assembly. Does anyone know how to determine which particular actor is "picked" within the vtkAssembly? I can use vtkAssemblyPath to find the vtkAssemblyNodes and actors in the assembly, but I don't know how to determine which actor is at the event position. Thanks, ~Frank -- View this message in context: http://vtk.1045678.n5.nabble.com/how-to-get-information-about-picked-actors-from-vtkAreaPicker-when-vtkAssembly-is-picked-up-tp1237021p5730653.html Sent from the VTK - Users mailing list archive at Nabble.com. From matt.mccormick at kitware.com Wed Mar 4 23:31:10 2015 From: matt.mccormick at kitware.com (Matt McCormick) Date: Wed, 4 Mar 2015 23:31:10 -0500 Subject: [vtkusers] [ITK-users] find_package(ITK) and find_package(VTK) problems in CMake In-Reply-To: References: Message-ID: Hi Lin, Please try using VTK 6.2rc1 or newer. Thanks, Matt On Tue, Mar 3, 2015 at 11:23 AM, Lin M wrote: > Hi guys, > > I met a strange problem when I try to use ITK and VTK in my projects. If I > only use find_package( VTK required ) cmake will find all the right .h and > .lib files and add them to the project, but if I use both find_package(ITK) > and find_package(VTK), then some of the .h and .lib of VTK just disappeared > in my VS projects. Does anyone have some suggestions for that? Thank you > very much! > > My CMakeLists.txt is written as below: > > ... > ... > # QT FILES > FIND_PACKAGE( Qt5Widgets ) > FIND_PACKAGE( Qt5Xml ) > FIND_PACKAGE( Qt5Core ) > > # ITK FILES > FIND_PACKAGE( ITK REQUIRED ) > INCLUDE( ${ITK_USE_FILE} ) > > # VTK FILES > FIND_PACKAGE( VTK REQUIRED ) > NCLUDE( ${VTK_USE_FILE} ) > > ... > ... > TARGET_LINK_LIBRARIES( ${PROJECT_NAME} > ${Qt5Widgets_LIBRARIES} > ${Qt5Xml_LIBRARIES} > ${Qt5Core_LIBRARIES} > ${VTK_LIBRARIES} > ${ITK_LIBRARIES} > ) > > > Best, > Lin > > _____________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Kitware offers ITK Training Courses, for more information visit: > http://www.kitware.com/products/protraining.php > > Please keep messages on-topic and check the ITK FAQ at: > http://www.itk.org/Wiki/ITK_FAQ > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/insight-users > From julien.finet at kitware.com Thu Mar 5 01:14:54 2015 From: julien.finet at kitware.com (Julien Finet) Date: Thu, 5 Mar 2015 07:14:54 +0100 Subject: [vtkusers] problem with vtkCaptionRepresentation axes In-Reply-To: References: Message-ID: Hi, Have you tried to call PlaceWidget() ? Julien. On Mar 4, 2015 12:10 PM, "Pauline.FOURTILLAN at cea.fr" < Pauline.FOURTILLAN at cea.fr> wrote: > Dear Mailing list, > > > > I have a problem with vtkCaptionRepresentation and vtkCaptionWidget. > > I used it when a point is picking to show coordinates. Unfortunately, I > have axes which appear anchored to my point. > > vtkCpationRepresentation -> getAnchorRepresentation()-> GetBounds() is > (-1,1,-1,1,-1,1). > > I would like to make axes visibility off or change bounds to (0,0,0,0,0,0) > but I didn?t succeed. > > > > Any help? > > > > Thanks a lot, > > > > Pauline > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeinsalah at gmail.com Thu Mar 5 03:04:56 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Thu, 5 Mar 2015 09:04:56 +0100 Subject: [vtkusers] surface reconstruction from a tack of contours In-Reply-To: References: Message-ID: this is what I have been doing till now. unfortunately, this procedure is also slow. 2015-03-04 15:56 GMT+01:00 David Gobbi : > On Wed, Mar 4, 2015 at 1:50 AM, Zein Salah wrote: >> >> >> does vtk actually have an algorithm for reconstructing a 3D surface >> from a stack of contours? > > > No, I don't think that VTK has an algorithm for stitching contours to make > a surface. But you could use VTK to convert the stack of contours into > a stack of image slices, and then use e.g. MarchingCubes to generate a > surface. There would be a loss of precision, however, so it isn't an ideal > solution. > > - David > From zeinsalah at gmail.com Thu Mar 5 03:06:25 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Thu, 5 Mar 2015 09:06:25 +0100 Subject: [vtkusers] surface reconstruction from a tack of contours In-Reply-To: References: Message-ID: Hi Bill, I will have a deep look at the example.it seem promising for my case :). 2015-03-04 16:07 GMT+01:00 Bill Lorensen : > The vtkVoxelContoursToSurfaceFilter may do what you want. > > See http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface > > > On Wed, Mar 4, 2015 at 3:50 AM, Zein Salah wrote: >> Hi, >> >> does vtk actually have an algorithm for reconstructing a 3D surface >> from a stack of contours? >> >> Thanks, Zeno >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > > > -- > Unpaid intern in BillsBasement at noware dot com From michael.j.redmond at gmail.com Thu Mar 5 08:33:10 2015 From: michael.j.redmond at gmail.com (redmod79) Date: Thu, 5 Mar 2015 06:33:10 -0700 (MST) Subject: [vtkusers] vtkMultiProcessController - GetNumberOfProcesses is only 1 Message-ID: <1425562390339-5730665.post@n5.nabble.com> On VTK 6.2.0.rc1, Windows 8.1, I compiled with MPI enabled, and all the parallel modules enabled. There were also 2 flags in CMAKE indicating the max number of processors to use and they were set to 2 (which is how many my computer has). One was MPIEXEC_MAX_NUMPROCS and the other was a VTK flag, I don't recall. When running pvtkpython.exe for the example "VTK / Examples / ParallelProcessing / MPI / Python / ParallelCone.py", the command "compManager.GetController().GetNumberOfProcesses()" shows only one process available. I tried setting it to 2 and got an error. Am I missing something here? Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkMultiProcessController-GetNumberOfProcesses-is-only-1-tp5730665.html Sent from the VTK - Users mailing list archive at Nabble.com. From c.kolb at dkfz-heidelberg.de Thu Mar 5 07:56:16 2015 From: c.kolb at dkfz-heidelberg.de (Christoph Kolb) Date: Thu, 05 Mar 2015 13:56:16 +0100 Subject: [vtkusers] QVTKWidget rendering performance In-Reply-To: References: <54F75ECE.2000504@dkfz-heidelberg.de> Message-ID: <54F85270.9030406@dkfz-heidelberg.de> Hi Dragan, all is well in Qt4 and therefore I did not try the Qt5 patch yet. Also, the problem (apparently) doesn't occur in the Qt5 opengl examples, even though I put a serious delay in the paint method. So maybe it is possible to fix it without patching Qt5. I was also trying to adapt QVTKWidget2 to QOpenGLWidget (instead of the currently used QGLWidget) but this seems to be hard work... Any other suggestions? Regards Christoph On 03/04/2015 09:18 PM, Dragan Vidovic wrote: > Hi Christoph > > Sorry for the duplicate report, I should have searched better. Yes, I > am using Qt5 under the current version of Ubuntu and some cheap NVidia > card (maybe GeForce 8400) with proprietary drivers. If necessary I can > be more precise in the morning when I get to work. > > Did you try to see whether you will get the same behavior with Qt4? > Did you try the proposed patch? > > Regards, > > Dragan > > On Wed, Mar 4, 2015 at 8:36 PM, Christoph Kolb > wrote: >> Hi Dragan, >> >> I'm assuming that you have used Qt5, because I have the same problem and >> posted it to the vtk-developers list: >> >> http://markmail.org/message/l76z3mppijvpy6sn >> >> May I ask which os you are using? >> >> Regards >> Christoph >> >> >> On 03/04/2015 04:06 PM, Dragan Vidovic wrote: >>> Hi >>> >>> I am writing a CAD program using VTK and Qt. I based it on the >>> SimpleView example. When I rotate the view using the interactor the >>> rendering is slow and lags behind the mouse movement. I am not posting >>> any code here because this behavior is already apparent in the >>> examples included with the distribution: if I start bin/SimpleView, >>> press 't' to switch to the trackball mode, left click and rotate the >>> scene around for a few seconds, when I stop it continues to move for a >>> second or two before it stops. This does not happen with the examples >>> not based on QVTKWidget, for instance with bin/SpecularSpheres. Is >>> there a way to speed up the SimpleView example? >>> >>> I am using VTK-6.1.0 that I compiled myself under Ubuntu. >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> From dave.demarle at kitware.com Thu Mar 5 10:19:21 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 5 Mar 2015 10:19:21 -0500 Subject: [vtkusers] vtkMultiProcessController - GetNumberOfProcesses is only 1 In-Reply-To: <1425562390339-5730665.post@n5.nabble.com> References: <1425562390339-5730665.post@n5.nabble.com> Message-ID: On Thu, Mar 5, 2015 at 8:33 AM, redmod79 wrote: > MPIEXEC_MAX_NUMPROCS This flag specifies the number of processors that ctest is allowed to use in regression tests. I am guessing the other flag is MPIEXEC_NUMPROC_FLAG. That is the string that ctest uses to tell mpi how many processors to use. It is "-np" in many mpi implementations. Neither affect anything other than the regression tests. I suspect you are just forgetting to run pvtkpython under mpi. For example: bin/pvtkpython /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py numProcs is 1 mpiexec -n 2 bin/pvtkpython /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py numProcs is 2 mpiexec -n 16 bin/pvtkpython /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py numProcs is 16 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 dkxls23 at gmail.com Thu Mar 5 10:32:03 2015 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Thu, 05 Mar 2015 17:32:03 +0200 Subject: [vtkusers] vtkMultiProcessController - GetNumberOfProcesses is only 1 In-Reply-To: References: <1425562390339-5730665.post@n5.nabble.com> Message-ID: <54F876F3.8000106@gmail.com> The two options are: MPIEXEC_MAX_NUMPROCS VTK_MPI_MAX_NUMPROCS I also have been baffled by these two options, especially since the documentation string says in both cases: "Maximum number of processors available to run MPI applications." So, are they both only used by ctest? -Armin On 03/05/2015 05:19 PM, David E DeMarle wrote: > > On Thu, Mar 5, 2015 at 8:33 AM, redmod79 > wrote: > > MPIEXEC_MAX_NUMPROCS > > > This flag specifies the number of processors that ctest is allowed to > use in regression tests. I am guessing the other flag is > MPIEXEC_NUMPROC_FLAG. That is the string that ctest uses to tell mpi how > many processors to use. It is "-np" in many mpi implementations. Neither > affect anything other than the regression tests. > > I suspect you are just forgetting to run pvtkpython under mpi. > For example: > bin/pvtkpython > /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py > > numProcs is 1 > > mpiexec -n 2 bin/pvtkpython > /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py > > numProcs is 2 > > mpiexec -n 16 bin/pvtkpython > /Source/VTK/devel/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py > > numProcs is 16 > > > 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 > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From dave.demarle at kitware.com Thu Mar 5 10:36:19 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 5 Mar 2015 10:36:19 -0500 Subject: [vtkusers] vtkMultiProcessController - GetNumberOfProcesses is only 1 In-Reply-To: <54F876F3.8000106@gmail.com> References: <1425562390339-5730665.post@n5.nabble.com> <54F876F3.8000106@gmail.com> Message-ID: On Thu, Mar 5, 2015 at 10:32 AM, Armin Wehrfritz wrote: > The two options are: > MPIEXEC_MAX_NUMPROCS > VTK_MPI_MAX_NUMPROCS > > I also have been baffled by these two options, especially since the > documentation string says in both cases: > "Maximum number of processors available to run MPI applications." > > So, are they both only used by ctest? > > Yep. I agree that the documentation strings are bad. Patches to fix are more than welcome. -Armin > > > > On 03/05/2015 05:19 PM, David E DeMarle wrote: > >> >> On Thu, Mar 5, 2015 at 8:33 AM, redmod79 > > wrote: >> >> MPIEXEC_MAX_NUMPROCS >> >> >> This flag specifies the number of processors that ctest is allowed to >> use in regression tests. I am guessing the other flag is >> MPIEXEC_NUMPROC_FLAG. That is the string that ctest uses to tell mpi how >> many processors to use. It is "-np" in many mpi implementations. Neither >> affect anything other than the regression tests. >> >> I suspect you are just forgetting to run pvtkpython under mpi. >> For example: >> bin/pvtkpython >> /Source/VTK/devel/VTK/Examples/ParallelProcessing/ >> MPI/Python/ParallelCone.py >> >> numProcs is 1 >> >> mpiexec -n 2 bin/pvtkpython >> /Source/VTK/devel/VTK/Examples/ParallelProcessing/ >> MPI/Python/ParallelCone.py >> >> numProcs is 2 >> >> mpiexec -n 16 bin/pvtkpython >> /Source/VTK/devel/VTK/Examples/ParallelProcessing/ >> MPI/Python/ParallelCone.py >> >> numProcs is 16 >> >> >> 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 >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Mar 5 11:09:04 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 5 Mar 2015 11:09:04 -0500 Subject: [vtkusers] ANNOUNCE: vtk 6.2.0 is ready! Message-ID: The VTK development team is happy to announce that VTK 6.2.0 is ready. Special thanks go out to everyone who tested and provided input and fixes during the release candidate cycle. You can find the source, data, and vtkpython binary packages here: http://www.vtk.org/VTK/resources/software.html You can read the release notes at: http://www.kitware.com/blog/home/post/858 And you can see the list of changes in the attachment or by: git shortlog --no-merges --format="%h %s" v6.1.0..v6.2.0 We hope you find this release of VTK useful and bug free. 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: -------------- next part -------------- Aashish Chaudhary (261): 0e0fcf4 Fixed headlight not working right when using the ext renderer d230223 Fixed missing display, window, and context id not being set a75302c Fixed splitviewport stereo rendering 684b075 Added new volume rendering code f28ada9 Fixed texture state being dirty 5f8896c Use correct local bounds 30078b3 Fixed rotation bug 8aa2703 Fixed style 61a439f Fixed geometry beign missing after volume render 935f90a Fixed indent 6da7caf Silenced cast warnings 63bc6e5 Fixed style and naming conventions f1ab262 Added copyright f06c64d Embedded volume shaders into C++ units 2b9940e Fixed broken volume rendering because of uninitialized variable dbbe3e6 Fixed code document style a bit d929be5 Added method to validate volume rendering d7e882e Enable sample distance control e150d08 Enabled additive and composite blend mode 115d356 Use depth buffer to terminate ray d42a771 Fixed incorrect mix geometry and volume rendering 5b43621 Added string replacement code 2ad1d38 First pass on compositing shader for the rendering f405ada Formalizing the grammar for the shader replacement 06eac96 Updated volume code to use new compositing mode 3bd9852 Updating shader to be fully programmable b2a58bc Fixed loose ends 0825af0 Using appropriate variable names 7e81213 Rebuild shader if necessary 7b743c9 Rename Helper to ShaderComposer as thats best suited d1972c3 Added tests for the new volume mapper dcd4d56 Consolidating shading and color accumulation 3a9bd5d Got maximum intensity working 8dfdba9 Pass mapper to composer calls as its needed to query volume params adf766c Simplified the code a bit 6f5d0c9 Fixed minor calculation bug 1266ed1 Got rid of hard-coded maximum number of samples d8a14f8 Removed references to vtkgl ee3674d Separated lookup for clarity 371c900 Compute and store actual max value 25b42ab Fixed bad gl state at the start of volume rendering 32f0a22 Implemented cropping feature 015a5ea Using a better amplitude for the noise texture cdf1bc5 Use boolean to skip or consider a pixel for rendering 1673f76 Build cropping shader dynamically 2597bd3 Condensed preprocessor tags 57939c2 Perform close bounds check b46c7cb Updated tests af6164a Got clipping working c7d687a Passing size and data for clip planes in a single uniform array d928a47 Implemented clipping via substitution 6ab3311 Fixed clipping for multiple clip planes 6d74191 Fixed normals not getting passed correctly 9898eef Fixed crash on resizing 591be8c Updated clip test planes to reasonable values 6761103 Following consistent way of checking for uninitiliazed values 663a115 Removed hard-coded sample distance 88bc4f5 Adding minimum intensity blend capability 4817b6e Fixed wrong initial value of the min value 5cb00aa Fixed biased not being passed to the shader 7210c83 Some more minor fixes b66de99 Fixed rendering of short and some other types d50fe29 Added support for double (and other 8 bytes) datatypes 6d7faf1 Adding alpha blending bce3935 Fixed issues with additive blending da263ce Renaming so that we can replace the old one with the new one 9134625 Porting new volume mapper to proper vtk d49491f Got new mapper working 7532e7d Renamed the new volume module edb4b72 Fixed cropping 9b2033d Some more fixes 4b8e7ec Removed experimental code on cropping flags 59c68e1 Updated lighting parameters 28ae0ea Adding gradient opacity d5d4ad8 Implementing gradient opacity e9e0b43 Added gradient opacity table to the mapper 6146a77 Added some more pieces for the gradient opacity 1ae30d9 Enabled auto-adjust sample distance 047dab8 Fixed style ad7ce0e Added new gradient opacity test e7e1f51 Added debug code ad25032 Adding gradient opacity calculation 2ba296e Fixing / cleaing variables that are not required cf4648a Fixed access from the texture abd043f Fixing the scaling of the gradients 4346bff Fixing long data types volumes 3dd6f6b Using GLSL version 120 7688fb2 Making gradient opacity optional c0e834e Removed check for gl error for now d28bffe Fixed shader issues on MAC bc09dde Fix white edge showing up 836b161 Fixed wrong invert matrix being passed 7addcd0 Revert "Removed experimental code on cropping flags" 56d1890 Fixed cropping test 1dd3a61 Fixing gradient vector computation 0c05997 Added support for 4 components ed6d089 Adding support for mask type a7e2f7b Fixing shading 93a2879 Adding support for label mask type eda4eeb Fixing issues 88a9522 Restructured the code a bit more to make it flexible 312b8be Fixed some more issues adb970e Fixed lighting issues 089a441 Clean up some code 346a98a Improvig code readability 0a4c068 VTK style fixes 6d45706 Adding support for parallel projection 3152f1b Got parallel projection working 2deb615 Disabled the gradient opacity test for now e517274 Fixed cpp issues 1ddcb2e Silenced compiler warnings a5ae367 Implemented release graphics method 55895e9 For now set reduction ratio to 1.0 a05eb08 Fixed texture units 5496810 Fixed wrong bounds used to pass bound values to shader f147880 Few style fixes 949b862 Updated vtk point picker 1480032 Added support for rendering when clipping by near plane 4c9403a Fixed volume geomety not updated 9dbe622 Using smallest possible delta to offset precision issues d2d49e0 Fixed release graphics resources 85b6fbf Re-added gradient opacity 3b60ff0 Wrapped long lines bad034c Organzied the code bit better ff4d608 Disabled the gradient opacity test for now 59a2a48 Fixed failing tests edf97a3 Added missing API to set uniform 83935cf Updating to use vtk shader API 8c0ce91 Removed calls to old API a8b5e02 Fixed volume not showing up a50a814 Removed unused files 412d909 Fixed licensing 2f9ab04 Removed unused file from cmake 5dbb076 Updated to use vtkTextureObject 1a12533 Use vtkTextureObject if set ea17e38 Updated ray cast image display helper to use GL2 8001b00 Removed unused code 8c6595b Fixed casting to wrong type; copy-paste error bb87f6f Updated headers a298620 Fixed test failing by restoring defaults eec0137 Updated logic for testing for translucency ebec322 Updated logic to check for external texture object ee0b13a Updated display helper 9d8c17f Improved code by removing redundant code 2b180ca Fixed style issues 8a4c62d Added more volume tests that are passing now 16b7022 Removed unused header files 3c16bcb Set referencee to render window for external texture object 23a6be3 Fixed typo df24324 Mark as translucent if 1,2 or 4 components cca0af8 With Ken, fixed resources not release issue 420e22a Added notes, comments 0c38ee5 Updated volume rendering to use shader cache c5e5788 Added error checks for volume render calls f1826be Using render window shader cache 454e0db Fixed volume tests failing because of shader cache 652d736 ShaderCache should release its graphics resources e3eb473 Removed unnecessary call and added notes 4ef3390 Let shader cache invoke release graphics resources on shader 5948b78 Attempt to fix failing test by removing calls to interactor 746fbdd Added second baseline to fix failing test on some systems a1f2ddd Adding support for light kit 323130d Passing required parameters to the shaders ca3bb98 Handling more lighting cases c8468b6 Fixing headlight 3bf32ff Fixed gradient opacity computation 3c42ad2 Implementing positional light 7baf76e Adding test for testing light kit and fixed shader issues 5afbd4e Enabling reduction factor for large volumes 48e8739 Updated so that we can compute the time to draw correctly 451e28d Updating tests for consistent dashboard results 82cb30c Silenced compiler warnings 126f5bf Updated baseline and test for light kit 18ee696 Removed dead code 6c5d054 Fixing lighting computation for lightkit 68efb79 Added convenient method to check for gradient opacity d50999b Updated code to use check on availability of gradient opacity 258afec Removed dead code fded3eb Check for two sided lighting a8c5e8b Attempt to fix failing tests 4c15cbd Added a note on the workaround as well c47bd6e Commented out debug code e4addeb Renamed for consistency 94f5a75 Fixed positional light calculation cc41e9b Fixing positional light bugs adc0b49 Clean up code 7a40c5e Compute appropriate matrix for normal transformation 85240e2 Fixed variable not found 761a289 Fixing variable names 39d54d5 Fixed style issues 58bf3e0 Fixed various lighting and formatting issues 3b473dd Silenced compiler warnings d296e25 Fixed smart volume mapper crashes because of gradient opacity 7c3dc82 Fixed smart volume mapper level test 2de16ee Added GDAL based raster reader 781d1b5 Fixed various minor issues 2cd1a32 Added baseline and data for the testing 7f9c70a Addressed minor code clean up issues 61e7f03 Fixed various cleanup issues 08e8c63 Fixed bad sampling issues when dealing with large sample distances 414e869 Fixed incorrect name used for the test file 84644d2 Update texture with the data 66c813d Fixed data not showing up 2dfab11 Use last texture units for 3D textures 3ed3f22 Added ability to set depth mode formats 301a81c Added ability to use texture modes ed2e827 Set texture parameters before creating the texture 5452f58 Adding support for 3D textures d979a74 Fixed check for depth texture mode 0eb6439 Apply scale and bias in the shader 919018c Added ability to set texture attributes directly 83f30b5 Make sure to release graphics resources 5765faf Updating volume masks 7037d5a Handle large data type textures f9b00c4 Fixing various issues 6952fd3 Updated and improved texture object implementation 0b0ef00 Allow reuse of texture units 1ccf1f8 Removed debug messages f9b07be Fixing MIP issues 708b18d Fixing some more issues 2536b8a Fixed memory leaks and release of textures f88fd40 Removed dead code 1c77710 Removed code for depth texture mode as they are deprecated f731704 Style fixes cb670a9 Fixed loose ends 0605765 Removed extra flag to force re-computation of texture format 1c0929b Updated code so that applications will still work in OpenGL2 ca6c800 Fixed when mappers try to reuse the same texture 8cc19bb Re-added volume benchmark test 60c27a5 Typedef the volume test 625d9b8 Updated volume test 7bb827a Tweaked opacity function to force more computation 66db2b2 Clean up cmake a bit 20e0604 Adding GPU independent component feature 7719149 Updated test to highlight mappings 29ee16d Adding support for multiple components in GPU RayCast afe1ffd Remove limiting check for independent components 417aafb Adding support for multi RGB tables bd7c9cd Fixed erroneous logic e1d9351 Updating shader code to support independent components 74941a4 Adding support for independent components for opacity and color function bcba5b6 Some more updates to support independent components ffb3685 Fixed composite blend mode cefa131 Added independent support for min and max projections 222c367 Pass component weights to the shader 0288952 Fixed testing 9793e11 Renaming classes for consistency 06d9f79 Added support for independent components for gradient opacity eae5750 Improved the test a bit 212252c Reinitialize transfer functions if the property changes 96e31ff Independent component is not supported in OpenGL GPU mapper 109e45e Fixed MIP independent shader bd80e07 Fixed independent component computing for min intensity projection c773710 Fixing volume tests not passing on intel machine 2fa5b37 Removed unused code and check c588664 Do not assume initial min and max values 0e02a94 Attempt to fix failing independent component tests ea65926 GLSL 120 does not support sampler arrays 555f804 Added missing header 24361f8 Fixed errors found using valgrind leak check ed36361 Silenced compiler warnings Andrew Bauer (28): 2e8ba2b Need to check for static targets before adding abi visibility flags. cd5c9af Composite data writers weren't passing down the HeaderType info. 91b3b3e Passing missing parallel writer options to piece writers. 48f2dc0 Fixing overflow issue that appeared with GCC compilers. bde1886 Fix the way point and cell data arrays are marked for reading. c6cea54 Adding in arctan2 through numpy. 8e6b1a3 Adding the ability to not delete the passed in arrays. 18b94cf Fixed memory leak in test and added in comments for clarification. b3399fd Adding in a filter to append structured grids together. f47c96b Adding the ability to merge structured grids for composite data sets. 9cd28a6 Fixed issue with ghost cells not being deleted properly. 4615e59 Removing temporary file that accidentally got added. cfaedbb Fixed issue of possibly modifying other polydatas. f9ecca4 Removing Tcl tests the duplicate existing Python testing. 1e441c1 Fixed incorrect cell data output. d21be2b Making some cell locators more efficient. 00146d3 Giving a warning if trying to create a subcontroller with 0 procs. d72325b Temporary fixes for finding ADIOS. ca1f2ef Fixing flow paths correct injection time and ability to add extra arrays. 1eaa829 Renaming CurrentTime to CurrentTimeValue due to windows mangling issues. 3f86167 Fixing particle paths to have proper SimulationTime output. be2d7b8 Adding in SimulationTimeStep output for particle paths. 409086c Getting rid of clang analyzer warnings. cc551eb Skipping the wasteful and unnecessary inverse sin computation. f86c5f8 Cosmetic change to be consistent with file codeing convention. 3e9bd6e Fix parallel flow paths filters. 0aa6822 Improving testing of deleting cells from a polydata. 5c44bfe Getting rid of compiler warnings. Andrew Maclean (15): 1bc76b6 Remove WindowLevelInterface.tcl and WindowLevelInterface.py 50ea232 Revert Remove WindowLevelInterface.tcl and WindowLevelInterface.py 7e09ea9 Sphere widget behaves better when scaled down to zero 51adcdc ENH: VTK Parametric surfaces - modernised the code. da50514 ENH: Remove the need to manually regenerate the hill data. 728b6a6 DOC: Update vtkRandomHills documentation. e6ac3bf BUG: Fix by adding a new keyword. 2ad6753 ENH: Add option to return an ordinal lookup table. b898432 Make the generation of random hills consistent across all platforms. b0f0948 Add a missing header in vtkCompositePolyDataMapper2 0a0ff7a ENH: Restore / convert Infovis examples 249fd50 Lots of minor changes for Examples to build with OpenGL2 c81b621 This fixes the c2039 error in VS2013. 75cd8a3 Visual Studio 2013 requires the header. 6765c9c Remove the unnecessary find_package command. Antonio Cervone (1): 588fc24 Fixed the BiQuadraticQuad interpolator Arnaud Gelas (2): 6d50f43 Handle properties are not properly set up when starting vtkBoxwidget2 75b0ecb Limiting number of ModifiedEvent when calling vtkTransform::SetMatrix Ben Boeckel (254): 9a00db8 STLWriter: Raise an error for non-triangles 37d058e STLReader: Close the file when an error occurs a1f1505 ExodusIIReader: Add the title to the field data 486b71e STLReader: Fix error signaling when reading files 3e7585c AVIWriter: Don't overflow the fourcc storage d7ec6c1 AVIWriter: Fix a comment typo e073d6d Exodus: Always attach the title to the output fields cd4fc15 Rewrite the testing macros 3d11639 Update the Cxx test call sites bcc9c5a Update the MPI test call sites 3c87d75 Update the Python test call sites 40e594a Update Tcl test call sites 6519612 Minor CMake logic simplification a6faf42 Copy Statistics tests to StatisticsGnuR 3c35e55 Infovis: Add an include for newer Boost versions b6e69cb ParallelMPI: Add missing return statement b7535ca Allow arguments to be passed directly to Python e05e78f Skip adding the executable if no tests are created f79be06 Allow for overriding the data directory in tests 910a306 Allow overriding the baseline directory in tests e04656f Build the VTK test data directory properly 5b742fd Support custom baselines in tests d1548cd Store VTK's ExternalData in its source directory 72cc9e3 Support VTKExternalData_OBJECT_STORES as well e785182 Support custom ExternalData targets for tests 063ddda Support flags to tests common at the module level 3b70ea8 Support JUST_VALID for Python tests e2d1a14 Support Python+MPI testing 9bb5faf Use VTK_TEST_OUTPUT_DIR rather than rebuilding the path e697da8 examples: Fix typo in testing calls bde39fa ParallelGeometry: Fix Grid symbol scoping 6e1350c testing: Use vtk-example as a fallback for prefix 7f6395a Fix test function signatures 2c11e59 testing: Don't look for tests when making an executable 56a6e7b FiltersGeometry: Remove unnecessary links 2b67930 Filters/Geometry: Remove some unused functions from tests 964d6c8 Filters/Geometry: Hide WriteGrid if ENABLE_IO isn't on 64a98b4 testing: add some missing TEST_DEPENDS c92ae44 python: use typedef names 6db00fe python: add reference counting to the object map a2f0bf4 FindPythonModules: use a function 9b2bba1 FindPythonModules: search if not found 6056e10 pythoncore: extract python objects from arguments da8808b wrapping: add function to check for Python objects 9ef52a5 wrapping: wrap PyObject* in python code cae065e python: accept any argument for PyObject* arguments e8ba24a vtkAlgorithm: fix a typo 6691160 FiltersPython: create a vtkPythonAlgorithm class 9955338 python: fix leaks when setting constants in wrappers 4b74588 vtkPythonAlgorithm: support older pythons 0843035 vtkpython: add site-packages to the path 523e3c0 vtkFiltersPython: Disable without Python wrapping ba55146 wrapping: add variables to exclude from language-specific wrapping 0cf8889 vtkFiltersPython: exclude from Java and Tcl wrapping b1b31c9 java: get the list of java modules properly 788a28b testing: append the tests to the given variable 0b1ca3a pythonalg: use keyword arguments rather than members adf3b4d pythonalg: raise an error in RequestData by default 21d93e9 wrapping: remove the ${module}_WRAP_PYTHON variable 5acb230 vtkStructuredImplicitConnectivity: fix msvc warnings 5cbcdfc typo: fix some typos 79724c2 unused: remove unused functions 647b890 mpi4py: add module information 1493ff0 mpi4py: link to CMAKE_DL_LIBS 103bcc0 testing: skip test executables with no tests 118eeca IOVPIC: include MPI headers as SYSTEM headers d510cc5 cmake: set policy 0053 if available a6ccb14 cmake: set policy 0053 in thirdparty cmake 09edf3f mpi4py: add a class to convert communicators 8e09aec wrapping: check for Tcl wrapping exclusion for warnings e64416c vtkAMRUtilities: split out vtkParallelAMRUtilities 050395f hierarchy: use a .txt extension 383f2be GenerateExportHeader: support object libraries as well 4606d0e vtk_module: support a KIT argument e520344 modules: add modules to "kits" 3cd0686 linking: wrap tll() with a module-aware function 3c59cd2 export: OBJECT libraries may not be exported 5ba0639 modules: output kit information in the module tree b192a25 modules: topo-sort modules with kits as well e0757e9 modules: build kits from the member modules b36716a module: depend on the dependent module object library 987f1f4 python: add an option to disable vtkpython 3e937df testing: check for pvtkpython before using it 3a06166 vtkpython: don't install if not enabled 997f2ae vtkAVIWriter: make a more informative error message 81ff451 IO/Geometry: add obj index tests 577c9f4 FiltersParallelGeometry: move functions to the sources 3a86ca4 vtkMPICommunicator: avoid deprecated MPI functions 5c3241b vtkInstantiator: remove instantiator macro from main sources 301afc4 typo: remove duplicate source listing 43d7a64 vtkCompositePolyDataMapper2: cache opacity check f6777cd vtkCompositePolyDataMapper2: include for std::max ea87122 vtkCompositePolyDataMapper2: avoid a NULL dereference ea34fd8 OpenGL: use STATUS for the OSMesa message 5183d0f vtkPStreamTracer: conditionalize functions 8a5c8c1 vtkPTemporalStreamTracer: remove useless code f36df9c unused: add a macro to mark functions as "unused" eda45be vtkChartBox: initialize segmentIndex a09107c nit: remove extra semicolon ff3f8ed vtkMPI: install so that vtk_mpi_link is available 8e8f647 python: install packages properly 161541c opengl2: use STATUS for the OSMesa message 8fa12ca Maintenance: recognize the KIT keyword in scripts 0714be9 vtkmpi4py: empty out Py_{UN,}BLOCK_THREADS f130f0f module: add comment to update maintenance scripts too f76aeee Maintenance: recognize language exclusion keywords ede46c8 warnings: fix narrowing warnings fba50fb TestSurfacePlot: loop using vtkIdType db92b37 vtkQuaternionInterpolator: call the constructor properly 830ef1b warnings: remember values with the proper type 76a3ce4 warnings: use static casts to point out precision loss 37aad40 warnings: use floating point intermediate values 3ed64fc warnings: resolve unused variables 72fd202 vtkOpenGLImageMapper: fix unintentional shadowing 6bd7e61 warnings: fix signed/unsigned comparison warnings 6e38c6b vtkOpenGLProperty: remove unused function f4eece1 unused: use the vtkNotUsed macro 69465e4 Q4VTKWidgetPlugin: only define qDebug if not already defined 97df2a8 mpi4py: use the output, not the result b673e36 cmake: remove unnecessary condition copies f8430ae vtkSmartPyObject: ignore warning C4127 on MSVC 0fe880d mpi4py: use old code with Python 2.6 as well 7cce0e5 web: support Image from PIL in testing 2f81a64 web: print the traceback from errors as well 359f53b vtkPStreamTracer: remove unused function ca90d28 vtkModuleMacros: use STREQUAL rather than MATCHES fc1320b cmake: use functions instead of macros 44f7c75 cmake: minor style nits b0cd19b vtkPythonAlgorithm: print out all the error information 9f4afe4 tk: update to support 8.6 8427822 vtkEnSightReader: use memmove for overlapping regions 16b25ba vtkFFMPEGWriter: use av_malloc to match the av_free 458c079 vtkChartXY: check the scene before use dd542c6 otherByteSwap: fix calls for byteswapping 473036d netcdf: don't use the cache to set variables in the parent scope 2247d89 HeaderTesting: skip non-vtk* files e48e110 HeaderTests: only run if VTK_SOURCE_DIR is set 81eb3de vtkChartXYZ: use dummy bounds rather for bounds calculation 93dac76 vtkChartXYZ: don't copy the points out 9455c61 RenderingOpenGL: remove unused file 900f851 cmake: fix CMP0054 warnings 5a8610c cmake: remove variable dereferences in if statements 581598f windows: use the proper format specifier for DWORD 0ba047df windows: put parentheses around mixed && and || operators fd5e0ef vtkWin32OpenGLRenderWindow: avoid narrowing warnings 695a847 vtkWin32Header: support 64-bit properly on non-MSVC 18f64da vtkWin32Header: always use {Get,Set}WindowLongPtr 40db4ab hdf5: avoid CMP0054 warning 4392ae6 vtkPythonPackages: use IN LISTS syntax in foreach 18f6b27 vtkPythonPackages: avoid CMP0054 warnings a866bb3 vtkOpenGLTexture: don't check for a mapped window fd26999 cmake: remove arguments to else and endfoo commands e196886 cmake: remove arguments from else and endfoo in alglib a934d7a cmake: remove arguments from else and endfoo in exodusII adf2060 cmake: remove arguments from else and endfoo in expat 25399d2 cmake: remove arguments from else and endfoo in freerange de3f6b5 cmake: remove arguments from else and endfoo in freetype 6673e0d cmake: remove arguments from else and endfoo in ftgl 355a11c cmake: remove arguments from else and endfoo in gl2ps 8c9e5e3 cmake: remove arguments from else and endfoo in hdf5 251e4f6 cmake: remove arguments from else and endfoo in jpeg 739b9df cmake: remove arguments from else and endfoo in libproj4 5a07d43 cmake: remove arguments from else and endfoo in libxml2 5e888f7 cmake: remove arguments from else and endfoo in mpi4py 8ce4ee9 cmake: remove arguments from else and endfoo in netcdf 56952ae cmake: remove arguments from else and endfoo in oggtheora f1a6939 cmake: remove arguments from else and endfoo in png 15f6a87 cmake: remove arguments from else and endfoo in sqlite 7f499c1 cmake: remove arguments from else and endfoo in TclTk 41d2d07 cmake: remove arguments from else and endfoo in tiff 49bcf3a cmake: remove arguments from else and endfoo in verdict 9bf393d cmake: remove arguments from else and endfoo in VPIC df306ed cmake: remove arguments from else and endfoo in xdmf2 cf5b134 cmake: remove arguments from else and endfoo in xdmf3 b10c002 cmake: remove arguments from else and endfoo in zlib 08c5b97 cmake: remove arguments to else and endfoo commands 37782ad cmake: remove @var@ expansions 8b04a0b FindTBB: fix up typo'd logic 22b4552 cmake: fix up some version checks 058e722 zlib: remove empty if statements 6b4ea15 vtkInformationDataObjectKey: move to CommonDataModel 28c4633 numpy_support: always support [u]int64 00877bc numpy_support: raise an error if a type cannot be found 5b0ae06 Revert "vtkInformationDataObjectKey: move to CommonDataModel" a400d83 numpy_support: support using dtype array types 3bf2fb7 cmake: use COPYONLY rather than COPY_ONLY d7f7154 vtkWrap: some uses of COPY_ONLY weren't even wrong ef8735a numpy_support: don't convert array types if possible 7e9456a numpy_support: deep copy for type mismatched array data 7ef36ba numpy: test numpy_to_vtk when requesting specific types 0351c12 vtkParticleTracerBase: remove unused function cd783b3 vtkImageCanvasSource2D: add missing newline at eof 222fe37 vtkKdNode, vtkOctreePointLocatorNode: don't assign after a short-circuit 7de9cf0 vtkPolyhedron: initialize the iterator 984e010 HyperTree example: use the iterator before invalidating it 7ff34b7 Widgets example: fix up logic around planeSource 146abbb vtkYoungsMaterialInterface: plug memory leaks 6fc3969 vtkUnstructuredGridGeometryFilter: plug memory leak c64d49f vtkPKdTree: plug memory leak 88ceae4 vtkDistributedDataFilter: plug memory leaks f0a8ac1 vtkKMeansStatistics: plug memory leak d66053f vtkAMRFlashReaderInternal: don't return a pointer to temporary memory 529f85b vtkExodusIIWriter: use a larger buffer 806912b TestIncrementalOctreePointLocator: close file handles 25baa62 vtkCGMWriter: fix typo 69601ed vtkNIFTIImageReader: plug memory leaks 9a78aa1 vtkSLCReader: plug memory leak b4b8206 vtkPLY: handle realloc errors properly e736ad4 vtkEnSightWriter: terminate buffers properly b0bd046 vtkImagePlaneWidget: avoid divide-by-zero f4e756f vtkResliceCursorRepresentation: avoid divide-by-zero 9aef0e7 vtkParseMain: handle realloc errors properly d28c44a vtkParseMain: close the input file 8aa578f vtkParsePreprocess: handle realloc errors properly 86e47ae vtkParsePreprocess: fix up some free() logic for params 79abddf vtkWrapHierarchy: handle realloc errors properly d6d6e8f TestIncrementalOctreePointLocator: use malloc ae3fa6e vtkParse: regenerate lex.yy.c 529dccb vtkParse: address cppcheck messages a59bd8c vtkReebGraph: add a comment about realloc usage 898b425 vtkOpenGLPolyDataMapper2D: comment possible divide-by-zero 87935c2 TestIncrementalOctreePointLocator: remove dead code 1932e6c vtkWin32OpenGLRenderWindow: use size_t for integer storage of pointers a5d30fb vtkWin32OpenGLRenderWindow: wrap assignments in while() in parens ca540cb hdf5: check for the right policy 2b89523 python: remove echo from custom target 04a3ca3 FindMPI: search for msmpi as well 26290c8 FindMPI: fix a CMP0054 warning for CMake e5b02b9 FindMPI: add in the SDK path 3990e92 FindMPI: support newer MSMPI d3c3bde hdf5: remove conflict markers 402aaa2 FindMPI: convert to a safer path representation. 2a17ac3 vtkDataArrayTemplate: fix support for compilers without explicit instantiation 1f32a46 Copyright: bump the year 5c9fa2b vtkRenderingVolumeOpenGL2: remove copy_shaders target ded5ebe IOXdmf3: remove excess MPI stuff 27c0ec4 install: install missing module-related files b06009a netcdf: support a system netcdf 2028be3 cmake: reformat java compilation commands 8384af6 java: add an option to set the target for java compiles 5a49848 wxVTKRenderWindow: support wxPython 3.0 59b38c8 wrapping: find superclasses that are templates be21c18 examples: add shebang lines 200c23e doxygen: remove obsolete options 3d5063d doxygen: add an option to disable CHM files 6286f0c release: add scripts for release maintenance 5cc298e python: don't export Python modules as targets b6e726a maint: use "git checkout" rather than reset 3af86a2 maint: ignore css files for ctags as well eb1ab4b metaio: remove stray reject file 0f7244b vtkModuleTop: handle UsrMove-like setups 7c1083d vtkWrap: use size_t for sizes 4e229e5 vtkPistonMapper: fix a overload-virtual warning d0b86eb vtkWrapTcl: hide dString when there are no methods Berk Geveci (64): 575ebda Removed priority based streaming and fast path. 790115c Removed unused code from vtkModelMetaData and vtkExodusModel ee55278 COMP: Fixed compiler error - needed to remove functions from .h. 2d6d6a6 Improved test to increase vtkDistributedDataFilter's coverage. 2b1a0e3 Cleaned up the Exodus metadata. 0110b9d Fixed minor typo - case sensitivity issue. d67d5db Removed verts from streaklines - lines are enough. 9c95cee Removed unnecessary recursion in pipeline streaming. dca4464 Filter was modifying self in request. Fixed. e5f7953 Fixed minor typo in documentation. ccb8acf Added test for vtkTableBasedClipDataSet. ad3b1a2 Added caching to temporal interpolator. 6066b78 Fixed minor bug in the ensight gold reader. 37dc617 Added EnSight tests to increase coverage. 6f12002 Added initial ghost points support to vtkDataSetSurfaceFilter. f82238e PERF: Parallel streamline was slow. Fixed. 1a0b4e9 Refactored how pieces and extents are handled. 32cf800 Update the XML readers and writers to work with pipeline changes. 24a324e Cleaned up and fixed transmit filters for structured data. dbbef3f Fixed bug in send structured data. 10c6913 Fixed legacy parallel reader and writer. bc4dbe8 BUG: Was using array of wrong size. a4c8e85 Fixed compiler warnings. b33d318 Changed synchronized templates class for new pipeline behavior. e27ae6a Removed unused keys. 747b780 Updated filters and sources to work with new pipeline logic. ac6f185 Moved key. 19e6914 Cleaned up extent translators. ece82ee Removed unnecessary reference to extent translator 4003183 ExtractSelection was not managing pieces corretly. Fixed. 16e20f2 Filters should silently handle empty input 2354c78 Fixed multiple issues with resample/probe filters. a4944a4 Fixed contour filters 3517e2a Fixed issues in the group filter. 05ad827 Fixed crash in the empty input test. 06685ac Fixed vtkXdmfReader for parallel structured data. beb1efe Parallel Exodus writer was not asking for pieces. Fixed. be27951 Added new meta-data and request capability to the pipeline. 3885112 PERF: Removed unnecessary function call. e253292 Added an ensemble source. 4787c7a Added documentation and testing to vtkPythonAlgorithm. 0f703d2 Fixed no newline at end of file warnings. 8c0040f Executive was setting update extent initialized falsely. a4ee641 PERF: Removed unnecessary garbage collection. b0a9b57 Fixed indentation and style to match VTK's. 6168892 BUG: Filter was overwriting input scalars. Fixed. 79a80ae Added modules that create a numpy type interface. 8b73e3b Certain MPI types were not being recognized by mpi4py. 3c80a0a Improved TestNumpyInterface to cover various append implementations. 14a9c30 Added sum and mean per block to Python algorithms. 191f3c2 Added support for CompositeDataSet.Points. 710f73f Fixed innaccurate comments. 07b7459 Added a SeedIds array to the output of stream tracer. d8bdbb6 Added support for specifying split mode. f5af80d Added VTKPythonAlgorithmBase - base class for Python algorithms. 869c2d1 Fixed vtkImageGradient in parallel. eb42bb7 Added Python support for making new information keys. 4bbd890 Removed mrmpi ThirdParty, which was not used. fe3ff3b Fixed quadratic quad and biquadratic quad derivatives. d9e442f Added a new example demonstrating developing SMP algorithms. c3b9d7b Added another SMP example. 24211a1 Fixed bug in vtkExecutive::CopyDefaultInformation. 86bd7ac Fixed bug in vtkMaskPoints that caused corrupt output. 7401095 Improved unstructured grid support in dataset_adapter. Bill Hoffman (2): 14cfa48 Fix build with mingw 4.8.2 and qt 5.3.2, bug #14735 ecbf79e Detect win32 or pthread model in a mingw gcc build. Bill Lorensen (39): 2808d60 COMP: Test driver array bounds error 0f41f22 BUG0013829: vtkAssembly::GetBounds adds bounds which are uninitialized fcaf269 BUG0014331: Filter skips VTK_CUBIC_LINE 4afabe1 COMP: Restore TestTessellator test b4e0146 ENH: Added tests that were removed during modularization ce5bab0 COMP: Refactored TestDataObjectIO 9bce5da COMP: test require NO_VALID modifier 5881e35 ENH: Add removed tests 4831f68 COMP: Improve coverage of vtkMeshQuality 84087f5 COMP: Missing NO_VALID 0e9cfd9 ENH: Improve code coverage script 2df673a BUG: Flawed logic for NO_OUTPUT d6dc375 COMP: Python unittest requies NO_OUTPUT 43fa8b7 COMP: Performance warning: int to bool af25106 COMP: Remove QtInitialization from otherPrint test 9200beb ENH: Remove ThirdParty code from coverage results 4241580 COMP: Remove bogus line info from generated files e2b5f16 ENH: Unit test for ParametricSpline f3311d5 ENH: Coverage for MultiThreshold. b347042 BUG: CreateDefaultLookupTable crashes if Input is NULL. 6cb7f08 ENH: Add some more coverage for MultiThreshold 94a6311 ENH: Improve code coverage for UnicodeStringArray 5988b55 ENH: Unit test for vtkMath 7748359 COMP: Adjust tolerances 4f30bff COMP: Guard against infinite loop in vtkClearOpenGLErrors eb1a585 ENH: Provide PlaybackFile for recorded interaction events 28abc76 BUG14463 vtkMy does not work for vtk6 55a7f9d BUG: 0013057: bad xml input to XML Reader's causes exception 901e7e6 BUG14527: Subdivision fails for non-manifold data a952720 BUG: ImageAccumulate overflows for large images 55902e2 BUG: Some types of files are not closed after processing ab29d10 COMP: A more robust way to check file descriptor leaks 84f9a17 ENH: Add support to read tiled tiff images 0bee648 COMP: Add execption for vtkJSONWriter bac2c9c ENH: Restore missing Infovis classes 5f3f837 ENH: Unit Test FunctionParser baa76c2 COJMP: More robust fuzzy results checking 8597cc5 BUG: Memory leaks detectd by valgrind 5f25d2f COMP: Prefix HDF5 cmake messages with HDF5:. Brad King (37): 7df9a25 COMP: Drop invalid custom commands from HDF5 d19b4db COMP: Drop missing dependencies of target 'vtkpython_pyc' ee1c753 vtkhdf5: Remove extra calls to cmake_minimum_required 08df7a8 Accelerators/Dax: Remove extra call to cmake_minimum_required 5983605 Refactor top-level CMake Policy settings as loop 3a04542 Examples: Set required CMake version and policies before project() 2ad9f47 Set CMake Policies CMP0025 and CMP0042 as necessary 73431db Rendering/Volume: Convert new baseline to ExternalData content link e2d3123 Wrapping/Tcl: Fix CMake Policy CMP0050 warnings d8a7442 IO/XML: Remove unnecessary include 4327fce IO/XML: Add missing include f2a2eea IO/XML: Fix HeaderTest for this module 7feab87 vtkOStreamWrapper: Support std::string ec258e2 Revert "vtkOStreamWrapper: Support std::string" 54003c6 vtkOStreamWrapper: Support std::string 25b191b Revert "vtkOStreamWrapper: Support std::string" 0ad98de vtkOStreamWrapper: Support std::string 1de7c32 Allow custom TestTM3DLightComponents timeout ba0984b Allow custom TestProp3DFollower timeout 82a116b Honor VTK_INSTALL_NO_DEVELOPMENT for archive libraries c05001d Use vtkMPI.cmake helper for all module MPI tests cd0b6e6 Set MACOSX_RPATH property default consistently across CMake versions 94f1281 ExternalData: Add backtrace to missing file warning 23fbbeb Export the locations of Qt5 packages on which modules depend ff7c659 Allow configuration of external module dependency locations 5782e17 Views/Infovis: Add another baseline for TestConeLayoutStrategy 622d753 Allow custom Interaction/Widgets test timeouts b55c8eb Fix ExternalData pre-commit hook on msysGit fec99e5 Add option to exclude VTKData target from default build 644096b mpi4py: Suppress warnings in third-party code 63b5bc7 vtkFFMPEGWriter: Fix build with libavcodec55 2926834 Exclude classes requiring a QApplication from VTK smoke tests 094a09a module: fix export macros with kits 4998c13 vtkglew: Install glew header files d2a8a93 IO/ADIOS: Exclude module from VTK_BUILD_ALL_MODULES 1f35801 ENH: Use if(DEFINED) to simplify conditions c2db066 COMP: Include "vtk_glew.h" instead of "GL/glew.h" Burlen Loring (3): 070b6ea surface LIC - stl and NULL 90c9a29 vtkweb: buffering issue 47bd9e8 vtkweb: connect to existing session issue Casey Goodlett (4): fa84797 Ignore files in project.xcworkspace fb034ce Fix names of texture and normal arrays in the OBJ reader f555a21 Fix libpng "Not recognizing known sRGB profile that has been edited" 3c9e67a Skip install of .pdb files for hdf5 on windows Chris Harris (27): 4b03a9b Add failure filter to session.auth(...) deferred fa652b6 Add error function to vtk:mouseInteraction RPC 584838a vtkWeb: Add newline to end of each proxy map entry 9d81e15 vtkWeb: Teach launcher.py to wait for ready_line 1d12532 vtkWeb: Add appropriate error codes for launch requests 5968172 vtkWeb: Don't reset viewer to null on updateViewer(...) 7b0dae9 vtkWeb: Propagate mouse events to VGL 175d3dd vtkWeb: Fix calls to old VGL API 10e70c5 vtkWeb: Rename ogs.vgl => vgl dfb8481 Rename md5 => sceneMD5 to avoid confusion 333a654 Update canvas size before creating viewer 49ae1cb Prevent mouse event handlers be bound multiple times b0953ee Update VGL to master 04de702 Update version of VGL 1241e99 Prevent scene and clipping range from being reset 8fd3926 Update VGL to lastest version 3bf2493 vtkWeb: Refactor fetchObject(..) to use cached objects 61eb46e Add code to clean of VGL actor cache f34cba0 Add missing initialization of member c976fb4 Fix typo introduce by 06aaa805 session => m_session fa04ced Update to modern CMake style deae524 Allow location of OSMesa install to be specified d8933d5 vtkWeb: parseObject now returns an array of actors 2699fc9 Export same scalar bar title as is displayed by actor 8b4e567 Update VGL version 3ce7a5e vtkWeb: Use unbuffered file read/write for stdout a53a88b vtkWeb: Cleanup python processes that timeout on startup Christoph Kolb (1): 87b5c8c Add a method to enable multisampling in the QVTKWidget2 Chuck Atkins (22): 4eb181f Initial ADIOS readers and writers e27d172 Remove leftover debug messages 23942b2 Expose WriteAllTimeSteps as a setable parameter for ADIOS c2ae0a6 Properly handle WriteAllTimeSteps = false for vtkADIOSWriter ba13e88 vtkIOADIOS: Fix incorrect multi-block multi-step scalar values. 2b27d50 vtkIOADIOS: Ensure time values always get written, even if just the step. 1a8ba95 vtkIOADIOS: Collection of small fixes 2115545 jsoncpp: Update to use the seperate-file version 250f311 vtkIOGeometry: Correct typos in older jsoncpp API calls 6b4f8cb jsoncpp: Fix vs7 build error from missing C99 functions 71ef2ea COMP: Suppress warnings on PGI with commonly used patterns 2ef1a2c COMP: Remove unreachable break; statements following returns c9fefb7 BUG: Replace a few previously removed exit conditions b9c8245 BUG 14681: Allow for early exit when no data can be decoded. 2433c36 BUG 14681: Close leftover file handles on exit 03f893b XMLReader: Prevent streams from being closed when they don't exist. 874279a ADIOS: Resize the write buffer to the known required size. 3c8af89 ADIOS: Update FindADIOS to match upstream 149064b ADIOS: Add an initial polydata write-readback test a5cee75 HDF5: Fix build errors for PGI on Linux ad47d6a ADIOS: Properly handle variable sized data. 63c2269 ADIOS: Fix memory leaks by adding deletes Cory Quammen (34): f61175e BUG: Fix build failure in RenderingParallelLIC on Intel compiler 5040362b Added "sticky" axes mode to vtkCubeAxesActor 36d9e0e Fixed linkage problem in Windows d4d486a Improved comment handling 69a06e4 KW00001404: Major overhaul of vtkAppendFilter 1ae1b52 Fixed memory leak and improper erasing of std::set elements ab0254a Fixed error in appending cell data e893f1d Removed unused types and member variables, fixed formatting 8160c63 Rename local functions and embed in anonymous namespace b807a6d Change clamping range for texture coordinates 95686b6 Turn on edge clamping 56b9236 Fixed errors exposed by changes to clamping of texture coordinates a4af85b Replaced buggy and redundant implementation of GetRGBPoints() 53c340d Updated baseline for when test uses alpha blending c723181 Improved comments and made some formatting improvements 6259f17 Removed code mistakenly introduced during a merge b2452da Updated test baseline 15504ad Removed unneeded function argument 55c7dad Enabled easier specification of custom test name aba9515 Re-enabled some tests overlooked by vtk_add_test_* 75d2d4b Fixed some file extensions in documentation 238163f 6657: Add out-of-range colors to color maps 4a1259c CMake was complained about unknown arguments to find_package 8f3d921 BUG: Fixed how the header size is computed 37259c0 BUG 10708: Fix vtkPolyDataMapper2D color mapping 371f18a Avoid insertion of extra newlines when adding comments b3b0536 BUG: Added missing build of lookup table a07731a Handle coloring by field data 9449836 Enable coloring by indexed lookup for vtkStringArrays dafe5a0 Added previous signature back for MapScalars() method 3a27c8e Fixed memory errors in newly added tests 8a30862 Fixed test to work on older graphics hardware 1ce9d47 Added alternative baseline image for TestActor2D 93642e6 Fixed memory leak when RGBPoints are read Dan Lipsa (38): b604c23 Report an error when writing a file with changing topology. 9ac19b7 Update documentation. 1d7c454 Remove debugging printouts. 410e53c Name enum LEFT, BOTTOM, ... Location. 5d41775 Add component-wise set functions for Border and Gutter (vtkChartMatrix) de01f9e Set Bold and Italic axis label properties for ScatterPlotMatrix. 063b174 vtkMultiProcessStream: Add insert and extract operators for bool 94f3790 Fix Windows compilation warning. afed075 Forces the compiler to convert a char* to a string rather than a bool. 1519303 FIX: Get rid of dependent properties. bf8a001 FIX: Set the hue range for the default lookup table. 27ddad4 FIX: NULL data in RequestInformation causes a segfault. f3a9d33 Fix compilation after upgrade to hdf5-1.8.13 14e8f63 Build static hdf5 and build on VS 2003 7.1 973e57a Fix mingw release build. 132fec1 snprintf from HDF5 conflicts with the one from GMVReader db8d3e2 Make hdf5 properties advanced. 00de9a9 Add VTK_COLOR_MODE_DIRECT_SCALARS. See vtkScalarsToColors::MapScalars. 6dee6fd Fix KdTree::GenerateRepresentation and add test. 2d61dea Add a test for VTK_COLOR_MODE_DIRECT_SCALARS 1d32010 Fix hdf5 library names. 09f0204 Remove lib prefix from windows libraries and mangle additional symbols. 55b75e4 Fix hdf5 library names for VTK (and ParaView). 8c7db60 FIX: We don't select 2D annotations. 9c7135b Add data_index to Exodus driver d3ba9c7 FIX: remove warning declaration of ?? shadows a previous local 4bcf0dc Prefix BUILD_STATIC_EXECS with HDF5 and make it advanced. 7c7c3ca Add missing numpy functions previously available in ParaView 4.1. 084b0bb Rename data_index to mode_shape in Exodus reader. 699deb9 BUG: Writing an Exodus file in parallel segfaults. b45e6b6 Stop all processes if one process stops. 193be6a Reshape VTKArrays so that they can be combined through operators. ed860dc BUG: Account for gradient G + mean(G,0) b2bdadb Fix conflicts in cmake files from hd5 upgrade. cfc422e Accumulate strings printed to console by Python and send them in one piece. 57c9fa4 Fix style problems. 11da86a BUG: Buffer output only for RunSimpleString. 7d2de7b BUG: Fix mispelled excluded class and print out all exclusions. Dave DeMarle (56): ab78408 Increment version to VTK 6.2.0 274c07b Add a test for the VPIC reader a797d0d document arguments to test macros 5736031 move dashboard management scripts into better place 039d1d9 fix link errors that happened when I turned on InfovisParallel 17804f3 deprecate this module 1d754ec fix a compilation warning 252798f make rubber band look correct on scenes with textures bd3c09e optimize geojson writer 0e46e31 more optimization of geojson writer 0adb5f1 fix variety of dashboard problems 1519103 Put libxdmf into a namespace so that libxdmf3 can coincide with it. 12616e0 Adapt libxdmf to build within VTK. 5760a37 add cmakescript infrastructure to make libxdmf a VTK module 471a830 Add a reader and writer for the new xdmf library. 55b3940 Fixes for xdmf3 regression test data. c4b66ca Fix issues the dashboards turned up. 5a23147 Fix more issues the dashboards turned up. 7564b9b Really fix on of the issues the dashboards turned up a5c1b7b Fix a regression in the xdmf bump 271bfcd STYLE: improve comments and organize internal classes 8c9c5cf fix a case of discarded arrays 17c88a3 Remove stray debugf. 31ba4ac bring back subsets 34ae408 put array reuse in d7fb5d3 Fix dashboard warnings and test failure. 3bb7f74 disable a balky test until we can fix it 1e6c66b Add file series reading and top level spatial partitioning f085338 fill in time varying graphs d8bf033 STYLE: pull helpers out and format all for vtkstyle 56e9a94 move strict partition multipiece constuction out to reader level c5bace8 disable oggtheora on cray too 26694e1 Fix problems that the dashboards turned up. 5f95be4 remove MetaIO to replace with updated content c71ad1b exclude matlab from the "all" modules set f8c5c67 Add render mode in which values are drawn as recoverable 24bit colors. c46f50c fix a compilation warning 9446581 Fix test failure 7a49dbf Fix test failure fbb9829 Revert "Fix test failure" bee4434 Revert "Fix test failure" 115f9bc now 000 is reserved as the no value (background) color 9ed4765 fix dashboards that lack multisampling 391ddff make area picker respect prop transformations 9944a86 prevent possibly uninitialized ivar use 87ceeea java install shouldn't delete /usr/bin ! 71c55e8 shrink size of xdmf3 written files 7810863 fix a bug in value painting for cell arrays 35df848 fix a bug in triangle frustum intersection 7bcf231 COMP: fix a valgrind leak in new test bf4b407 update cdash scrapers to use https 611ab74 COMP: fix unused warning fc1a008 edge clipping fallback path needs correct edges 7efc254 COMP: fix macro redefinition comp warning c8313b8 per bug 14586 fix external vtkLocal 59f9b0f allow examples to be built without tests David C. Lonie (67): e9f66ba Tie vtkUnstructuredGridBase into the dataset type system. 6f3b654 Update baseline 90d7592 Handle empty array initialization in numpy_support. a43fb6a Don't reset traversal location in each iteration of box clip filter. 42b0733 Process facestream in vtkExtractUnstructuredGridPiece::RequestData. c8bec1f Handle polyhedra in vtkUnstructuredGridWriter. 16368b4 Disable FP frame buffer when GL_ARG_texture_float is not present. f521f41 Return early if ProjectedTetrahedra volume rendering is unsupported. f61c11b Add new baseline for rendering without floating point buffers. 0e07b09 Add new baseline for dashlin1. c49b9c1 Pass std::strings through the OStreamWrapper. c78a1e6 Revert "Pass std::strings through the OStreamWrapper." e52eff0 Return early in TransformPoints if input is NULL. 67ee41e Update system font test baseline. 81a76c7 Check if the selection array exists before dereferencing it. 7bb258f Ignore blanked cells in vtkCellDataToPointData. ba2e348 Error if attribute arrays are incorrectly sized in vtkGlyph2D. 25a270d Remove unused variable. 5d32344 Don't attempt to render NULL strings. 973e7b2 Add DebugTextures to FreeTypeTools to show texture background. d5de865 Use unrotated faces to determine text height metrics. bc5f6f3 Move templated methods to private visiblity. 1e93449 Style cleanup in vtkTextActor3D. ae47eef Remove pointer tests for ImageActor in vtkTextActor3D. 0edc256 Strip newlines from GL2PS comments. 6c7cdbf Always upload test image if a regression test fails. 125149a Improve aligned and rotated text. e04dcf8 Update tests and baselines. d2dca71 Account for frame width in ScalarBarActor title position. 6401873 Use Round vs Floor(+.5). 20d5ae1 Update baselines due to text rendering changes. eff2e37 Fix shadowed variable warning. 951527c Cache number of points used in asserts. 892b788 Simplify and inline much of the logic in vtkStructuredData. 600f681 Update vtkExtractStructuredGridHelper to remove data descriptions args. b4b79f0 Batch copy point data. 3d68c23 Add API to copy ranges of tuples efficiently. 713d44c Copy ranges of points during VOI extraction, if possible. 49406af Move InsertTuples implementation to helper class. 73de835 Fix "uninitialized usage" warnings. 275bb6c Make a clear distinction between extent indices and values. 7394359 Add helper functions for computing partitioned structured data. e335ba4 Fix bugs in vtkStructuredImplicitConnectivity. fd4b3e5 Fix vtkPExtractRectilinearGrid extent issues. 79ada2a Fix vtkPExtractVOI extent issues. 22f5428 Fix vtkPExtractStructuredGrid extent issues. d0f557b Fix a buffer overrun in vtkExtractStructuredGridHelper. 105578d Remove redeclared variable. 0f5053c Fix bool -> int conversion. 2e04a0f Clamp global VOI to the output whole extent in subset filters. 81ec43c More warning cleanup from nightly dashboards. 4f3655c Rearrange inline methods in vtkStructuredData.h. 978e894 Move vtkTextActor and vtkTextActor3D into Rendering/Core. be714c1 Add unary minus (negation) to vtkVectorOperators.h. dbf5b5f Fix c/v qualifier on vtkVector::Normalized and Cross methods. f23c7b2 Manually mark text buffer images as modified. 2129cf5 Add a vtkLabeledContourMapper for producing inline labels on isolines. a678f18 Added ability to turn label visibility ON/OFF 1347e42 Add vtkTextPropertyCollection. 3272193 Allow multiple text properties to be used in vtkLabeledContourMapper. 034dc39 Reenable GL2PS MathText tests. 7e7306e Add background color/opacity settings to vtkTextProperty. 3f8164a Use the new background color rendering for the labeled contour test. add0f25 Fix an error in setting an array length. 00bb019 Fix conic point identification in the path renderer. 3b07940 Fix warning in vtkLabeledContourMapper.cxx 7b2091a Allow the initial GL2PS buffer size to be set. David Cole (14): 80498e4 Add a vtkMath method to compute the angle between two vectors aeb9689 Tests: Re-activate the old TestResliceCursorWidget tests 4943d65 Tests: Add test for the vtkCornerAnnotation class 67cf482 - Follow on commit to use the right style #include ("", not <>) 65c686a BUG: Add missing header files to enable try_run tests to run without crashing c3e5209 Testing: Call SetMultiSamples(0) from tests 8a86671 Rendering: Use AdjustWindowRect to ensure pixel perfect client size 432f06b Rendering: Retrieve the full screen size in GetScreenSize 4386c03 Rendering: Use AdjustWindowRect to ensure pixel perfect client size 37c4a68 vtkTesting: Refactor RegressionTest, eliminating hard-coded cout e136e01 vtkTesting: If test fails with back buffer, try front buffer too a9e025f VRMLImporter: Fix memory leaks and crashes ba5bb9f VRMLImporter: Fix crash. Avoid dereferencing NULL pointer (#1624) 8450ddd vtkVRMLImporter: if non-NULL, delete CurrentTransform in destructor David Gobbi (93): a162be1 14196: Allow unicode path in vtkLoadPythonTkWidgets.py. c8c78cd In wrappers, guard against #including dirs. 8eb00d2 Fix cell picker for images with negative spacing. f0825f4 Fix uninitialized array warnings. d80ccfb Fix unreachable code warning in otherCellTypes.cxx. cbd4884 Fix a crash when deleting vtk-python objects. 170d664 Fix bad SetColor/GetColor interaction in vtkProperty. 0fe573e Fix the extent for tiled tiff files. 7ff8bfd Two fixes for certain lsm (zeiss) tiff images. e7aa61d Add reader/writer for NIFTIv1 and NIFTIv2 files. 048419f Add SetSlabModeToSum() to vtkImageResliceMapper. 21f10c8 Clean up vtkMedicalImageProperties PrintSelf. 1f77744 NIFTI makes IOImage module depend on vtkzlib. 050c2df Fix warning about trailing comma in enum list. ddf898a Bad null pointer check in vtkBSplineTransform. 006d4d4 Fix segfault if vtkImageWeightedSum's inputs don't match. be0b2e5 Rewrite the comments for vtkDataArray::GetRange. 04fbc0e Add generic PyObject support to vtkPythonOverload. f1a720c Provide a method to set the sample spacing for slab modes. 0541472 Add wrap hints for vtkPoints2D and vtkRenderWindow. b8d9b19 Reactivate the RenderingImage tests. ab5b27f Replace python mutable with its value in GetValue(). 9a2c201 Clean up cocoa input event handling. e27035d Interpret OS X Command key as Ctrl instead of Alt. 59850c7 Initialize interactor in Start() if not done yet. 2426564 Fix illegal extent request in ImageThresholdConnectivity. c68bd98 14445: Fix vtkImageStencilData IsInside upper bound. 52a5b97 14552: Check python interp and lib versions. e12eb1f 12098: Mangle void_p like other swig pointers. 723ec48 Exit the Cocoa event loop when the window closes. 0d30647 Readability improvements to vtkCocoaGLView event code. cc5740c 14999: Python Tk widgets fail to load on Tcl 8.6. abad5e11 Remove InstallMessageProc flag from OS X interactors. 5dbbc8e Reduce code duplication for Start() method. 8d2ae20 Ensure python header version matches lib version. 698f17d Remove the deprecated PYTHON_INCLUDE_PATH variable. 55e5b2e Fix Initialize() and Start() interactor documentation. 530bc43 Revert "Remove the deprecated PYTHON_INCLUDE_PATH variable." 18e5fa2 Remove obsolete PYTHON_INCLUDE_PATH from CMakeLists. a901d1e Do not cache deprecated PYTHON_INCLUDE_PATH. 5e2432f Make streaming optional for the 3D image mappers. 88ab5f7 14042: Numerical stability of vtkPolyDataToImageStencil. 00f6ec4 BlackmanHarris4 fourth coefficient was ignored. 904b415 Default parameter for Kaiser window is wrong. d080585 Fix copy-paste parameter name. 59e9a2b Add missing newline to end of file. 4a57067 Fix handling of tolerance in vertical direction. 257c8b1 Deprecate the obsolete InsertLine method signature. c8b25c8 Add test for LassoStencilSource orientations. 8ef9c88 Re-enable vtkPolyDataToImageStencil tolerance. 9d8e8a7 Python init config used COPYONLY instead of ONLY. cdc8d8a Fix unreachable-code-break warnings. 0a78976 Check whether volume property is null. 9791802 Before c99, variable decls go before other statements. 9771254 Before c99, variable decls go before other statements. 12130b2 Before c99, variable decls go before other statements. afeea15 Before c99, variable decls go before other statements. a73ab65 Refactor vtkWrapPython into smaller source files. f642f51 Wrap enum constant members for non-vtkObject types. ba693ad Add an enum type to the python wrappers. 57b4795 Fix two previously undetected wrapper bugs. b271e76 Wrap namespaces in python. 67a70a8 Allow use of all enum types as method parameters. a5948d9 Move VTK_BUILD_SHARED_LIBS check to generated code. d5cb238 Wrap constants more efficiently. 3e10054 Avoid creating duplicate wrapped namespaces. e13d9ae Only wrap namespaces that have useful contents. f747542 Update the readme file for new wrapping capabilities. a9314ac Fix compile warnings for vtkParse.tab.c. d1f7875 Use a wider integer for the parser stack. 153473f Fix warnings due to anonymous namespace. 0564cbb Revert "Use a wider integer for the parser stack." 1bb3de0 Allow enum types to be used as method parameters. 456a8ff Fix "conversion from size_t to int" warning. 9bdc484 Remove NULL check on reference. e0292d0 Fix potential vtkUnicodeStringArray instability. 323f6a3 Fix warnings due to anonymous namespace. ac95ec8 Fix type-punned pointer dereference warning. 18f678a Fix warning about comma at end of enum list. 80797eb Fix incorrect index types for loops. 2b07326 NumberOfArrays is int, so use int as counter type. f29e564 Fix warning for possible uninitialized array access. ad43e25 Fix a bug caused by recent tolerance fixes. 8749c2f Fix error when kernel size is greater than slab thickness. 8c45343 Remove some unecessary casts. af54136 Revert "Remove some unecessary casts." ef02d78 Allow absence of i64 suffix when __int64 exists. 87868ac Increase tolerance for UnitTestParametricSpline. 349692b Increase numerical tolerance in UnitTestFunctionParser. 2383e1e A "Set" method in the constructor caused a UMC. 877e062 Revert last commit to UnitTestFunctionParser.cxx. 248da99 Make wrappers ignore scoped class definitions. a051d50 Fix arg conversion of const ref arg via constructor. David Stoup (1): 5872add Add multi-layer support to the vgl interface. David Thompson (8): e4061e5 Bug 14713: Read LS-Dyna point coordinates properly. d5c3987 Add a regression test for bug 14713. 0693db0 Small fixes to docs, comments, and formatting. 52eb52d Add support for reading polyhedra. c7aa834 Test reading a polyhedral Exodus dataset. e142138 Add test data with multiple polyhedra. 868c552 Remove MD5 test-data MD5 file. 905de37 Fix SetAllArrayStatus on the ExodusII reader. D?enan Zuki? (1): 757d996 VS2013 compile fix Eli Kahn (4): 4fc0088 Adding mousewheel support to Java GUI components. 9d8b4ee Fix java code formatting. 14902f4 Add java file to generated jar file. aef8403 In java code, handle situation when wheel rotation value is zero. Georg Hammerl (1): 9cc56d4 Add caching for time steps in EnSightGoldReader binary reader. George Zagaris (18): 8beb89a Disable I/O in TestStructuredAMRGridConnectivity 271954a ENH: DuplicateNodes property to RCB partitioners f41f521 BUGFIX: Fix integer overflow in vtkStructuredData e4c0566 ENH: FieldData deserialization to a subextent 071f143 ENH: Add blanking to vtkXMLUniformGridAMRReader e42bbf8 ENH: Implicit structured data connectivity 843bd4d COMP: Update vtkFiltersParallelMPI tests 9bfa169 ENH: Rename nodes to points in vtkStructuredData 33920cf BUGFIX: Add guards for NULL ivars in PrintSelf df25648 BUGFIX: Fix issue with unigrid enzo datasets 8c347ee COMP: Correct ParallelMPI module test dependencies 0165b0a COMP: Remove HyperTreeGridGeometry::UpdateExtent() 296ace0 ENH: Update extract structured data filters 8a4e1cf ENH: Use vtkImageData in implicit connectivity ef1611f ENH: RectilinearGrid implicit connectivity support 0769d8f ENH: MPI structured data extraction filters 37afe25 COMP: Fix a few compiler warnings 1a80cf6 ENH: Added broadcast implementation for RMI triggers HDF Group (1): 8d8063f hdf5-1.8.13-r25462-reduced Hans Johnson (1): ddd9497 DOC: Remove documentation that is not relevant to VTK6 Jacob Becker (1): 00bb43b Fix bad check for incomplete polygons, fix div-by-zero. Jameson Merkow (1): eec6db3 Add files, and made modifications for MatlabMex to wotk in vtk 6 Jean-Christophe Fillion-Robin (9): 50d601b vtkPythonCommand - Add support for additional call data types 176861d vtkPythonCommand - Fix indent and variable names 253b2a9 Fix regression ensuring macro VTK_MAKE_INSTANTIATOR3 configure files ffbac85 Fix component names in "vtkhdf5-hl" install rules. Fixes #15282 a0e4387 Fix MacOSX build error related to OpenGL2/vtkOpenGL.h. See #15285 e3545f6 vtkRenderer: Fix null pointer crash in ViewToWorld() with no active camera 7aa65b6 vtkhdf5: Fix build error when building on system with glic >= 2.19 95b3d50 per bug 14826 make find_package vtk more lenient 8455317 vtkCornerAnnotation: Add convenience TextPosition enum Jeffrey Baumes (1): a1958d2 Fixing array bounds issue Joachim Pouderoux (40): 5a31f33 Introduce Robust PCA. 999ed2a Introduce box plot and the corresponding chart. aac4386 Introduce Compute Quartiles filter to generate box plots tables. 39efc95 Enhance bag plot API to allow specify line and points properties. e0911e4 Fix bag plot legends. 23d97ae Fix black box plots issue. 3526113 Fix double to unsigned char cast error on clang compiler. 5d42650 Fix bag plot and functional bag plots tests. cee00a0 Fix and enhance the box plot and chart df6c71a Fix and enhance bag plots. ba7959d Fix bug in picking of invisible props in an assembly. d0c862b Clean an enhance hypertree grids. a2d8d41 Fix potential compiler error with ternary operator. ee53b25 Replace a verbose cout by a vtkDebugMacro() d24747f Fix clang errors on array initialization 98fcc71 Fix and clean vtkWin32OpenGLRenderWindow class. d64a835 Fix functional bag plot. cb93b88 Clean and uniformize vtkPoints & vtkPoints2D. 6035b81 Fix crash on normal computation when polygon is empty. ec1d00d Fix code formating & style to VTK coding-style rules. 823571b Add algorithm header for std::lower_bound function call. 85e985e Fix non Delaunay internal edges added by RecoverEdge(). 36622ab Add missing NoBlockSend(vtkIdType) method. b6e22e1 Remove compilation warnings on some platforms. 8efe5ef Add support for EDGEFLAG attributes in legacy reader & writer. 7b86976 Add a new test for EDGEFLAGS point attributes. 743c380 Fix vtkHyperOctree copy functions. 18de520 Disable edgeflag test if Mesa driver is detected. 565c1b8 Fix and clean VRML importer code. c80a4db Make vtkContextScene ButtonPress/ReleaseEvent invoke a button event. 6a6f0f1 Fix a memory leak that occures when Uniform Variables are updated c909189 Fix Xdmf3 CMake file to export symbols in DLL. 1dcc3d9 Add functions to get data bounds and number of plotted bars. 2cc28ea Fix Xdmf2 writer: array type was not respected. Also save block name. acb4095 Enhance Xdmf3 writer to save block names. 451a1fb Fix a warning (variable shadows a parameter) 488e2f8 Optimize data array range computation functions. d89695c Clean and fix STL reader. ce95340 Small fixes to allow empty cells. db86c67be Fix EnSight Reader BUG 0015268 Johan Andruejol (1): f8eee62 Refactor parts of vtkLookupTable John Stark (2): 070b804 Add a test for vtkImageImport / vtkImageExport 0f6d745 Fix pipeline update issues in vtkImageExport John Tourtellott (7): e20239e Fix memory leak in vtkGDALRasterReader::RequestData() ed4759c Set geo-origin and -spacing in RequestInformation() call bb592fb Add vtkGDAL class & MAP_PROJECTION key for pipeline data and field data 7a3af77 Change missing geotransform from error to warning. 527ad90 Fix ctest errors 9b41015 Turn off wrapping for vtkGDAL.h da25875 Declare vtkGDAL constructor & destructor private, since class is static Jorge Perez (1): 6653cd0 Upgrading the Tcl examples wrt. VTK 6.x Julien Finet (11): c62a84d Prevent error message when deep copying vtkGridTransform 1d7b0a7 Change GetInputConnection error message into a debug warning message f8fe12a Fix vtkAbstractPolygonalHandleRepresentation3D visibility 7a2f6bf Fix crash in vtkFixedSliceHandleRepresentation3D 520548c Add vtkPlot::SelectionPen and vtkPlot::SelectionBrush 9a3f0f1 vtkPlotPoints selections must be sorted 089067d Add vtkChart::SELECTION_COLUMNS cc1fb1d Add vtkAbstractContextItem::StackAbove and StackUnder 695d3a6 Reorder the columns of vtkExtractFunctionBagPlot e539982 Apply selection pen opacity when drawing selected points 49683cc Fix crash when vtkPlotPoints has no Axis Julien Jomier (10): a2dea46 ENH: Fixes for ActiViz.Net e761536 BUG: Wrong transformation used to restore original parameters 98e7223 ENH: Added back support for TDx fa34ff6 COMP: GLEW_STATIC should be defined with MSVC2010 when building static e34f6f6 COMP: Missing type for vtkWindow GetScreenSize() b11d523 COMP: Q_OS_X11 doesn't exist with Qt4 replacing it back to Q_WS_X11 0b64c2e ENH: Added support for ClampToBorder (as it was in OpenGL) a42b786 ENH: Added function to initialize volume 507d690 BUG: AreaPicker doesn't consider position/orientation of assembly 9a968bc BUG: RenderedAreaPicker was not using the PickFromList KWSys Robot (7): 2eede99 KWSys 2014-03-12 (dd873734) 74e3192 KWSys 2014-08-11 (32023afd) 50e1f89 KWSys 2014-09-08 (80e852f6) 6bd7ebf KWSys 2014-09-19 (6aa1f800) 080409c KWSys 2014-09-25 (29ffaf43) d9b96c8 KWSys 2014-10-31 (88c8cc7f) 14f6f34 KWSys 2014-11-12 (5843f590) Ken Martin (310): 3c9a294 some rough changes to the VBO polydata mapper ece2ba8 some more cleanup fc6ca43 added light override b7e4976 compute cam matrix, add posiitonal light in progress 3c2af93 updates to support positional lights ab600cb change how object factory is done 479cc07 some fixes to normals etc 0400abf added ambient color in 52dc35a some module changes override actor change bunny color f4f93e7 changes in normal calcs f32f0de moved property over and started gutting it 1467ef3 fix normals on test 8111a7e minor changes e8e2ce2 some bug fixes and start on mapper2D a3efc60 allow testing using old mapper 6cc913c bug fix 9fe042e added cxx for Helper cf14de5 duh c1ba079 many updates to 2d mapper ab2a680 bug fix dd123f5 lots of rough changes 4165283 moved renderer over, moved init code 41f9ac4 in progress 16bbf3f in progress cell scalars fc0908f some cleanup and fixes cd4fa57 lots of changes in progress c0a1676 more fixes d9cc8a7 fix array bounds issue and memory leak 46e250d fix performance issue 2174bba add fast path for float points no col no norm and fix bug 057c4a6 started on texture mapping fe4eaee first cut a tmap support e1009d3 add textured backgrounds and fix issue with gradients 4a803b6 bug fixes 16cf6e9 clean up a bit a5e8a67 change opacity clean some texture stuff f2e6135 minor fixes 01327fb fix crash on test 6658a46 fix crash on test 7e65da3 add fragment shader lighting of lines 1e09fb1 support textured luts some cleanup 9a4d4ea some support for resolving coincident polys f53e785 ambient color fix df8d2df some minor fixes c768bc1 start working on image slice mapper 656a039 add baseine images 1f36e41 updated baseline images 0fe4c06 updated baseline image c605f6c minor backwards compatability change 7e90ebf basic ImageSliceMapper conversion 761e773 some more fixes 03ae0f7 moved render window over 800aff5 bug fix in old VTK af51a4f bunch of optimization more to come dd58c63 bad optimizations and missing classes' 952e427 doh forgot really key line 88d54a5 bug fix and minor cleanup 6583b32 fix a glyph bug and minor cleanup 86fd843 another bug fix e015655 better picking support some cleanup 337b7ec move interface closer to old Rendering API 4b3da32 convert ImageMapper 7b42481 some bug fixes 55429c5 another valid image, remove unused test 57de62b fix SetPixelData and fix picking issue 28e8166 add depth peeling f356ab1 make wider so we can see errors 48846df some win32 fixes a75a334 rename VBO mapper 8befe6c cleaned up the mapper a bit 3321751 minor cleanup 42ccec9 minor lighting fix for intel f97f9df handle wireframe tstrips 9af839a some bug fixes etc 4cec054 more fixes 35cd8ac more fixes 534e008 add support for edge visibility af9cc06 modify API to be a bit more future proof 817675c fix some picking issues aa13f3d some fixes for andriod 9b0f412 some fixes for andriod 7a78633 remove some old code e4a7943 some fixes for andriod 4450aed more andriod glew changes 0781dcf more andriod glew changes 3410034 many changes to support glew and android cb22be2 many changes to support glew and android e283572 many changes to support glew and android 403d1f5 first working in quotes android app 64b2dc9 first working in quotes android app 091d261 comment out more modukles by default 35d9c27 some warning fixes and minor cleanups 49afaa7 fix some more warnings 4b4c7cb fix some more warnings 672a797 make vtkOpenGLTexture use vtkTextureObject b1c9726 convert depth peeling to use more texture objects cae4a88 a tad more depth peeling cleanup 749dbe0 add android output window 521845f better debugging out for shader programs 1a131f3 clean up some shader code 5890fd2 new android interactor and cleanup 2c8e7a8 some shader cleanup 3d0c18c some android fixes in progress f65d8e4 improved release graphics resources b2f1073 improved release graphics resources cd2a628 minor change to be more compatible with some opengl hardware 410cbc5 fix android resize and lingering glew issue 412454e added multitouch framework and support on windows and android 6e873b5 fix java issue f0af35e in progress 5dfe80a in progress b1017ad more reasonable first cut at java android 7e75575 clean up some shader code and classes c0b5f66 removed unused includes e1ef59e fix some warnings 0713f8b dashboard fixes and debug leak af59eb1 some fixes for macs 411263d fix glyph memory leak and issue on intel b90516f cleanup reorg and fix some memory leaks b9f84d3 minor doc fix 67cd96b fix unit memory issue 618841c in progress ios a16c21e more iOS changes and depth peeling fix 38b02c3 some minor cleanups to wrapped classes fbc4da9 lighting fix for generated normals 0d11559 remove unimplemented methods 32f5c66 fix a number of dashbaord issues a900730 fix for lines that are exactly horizontal or vert plus cleanup 4b93362 fix for lines that are exactly horizontal or vert plus cleanup 51b0de4 add support for cell normals b53b163 add support for cell normals 793f23e fix a bad test 27f5b46 minor cleanup to a test c18c591 forgot to update the python version ebf6764 yank test for a feature we do not plan to support 64e5d7d fix an initialization issue with image reslice 882fd40 fix incorrect filename 5212468 added valid image for line lighting in opengl2 95054f7 removed broken test form opengl corrected for opengl2 3047038 more ios changes df57c93 some good cleanup 4912a3c ** working ** app and some cleanup 92b6907 fix for iphone test 48824d2 minor fix to cover vtkcompiletools f2b0d87 remove some extra files that we do not need 9d29733 make sure modules are really turned off 738b812 in progress need rebase 2bd9918 turn off more modules by default ca07346 in progress b7a0eef working clean prepping for opengl instancing 47ac0d5 some minor cleanups 42d799d really turn shared libs off 1246308 Fix compile warning in TextureObject 4f5f916 update toolchains to ios8 765646b Fix scalar colors using textures 25f401d Fix image mapper positions 4dc092c Fix the tcl and python cells test f5a7a1a Fix otherPrint and TestEmptyInput tests 08d7b9f fix for failing mac dashbaords a1dad76 Remove setting of ambient to 1.0 e7b395e Add support for backface properties ed1381e use GL_EXT_gpu_shader4 when picking 0140876 Rename TextureUnitManager to not have the OpenGL b286b89 Rename texture unit manager to not have OpenGL in it b1f0f0c Forgot to uncomment line on prior commit 4dea04e Add support for OpenGL32 instancing in GlyphMapper 4b18a9b Had to rebase as master had comflicts 4e9baa2 fix opengl es issues with glyphing code 23ceef0 Try adding support for ARB_instanced_arrays 27f77f8 Handle case with no lights on 4233190 Remove extra call to set the divisor b26e4d5 Forgot to add the image hash 8cb239b Replace some valid images lost with the big merge and a pick bug a9827d1 Fix error in glyphing and extend to mac cbe3f4b Fix fast path on apple 7129b4f Fix cleanup issue af77d96 Fix two glyph issues 3968464 trivial compiler warning fix 6a39514 Forgot a file dangit 4096ed8 Exclude freetype form iOS and andriod 901dde5 Remove EdgeFlags test from OpenGL2 6915708 Support edge flags. f702951 Fix for the 1 0 1 edge flag case. d239412 Minor cleanup 6921409 Another attempt. I think this one should work. 8f27431 Update the ios example to use GLKit View and put most logic in controller c09b0cf temporarily turn of mesa test until Joachim ets a chance to look at it 295ebc1 Add in support for clipping planes b6087b7 Add back in the edge test 42d91b1 Some suggested changes form Casey and remove user files c75f3f6 A first cut at a CompositePolyDataMapper2 f704378 Fix compiler warning and increase test threshold 69d845e Cache camera and actor matrices for performance cf1516a Remove the unused old code 4b6c88a Fix compiler error 221ba52 Fix issue with mesa and gl_FrontFacing 7ac000f make it so that this test works on the old OpenGL backend 7a7004c Fix a MTime check in the matrix cache b6d4561 Fix header test warning e134604 Minor fix for glyphing using CurrentInput 3eecb38 Fix float to integer comparison in shader code 3b363d2 Cleanup some indentation c7fa3a6 Convert Projected Tetrahedra class to OpenGL2 backend 66f9ae9 Fix up compiler warning of shadowed variables 6c598f1 Fixing ray cast image display helper 66bc416 Fix a few compiler warnings b5f0ab3 Cleanup a C style cast to keep it real plus a bug fix ecbf46f Fix a compile warning 6128ad4 Remove bad transpose of normal matrix 58034c4 Remove some unused headers and code 7bd4653 Updated API to force use of vtkShaderCache 66b74c9 Remove some extra code that isnt required f15f4bf Get render passes working in OpenGL2 4362136 Restore file that was accidentally changed 4dd3ac0 Fix some compiler errors that show up on other compilers 925f506 Add in depth peeling pass and a couple other passes 022ae36 A number of Parallel and MPI fixes for OpenGL2 2fc1358 Fix use of undefined vector behavior. fe14d90 Fix for out of range memcpy 0e68c3f Fix three dashbaord issues f7f98f7 Fix clearzpass on opengl ES 2 893c3c5 Fix edge color with composite polydata mapper 2 f497ed3 Added some ifdef needed for OpenGL ES 20 e1d90d0 Fix a bad merge 896b83f Fix RenderingParallel when wrapped and fix a compiler warning 3d57312 Make the old freetype code work with OpenGL2 d23ec3f Minor fix for clearing the zbuffer 6207dbb Add support for imposters for molecular rendering 5b62e02 Make it so that fragment shaders can modify vertexVC 22dd7ae Fix some OpenGLES compile issues 6b8ef81 Significantly better performance with EdgeVisibilityOn a7f4875 Add two more valid images ecd17aa Fix failing cursor2D test and some minor cleanup 4e92339 Fix bas valid image size and a couple NULL copies in SLACReader 1820290 Fix Context2D to clear the current shader before drawing. 029f8bf Fix lighting overdrive on ImagePlaneWidget 85d6b73 Camera was caching when shared between multiple renderers 34a8a2d Fix unnormalized interpolated normals 15753f9 Update the Composite Mapper to reflect changing in Edge Rendering 3c54b35 Fix for shadowed variable warning ddb8fab Fail gracefully if depth peeling is not supported 19de6f8 Fix 2d transparent annotation after depth peeling ed60226 Fix an coordinate issue with CopyToFrameBuffer 03efa72 Minor compiler cleanup bf48e6f make sure glsl extensions are requested at the start of a shader 2e1c54f Fixes for wrong case in include file name 5cc2de8 Fixes for composite poly data mapper2 54d1dc2 Make sure scale is included in the normal matrix 85666eb Make sure molecule mapper works with depth peeling c97d617 Fix lighting to use Blinn-Phong specular model 03efc59 Reduce the size of the test it was too big for my macbook 8cf3140 Add valid image for other systems (not AA etc) 8aef7c2 Add in support for OpenGL ES 3.0 0d5d049 trivial fix for es 2.0 6aa60b9 Fixes so the recent scalar changes compile on OpenGL2 c1eac93 Improve picking support in OpenGL2 aca55423 Minor compile fix for ES dd3801a Fix a few issues with parallel passes in VTK dda7a18 remove some leftover debugging code a7460ef A fix for rendering coincident polygons or lines. b98b7e9 Remove old references to vtkOpenGL.h and fix comment 93ba521 Enable IO/Export (minus gl2ps) for OPenGL2 6e98b4f Fix SynchronizedRenderers to work with use OpenGL2 3994715 Fix gcc warnings and build error with gl2ps 5116308 Fix a bad array reference 84ab1f8 More changes needed to get iceT working and cleanup 52b97a9 Fix compiler warning 094a728 Add valid image due to different z buffer 5c1c4b1 Fix some release graphics resource issues 81666b5 Ifdef out some code for OpenGLES systems 085a036 Add a point gaussian mapper for cosmology and cleanup bf8670a Remove test I added from old OpenGL backend 8f0ef47 Fix up some dashboard issues 598a834 Minor fix to the picking code 180ebd0 Fix floating point issue with chart test 2072f3b Add a timing framework in for testing rendering performance 7d6c491 Filename case issue 3458b18 Add another valid image as this test is sensitive to zbuffer d31ba5b Fix a simple compiler warning. f5e3a9b Break the UpdateVBO method into smaller pieces. 3e09873 Fix missing virtual destructors 0204d0e Improve the performance of the parametric function source fba6708 Add a molecule test ef8e3d4 Uh maybe fixing a cmake issue 940dc7f Cleanup the CMake build a bit 88d4238 Add aother valid image fbad49a Added another valid image 0de7f74 Fix a couple long lines 4a94679 Add virtual destructors again b6e796d Fix dashbaord compile error and some long lines b6e2cf3 Add valid image for OpenGL2 de8deb6 Use MCDCMatrix in shaders 2577188 Use MCDCMatrix in shaders 427694b Fix a compiler warning 38ca2cb Add two valid images 1862e2d Add a subclass for faster composite dataset mapping ea26fe1 Fix compile issues for es2 f91f8ef Expose more methods in opengles3 e25f524 Fix GLES3 9dd7bdb Add support for vtkTextures Transform ivar 342cb10 Fix some dashboard warnings e893f80 Fix for systems with spaces in the path ab843d0 Fix memory leak in helper class holding input data 51a0e97 Fix two compiler warnings 41ca652 Some updates to the timing test cfb3fbf Fix molecular rendering in parallel projection f77c1ff Fix an issue with mapper requiring a polydata input 3943313 Update to a cleaner way of solving the issue 4f3354b Fix a couple issues 409b4c5 A fix for shader link error reporting an molecules with lightkit Kenneth Moreland (6): c29aa73 Dax marching cubes now uses input array not active scalars. c5333aa Allow Dax marching cubes and threshold to work with doubles. 93a1db3 Change vtkDaxMarchingCubes to vtkDaxContour 423e248 Add compute scalars to Dax contour filter. 95a86c5 Support Dax marching tetrahedra 93c30ce Support passing point field data in Dax threshold filter. Lisandro Dalcin (1): aa8f6a0 import mpi4py 1.3 Marco Cecchetti (5): 126ce11 vtkColorString - Helper class for defining a color through a string. 04c2b8c Merged vtkColorString into vtkNamedColors. 1f2cdbf I added a RGBAToHTMLColor and made some minor changes. 848d2f4 Tentative fix for Windows build issue. e0cd5c2 Tentative fix for big-endian machine issue. Marcus D. Hanwell (123): 0b0b7b9 Added a test for biquadratic quad interpolation 8b53468 Exclude the vtkgl.* files (generated code) from coverage e768cfb Make consistent with vtkBiQuadraticQuad cb8e7d1 Added back the QtSQL test for the database class 6698c96 Removed misleading comment - test is built b0e6492 Added back various rendering tests d9bb602 Added back the named components test in FiltersCore 47bcdf2 Removed a few remaining Cg related files 1fd42d6 Refactored the TIFF reader, add support for floats fd35d0a Added progress updates when reading a volume c2a7f9f Remove redundant checks for old JPEG compression 4e060c2 Copy simple TIFF images into buffers more directly 3c6d297 First pass at a new render widget a9c4a04 Implement a basic VBO based poly data mapper a57dea4 Basic support for color from property b7754d7 Add the find module for Eigen 3 45e8939 Added a hack to override OpenGL overrides with GL2 f545b66 Roughly mapping the colors/scalars, updates to shaders e3ce385 Normalize the colors, and put the light the other side... 8d047ac Added the dragon model (already in external data store) 5d973c6 Moved the VBO and IBO creation to helper functions 1534202 Use the vtkPolyDataNormals filter to calculate normals 90d920d Added a points/lines test, added point/line rendering 3cc9225 Added in a program for lines, change a3f0010 Moved the replace function into the helper header 0fbdfdc Refactoring a little, movig IBO stuff into structs 4609c3f Added a polyline, and basic support for rendering it 15b0c1b Refactor uniforms a little, enable point rendering again e017b8e Small changes for point size and line width 4468526 Minor clean up for includes in the mappers 4ee2024 Ensure we set the active shaders 2feb10f Removed commented code/classes from the test ebb8c7b Added in the case for multiple renders/VBO updates d0ade44 Refactor the shader API to comply with VTK style 8163809 Refactor API, comply with VTK style 6c0a1fb Refactor the shader program API to comply with VTK style 865ce36 Added a Vertex Attribute Object (VAO) class f12857d Enable textures now that the vtkTexture class doesn't do it cebeddb Set the z-spacing in a TIFF to match x-spacing 910652d Early attempt at getting the 3D glyph mapper working 38b15eb Hackish, map the colors for the glyphs 4caaa29 Keep the color mapper around, shallow copy for settings 20bd289 Fixed the normal matrix, now molecules look much better bfada62 Make it compile on Linux/X again 0231688 Bring over the Cocoa classes for Mac 6fc649b Intel GLSL compiler is much fussier about type... 6f1f959 Removed the vtkFiltersCore dep ed6aa5a Removed vtkRenderingOpenGL as a dep now too! 8bc98a0 Made vtkRenderingOpenGL2 independent of vtkRenderingOpenGL c2a4792 The PainterDeviceAdaptor is abstract, can be NULL b40b181 Rename vtkOpenGL2* -> vtkOpenGL* a6a584b Very judicious use of sed, vtkOpenGL2* -> vtkOpenGL* cf406e9 Added a concept of backends, added OpenGL and OpenGL2 c512187 File moves necessary to create a context backend 389c88e Context OpenGL and OpenGL2 backends a1a6db6 Some minor tweaks to get the tests passing again a4bd9ca Some modules only in groups if correct backend selected ee5e9a2 Missed these OpenGL2 variants with the mass rename e58ca40 Brought more of the OpenGL module logic over 20b1618 OpenGL and OpenGL2 are mutually exclusive 0652978 If enabled, always override in OpenGL 2 01bc9b5 Unused include for a file that was deleted de0d411 Disable multitexturing in Geovis class 7da0bc3 Moving rendering tests to more appropriate places 312b3ff More test moves into more appropriate locations 00e0fe3 Removed the TDx classes from OpenGL 2 a8b9683 Only enable backends for interface modules being built 8f5d490 Disable test for render widget 703b6d9 Changed the default CDash URL for VTK e96a36c Move several TEST_DEPENDS to switch on backend 7def3bb Create object factory CMake file, move vtk_add_override cc8d147 Now generate the object factory files in a function 5766bc8 Revert "updated baseline images" 66f4884 Revert "updated baseline image" e7f0140 Some dependency updates now vtkRenderingContext2D is abstract 3d17f6c Don't exclude the module from wrapping - initialization c3ea64b Made the label tests pass again! a550da3 Make TCL wrapping happy - no numbers in module names ce2fbc5 Added include for std::string 0e8c8e1 Save the rendering backend used to the config file fdddd74 Avoid early termination when collecting actors 8b695d8 vtkOpenGLContextActor should subclass vtkContextActor 92b2485 One of the tests needs a context device to render 94e1f9e Removed unused variable - used in subclasses 7ded8b1 These classes are abstract, fix smoke tests c3ffed0 Fix for Windows mangling issue 70e078b Must be marked WRAP_EXCLUDE too for Tcl smoke tests 2a67262 Reduce the number of renders (avoid time outs) 5328c48 Move device adapter initialization to the OpenGL module 4518572 BUG: Make selections more permanent, linked to object 3c35743 STYLE: Some basic style fixes 4666a70 Removed sorts as the inputs were already sorted 4940fde Added a test to exercise bar graph selection 94288ee Remove the wrap exclusion at the module level e5f4217 More exclusions, avoid setting ABSTRACT twice 82e6876 TCL doesn't like numbers in module names 1303f08 Comment out the animated PDB renders d350387 CMake's exec_program is deprecated, revert back 2cfa25b Added some code to fix Tcl and its use of OpenGL backends f1d3e72 Added excludes for OpenGL2 headers b1ec605 Enable the Java rendering test for OpenGL2 too 800282f Actually define GLX_GLXEXT_LEGACY to prevent the include e124dd9 Update to the upstream GLEW 1.11.0 release 1b2d22f Added logic for OSMesa contexts c0dee40 Add support for OSMesa builds of OpenGL2 b2e4fb3 Added colored bar charts, along with a test 666ade8 Expand support for the OpenGL2 backend 3ae161f Restore test deps for matplotlib tests 9b17ebd Disable some widget tests building for OpenGL2 914c682 BUG: Fix bug #14378, ensure observer is removed in dtor 1cecc79 Added a non-const form of vtkTesting::AddArguments b566db3 Trivial fixes for API change in OpenGL2 shaders 9a91830 BUG: Fixed error in passing position of key press 88f5a5b Fix compile failures seen with latest FreeType b6173fb Make the VBO update more selective for picking 318ae30 Convert the file name to a const char* c048d00 Minor fixes for code style, indentation, use vtkNew fd6312e Benchmarking triangles, chart that updates 4e7c9fc Made a benchmark module, moved the benchmark tools 9081c12 Added a --timeout option, default to 1 second bfc6688 Call Write on the delimited text writer 77a2e48 Just make the benchmark module depend on volume rendering 8f183b5 Use the resolution variable to set the cube size Matt McCormick (1): 44aa48f Reset VTK_MODULES_REQUESTED to all modules with multiple calls. Matthew Woehlke (2): 980d648 Fix rotation handling in vtkTransformInterpolator. 192ddaa Fix operation order in vtkTransformInterpolator. MetaIO developers (1): e00f346 MetaIO 2014-07-09 (53aa417f) Nicolas Gallego (1): a32b29b IntersectWithLine method documentation update Orion Poplawski (1): c7f91af thirdparty: support defaulting all third party library sources Patric Schmitz (1): 58373b1 Include vtkPythonPackages in Web/JavaScript/CMakeLists.txt Patrick O'Leary (1): bd6960e added paraviewweb widget for catalyst workbench Paul Edwards (3): ac52a40 Fix for polyhedron cells. 4af6a72 Bug fix for dataset surface filter. 3cf2f88 Fixing how polydata cells are deleted. Robert Maynard (17): 90308be Update Dax Accelerator to use the new tll signature. e4aac22 Update the Dax Accelerator to use the new dispatcher classes. d353840 Correct warnings about negative unsigned constant values. 6803ffd Properly implement the factory for the dax filters. 278b3c6 EnSight Binary uses 64bit longs so explicitly use those instead of long. b7cb56b Netcdf now handles different directories for c and cxx bindings. 83b4764 Improve the performance of vtkDataArray::ComputeScalarRange. 9f1773e Improve the performance of vtkDataArray::ComputeVectorRange. 90289d7 Move all free functions in vtkDataArray into an anonymous namespace. a84e734 Update ComputeVectorRange based on gerrit feedback. 074e1fe Update DataArray and DataArrayTemplate to use vtkTypeTraits. 219b75b Correct ComputeScalarRange when dealing with multiple components. 87291c6 Improve ComputeScalarRange when we have a single component. dedc2ea Correct an issue with converting dax data to vtk polydata. 196bbe8 Refactor GetRange to compute all ranges at the same time. 880b695 Correctly detect that we are compiling with MSVC. 2dfb683 Enable the output of the number of triangles in the benchmark. Roger Bramon (1): 7b31f50 Fix QVTKWidget problem on Windows with Aero off and Qt5 Ronald R?mer (1): 44131c6 bugfix 14459: Iterating through polydata cells incorrectly. Sandeep Menon (1): b11deb8 vtkOBJReader: accept relative indices in OBJ files Sankhesh Jhaveri (119): 251f319 BUG: Fix failing EnSightBlow5ASCII tests b6a12db BUG: Turned multisampling OFF for certain tests failing on linux with ATI 82fca2d Fixed multisampling issues for some tests on ATI bfed0a0 ENH: Script to generate API differences between two git revisions d90b36a ENH: Added test for vtkImageCroppingRegionsWidget to improve coverage 4724a47 ENH: Enable selection of translucent geometry 596243f BUG: VTK_JAVA_SOURCE_VERSION to accomodate different java versions 942444b Re-enabling tests disabled during modularization for Interaction/Widgets 7d5b248 BUG: Duplicate class definition in TestSeedWidget2 c458abe BUG: Duplicate class definition of vtkSeedCallback2 0d98066 Additional baseline for TestAreaSelections 20d5df7 BUG: Border visibility from underlying vtkScalarBar actor f4ab3e8 ENH: New RenderingExternal module 4a3db5a ENH: Added custom renderer and camera classes for external support e6e4706 Variable renamed to maintain consistent syntax c8e1074 ENH: Cleaned up the ExternalRenderWindow efe5e07 Set light transform matrix irrespective of light type d921a8e ENH: Added test for vtkRenderingExternal bb9d2f0 Replace baseline with MD5 sum 754b0cd Fix lighting for the external rendering module be2a1a7 ENH: Fetch viewport size for the existing OpenGL context 3f2c51b Cleaned debugging code 9bf9827 Updated baseline for TestGLUTRenderWindow 70dd180 FIX: vtkRenderingExternal module is OFF by default 902183a ENH: Synchronize camera focalpoint 59a836f ENH: External renderer preserves buffers by default 0d4f055 Using the external renderwindow always uses current context f9f4ec9 ENH: Add ExternalVTKWidget 30de05b STYLE: Fixed indentation as per VTK style guidelines 0948eb1 ENH: Added interactor to ExternalVTKWidget 9914a84 ENH: Compute the window size when initializing from context a507a23 Moved the eye determination code to Start 913b13e ENH: Make sure VTK does stereo rendering faa1f77 Use vtkGenericOpenGLRenderWindow 05ba491 Attempt at fixing light issues across multiple screens 04ed903 Renamed module to vtkRenderingVolumeOpenGLNew 1013183 ENH: Changed dependency from glew to vtkglew defd350 FIX: Build error due to misplaced colon and style fixes 7d2e673 ENH: Implement PrintSelf a312624 STYLE: Fix lines larger than 80 chars 9594388 FIX: Failing HeaderTest and rename vtkGLSLShader 840dd5f Bring back deleted files abb5c30 FIX: VertexArray issue on APPLE machines 52f78f2 ENH: Additional tests for new volume mapper 7e69bad ENH: Added baselines based generated using old volume mapper 4f78b2a FIX: Exclude the vtkRenderingOpenGLNew module from BUILD_ALL_MODULES 9d74a3e FIX: Use RegressionTestImage instead of InteractorEventLoop d2cd5d7 FIX: Disable new volume rendering tests for old mapper d44d3e8 FIX: Exclude vtkRenderingVolumeOpenGLNew from vtkOpenGL kit 723ef37 FIX: Reset clipping planes 9e57bef FIX: Remove all vtkgl dependencies for vtkRenderingVolumeOpenGLNew 174238e Fix unused variable warning 09ae2a3 ENH: Added new vtkOpenGLGPUVolumeRayCastMapper to VolumeOpenGL2 bcc1626 ENH: Add all GPURayCast tests for OpenGL2 backend 92413fb Remove unused shader files 3647b66 Fix cmake string issue f6993a1 STYLE: Rename shader variables to maintain consistency cf497e9 ENH: Initial take at SmartVolumeMapper support 93af2c1 ENH: Removed all vtkVolumeTextureMapper3D refs from OpenGL2 module 857241a Port warning and style fixes from VolumeOpenGL2 a8c1117 ENH: Sorted out python and tcl tests for new volume rendering 374acf5 Make SmartVolumeMapper available for VolumeAMR 933c76a ENH: Volume Mapper benchmark test b3abe90 FIX: Make sure context is present 3f78716 FIX: Bypass testing if OpenGL extensions not supported 9a9917f STYLE: Ensure change follows VTK style 877eda9 FIX: Python testing was saving foo_1.valid.png style files 7c3fc18 Removed use of unrequired variable 9a35ca2 FIX: Disable antialiasing in new gpu volume tests 07b79de FIX: Nice axis bounds calculation when flipped 3fe8c43 FIX: Tooltips not showing up when axis inverted. 6dec986 ENH: Tests for inverted axis functionality 2c613d9 Test new volume mapper against positional lights 498c252 BUG: Representation not updating when volume input changed 740f018 Fix crash when running VolumeUpdate test 703ff1e Test for large sample distance in volume mapper c6a871a Test against geometry rendering d45993b Changed the noise generator amplitude to 0.1 c2e7405 Add baseline for new sample distance test 36e2614 Convert RGB Table to use vtkTextureObject ddf052c ENH: Ability to load create alpha textures from raw data 13abfb7 Minor semantic changes 65ff2f8 ENH: Use texture object for opacity tables 8a8b190 ENH: Use vtkTextureObject for gradient opacity table a4e8dc6 ENH: Make sure the new API for opacity tables is supported by mapper 275d348 Initial null value for pointer be72f94 ENH: Convert noise and depth textures to use texture object b65dde2 Initial work to reformat the window level test dde316b Started working on gradient opacity test for new mapper 6b29023 Added new gradient opacity test f85cec9 Test the new mapper for gradient opacity support a930c1c BUG: Fix an issue in the shader code that supports gradient opacity 53bb2e0 Pre-compute gradient function to reduce computation overhead c21a5ee Replaced old window level test for a better one 48d23e2 Check if extensions are supported for the new window level test ce47e09 Turn off auto adjust sample distances 95d92fd Set parameters before activating texture b7c399b Free the texture object memory at destruction time 2865feb Safety checks before deleting objects c5fd3c1 Safeguard against bad memory access b74405e Bring back the smart volume mapper window level test 0319b49 ENH: Use generic render window to support multiple platforms 400109c Fix GLUT API include header for Mac OSX and Windows bd9f401 Maintain consistent style across classes 9479946 Baseline for SmartVolumeMapper window level test 910f422 Additional baseline for failing test c4ac1b5 Prevent releasing graphics resources on the same memory twice dcadf4a Removed unwanted commented out code 1098a12 If check against bad memory access e140114 Support multiple renderers in the ExternalVTKWidget 9c9b0fc Fix segfault due to invalid pointer address 88c3da4 Fix viewport size change when renderwindow resizes 2c24e37 Removed redundant commented out code 3e5a471 Exclude vtkRenderingExternal from BUILD_ALL_MODULES 8fc37ab Improved style and documentation 015df9c Deleted unrequired commented debug code b1d35a1 GLUT test as an example for ExternalVTKWidget use dd4e27d Disable vtkRenderingExternal module for OpenGL2 backend 57f295d Remove debugging code Scott Wittenburg (20): 0d8d993 Added code to draw current selection rectangle in viewport. 847d750 Added code to support a cache option for filebrowser widget. ab674b2 Added canvas based image zooming and panning capabilities. 119cc10 Fixed a null reference by surrounding the call with a check. 3650e06 Support faster configuration times by checking dependencies at runtime. 7f92da1 Changed to make tests run serially, async nature was causing collisions. 2d1df14 Replace an import which disappeared and broke all dashboard web tests. 38ee579 Updating to Autobahn python version 0.8.13 to get http long poll endpoints. b576693 Added latest Autobahn JS (0.9.4) to support pvweb authentication. 12f6589 Properly override ApplicationSession c-tor, supports Crossbar.io. 2ac0cc8 This should fix problems with paraviewweb and python 2.6. 2f1e740 Added alternate jQuery catalyst view constructor. a65cdaa Added an rpc method to exit after a delay instead of immediately. 77d60b4 Update vtkweb loader to support addition of scalar opacity widget. b9cde71 Use "-dr" in lauch examples to encourage disabling registry for pvweb. 9ea8020 In the vtkweb loader, add css specific to the proxy editor widget. 5337c31 Changes to viewports supporting capturing screenshots for pvweb. f90491f Support vtkweb and pvweb servers using http only (no websockets). 2c4fb18 Added missing import which broke http-only servers not serving content. c2be1bc Updating launcher to include a complete set of example profiles. Sean McBride (142): 9fd9602 bug #14418: Remove addition of "-Wno-deprecated" compiler flag 3bbabb7 Fix clang analyzer warning about passing null to strcmp a6b3be7 Fixed clang analyzer warning about passing null to memcpy 3905cf7 Fixed clang analyzer warning about reading uninitialized memory fe1c6e0 Fixed clang analyzer waring about a dead store. a2fa76f Fixed clang analyzer warning about dead store 2bc660b Fixed clang analyzer warning about dead store. e4220a1 Fixed clang analyzer warning about dead store. 3b76550 Fixed clang analyzer warning about dead store. bdba2ea Fixed clang analyzer warning about dead store. cbf8c3a Fixed clang analyzer warning about 2 dead stores. d567715 Fixed clang analyzer warning about dead store. 23eba09 Fixed clang analyzer warning about reading past an array. 0bc6639 Fixed several clang analyzer warnings. d6a4175 Fixed clang analyzer warning about reading uninitialized memory. 480a8f9 Fixed clang analyzer warning about dead store to 'pd'. 27fa387 Fixed clang analyzer warning about passing null to memcpy. 6296aa1 Fixed clang analyzer warning about dead store to 'index'. c8389e9 Fixed clang analyzer warning about dead store to 'bestTime'. 8983273 Workaround clang analyzer warning by creating temp variable. 67ed07b Fixed clang analyzer warnings about dead stores. 5ff4c6b Misc cleanup of code nearby clang analyzer warnings. baea339 Fixed clang analyzer warnings about dead stores. d192654 Fixed clang analyzer warning about dead store at very end of method. 9c29087 Fixed clang analyzer warning about dead store to 'itr'. 5470f39 Fixed clang analyzer warning about dead store to 'cptr'. e319716 Fixed null deref found by clang analyzer 4cc7d0f Fixed clang analyzer warnings about dereferences 5c91a74 Suppress clang analyzer warning d0f7675 Fixed clang analyzer warning about null deref c85fdec Fixed clang analyzer warning about reading uninitialized data. 6195d1c Fixed infinite recursion in vtkBitArray::RemoveFirstTuple() f26450e Improved code coverage of vtkScalarsToColors by adding more tests fe50cbc Added tests for a few uncovered vtkMatrix3x3 methods bf70da0 Fixed error in vtkFiltersCoreCxx-TestClipPolyData test 107df71 Added comments about the danger of not clamping. 74f4888 Removed -fobjc-gc from VTK_REQUIRED_OBJCXX_FLAGS a3e9fc9 Various Cocoa improvements and fixes f062ed5 Fixed a bunch of clang -Wabsolute-value warnings 468f25d Removed all uses of deprecated NSOpenGLPFACompliant 5a568d2 Assume UTF8 for vtkCarbonRenderWindow::SetWindowName ad14e44 Remove unnessary 'if' before 'delete[]' bcb3344 Add #error when trying to build as Cocoa ARC 3d1f2d7 Fixed confusing indentation, no behaviour change a46f611 Fixed unused variable warning in release 2eb00f9 Rewrote vtkCoreGraphicsGPUInfoList to not use deprecated API 116f93f Removed checks for antique Borland versions 7399f6d Changed public API of vtkGPUInfo to return vtkTypeUInt64 for memory sizes. 985aab4 Fix clang warning about comparision that's always true. 486dc55 Added TODOs to indicate source of TestQuadricLODActor failure 13354f6 Change #include style from <> to "" for some vtk files 6ba34d7 Changed #include to a71e3d4 replaced #include with 0a8ca52 replaced most with includes dfc4019 changed some to 5370312 changed some to 8446c7b Fix gcc warning about possible use of uninitialized variable 64e66d7 Added check for null before dereference, for bug #14671 e579693 cleanup all uses of fclose() in vtkSTLReader, for bug #14515 af89456 Removed dead code in test by using #if 0 273205d Moved unused var suppression to suppressed dead code warning 87526dc Removed unneeded break statements in switches 77e6fb2 Fixed inconsistent #include style, from <> to "" 6e73ac3 Fixed inconsistent #include style, changed <> to "" 553c12e Fixed SimpleCocoaVTK Xcode project to build properly. b6a4db1 Fixed bug #14266: fix observation of NSView size change 40b1c95 Fixed unused const var warning fe69c24 Fixed a backwards ?if? test, and memory leak de54031 Eliminated unneeded null checks before using delete/free a3a2ed9 Fixed indentation level b417e82 Fixed ?null deref? warning 775ea71 Simplified memory deallocation 6ddb0bb Removed useless assignment 83a5945 Fixed warning about using null with memcpy ddccb71 Removed useless assignments 5372604 Misc cleanup and refactoring ca32186 Bail early on null parameter ba2bbac Sync up Cocoa code between OpenGL and OpenGL2 dd3f20d Added partial/initial support for Cocoa ARC memory management a0c7098 Remove dead store to fix warning. ab36a82 Added some consts in a few places 93b12c9 Put initial assignment at declaration 70d8784 Fixed analyzer warning by removing null check b8af0b7 Fixed analyzer warning about possible null deref 832f091 Fixed a few dead store warnings 8f0a469 Fixed dead store warning by removing redundant 'break' c591782 Fixed dead store warning by reformulating loop e2dad20 Fixed null dereference 1fa832c Fixed false positive warning about null deref ce0618c Fixed null dereference 57d3811 Fixed obvious null dereferences fd385ce Hopefully supress dashboard compiler warning in QT header 4dc4b4f Fixed use of memory after its deallocation c5bacd4 Fixed incorrect indentation 0885215 Prevent null deref of ?null? 53c18de Prevent null deref of ?composite? fn pointer d00f600 Init memory to prevent it being used uninitialized 2bacee0 Removed dead store to ?j? 6fd5a5d Removed dead stores 9d6d565 Suppress numerous warnings about using uninitialized memory 845c249 Remove a likely dead store ba93153 Prevent null dereferences 33dde16 Fixed null deref and whitespace/indentation e333730 Fixed obvious dead stores 14c4790 Fixed null deref by returning upon error a5c4a9a Fixed memory leaks and malloc(0) 68294b7 Removed minor dead stores, to fix warnings 6e773e1 Refactor to make intent clear to clang analyzer 92f6a35 Fixed warning about possible null deref 3099508 Fix clang analyzer warning by adding temp variable af2526d Fixed warning about using ?volBounds? uninitialized fca2fd5 Only react to NSView frame changes if VTK itself created the NSView fc6dc08 Suppress clang analyzer warning 496f9fb Suppress warning about dead store e2bf9bd Suppress warning about ?x? used uninitialized bb7623d Move warning check to prevent ?fd? null deref dd0dacc Return after warning to prevent ?dsa? null deref 9369028 Simplify and exit quickly if input point ids empty e8ef3e5 Another try to suppress warnings from Qt headers 666d78c Advance null check to before cast d5feacb Fix possible null deref of ?dsa? 42815af Added vtkErrorMacro to code paths that give null ptrs ea3f62e Removed harmless-looking dead code 91dcdaa Another attempt to silence warning from Qt header 52b233a Fixed -Wstring-conversion warnings c02f83d Whitespace/spelling 53c1f9f Fix warning about use-after-free efc3a4e Fix possible null deref warnings 2b14f1f Made some copy-pasted code more self-similar 4a53917 Fixed types of some copy-pasted code 337fa28 Move some declarations closer to use. abdb84d Removed useless null check 083a4c5 Return early to avoid null to strcmp() bdfb1cd Removed dubious #undef of keywords 141198e Refactoring and cleanup of Cocoa NSWindow and NSView observations 6dce510 Remove double underscore in header guards (.txx & __vtk*_txx form) 7cef24e Remove double underscore in header guards (.in & __vtk*_h form) 152e7f4 Remove double underscore in header guards (__vtk*_cxx form) 5a668f9 Manual tweak of .hxx include guard naming e89fdcf Remove double underscore in header guards (.h & __vtk*_h form) 9686d25 Manual search and cleanup of "__vtk" 5a31997 Remove the addition of a few inappropriate vtkErrorMacro Sebastien Jourdain (60): 9285aef Add catalyst web widget into VTK 42746d0 Add NaN support in web chart rendering c4821d4 Add a resampling filter ca29c4e Add JSON writer for ImageData ce554a5 Extend vtkImageMapToColors to support Mask color and Non Active Scalar input e6bcb7f Use / for path separator to prevent Windows related issue with escape char 697d178 Improve implementation of Catalyst viewer 6b1789a Add image resampler catalyst web widget 7d7fcfa Remove test dependency to data when not needed 3e71420 Remove usage of the keyword with to allow old python 59b5c51 Add new set of catalyst web widgets 8c7aca7 Attempt to handle some system raise condition a00f98f Add catalyst web composite widget b6700df Better composite catalyst web widget 3bb60f2 better UI for catalyst re-sampler web widget c395736 Various VTK-web improvement a8f8905 Fix vtkweb catalyst css e64f69d Add cost information in workbench analysis b4f486f Improve web compositing for dynamic interaction 4b450f4 Properly handle background selector visibility 1228f92 Fix composite rendering widget for search 4ef8264 Add sorting capabilities eaf3730 Refresh workbench UI and workflow 8f3a357 Fix Composite Javascript for WebKit 3ce7a4f Improve ParaView cinema UI 6d42e91 Improve basic search in web-catalyst dfcf9c7 Fix catalyst web - cost time computation 8ef209e Improve catalyst web UI c9161c1 Catalyst web: Minor Web UI change b19eaa4 Catalyst-web: Improve composite search experience cfcebd1 Add image width column 794807f Add cost estimate for Catalyst Web 0607cc5 Catalyst-Web estimate UI fix 5a83360 Change catalyst-web analysis API to expect full URL 8241ef5 Fix center of rotation for WebGL renderer 6ec408f Fix WebGL background orientation 87af8da Fix basic catalyst viewer with theta cc6002e Add runtime libraries on Windows for Java binary package 09f9d20 Fix several catalyst web UI issue 30e74c1 Add configuration pass to Catalyst PVW workflow 53d52a8 Add support for mobile device interaction 86cfbf4 Catalyst Web - Composite improvement 5139f27 Catalyst web 14b1a6e Add new rendering class API based on vtkPanel class 6b7102f Remove @Override annotation to prevent compilation issue on old Java compiler b7d419b Upgrade autobahn version to 0.8.9 85d3beb Upgrade Twisted version to 14.0.0 e5c6e09 Upgrade ZopeInterface version to 4.1.1 d7a0e9d Add SixPython module for Autobahn dependency 06aaa80 Update Autobahn/JS library version 9793f84 Update VTK Web Python code to handle WAMP v2 82a4d41 Update Web applications to support new protocol API 4c98d89 Fix python for vtkweb 4937ef8 Allow arbitrary WebSocket endpoint c9f5efb Add bottstrap3 + pv lib in loader ff5ffe4 Fix import with latest Autobahn update ad50df2 Add missing call to properly handle webgl rendering 93bcb11 Remove loading of native lib from vtk classes 43de2bf Add Get/SetTuple6 methods 1f59e83 Add additional information for Java package build Shawn Waldon (20): f9a208d Add a smartpointer for PyObjects befcfd1 Format comments according to VTK stlye guide ced0756 Fix the vtkPolyPlane implicit function ad5d35c Change vtkProbeFilter to expose the 'in' threshold 011ce9b Move static data in vtkVRMLImporter to local struct e23a5b2 Assume block request produced what was requested 25fd4c5 Add a documentation module that contains information keys 2f43b03 Add block amount of detail information key b2bd40a Block opacity and color are now more independent 8b650ea Add a baseline for block opacity with no depth peeling da65eea Adding a key to indicate the current process has the block 0caa936 Legacy reader/writers for composite data now save field data a8d2788 Added comment on required invocation order 9dac67f Prefer vtkDoubleArray::GetValue to GetTuple for single component arrays 1289500 Made vtkGaussianSplatter handle composite data input dc6386a Made sure composite data iterators were deleted properly f69efc8 Made vtkPointGaussianMapper handle NULL arrays 25e578b Add an option to set default radius of point gaussian 9d090aa Fix triangle size for sprites with radius > 1 96c61c1 Made Point Gaussian mapper handle scale arrays not in dataset Shinya Onogi (1): 313b647 fix_GPU_resource_handling Sujin Philip (9): b505112 Fix for buffer overflow in vtkCubeAxesActor class 71bd130 Toolchain files for MICs on stampede 55da875 Fix compile warnings in SMP under Windows 17a6674 Additions to SMP API a0d1391 Fix SMP examples warnings 44c9610 VTK SMP implementation of SynchronizedTemplates3D 42f31c8 Fix SMP compile warning in VC++ 0dceda0 Use the correct TBB lib based on the build config 485d174 Fix for SMP examples compile issues Thomas Vaughan (1): e6f7476 Set origin and spacing in vtkSurfaceReconstructionFilter. Ref: Mantis 0002826. Tim Thirion (14): 232657e Prefer xcrun when querying for iOS-related SDK elements 72dfcc3 Add CMake option to select OpenGL ES 2.0 or 3.0 7eaad01 Add x86_64 to list of archs for iOS simulator 27fb188 Surfaces example ported to iOS 7465b7b Add CMake script to allow user to `make framework` for iOS 48752ae Remove shell script for creating VTK framework; update iOS readme 628febb Update CMakeLists for iOS examples d9d3fc3 Create iOS framework in one pass through CMake config 27b58f1 Clean up iOS build script 86dbd0f Make vtkVersion available sooner in CMakeLists.txt b11f61c iOS build: check install directories before any compilation 092e7fb iOS build: pass OpenGL ES version string to child builds 39229f7 Update Android toolchain file (now support NDKs r5 through r10d) 425fc48 Add one-pass Android build Tristan Coulange (5): 0679bf4 BUG: fix some xdmf writer crashes d4fc9b3 BUG: Add a missing include for VS 2013 3c7c082 Add support for original ids for generic dataset a5e6d3d BUG: fix xdmf test failure b6235a7 BUG: Fix the quads evaluate location Utkarsh Ayachit (56): 3e5e0e1 Adding a new test for TestSocketCommunicator. 8489299 Added test to test vtkSynchronizedRenderers. 2bc3308 Deprecate vtkOpenGLPolyDataMapper. b80e196 Fix segfault with TestSetGet. 2be768b Fix build issues with deprecated vtkOpenGLPolyDataMapper. 4c3786b Add a delay between process launches. d616545 Fixed mismatches cell arrays in vtkPStreamTracer. 5a8a092 Added ability to probe filter to allow disabling of passing field data. c4c8ce8 Add support for empty strinngs in SetInputArrayToProcess. 59b7ad1 Make it possible to override ClampPos. c19112e Remove OpenGL error checks that were causing errors. 169f015 BUG #14244: Fix stereo image captures. e3229b0 Add helper method to convert from SelectionField to AttributeType. 59360cd Fix appending of scalar arrays. 4e338f3 Fix DataSet reference in when input array is passed to output. abf3539 Avoid exceptions on StringArrays. b345cec Fixed exceptions with older numpy version. 5c735a6 Cleanup MPI controller properly. 235ceec vtkExtractSelectedRows only works with IdTypeArray. daf8c6e BUG #14828: Keep surface color from interacting with scalar color. de46ebb Handle append scalar in CompositeDataSetAttributes. a5daf04 BUG: Fixed opacity mapping when scalar array is vtkUnsignedChar. 2327e0a BUG #14813: Fix range reported for mode shapes. 9085e57 BUG #14599: Handle double values properly. 4f3ffec Fix issue with empty arrays with numpy 1.2.1. 82a0c47 Don't glyph masked points in vtkUniformGrid. 73739ae BUG: Fix invalid return value check in vtkClientSocket. 535d6c6 vtkScalarBarRepresentation doesn't call Superclass. ac920d1 Fixed logic to work when an empty vtkSelection is passed. d7aca98 Fix handling of empty selection on ParallelCoordinates. 45efae2 Fixed issue with selection frame line style. dc8280b Refactoring CMake code for Python modules. 126135c BUG #14971. Fix invalid sprintf() in vtkPNGWriter. 4228c2d Add missing include. Needed for std::max/min. 6828506 Handle case when make_vector is called with NumPy arrays. f21207c Make vtkScalarsToColorsPainter respect ScalarMaterialMode. a765c1a Update TestScalarMaterialMode test image size. 92be9c2 BUG #14779. Fixes for vtkDistancePolyDataFilter. 49e0b6a BUG 14693: Fixed vtkAssignAttribute for unnamed arrays. 4087b62 BUG #12753: Fixed support for large images. 51996a6 BUG #11607: Fixed support for large images. 1c9adc2 Add support for vtkTable to vtkExtractSelectedThresholds. ef663ee Fixed warnings with shadowed variables. 031f7f6 BUG #15046, BUG #15020: Fix issues with OpenGL 1.2. 25e3938 BUG #15058: Fixes unclipped grid. 9ffb979 BUG #14809: Use title size when placing title in vtkChartXY. 015c6cf vtkPlotGrid draws grid even when axis is invisible. bf73ac0 BUG #15132: Fix incorrect flag check. f1a90fd Disable OpenGL error checks in release builds. 8bc9a3e Adding alternate baseline for TestLinePlotAxisFonts. a4069c6 Change invalid extent error to a debug message. 5fa4f8c Fixed typo in commit 031f7f6371. 6b86fb0 Fix inverted ifdef NDEBUG in commit f1a90fd2. 74a35b4 Forward InteractionEvent to Interactor. 5e791b5 Miscellaneous vtkContextInteractorStyle fixes. c22030c Fix missing headers. Will Schroeder (13): 399f778 Disabling translation and scaling now works. b04dd36 Added the ability to specify a clip tolerance. 9104559 Fixed bug causing plane to disappear on boundary. 0b42c0e InsertNextCell and related method now return the proper vtkIdType. c1d3768 Create vtkPolyData instead of vtkUnstructuredGrid when passing points. 0567a19 Extended filter to support culling unused points. eb41a25 Added ability to control alpha shape output bdd6fef Added hints for vtkBox.GetBounds() 5481868 Updated documentation 5111dc4 Select internal tetra tessellation based on scalar change 5eec2e2 New data file for QuadraticTetra e042195 Alternative test image ce22619 Progress reporting was broken XDMF Developers (3): 3fa4d33 export xdmf for import into vtk fe051e5 export xdmf for import into vtk 9195a1f export xdmf for import into vtk Xabi Riobe (1): 1c05c1f BUG: The method vtkClipPlanesPainter::UpdateBounds must not be implemented. Zack Galbreath (25): 83a2ffd fix lingering off-by-one error c0ff488 new writer: vtkPhyloXMLTreeWriter 2841e3d attempt to silence "possible loss of data" warning bba7656 improve the thoroughness of TestPhyloXMLTreeWriter 8153428 add baseline directory c71d9c2 get the baseline file's path from the command line 52d6255 add option to write XML to string instead of file e90c46a fix failing tests revealed by gerrit 183bb5d fix the format of PhyloXML references 2f042ba fix blank newline in XML output e99683a vtkXMLReader can now read from an input string 0471167 new class: vtkPhyloXMLTreeReader 8bc3c4d consolidate tests for PhyloXML 1b01fb8 silence unused parameter warning 6d50103 change signatures for wrapping 48341cd copy row names from R to vtkTable 729fe63 do not assume 1st column holds row names bba6de8 fix failing SetGet test forvtkHeatmapItem c06dd72 preserve R data.frame row names ea356a1 break vtkRCalculatorFilter's input/output symmetry 4cfbdfd style cleanup 1407114 add SSL support to VTKWeb server b77eff3 fix potential segmentation fault 21d92cf change the way we shut down the R interface 4ffb1c5 fix failing R tests reported by CDash acbauer (1): 8b5feb1 Fixing issue of wrong celldata output order from vtkGeometryFilter. xabi riobe (4): adf24a5 Fix memory leak in vtkPNGWriter when OutOfDiskSpaceError d5e1240 Initialize row_pointers e7438f2 Fix numerical precision problem in vtkCellLocator::IntersectWithLine 949ffbf Add default value for argument From tarcisio.fischer.cco at gmail.com Thu Mar 5 11:30:03 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Thu, 5 Mar 2015 13:30:03 -0300 Subject: [vtkusers] ANNOUNCE: vtk 6.2.0 is ready! In-Reply-To: References: Message-ID: Hello. I was just wondering. How is the python3 support going? 2015-03-05 13:09 GMT-03:00 David E DeMarle : > The VTK development team is happy to announce that VTK 6.2.0 is ready. > Special thanks go out to everyone who tested and provided input and fixes > during the release candidate cycle. You can find the source, data, and > vtkpython binary packages here: > > > http://www.vtk.org/VTK/resources/software.html > > > You can read the release notes at: > > http://www.kitware.com/blog/home/post/858 > > And you can see the list of changes in the attachment or by: > > git shortlog --no-merges --format="%h %s" v6.1.0..v6.2.0 > > We hope you find this release of VTK useful and bug free. > > 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 > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarcisio.fischer.cco at gmail.com Thu Mar 5 11:34:28 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Thu, 5 Mar 2015 13:34:28 -0300 Subject: [vtkusers] VTK Python3 support Message-ID: I saw that we now have vtk6.2.0, I was just wondering... How is python3 support going? How far are we from full python3 support? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Mar 5 12:21:41 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 5 Mar 2015 10:21:41 -0700 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: As far as I'm aware, python 3 support hasn't moved forward since the last time it came up on the list. I think that, for too many of us, python is python and python2 is available on every machine we use. Issues: 1) VTK wrapping still uses old-style classes. I've been meaning to fix this. 2) Basic compile issues and cross-compatibility for py3 and py2 - we received a patch that fixes some of these issues. 3) Conversion of examples and tests to py3... this is a biggie! Lots of community help required. Overall, I've just been waiting for py3k to become dominant... but python2 is still the default python on OS X and on most of the linux systems that I use. My guess is that Kitware is in the same position. The demand for py3k support just doesn't seem to be there yet, even after all these years. So of course, if anyone out there has a need for py3k, please let us know! Compatibility with Blender has come up before. - David On Thu, Mar 5, 2015 at 9:34 AM, Tarc?sio Fischer < tarcisio.fischer.cco at gmail.com> wrote: > I saw that we now have vtk6.2.0, I was just wondering... How is python3 > support going? How far are we from full python3 support? > > Thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarcisio.fischer.cco at gmail.com Thu Mar 5 12:50:10 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Thu, 5 Mar 2015 14:50:10 -0300 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: Nice. Good to know. Thank you very much :) 2015-03-05 14:21 GMT-03:00 David Gobbi : > As far as I'm aware, python 3 support hasn't moved forward since the last > time it came up on the list. I think that, for too many of us, python is > python and python2 is available on every machine we use. > > Issues: > 1) VTK wrapping still uses old-style classes. I've been meaning to fix > this. > 2) Basic compile issues and cross-compatibility for py3 and py2 - we > received a patch that fixes some of these issues. > 3) Conversion of examples and tests to py3... this is a biggie! Lots of > community help required. > > Overall, I've just been waiting for py3k to become dominant... but python2 > is still the default python on OS X and on most of the linux systems that I > use. My guess is that Kitware is in the same position. The demand for > py3k support just doesn't seem to be there yet, even after all these years. > > So of course, if anyone out there has a need for py3k, please let us > know! Compatibility with Blender has come up before. > > - David > > > > On Thu, Mar 5, 2015 at 9:34 AM, Tarc?sio Fischer < > tarcisio.fischer.cco at gmail.com> wrote: > >> I saw that we now have vtk6.2.0, I was just wondering... How is python3 >> support going? How far are we from full python3 support? >> >> Thanks. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Mar 5 13:03:30 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 5 Mar 2015 13:03:30 -0500 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: One thing that came up before and I wanted to remind folks. To many of us that primarily support Python 2, it is not desirable to run 3-to-2 conversion during the build process. This would make development & debugging fairly annoying. Whenever possible, we should avoid this. When not possible, the preference would be to require 2-to-3 conversion at build time. Best, -berk On Thu, Mar 5, 2015 at 12:21 PM, David Gobbi wrote: > As far as I'm aware, python 3 support hasn't moved forward since the last > time it came up on the list. I think that, for too many of us, python is > python and python2 is available on every machine we use. > > Issues: > 1) VTK wrapping still uses old-style classes. I've been meaning to fix > this. > 2) Basic compile issues and cross-compatibility for py3 and py2 - we > received a patch that fixes some of these issues. > 3) Conversion of examples and tests to py3... this is a biggie! Lots of > community help required. > > Overall, I've just been waiting for py3k to become dominant... but python2 > is still the default python on OS X and on most of the linux systems that I > use. My guess is that Kitware is in the same position. The demand for > py3k support just doesn't seem to be there yet, even after all these years. > > So of course, if anyone out there has a need for py3k, please let us > know! Compatibility with Blender has come up before. > > - David > > > > On Thu, Mar 5, 2015 at 9:34 AM, Tarc?sio Fischer < > tarcisio.fischer.cco at gmail.com> wrote: > >> I saw that we now have vtk6.2.0, I was just wondering... How is python3 >> support going? How far are we from full python3 support? >> >> Thanks. >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Thu Mar 5 13:05:48 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Thu, 5 Mar 2015 18:05:48 +0000 Subject: [vtkusers] VTK 6.2 and the vtkMFCWindow Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2DAFD@exchange3.microbrightfield.com> Hi, Just wanted to let you guys know. We've set the flags for the OpenGL2 image display and we've found that, in vtkMFCWindow.cxx, we had to replace vtkWin32RenderWindowInteractor with vtkWin32OpenGLRenderWindowInteractor. This fixes the following error in the build: ..\..\..\VTK-6.2.0\GUISupport\MFC\vtkMFCWindow.cpp(37) : fatal error C1083: Cannot open include file: 'vtkWin32RenderWindowInteractor.h': No such file or directory Doug Doug Hoppes I Senior Software Engineer I [cid:image007.png at 01CEF686.037AE7C0] T: 802-288-9290 E: dhoppes at mbfbioscience.com MBF Bioscience 185 Allen Brook Lane Williston, VT 05495 USA www.mbfbioscience.com http://www.mbfbioscience.com/blog [cid:image008.png at 01CEF686.037AE7C0] [cid:image011.png at 01CEF686.037AE7C0] [cid:image012.png at 01CEF686.037AE7C0] [cid:image014.png at 01CEF686.037AE7C0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2645 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 787 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 927 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 1170 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 870 bytes Desc: image005.png URL: From godimarcovr at gmail.com Thu Mar 5 13:52:00 2015 From: godimarcovr at gmail.com (WeltMarco) Date: Thu, 5 Mar 2015 11:52:00 -0700 (MST) Subject: [vtkusers] Applying post-processing shader Message-ID: <1425581520790-5730683.post@n5.nabble.com> Hi all, i'm currently working on a project in which i need to apply a post-processing shader to a rendered scene (in particular it is a barrel distortion shader). The problem is, by applying the shader on the actor's vtkProperty i can only intervene on the actor's model (for example a shader that paints everything red, will only make the actor red) but i need it to intervene on the scene already rendered (so if i apply the same red shader, it will turn everything red). I was thinking of extracting an Actor2D by going through the WindowToImage filter, but there is nothing about shaders on the vtkProperty2D. Is there a way to do this in VTK? Thank you in advance for your help Marco -- View this message in context: http://vtk.1045678.n5.nabble.com/Applying-post-processing-shader-tp5730683.html Sent from the VTK - Users mailing list archive at Nabble.com. From jim at jslengineeringsoftware.com Thu Mar 5 15:23:55 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Thu, 05 Mar 2015 15:23:55 -0500 Subject: [vtkusers] VTK_DEBUG_LEAKS In-Reply-To: <54DE0C09.9040402@jslengineeringsoftware.com> References: <54872783.4010602@jslengineeringsoftware.com> <54DB6EF6.203@jslengineeringsoftware.com> <54DE0C09.9040402@jslengineeringsoftware.com> Message-ID: <54F8BB5B.3040209@jslengineeringsoftware.com> Hello, VTK_DEBUG_LEAKS: once enabled in cmake and VTK is compiled, is there some way to turn this off for the purpose of compiling my Java program, or do I need to recompile VTK with the option off, then compile my program? I have eliminated leaks, but upon Java program exit, there is one (the last) set of references related to the vtkRenderWindowPanel that I use inside of the Java program GUI. From searching and evaluating the Java program during operation, it appears that it might not be released between the time that the VTK_DEBUG_LEAKS runs and my Java program finishes exiting. So, the only problem is that the end user would see the VTK popup window about leaks upon exiting the Java program. Just trying to avoid recompiling VTK repeatedly. Thanks, Jim From marcus.hanwell at kitware.com Thu Mar 5 15:28:02 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 5 Mar 2015 15:28:02 -0500 Subject: [vtkusers] VTK_DEBUG_LEAKS In-Reply-To: <54F8BB5B.3040209@jslengineeringsoftware.com> References: <54872783.4010602@jslengineeringsoftware.com> <54DB6EF6.203@jslengineeringsoftware.com> <54DE0C09.9040402@jslengineeringsoftware.com> <54F8BB5B.3040209@jslengineeringsoftware.com> Message-ID: On Thu, Mar 5, 2015 at 3:23 PM, James Labiak wrote: > > Hello, > VTK_DEBUG_LEAKS: once enabled in cmake and VTK is compiled, is there some way to turn this off for the purpose of compiling my Java program, or do I need to recompile VTK with the option off, then compile my program? I have eliminated leaks, but upon Java program exit, there is one (the last) set of references related to the vtkRenderWindowPanel that I use inside of the Java program GUI. From searching and evaluating the Java program during operation, it appears that it might not be released between the time that the VTK_DEBUG_LEAKS runs and my Java program finishes exiting. So, the only problem is that the end user would see the VTK popup window about leaks upon exiting the Java program. Just trying to avoid recompiling VTK repeatedly. It is a compile time option, you would need to recompile. Marcus From tarcisio.fischer.cco at gmail.com Thu Mar 5 16:20:55 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Thu, 5 Mar 2015 18:20:55 -0300 Subject: [vtkusers] Odd vtk normals calculation behavior Message-ID: Hello. I'm trying to get the normals of my 3D cube (a VTK_POLYHEDRON cell) with vtk6.1 in python. I know that there is many questions about the normals orientation, but this is not the case. The problem is that it seems one of the normals is completely wrong, as I will show in my example code. To try to keep it simple, I'll separate the code in three parts: 1- Only the part where I think the problem is: http://pastebin.com/2SW5q4n2 2- The full code so that everyone can run: http://pastebin.com/DH3ei1XD 3- Extended code with some internals exposed (with odd results!): (Take a look at Trying to view data internals) http://pastebin.com/BYEkhiqc Can someone help me? What am I missing here? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.baecker at web.de Thu Mar 5 19:50:48 2015 From: arnd.baecker at web.de (Arnd Baecker) Date: Fri, 6 Mar 2015 01:50:48 +0100 (CET) Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: On Thu, 5 Mar 2015, David Gobbi wrote: > As far as I'm aware, python 3 support hasn't moved forward since the last time it came up on the list.? I think > that, for too many of us, python is python and python2 is available on every machine we use. > Issues: > 1) VTK wrapping still uses old-style classes.? I've been meaning to fix this. > 2) Basic compile issues and cross-compatibility for py3 and py2 - we received a patch that fixes some of these > issues. > 3) Conversion of examples and tests to py3... this is a biggie!? Lots of community help required. > > Overall, I've just been waiting for py3k to become dominant... but python2 is still the default python on OS X > and on most of the linux systems that I use.? My guess is that Kitware is in the same position.? The demand for > py3k support just doesn't seem to be there yet, even after all these years. > > So of course, if anyone out there has a need for py3k, please let us know!? Compatibility with Blender has come > up before. Well, for our code basis we would like to move forward to python 3 and the pressure is getting stronger now because for some packages we are using the development only continues for python 3. On the other hand VTK (via tvtk and Mayavi) is an important element for several of our applications. For Mayavi the situation is discussed for example here: https://github.com/enthought/mayavi/issues/84 There are projects considering to move away from VTK (and/or Mayavi) because of its lack of python 3 support, see e.g.: https://github.com/menpo/menpo/issues/419 I would also suspect that sometimes VTK is not considered for new projects because the transition to python 3 is not happening/foreseeable. Another aspect: I have been using python for teaching computational physics for about 12 years now. I really would like to use python 3 from now on (so that the students don't consider me old-fashioned ... ;-) However, that would also mean that I could not introduce them to cool stuff which can be done using VTK ... Hope that gives some (convincing?) arguments in favor of Python 3 support. Now, some thoughts on the conversion: Maybe there is a bit of a hen-and-egg problem: as long as the conversion of the wrapper has not been done, the conversion of the examples and tests might seem not meaningful. But maybe the examples and tests could be converted already now so that they would run both under python 2 and (in principle also) python 3. For our small projects I have made good experiences with such an approach by manually converting "problematic" statements. (E.g. including some from __future import division, print_function, absolute_import and doing the necessary changes to the usage of divisions and print a lot of code already runs fine on both python 2 and python 3. A tool which could also help might be pylint: In a recent version it recieved the option --py3k so that pylint --py3k algorithms.py lists all problematic lines. So with this one could go over all .py files and convert them such that they should still work on python 2 (which can be tested) and also python 3 (which can only be tested once the wrapper has been converted). To me it seems that 1) and 2) require in-depth technical skills while 3) would be mainly man-power (working through the .py files according to some to-be-discussed rules). David, Is it necessary that 1) and 2) are tackled by you, or do you think that this would be feasable as a GSoC project? Concerning 3): I would be willing to spend some time to help in the conversion - maybe I can also get some money for a student to help. So as you can see, I am very much in favour of seeing a python 3 capable VTK as soon as possible ... ;-) Best, Arnd > On Thu, Mar 5, 2015 at 9:34 AM, Tarc?sio Fischer wrote: > I saw that we now have vtk6.2.0, I was just wondering... How is python3 support going? How far are we > from full python3 support? > > Thanks. > > > > From leonid_dulman at yahoo.co.uk Fri Mar 6 06:07:33 2015 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Fri, 6 Mar 2015 11:07:33 +0000 (UTC) Subject: [vtkusers] VTK 6.2.0 qtgraphicsview example Message-ID: <121905983.6747701.1425640053642.JavaMail.yahoo@mail.yahoo.com> I built VTK 6.2.0 with Qt 5.40 in windows and have problems with qtgraphicsview exampleMay be it's only my bult . Somebody tested this example ?Thank you. Leonid\ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Mar 6 09:42:57 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 6 Mar 2015 09:42:57 -0500 Subject: [vtkusers] VTK 6.2 and the vtkMFCWindow In-Reply-To: <46CB11F12B9DC24D860D4082451B318A14F2DAFD@exchange3.microbrightfield.com> References: <46CB11F12B9DC24D860D4082451B318A14F2DAFD@exchange3.microbrightfield.com> Message-ID: Ah thanks. Please file a bug report for it to remind us (mostly Ken really) to get it fixed before the next release. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Mar 5, 2015 at 1:05 PM, Doug Hoppes wrote: > Hi, > > > > Just wanted to let you guys know. We?ve set the flags for > the OpenGL2 image display and we?ve found that, in vtkMFCWindow.cxx, we had > to replace vtkWin32RenderWindowInteractor with > vtkWin32OpenGLRenderWindowInteractor. This fixes the following error in > the build: > > > > ..\..\..\VTK-6.2.0\GUISupport\MFC\vtkMFCWindow.cpp(37) : fatal error > C1083: Cannot open include file: 'vtkWin32RenderWindowInteractor.h': No > such file or directory > > > > Doug > > > > *Doug Hoppes I *Senior Software Engineer* I* [image: > cid:image007.png at 01CEF686.037AE7C0] > > > > T: 802-288-9290 E: dhoppes at mbfbioscience.com > > > > *MBF Bioscience* > > 185 Allen Brook Lane > > Williston, VT 05495 USA > > www.mbfbioscience.com > > http://www.mbfbioscience.com/blog > > > > [image: cid:image008.png at 01CEF686.037AE7C0] > [image: > cid:image011.png at 01CEF686.037AE7C0] > [image: > cid:image012.png at 01CEF686.037AE7C0] > [image: cid:image014.png at 01CEF686.037AE7C0] > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 1170 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2645 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 927 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 870 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 787 bytes Desc: not available URL: From dave.demarle at kitware.com Fri Mar 6 13:29:52 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 6 Mar 2015 13:29:52 -0500 Subject: [vtkusers] Applying post-processing shader In-Reply-To: <1425581520790-5730683.post@n5.nabble.com> References: <1425581520790-5730683.post@n5.nabble.com> Message-ID: You could do the window2image (external) route. Something like render to back buffer grab rgb(z?) from window apply your operation to pixels replace back buffer swap could work. I think that the multi pass rendering framework (internal) route though will probably be better though once you wrap your head around it. For details see: http://www.vtk.org/Wiki/VTK/MultiPass_Rendering David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Mar 5, 2015 at 1:52 PM, WeltMarco wrote: > Hi all, > i'm currently working on a project in which i need to apply a > post-processing shader to a rendered scene (in particular it is a barrel > distortion shader). > > The problem is, by applying the shader on the actor's vtkProperty i can > only > intervene on the actor's model (for example a shader that paints everything > red, will only make the actor red) but i need it to intervene on the scene > already rendered (so if i apply the same red shader, it will turn > everything > red). > > I was thinking of extracting an Actor2D by going through the WindowToImage > filter, but there is nothing about shaders on the vtkProperty2D. > Is there a way to do this in VTK? > > Thank you in advance for your help > Marco > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Applying-post-processing-shader-tp5730683.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.fahlgren at smith-nephew.com Fri Mar 6 13:44:54 2015 From: eric.fahlgren at smith-nephew.com (Fahlgren, Eric) Date: Fri, 6 Mar 2015 18:44:54 +0000 Subject: [vtkusers] VTK Python3 support Message-ID: We'd really love to be using Py3, it's got all sorts of improvements over Py2 and more are released every few months. Almost all of our application tools (wxPython, scipy, numpy, py2exec, to name the big ones) now have support in Py3, and VTK is the exception. We've made sure our source is pretty much Py3 compliant and we're ready to do the final port as soon as vtk is finally updated... From leonid_dulman at yahoo.co.uk Fri Mar 6 14:18:32 2015 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Fri, 6 Mar 2015 19:18:32 +0000 (UTC) Subject: [vtkusers] VTK-6.2.0 compilation problems in Debian 7 Message-ID: <1080409827.7238993.1425669512147.JavaMail.yahoo@mail.yahoo.com> I tried to build VTK-6.2.0 in Debian 7.2 and have got next error Linking CXX shared library ../../lib/libvtkWrappingPython27Core-6.2.so /usr/bin/ld: /usr/local/lib/python2.7/config/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/python2.7/config/libpython2.7.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [lib/libvtkWrappingPython27Core-6.2.so.1] Error 1 make[1]: *** [Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2 make: *** [all] Error 2 ?I include -fPIC into linked flags, but no solved the problem -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.brett at gmail.com Fri Mar 6 16:00:38 2015 From: matthew.brett at gmail.com (Matthew Brett) Date: Fri, 6 Mar 2015 13:00:38 -0800 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: Hi, On Thu, Mar 5, 2015 at 9:21 AM, David Gobbi wrote: > As far as I'm aware, python 3 support hasn't moved forward since the last > time it came up on the list. I think that, for too many of us, python is > python and python2 is available on every machine we use. > > Issues: > 1) VTK wrapping still uses old-style classes. I've been meaning to fix > this. > 2) Basic compile issues and cross-compatibility for py3 and py2 - we > received a patch that fixes some of these issues. > 3) Conversion of examples and tests to py3... this is a biggie! Lots of > community help required. > > Overall, I've just been waiting for py3k to become dominant... but python2 > is still the default python on OS X and on most of the linux systems that I > use. My guess is that Kitware is in the same position. The demand for py3k > support just doesn't seem to be there yet, even after all these years. It's true that the default system Python, used for legacy system scripts, tends to be Python 2. OSX is typical - in that it's system Python is Python 2. On the other hand, I suspect that not many scientific Python users are using OSX system Python - see https://github.com/MacPython/wiki/wiki/Which-Python . Linux users can and do install Python 3 with `apt-get install python3' or similar. Python 3 will soon be the default on Fedora [1], and packages will be dropped from the default install if they do not support Python 3 [2]. As others have said, VTK is the last of the big scientific packages that I know of that does not to have a Python 3 port. Among those that do: numpy scipy matplotlib ipython cython scikit-image scikit-learn statsmodels h5py pandas pyqt .... I am teaching Python to scientists these days, and a large and (obviously) increasing number of tutorials now assume Python 3. I don't know the relative proportions of 2 and 3 users but this page: https://sourceforge.net/projects/numpy/files/NumPy/1.9.2/ suggests that, for numpy windows users, the proportion of Python 3 users is about 40%, Cheers, Matthew [1] http://fedoraproject.org/wiki/Changes/Python_3_as_Default [2] https://bugzilla.redhat.com/show_bug.cgi?id=1014209 From yurikhot at gmail.com Fri Mar 6 18:12:04 2015 From: yurikhot at gmail.com (Yuri Khotyaintsev) Date: Sat, 7 Mar 2015 00:12:04 +0100 Subject: [vtkusers] vtkJoglCanvasComponent Message-ID: Hello! I am running a simple java example using vtkJoglCanvasComponent and get the exception below. What can be the problem? Commenting out line 49 in vtkAbstractJoglComponent.java removes the exception, however I am not sure things will work properly after this... This is using VTK 6.2 and java 1.8 on Mac. /yuri Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I on thread AWT-EventQueue-0 at javax.media.opengl.GLException.newGLException(GLException.java:75) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131) at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394) at javax.media.opengl.Threading.invoke(Threading.java:223) at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525) at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579) at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264) at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:59) at sun.awt.RepaintArea.paint(RepaintArea.java:240) at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1314) at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1198) at java.awt.Component.dispatchEventImpl(Component.java:4957) at java.awt.Component.dispatchEvent(Component.java:4703) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:702) at java.awt.EventQueue$3.run(EventQueue.java:696) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:724) at java.awt.EventQueue$4.run(EventQueue.java:722) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:721) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.lang.NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I at vtk.rendering.jogl.vtkAbstractJoglComponent$1.init(vtkAbstractJoglComponent.java:49) at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640) at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662) at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275) ... 30 more -- Dr. Yuri Khotyaintsev Institutet f?r rymdfysik (IRF), Uppsala -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Fri Mar 6 18:21:50 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 6 Mar 2015 16:21:50 -0700 Subject: [vtkusers] vtkJoglCanvasComponent In-Reply-To: References: Message-ID: You may have some resize issue. Wondering why that method is not there anymore? (As it was working before ;-) Can you investigate what could be the correct way to get the width of the canvas? Thanks, Seb On Fri, Mar 6, 2015 at 4:12 PM, Yuri Khotyaintsev wrote: > Hello! > > I am running a simple java example using vtkJoglCanvasComponent and get > the exception below. What can be the problem? > > Commenting out line 49 in vtkAbstractJoglComponent.java removes the > exception, however I am not sure things will work properly after this... > This is using VTK 6.2 and java 1.8 on Mac. > > /yuri > > > Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: > Caught NoSuchMethodError: javax.media.opengl.GLAutoDrawable.getWidth()I on > thread AWT-EventQueue-0 > at javax.media.opengl.GLException.newGLException(GLException.java:75) > at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311) > at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131) > at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394) > at javax.media.opengl.Threading.invoke(Threading.java:223) > at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525) > at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579) > at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264) > at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:59) > at sun.awt.RepaintArea.paint(RepaintArea.java:240) > at > sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1314) > at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1198) > at java.awt.Component.dispatchEventImpl(Component.java:4957) > at java.awt.Component.dispatchEvent(Component.java:4703) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751) > at java.awt.EventQueue.access$500(EventQueue.java:97) > at java.awt.EventQueue$3.run(EventQueue.java:702) > at java.awt.EventQueue$3.run(EventQueue.java:696) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) > at java.awt.EventQueue$4.run(EventQueue.java:724) > at java.awt.EventQueue$4.run(EventQueue.java:722) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:721) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) > Caused by: java.lang.NoSuchMethodError: > javax.media.opengl.GLAutoDrawable.getWidth()I > at > vtk.rendering.jogl.vtkAbstractJoglComponent$1.init(vtkAbstractJoglComponent.java:49) > at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:640) > at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:662) > at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1366) > at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1275) > ... 30 more > > -- > Dr. Yuri Khotyaintsev > Institutet f?r rymdfysik (IRF), Uppsala > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From godimarcovr at gmail.com Sat Mar 7 14:31:03 2015 From: godimarcovr at gmail.com (WeltMarco) Date: Sat, 7 Mar 2015 12:31:03 -0700 (MST) Subject: [vtkusers] Applying post-processing shader In-Reply-To: References: <1425581520790-5730683.post@n5.nabble.com> Message-ID: <1425756663029-5730712.post@n5.nabble.com> I tried the WindowToImage approach and it isn't fast enough (but maybe i placed the Modified call in a bad place) The multipass approach looks more promising, i tried the preexisting Gaussian Blur and it seems to work fast, looks like i will have to figure out what happens in there. Thank you for your answer -- View this message in context: http://vtk.1045678.n5.nabble.com/Applying-post-processing-shader-tp5730683p5730712.html Sent from the VTK - Users mailing list archive at Nabble.com. From shenyeh_chen at hotmail.com Sun Mar 8 13:04:03 2015 From: shenyeh_chen at hotmail.com (Shen-Yeh Chen) Date: Sun, 8 Mar 2015 10:04:03 -0700 Subject: [vtkusers] 3D charting with tcl Message-ID: Greetings all, I am trying to see if I can create some 3D chart with vtk. Searching through the web I saw this article http://www.kitware.com/blog/home/post/413 This is one of the things that I am looking for. However the example is in .cxx Is there a tcl example for this ? Or can I even do this in Tcl ? Any help will be greatly appreciated. Regards S-Y. Chen -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.j.redmond at gmail.com Sun Mar 8 15:36:28 2015 From: michael.j.redmond at gmail.com (redmod79) Date: Sun, 8 Mar 2015 12:36:28 -0700 (MST) Subject: [vtkusers] vtkCompositeRenderManager - line streaks Message-ID: <1425843388891-5730714.post@n5.nabble.com> I'm trying to use vtkCompositeRenderManager for parallel rendering large finite element models. When using it, there's many line streaks going across the screen on the node 0 window. It also clips part of the dataset when rotating. This is especially apparent when depth = 1 for create_ugrid. I'm using vtk 6.2.0.rc1 with Windows 8.1. A simplified version of the code is shown below. ############## import vtk import sys def create_ugrid(depth): points = vtk.vtkPoints() id = 0 ugrid = vtk.vtkUnstructuredGrid() for count in xrange(depth): point_ids = [0]*10 for i in xrange(10): point_ids[i] = [0]*10 for j in xrange(10): points.InsertNextPoint((i, j, count)) point_ids[i][j] = id id += 1 for i in xrange(ugrid.GetNumberOfPoints()): vert = vtk.vtkVertex() ids = vert.GetPointIds() ids.SetId(0, i) ugrid.InsertNextCell(vert.GetCellType(), ids) for i in xrange(9): for j in xrange(9): quad = vtk.vtkQuad() ids = quad.GetPointIds() ids.SetId(0, point_ids[i][j]) ids.SetId(1, point_ids[i+1][j]) ids.SetId(2, point_ids[i+1][j+1]) ids.SetId(3, point_ids[i][j+1]) ugrid.InsertNextCell(quad.GetCellType(), ids) ugrid.SetPoints(points) return ugrid compManager = vtk.vtkCompositeRenderManager() if compManager.GetController(): myProcId = compManager.GetController().GetLocalProcessId() numProcs = compManager.GetController().GetNumberOfProcesses() transmitter = vtk.vtkTransmitUnstructuredGridPiece() transmitter.SetController(compManager.GetController()) controller = compManager.GetController() if myProcId == 0: data = create_ugrid(3) else: data = vtk.vtkUnstructuredGrid() transmitter.SetInputData(data) transmitter.UpdateInformation() transmitter.SetUpdateExtent(myProcId, numProcs, 0) transmitter.Modified() transmitter.Update() geom_filter = vtk.vtkGeometryFilter() geom_filter.SetInputConnection(transmitter.GetOutputPort()) geom_filter.Modified() geom_filter.Update() # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) renWin.SetSize(300,300) # create an actor and give it cone geometry mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(geom_filter.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().EdgeVisibilityOn() # assign our actor to the renderer ren.AddActor(actor) ren.SetBackground((0.25, 0.5, 0.25)) renWin.SetWindowName("I am node %d" % myProcId) if numProcs > 0: compManager.SetRenderWindow(renWin) compManager.InitializePieces() #compManager.InitializeOffScreen() mapper.Update() def ExitMaster(a, b): #print "ExitMaster; I am %d / %d" % ( myProcId, numProcs ) if numProcs > 1 and myProcId == 0: #print "Trigger exit RMI on all satellite nodes" for a in range(1, numProcs): #print "Trigger exit in satellite node %d" % a contr = compManager.GetController() contr.TriggerRMI(a, contr.GetBreakRMITag()) if myProcId == 0: iren = vtk.vtkRenderWindowInteractor() iren.SetInteractorStyle(vtk.vtkInteractorStyleRubberBandPick()) iren.SetRenderWindow(renWin) iren.AddObserver("ExitEvent", ExitMaster) iren.Initialize() iren.Start() #renWin.Render() #renWin.Render() #renWin.Render() else: compManager.InitializeRMIs() compManager.GetController().ProcessRMIs() compManager.GetController().Finalize() #print "**********************************" #print "Done on the slave node" #print "**********************************" sys.exit() ExitMaster(0, 0) ############# -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkCompositeRenderManager-line-streaks-tp5730714.html Sent from the VTK - Users mailing list archive at Nabble.com. From bo.berglund at gmail.com Mon Mar 9 03:55:38 2015 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 09 Mar 2015 08:55:38 +0100 Subject: [vtkusers] Is there a vtkBorlandRenderWindowPkg project file for VTK 5.0 in RAD Studio XE5? Message-ID: <3tjqfa9r1rvi6c5vh84g5e6kqeq7cfeh7i@4ax.com> I am upgrading a data visualization application developed with Borland BDS2006 to a more recent version of the IDE (RAD Studio XE5) because I need to support Unicode for internationalization. The application is developed using VTK 5.0.2 and uses the rendering component defined by vtkBorlandRenderWindowPkg. I have successfully used CMake and the sources (same as was used earlier) to build the library binaries using the XE5 compiler for Win32. So now I "only" need to build and install the rendering package into C++Builder XE5. But there is no cbproj file in the VTK source tree to use so I have tried to let XE5 convert the working bdsproj file for the package in BDS2006. Unfortunately I am getting a number of linker errors relating to the VTKCOMMON.LIB file, which I d ont understand and cannot solve by myself. So I am wondering if there is a more recent package project file I can use to install the rendering component in XE5. Note: I am not a C++ developer myself, I have used Delphi (ObjectPascal) exclusively for almost 20 years. So I am not familiar with the C++ constructs etc. Any help on installing the rendering component in XE5 is appreciated. -- Bo Berglund Developer in Sweden From alok.theanomaly at gmail.com Mon Mar 9 16:25:17 2015 From: alok.theanomaly at gmail.com (junior) Date: Mon, 9 Mar 2015 13:25:17 -0700 (MST) Subject: [vtkusers] Bugs in vtkAngleWidget (Disabling handle translation) In-Reply-To: <1422302310859-5730230.post@n5.nabble.com> References: <1422302310859-5730230.post@n5.nabble.com> Message-ID: <1425932717720-5730717.post@n5.nabble.com> Hi everyone, I have not been able to find the bugs in this widget. Any pointers on where to start looking will be very helpful Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Bugs-in-vtkAngleWidget-tp5730230p5730717.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.somogyi at gmail.com Mon Mar 9 21:53:10 2015 From: andy.somogyi at gmail.com (Andy Somogyi) Date: Mon, 9 Mar 2015 21:53:10 -0400 Subject: [vtkusers] Building Cocoa example on OSX Message-ID: Hi All, This question has been asked before, but I?ve not seen any resolution. I?m trying the build a Cocoa example on OSX 10.9, and I get the Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_vtkCocoaGLView", referenced from: _OBJC_CLASS_$_BasicVTKView in BasicVTKView.o "_OBJC_METACLASS_$_vtkCocoaGLView", referenced from: _OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o This is trying to build agains VTK 6.1 from brew with Cocoa enabled, the libvtkRenderingOpenGL clearly has the symbols: nm libvtkRenderingOpenGL-6.1.dylib | grep _vtkCocoaGLView 0000000000167258 s _OBJC_CLASS_$_vtkCocoaGLView 0000000000167158 s _OBJC_IVAR_$_vtkCocoaGLView._myVTKRenderWindow 0000000000167150 s _OBJC_IVAR_$_vtkCocoaGLView._rolloverTrackingRectSet 0000000000167160 s _OBJC_IVAR_$_vtkCocoaGLView._rolloverTrackingRectTag 0000000000167280 s _OBJC_METACLASS_$_vtkCocoaGLView I?ve tried moving the libvtkRenderOpenGL lib to the beginning, middle and end of the linker options, and no luck, here is the exact linker command Xcode is giving: Ld /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug/PdeTest.app/Contents/MacOS/PdeTest normal x86_64 cd /Users/andy/src/PdeTest export MACOSX_DEPLOYMENT_TARGET=10.9 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug -L/usr/local/lib -F/Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug -filelist /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Intermediates/PdeTest.build/Debug/PdeTest.build/Objects-normal/x86_64/PdeTest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/../Frameworks -mmacosx-version-min=10.9 -stdlib=libc++ -fobjc-link-runtime -framework Cocoa -framework OpenGL -framework IOKit -lvtkCommonCore-6.1 -lvtkCommonDataModel-6.1 -lvtkCommonExecutionModel-6.1 -lvtkCommonMath-6.1 -lvtkCommonMisc-6.1 -lvtkCommonSystem-6.1 -lvtkCommonTransforms-6.1 -lvtkFiltersCore-6.1 -lvtkFiltersExtraction-6.1 -lvtkFiltersGeneral-6.1 -lvtkFiltersGeometry-6.1 -lvtkFiltersSources-6.1 -lvtkImagingCore-6.1 -lvtkImagingMorphological-6.1 -lvtkImagingStencil-6.1 -lvtkInteractionImage-6.1 -lvtkInteractionStyle-6.1 -lvtkIOCore-6.1 -lvtkIOGeometry-6.1 -lvtkIOImage-6.1 -lvtkIOXML-6.1 -lvtkIOXMLParser-6.1 -lvtkRenderingCore-6.1 -lvtkRenderingFreeType-6.1 -lvtkRenderingFreeTypeOpenGL-6.1 -lvtksys-6.1 -lvtkRenderingOpenGL-6.1 -Xlinker -dependency_info -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Intermediates/PdeTest.build/Debug/PdeTest.build/Objects-normal/x86_64/PdeTest_dependency_info.dat -o /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug/PdeTest.app/Contents/MacOS/PdeTest Everything else links perfectly find, except for these two symbols. Anybody have any ideas? thanks From andy.somogyi at gmail.com Tue Mar 10 01:37:27 2015 From: andy.somogyi at gmail.com (Andy Somogyi) Date: Tue, 10 Mar 2015 01:37:27 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: References: Message-ID: <3D34F369-588F-4194-964F-DD98CF4F0113@gmail.com> Well, looks like if I build VTK as all static libraries, it works. So, this raises the question, why do I get the two missing symbols when I try to link to the dynamic libs? On Mar 9, 2015, at 9:53 PM, Andy Somogyi wrote: > Hi All, > > This question has been asked before, but I?ve not seen any resolution. > > I?m trying the build a Cocoa example on OSX 10.9, and I get the Undefined symbols for architecture x86_64: > > "_OBJC_CLASS_$_vtkCocoaGLView", referenced from: > _OBJC_CLASS_$_BasicVTKView in BasicVTKView.o > "_OBJC_METACLASS_$_vtkCocoaGLView", referenced from: > _OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o > > This is trying to build agains VTK 6.1 from brew with Cocoa enabled, the libvtkRenderingOpenGL clearly has the symbols: > > nm libvtkRenderingOpenGL-6.1.dylib | grep _vtkCocoaGLView > 0000000000167258 s _OBJC_CLASS_$_vtkCocoaGLView > 0000000000167158 s _OBJC_IVAR_$_vtkCocoaGLView._myVTKRenderWindow > 0000000000167150 s _OBJC_IVAR_$_vtkCocoaGLView._rolloverTrackingRectSet > 0000000000167160 s _OBJC_IVAR_$_vtkCocoaGLView._rolloverTrackingRectTag > 0000000000167280 s _OBJC_METACLASS_$_vtkCocoaGLView > > I?ve tried moving the libvtkRenderOpenGL lib to the beginning, middle and end of the linker options, and no luck, here is the exact linker command Xcode is giving: > > Ld /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug/PdeTest.app/Contents/MacOS/PdeTest normal x86_64 > cd /Users/andy/src/PdeTest > export MACOSX_DEPLOYMENT_TARGET=10.9 > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug -L/usr/local/lib -F/Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug -filelist /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Intermediates/PdeTest.build/Debug/PdeTest.build/Objects-normal/x86_64/PdeTest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/../Frameworks -mmacosx-version-min=10.9 -stdlib=libc++ -fobjc-link-runtime -framework Cocoa -framework OpenGL -framework IOKit -lvtkCommonCore-6.1 -lvtkCommonDataModel-6.1 -lvtkCommonExecutionModel-6.1 -lvtkCommonMath-6.1 -lvtkCommonMisc-6.1 -lvtkCommonSystem-6.1 -lvtkCommonTransforms-6.1 -lvtkFiltersCore-6.1 -lvtkFiltersExtraction-6.1 -lvtkFiltersGeneral-6.1 -lvtkFiltersGeometry-6.1 -lvtkFiltersSources-6.1 -lvtkImagingCore-6.1 -lvtkImagingMorphological-6.1 -lvtkImagingStencil-6.1 -lvtkInteractionImage-6.1 -lvtkInteractionStyle-6.1 -lvtkIOCore-6.1 -lvtkIOGeometry-6.1 -lvtkIOImage-6.1 -lvtkIOXML-6.1 -lvtkIOXMLParser-6.1 -lvtkRenderingCore-6.1 -lvtkRenderingFreeType-6.1 -lvtkRenderingFreeTypeOpenGL-6.1 -lvtksys-6.1 -lvtkRenderingOpenGL-6.1 -Xlinker -dependency_info -Xlinker /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Intermediates/PdeTest.build/Debug/PdeTest.build/Objects-normal/x86_64/PdeTest_dependency_info.dat -o /Users/andy/Library/Developer/Xcode/DerivedData/PdeTest-fthagvebqwkozjglphoryxejazbu/Build/Products/Debug/PdeTest.app/Contents/MacOS/PdeTest > > Everything else links perfectly find, except for these two symbols. > > Anybody have any ideas? > > thanks From lihuang55555 at gmail.com Tue Mar 10 03:38:05 2015 From: lihuang55555 at gmail.com (Huang Li) Date: Tue, 10 Mar 2015 03:38:05 -0400 Subject: [vtkusers] Bezier Curve in VTK 6.2.0 Message-ID: Hi all, I am try to draw a 3D bezier curve by specifying 4 control points in VTK 6.2.0. ( just like the demo here http://blogs.sitepointstatic.com/examples/tech/canvas-curves/bezier-curve.html ) But I can't find any data source class to generate a vtkPolyData by specifying bezier control points. Is there a such class in VTK? The closest ones I can find are vtkParametricSpline and vtkParametricFunctionSource, but I still can't figure out how to draw a bezier curve using these class. I would very much appreciate any guidance or advice. Best, -- Huang Li Graduate Student -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.baecker at web.de Tue Mar 10 03:45:42 2015 From: arnd.baecker at web.de (Arnd Baecker) Date: Tue, 10 Mar 2015 08:45:42 +0100 (CET) Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: As a follow-up concerning the conversion of the .py files: I have run the current 6.2 release through pylint with --py3k option. Excluding everything from the ThirdParty directory (which for example contains Twisted 14.0.0 which is not yet ported to Python 3) this is only approx 780 python files. One gets a total of 3130 violations spread over 745 files. Out of these there are: - 2325 violations W1618 (missing `from __future__ import absolute_import`) Adding this line actually might not be necessary, it just indicates that this behaviour is the default on python 3. - 552 violations E1601 print statement. This can be easily solved using from __future__ import print_function and converting all print-statements to print(...) - 53 violations E1604 syntax change in raise So this leaves some further 200 violations spread over 72 files. These have to be looked at individually. Several warn about the change in division (which can be solved using ``from __future__ import division`` and using // instead of the current usage of /. Overall that part seems doable with reasonable effort (But maybe I am seeing things too optimistic or I am overlooking something ...). In the end this would mean that all examples and tests could (in principle) be run both on python 2 and python 3 without any further code changes. Moreover, ThirdParty already contains SixPython which could be used if there are changes like range vs. xrange etc. Are there automatic tests runs a) for the python code? b) to determine code-coverage for VTK (including the python side)? This would help to prevent any regression during the above steps. Concerning the first two points of David: > 1) VTK wrapping still uses old-style classes.? I've been meaning to fix this. > 2) Basic compile issues and cross-compatibility for py3 and py2 - > we received a patch that fixes some of these issues. I have no clue how much work this is... Best, Arnd From greenb3ret at gmail.com Tue Mar 10 04:46:49 2015 From: greenb3ret at gmail.com (Benjamin Hopfer) Date: Tue, 10 Mar 2015 16:46:49 +0800 Subject: [vtkusers] Weird render bug with depth peeling and background texture Message-ID: I have a very weird problem with the render window. It only occurs if: - vtkRenderer was set to display a background texture at least once since program start - The background texture has a transformation (scaling for repeat) - Depth peeling is enabled - At least one transparent actor is displayed. I'm pretty sure this is a bug, but I wanted to get your insight first, before reporting it. I attached a minimal working example below. You can use any png file for texture.png. I used a 2x2 pixel PNG with (0,0) and (1,1) black and the other two white (checker board). I have uploaded the output of the code: http://imgur.com/a/olUW2 - The first image is the "expected" outcome, which I retrieved by disabling depth peeling ("renderer->SetUseDepthPeeling(1);" is commeted out) - The second image is the outcome after running the example below unchanged - The third image shows what happens if zooming is done. Basically, the scene is restricted to the left lower part. It seems like the transformation of the texture is somehow also applied to the render window? Any insights on this? (Im running vtk 6 on Windows 8.1) Kind Regards, Benjamin 8<--------------------------- Minimal example ----------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char** argv) { // Any texture will work. I use a 2 by 2 pixel checkerboard pattern vtkNew pngReader; pngReader->SetFileName("texture.png"); pngReader->Update(); // Setting up the texture // IMPORTANT: Without a transformation on the texture, the bug will not occur. // (You can turn of texture repeating, but I transform to have a repeating texture) vtkNew texture; texture->SetInputConnection(pngReader->GetOutputPort()); texture->SetRepeat(true); vtkNew trans; trans->Scale(2.0, 3.0, 1.0); texture->SetTransform(trans.Get()); // Adding a transparent cone. Any geometry will work. // IMPORTANT: If the geometry is not transparent, the bug will not occur vtkNew coneSrc; vtkNew coneMapper; coneMapper->SetInputConnection(coneSrc->GetOutputPort()); vtkNew coneActor; coneActor->SetMapper(coneMapper.Get()); coneActor->GetProperty()->SetOpacity(0.5); // Create the renderer // IMPORTANT: If depth peeling is not enabled, the bug will not occur. vtkNew renderer; renderer->SetUseDepthPeeling(1); renderer->TexturedBackgroundOn(); renderer->SetBackgroundTexture(texture.Get()); renderer->AddActor(coneActor.Get()); // Create the render window // IMPORTANT: If AlphaBitPlanes is off, the bug will not occur. (But no depth peeling either). vtkNew renderWindow; renderWindow->AlphaBitPlanesOn(); renderWindow->AddRenderer(renderer.Get()); // Create the interactor and start up vtkNew renderInteract; renderInteract->SetRenderWindow(renderWindow.Get()); renderWindow->Render(); renderInteract->Start(); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Tue Mar 10 06:53:18 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Tue, 10 Mar 2015 03:53:18 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> Message-ID: <1425984798312-5730723.post@n5.nabble.com> I try it again. Unfortunately I have received no info from the GDCM community. I don't know where I can add the variable. Now I'm trying to vtk-dicom. Is there a simple example to write an STL object in the DICOM format? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730723.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Tue Mar 10 07:55:02 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 10 Mar 2015 07:55:02 -0400 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: Hi Arnd, Your assessment sounds in the right ballpark. I don't foresee more issues. In fact, most of the Python code in VTK is in the testing suite. I'd hope that any errors there would be caught easily. The huge majority of non-testing Python code is in Wrapping/Python/vtk, which is something like 40 files. I volunteer taking care of most of those files. I am pretty sure that we can find volunteers to fix the tests. So upgrading the Python files is really not that hard. Wrapping is the main challenge. Best, -berk On Tue, Mar 10, 2015 at 3:45 AM, Arnd Baecker wrote: > As a follow-up concerning the conversion of the .py files: > I have run the current 6.2 release through pylint > with --py3k option. > > Excluding everything from the ThirdParty directory > (which for example contains Twisted 14.0.0 which > is not yet ported to Python 3) > this is only approx 780 python files. > > One gets a total of 3130 violations spread over 745 files. > > Out of these there are: > - 2325 violations W1618 > (missing `from __future__ import absolute_import`) > Adding this line actually might not be necessary, it just indicates > that this behaviour is the default on python 3. > - 552 violations E1601 > print statement. > This can be easily solved using > from __future__ import print_function > and converting all print-statements to print(...) > - 53 violations E1604 > syntax change in raise > > So this leaves some further 200 violations spread over 72 files. > These have to be looked at individually. > Several warn about the change in division > (which can be solved using ``from __future__ import division`` > and using // instead of the current usage of /. > > Overall that part seems doable with reasonable effort > (But maybe I am seeing things too optimistic > or I am overlooking something ...). > In the end this would mean that all examples and tests > could (in principle) be run both on python 2 and python 3 > without any further code changes. > Moreover, ThirdParty already contains SixPython > which could be used if there are changes like range vs. xrange etc. > > Are there automatic tests runs > a) for the python code? > b) to determine code-coverage for VTK > (including the python side)? > This would help to prevent any regression > during the above steps. > > Concerning the first two points of David: > >> 1) VTK wrapping still uses old-style classes. I've been meaning to fix >> this. >> 2) Basic compile issues and cross-compatibility for py3 and py2 - >> we received a patch that fixes some of these issues. >> > I have no clue how much work this is... > > Best, Arnd > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Mar 10 08:52:47 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 10 Mar 2015 06:52:47 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1425984798312-5730723.post@n5.nabble.com> References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> Message-ID: Hi Daniel, There isn't any support for surface segmentation objects in vtk-dicom. It is only able to generate DICOM data sets for images. - David On Tue, Mar 10, 2015 at 4:53 AM, -Daniel- wrote: > I try it again. > > Unfortunately I have received no info from the GDCM community. I don't know > where I can add the variable. > Now I'm trying to vtk-dicom. > Is there a simple example to write an STL object in the DICOM format? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Tue Mar 10 08:53:40 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Tue, 10 Mar 2015 12:53:40 +0000 Subject: [vtkusers] how to join triangles into a smooth surface Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2E014@exchange3.microbrightfield.com> Hey all, I have two cylinders that are joined at a 60 degree angle from each other. Ideally, I would love for the actors to join seamlessly as one surface. Essentially, I'm looking for a way to do it that looks like a metanurb or nurb surface or a really smooth isosurface. Is there a way to do this? Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Mar 10 09:37:42 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 10 Mar 2015 07:37:42 -0600 Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: Hi All, I think that it is a very good point that py3k support is needed in order for vtk-python to move forward as a teaching tool for new students. We're actually very lucky that the scientific computing community has decided to stick with python, because moving to a whole new language would be _really_ tough. As far as the wrappers go, currently the C++ PyVTKClass and PyVTKObject extension types provide an old-style (python 1.5) metaclass mechanism. Moving forward, each VTK class can be its own extension type... I looked at the wrapper code over the weekend, and it's a few days' work that I can probably get done sometime in May or June. After that, the wrappers will have to be modified to handle the changes that py3k made to PyInt and PyLong, and then all the necessary #ifdefs will have to be added so that both py2 and py3k versions of the wrappers will compile. Fortunately, VTK has an abundance of python tests, including many tests in Common/Core/Testing/Python for special features of the wrappers. So I don't think we're likely to break anything (e.g. numpy support) in the transition. - David On Tue, Mar 10, 2015 at 5:55 AM, Berk Geveci wrote: > Hi Arnd, > > Your assessment sounds in the right ballpark. I don't foresee more issues. > In fact, most of the Python code in VTK is in the testing suite. I'd hope > that any errors there would be caught easily. The huge majority of > non-testing Python code is in Wrapping/Python/vtk, which is something like > 40 files. I volunteer taking care of most of those files. I am pretty sure > that we can find volunteers to fix the tests. So upgrading the Python files > is really not that hard. Wrapping is the main challenge. > > Best, > -berk > > > On Tue, Mar 10, 2015 at 3:45 AM, Arnd Baecker wrote: > >> As a follow-up concerning the conversion of the .py files: >> I have run the current 6.2 release through pylint >> with --py3k option. >> >> Excluding everything from the ThirdParty directory >> (which for example contains Twisted 14.0.0 which >> is not yet ported to Python 3) >> this is only approx 780 python files. >> >> One gets a total of 3130 violations spread over 745 files. >> >> Out of these there are: >> - 2325 violations W1618 >> (missing `from __future__ import absolute_import`) >> Adding this line actually might not be necessary, it just indicates >> that this behaviour is the default on python 3. >> - 552 violations E1601 >> print statement. >> This can be easily solved using >> from __future__ import print_function >> and converting all print-statements to print(...) >> - 53 violations E1604 >> syntax change in raise >> >> So this leaves some further 200 violations spread over 72 files. >> These have to be looked at individually. >> Several warn about the change in division >> (which can be solved using ``from __future__ import division`` >> and using // instead of the current usage of /. >> >> Overall that part seems doable with reasonable effort >> (But maybe I am seeing things too optimistic >> or I am overlooking something ...). >> In the end this would mean that all examples and tests >> could (in principle) be run both on python 2 and python 3 >> without any further code changes. >> Moreover, ThirdParty already contains SixPython >> which could be used if there are changes like range vs. xrange etc. >> >> Are there automatic tests runs >> a) for the python code? >> b) to determine code-coverage for VTK >> (including the python side)? >> This would help to prevent any regression >> during the above steps. >> >> Concerning the first two points of David: >> >>> 1) VTK wrapping still uses old-style classes. I've been meaning to fix >>> this. >>> 2) Basic compile issues and cross-compatibility for py3 and py2 - >>> we received a patch that fixes some of these issues. >>> >> I have no clue how much work this is... >> >> Best, Arnd >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Tue Mar 10 10:43:04 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 10 Mar 2015 10:43:04 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: References: Message-ID: <20150310144304.688133837@mail.rogue-research.com> On Mon, 9 Mar 2015 21:53:10 -0400, Andy Somogyi said: >This question has been asked before, but I?ve not seen any resolution. > >I?m trying the build a Cocoa example on OSX 10.9, and I get the >Undefined symbols for architecture x86_64: > >"_OBJC_CLASS_$_vtkCocoaGLView", referenced from: > _OBJC_CLASS_$_BasicVTKView in BasicVTKView.o >"_OBJC_METACLASS_$_vtkCocoaGLView", referenced from: > _OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o The SimpleCocoaVTK example? Are you trying to build it from it's Xcode project or with CMake? In any case, IIRC, it was broken for a while but fixed in git master months ago. Could you try VTK 6.2? 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 da.angulo39 at uniandes.edu.co Tue Mar 10 12:24:08 2015 From: da.angulo39 at uniandes.edu.co (diego0020) Date: Tue, 10 Mar 2015 09:24:08 -0700 (MST) Subject: [vtkusers] VTK Python3 support In-Reply-To: References: Message-ID: <1426004648569-5730729.post@n5.nabble.com> Great news Let us know if we (users )can help with anything, such as translating examples -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Python3-support-tp5730678p5730729.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.somogyi at gmail.com Tue Mar 10 16:15:22 2015 From: andy.somogyi at gmail.com (Andy Somogyi) Date: Tue, 10 Mar 2015 16:15:22 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: <20150310144304.688133837@mail.rogue-research.com> References: <20150310144304.688133837@mail.rogue-research.com> Message-ID: <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> I?m building it now with clang. Note, clang (the only default compiler on OSX) defaults to C++11, and VTK does not appear to build in C++11 mode, so I had to add the -std=c++03 flag, and seems to be building OK. On Mar 10, 2015, at 10:43 AM, Sean McBride wrote: > On Mon, 9 Mar 2015 21:53:10 -0400, Andy Somogyi said: > >> This question has been asked before, but I?ve not seen any resolution. >> >> I?m trying the build a Cocoa example on OSX 10.9, and I get the >> Undefined symbols for architecture x86_64: >> >> "_OBJC_CLASS_$_vtkCocoaGLView", referenced from: >> _OBJC_CLASS_$_BasicVTKView in BasicVTKView.o >> "_OBJC_METACLASS_$_vtkCocoaGLView", referenced from: >> _OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o > > The SimpleCocoaVTK example? Are you trying to build it from it's Xcode project or with CMake? In any case, IIRC, it was broken for a while but fixed in git master months ago. Could you try VTK 6.2? > > 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 Tue Mar 10 16:17:59 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 10 Mar 2015 16:17:59 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> References: <20150310144304.688133837@mail.rogue-research.com> <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> Message-ID: <20150310201759.1623585933@mail.rogue-research.com> On Tue, 10 Mar 2015 16:15:22 -0400, Andy Somogyi said: >I?m building it now with clang. But via SimpleCocoaVTK's Xcode project or by using CMake to generate a makefile? >Note, clang (the only default compiler on OSX) defaults to C++11, and >VTK does not appear to build in C++11 mode, so I had to add the -std=c+ >+03 flag, and seems to be building OK. VTK has built fine as C++11 for a long time... but 6.1 is over a year old, so maybe not that long. I do suggest you update to 6.2. 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 andy.somogyi at gmail.com Tue Mar 10 16:24:40 2015 From: andy.somogyi at gmail.com (Andy Somogyi) Date: Tue, 10 Mar 2015 16:24:40 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: <20150310201759.1623585933@mail.rogue-research.com> References: <20150310144304.688133837@mail.rogue-research.com> <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> <20150310201759.1623585933@mail.rogue-research.com> Message-ID: <7C0B9529-E453-4941-8901-6CD2C994D976@gmail.com> I?m building the release branch from git, which I think is 6.2 I can verify that WITHOUT the -std=c++03 flags, clang will NOT build VTK, there is a very long stream of error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr?? and various other C++11 incompatibilities very early on. I?m building on OS 10.9 with clang++ 6.0 I did try various versions of std=gnu++11 -stdlib=libc++ and -stdlib=libstdc++, none of them would build. On Mar 10, 2015, at 4:17 PM, Sean McBride wrote: > On Tue, 10 Mar 2015 16:15:22 -0400, Andy Somogyi said: > >> I?m building it now with clang. > > But via SimpleCocoaVTK's Xcode project or by using CMake to generate a makefile? > >> Note, clang (the only default compiler on OSX) defaults to C++11, and >> VTK does not appear to build in C++11 mode, so I had to add the -std=c+ >> +03 flag, and seems to be building OK. > > VTK has built fine as C++11 for a long time... but 6.1 is over a year old, so maybe not that long. I do suggest you update to 6.2. > > 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 Tue Mar 10 16:29:33 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 10 Mar 2015 16:29:33 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: <7C0B9529-E453-4941-8901-6CD2C994D976@gmail.com> References: <20150310144304.688133837@mail.rogue-research.com> <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> <20150310201759.1623585933@mail.rogue-research.com> <7C0B9529-E453-4941-8901-6CD2C994D976@gmail.com> Message-ID: <20150310202933.175945766@mail.rogue-research.com> On Tue, 10 Mar 2015 16:24:40 -0400, Andy Somogyi said: >I?m building the release branch from git, which I think is 6.2 >I can verify that WITHOUT the -std=c++03 flags, clang will NOT build >VTK, there is a very long stream of > >error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr?? Can you show the exact/full message? Which file & line is that error reported on? 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 andy.somogyi at gmail.com Tue Mar 10 18:02:26 2015 From: andy.somogyi at gmail.com (Andy Somogyi) Date: Tue, 10 Mar 2015 18:02:26 -0400 Subject: [vtkusers] Building Cocoa example on OSX In-Reply-To: <20150310202933.175945766@mail.rogue-research.com> References: <20150310144304.688133837@mail.rogue-research.com> <2A9A165B-C8C6-410F-A425-10DE85880CC5@gmail.com> <20150310201759.1623585933@mail.rogue-research.com> <7C0B9529-E453-4941-8901-6CD2C994D976@gmail.com> <20150310202933.175945766@mail.rogue-research.com> Message-ID: This is bizarre, it seems to be building in c++11 mode now. Even created a new dir and built from there, and seems to work in C++11 mode. Before, it was failing in Directory.cxx, but I didn?t save previous out log. I probably just had some junk in there from somewhere else, so sorry, never mind, I don?t think there is any c++11 issue. On Mar 10, 2015, at 4:29 PM, Sean McBride wrote: > On Tue, 10 Mar 2015 16:24:40 -0400, Andy Somogyi said: > >> I?m building the release branch from git, which I think is 6.2 > >> I can verify that WITHOUT the -std=c++03 flags, clang will NOT build >> VTK, there is a very long stream of >> >> error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr?? > > Can you show the exact/full message? Which file & line is that error reported on? > > 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 andrew.amaclean at gmail.com Tue Mar 10 18:38:14 2015 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Wed, 11 Mar 2015 09:38:14 +1100 Subject: [vtkusers] VTK Python3 support Message-ID: Let me know if I can help. I have Anaconda Python installed for windows which is great because it includes numpy, scipy etc. One thing Anaconda Python does is that it allows the user to change environments so that python can refer to either python 2.7.8 or python 3.4 depending upon the environment. find_package(PythonInterp 3) find_package(PythonLibs 3) Will not find the 3.4 if your default is 2.7.8. So I guess you will have to set the default path to the 3.4 version. Not a great hardship but worth noting. Anaconda Python can also install in the user's home directory. The VTK version of FindPythonLibs.cmake (which is old) will not pick up the lib and include path in this case. I thought of removing this file entirely and using the CMake one. Is this Ok? In vtkPythonWrapping.cmake there is a plethora (love that word!) of python variables e.g PYTHON_VERSION_MAJOR, PYTHON_VERSION_MINOR from the Cmake version of FindPythonInterp.cmake and PYTHON_MAJOR_VERSION, PYTHON_MINOR_VERSION, PYTHON_MICRO_VERSION from the VTK version of FindPythonLibs.cmake. I believe that that section of code building up to if(NOT ${_interp_version} STREQUAL ${_libs_version}) could be simplified by just comparing PYTHON_VERSION_STRING and PYTHONLIBS_VERSION_STRING. The only issue I see is in Utilities/Python/vtkPythonConfigure.h.in. Given that we have already compared the library and executable version in vtkPythonWrapping.cmake. Would it be safe to use: ./Utilities/Python/vtkPythonConfigure.h.in:#define VTK_PYTHON_VERSION_HEX ((@PYTHON_VERSION_MAJOR@ << 24) | (@PYTHON_VERSION_MINOR@ << 16) | (@ PYTHON_VERSION_PATCH@ << 8)) instead of: ./Utilities/Python/vtkPythonConfigure.h.in:#define VTK_PYTHON_VERSION_HEX ((@PYT HON_MAJOR_VERSION@ << 24) | (@PYTHON_MINOR_VERSION@ << 16) | (@PYTHON_MICRO_VERSION@ << 8)) here? Let me know what you think. Regards Andrew > ---------- Forwarded message ---------- > From: Berk Geveci > To: Arnd Baecker > Cc: David Gobbi , "vtkusers at vtk.org" < > vtkusers at vtk.org> > Date: Tue, 10 Mar 2015 07:55:02 -0400 > Subject: Re: [vtkusers] VTK Python3 support > Hi Arnd, > > Your assessment sounds in the right ballpark. I don't foresee more issues. > In fact, most of the Python code in VTK is in the testing suite. I'd hope > that any errors there would be caught easily. The huge majority of > non-testing Python code is in Wrapping/Python/vtk, which is something like > 40 files. I volunteer taking care of most of those files. I am pretty sure > that we can find volunteers to fix the tests. So upgrading the Python files > is really not that hard. Wrapping is the main challenge. > > Best, > -berk > > > On Tue, Mar 10, 2015 at 3:45 AM, Arnd Baecker wrote: > >> As a follow-up concerning the conversion of the .py files: >> I have run the current 6.2 release through pylint >> with --py3k option. >> >> Excluding everything from the ThirdParty directory >> (which for example contains Twisted 14.0.0 which >> is not yet ported to Python 3) >> this is only approx 780 python files. >> >> One gets a total of 3130 violations spread over 745 files. >> >> Out of these there are: >> - 2325 violations W1618 >> (missing `from __future__ import absolute_import`) >> Adding this line actually might not be necessary, it just indicates >> that this behaviour is the default on python 3. >> - 552 violations E1601 >> print statement. >> This can be easily solved using >> from __future__ import print_function >> and converting all print-statements to print(...) >> - 53 violations E1604 >> syntax change in raise >> >> So this leaves some further 200 violations spread over 72 files. >> These have to be looked at individually. >> Several warn about the change in division >> (which can be solved using ``from __future__ import division`` >> and using // instead of the current usage of /. >> >> Overall that part seems doable with reasonable effort >> (But maybe I am seeing things too optimistic >> or I am overlooking something ...). >> In the end this would mean that all examples and tests >> could (in principle) be run both on python 2 and python 3 >> without any further code changes. >> Moreover, ThirdParty already contains SixPython >> which could be used if there are changes like range vs. xrange etc. >> >> Are there automatic tests runs >> a) for the python code? >> b) to determine code-coverage for VTK >> (including the python side)? >> This would help to prevent any regression >> during the above steps. >> >> Concerning the first two points of David: >> >>> 1) VTK wrapping still uses old-style classes. I've been meaning to fix >>> this. >>> 2) Basic compile issues and cross-compatibility for py3 and py2 - >>> we received a patch that fixes some of these issues. >>> >> I have no clue how much work this is... >> >> Best, Arnd >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > ---------- Forwarded message ---------- > From: David Gobbi > To: -Daniel- > Cc: VTK Users > Date: Tue, 10 Mar 2015 06:52:47 -0600 > Subject: Re: [vtkusers] VTK+GDCM+JAVA error in CMake > Hi Daniel, > > There isn't any support for surface segmentation objects in vtk-dicom. It > is only > able to generate DICOM data sets for images. > > - David > > On Tue, Mar 10, 2015 at 4:53 AM, -Daniel- > wrote: > >> I try it again. >> >> Unfortunately I have received no info from the GDCM community. I don't >> know >> where I can add the variable. >> Now I'm trying to vtk-dicom. >> Is there a simple example to write an STL object in the DICOM format? > > > > > ---------- Forwarded message ---------- > From: Doug Hoppes > To: "vtkusers at vtk.org" > Cc: > Date: Tue, 10 Mar 2015 12:53:40 +0000 > Subject: [vtkusers] how to join triangles into a smooth surface > > Hey all, > > > > I have two cylinders that are joined at a 60 degree angle > from each other. Ideally, I would love for the actors to join seamlessly > as one surface. Essentially, I?m looking for a way to do it that looks > like a metanurb or nurb surface or a really smooth isosurface. Is there a > way to do this? > > > > Doug > > > > > ---------- Forwarded message ---------- > From: David Gobbi > To: "vtkusers at vtk.org" > Cc: > Date: Tue, 10 Mar 2015 07:37:42 -0600 > Subject: Re: [vtkusers] VTK Python3 support > Hi All, > > I think that it is a very good point that py3k support is needed in > order for vtk-python to move forward as a teaching tool for new > students. We're actually very lucky that the scientific computing > community has decided to stick with python, because moving > to a whole new language would be _really_ tough. > > As far as the wrappers go, currently the C++ PyVTKClass and > PyVTKObject extension types provide an old-style (python 1.5) > metaclass mechanism. Moving forward, each VTK class can > be its own extension type... I looked at the wrapper code over > the weekend, and it's a few days' work that I can probably get > done sometime in May or June. > > After that, the wrappers will have to be modified to handle the > changes that py3k made to PyInt and PyLong, and then all the > necessary #ifdefs will have to be added so that both py2 and > py3k versions of the wrappers will compile. > > Fortunately, VTK has an abundance of python tests, including > many tests in Common/Core/Testing/Python for special features > of the wrappers. So I don't think we're likely to break anything > (e.g. numpy support) in the transition. > > - David > > On Tue, Mar 10, 2015 at 5:55 AM, Berk Geveci > wrote: > >> Hi Arnd, >> >> Your assessment sounds in the right ballpark. I don't foresee more >> issues. In fact, most of the Python code in VTK is in the testing suite. >> I'd hope that any errors there would be caught easily. The huge majority of >> non-testing Python code is in Wrapping/Python/vtk, which is something like >> 40 files. I volunteer taking care of most of those files. I am pretty sure >> that we can find volunteers to fix the tests. So upgrading the Python files >> is really not that hard. Wrapping is the main challenge. >> >> Best, >> -berk >> >> >> On Tue, Mar 10, 2015 at 3:45 AM, Arnd Baecker >> wrote: >> >>> As a follow-up concerning the conversion of the .py files: >>> I have run the current 6.2 release through pylint >>> with --py3k option. >>> >>> Excluding everything from the ThirdParty directory >>> (which for example contains Twisted 14.0.0 which >>> is not yet ported to Python 3) >>> this is only approx 780 python files. >>> >>> One gets a total of 3130 violations spread over 745 files. >>> >>> Out of these there are: >>> - 2325 violations W1618 >>> (missing `from __future__ import absolute_import`) >>> Adding this line actually might not be necessary, it just indicates >>> that this behaviour is the default on python 3. >>> - 552 violations E1601 >>> print statement. >>> This can be easily solved using >>> from __future__ import print_function >>> and converting all print-statements to print(...) >>> - 53 violations E1604 >>> syntax change in raise >>> >>> So this leaves some further 200 violations spread over 72 files. >>> These have to be looked at individually. >>> Several warn about the change in division >>> (which can be solved using ``from __future__ import division`` >>> and using // instead of the current usage of /. >>> >>> Overall that part seems doable with reasonable effort >>> (But maybe I am seeing things too optimistic >>> or I am overlooking something ...). >>> In the end this would mean that all examples and tests >>> could (in principle) be run both on python 2 and python 3 >>> without any further code changes. >>> Moreover, ThirdParty already contains SixPython >>> which could be used if there are changes like range vs. xrange etc. >>> >>> Are there automatic tests runs >>> a) for the python code? >>> b) to determine code-coverage for VTK >>> (including the python side)? >>> This would help to prevent any regression >>> during the above steps. >>> >>> Concerning the first two points of David: >>> >>>> 1) VTK wrapping still uses old-style classes. I've been meaning to fix >>>> this. >>>> 2) Basic compile issues and cross-compatibility for py3 and py2 - >>>> we received a patch that fixes some of these issues. >>>> >>> I have no clue how much work this is... >>> >>> Best, Arnd >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > > > ---------- Forwarded message ---------- > From: Sean McBride > To: Andy Somogyi , > Cc: > Date: Tue, 10 Mar 2015 10:43:04 -0400 > Subject: Re: [vtkusers] Building Cocoa example on OSX > On Mon, 9 Mar 2015 21:53:10 -0400, Andy Somogyi said: > > >This question has been asked before, but I?ve not seen any resolution. > > > >I?m trying the build a Cocoa example on OSX 10.9, and I get the > >Undefined symbols for architecture x86_64: > > > >"_OBJC_CLASS_$_vtkCocoaGLView", referenced from: > > _OBJC_CLASS_$_BasicVTKView in BasicVTKView.o > >"_OBJC_METACLASS_$_vtkCocoaGLView", referenced from: > > _OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o > > The SimpleCocoaVTK example? Are you trying to build it from it's Xcode > project or with CMake? In any case, IIRC, it was broken for a while but > fixed in git master months ago. Could you try VTK 6.2? > > 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 > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Mar 10 19:34:18 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 10 Mar 2015 17:34:18 -0600 Subject: [vtkusers] Error in vtkTextActor when creating a vtkScalarBarActor with no title Message-ID: This may sound like a silly, but vtkScalarBarActor is giving me trouble. I'm using the master branch. If I don't call SetTitle, the vtkScalarBarActor gives me this error: vtkTextActor::SetInput was passed an uninitialized string If I call SetTitle("") with an empty string, I get this error: vtkOpenGLTexture: No scalar values found for texture input! Finally, if I call SetTitle(" "), i.e. give it a space character, then sometimes when I render the program gets stuck for a few seconds in the following function: vtkFreeTypeTools::CalculateBoundingBox(). Is there something that makes computing the bounding box of a single space character difficult for freetype? And why does vtkScalarBarActor require the user to set a title? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From yordan_kyosev at gmx.net Wed Mar 11 02:42:07 2015 From: yordan_kyosev at gmx.net (Yordan Kyosev) Date: Wed, 11 Mar 2015 07:42:07 +0100 Subject: [vtkusers] VTK Compilation with v120_xp toolset fails Message-ID: <54FFE3BF.20801@gmx.net> Hi, I have a problem compiling VTK on win8.1 64 bit with VS 2013 but with the Platfom Toolset for XP (as 32 bit version): Visual Studio 2013 - Windows XP (v120_xp) Which version of VTK should be able to compile this ? I tried 6.2 and 6.1 but get 31 IntelliSense: identifier "InterlockedAdd" is undefined e:\...\VTK-6.1.0\Common\Core\SMP\Sequential\vtkAtomicInt.cxx Line 121 in File: vtkCommonCore It seems, that WinXP does not know what InterlockedAdd is, but I am not sure where and what to include (Winnt.h (include Windows.h)) not making big chaos. Best regards Yordan -------------- next part -------------- An HTML attachment was scrubbed... URL: From patpat63 at laposte.net Wed Mar 11 04:14:07 2015 From: patpat63 at laposte.net (patpat63 at laposte.net) Date: Wed, 11 Mar 2015 09:14:07 +0100 (CET) Subject: [vtkusers] "Invalid pixel format, no opengl support" error In-Reply-To: References: Message-ID: <2130904228.1695374.1426061647070.JavaMail.zimbra@laposte.net> Hi all, I am having troubles with the following example using QVTKWidget. Windows 7 sp1 64 bits I am using : Qt 5.4 (msvc2013_64_opengl) VS2013 vtk 6.1 (64 bits compiled with vs2013) When compiling and executing 64 bits version, I get this error message "Invalid pixel format, no opengl support" and app is exiting. In order to get the error message, just uncomment the line in the example code. When I use 32 bits version (qt 4.8.6 ! vtk 6.1.0), i don't have any problems. I don't know if the problem is about 64 bits or qt5. If someone can provide explanations... :) #include #include #include #include #include int main(int argc, char **argv) { QApplication app(argc, argv); QMainWindow *mainWindow = new QMainWindow; mainWindow->setWindowTitle("Mainwindow"); mainWindow->setFixedSize(640, 360); QVTKWidget *widget = new QVTKWidget; //widget->GetRenderWindow()->Render(); mainWindow->setCentralWidget(widget); widget->GetRenderWindow()->Render(); mainWindow->show(); return app.exec(); } I simplified the example and deleted the printing of "Hello world" because it changes nothing. Thanks for any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shenyeh_chen at hotmail.com Wed Mar 11 06:45:33 2015 From: shenyeh_chen at hotmail.com (Shen-Yeh Chen) Date: Wed, 11 Mar 2015 03:45:33 -0700 Subject: [vtkusers] vtk 6.2 INSTALL error : cannot find vtkhdf5-6.2 Message-ID: Hi all, I am using cmake 2.8.11.2 to build vtk 6.2 (the compiler is VS2005 win64). I am binding it with tcl/tk 8.6. VS 2005 passed the "ALL_BUILD" compilation and building (with couple of errors), but it failed on INSTALL. The error messages say "cannot find [path]vtkhdf5-6.2.dll" Any hint or help ? Regards S-Y. Chen -------------- next part -------------- An HTML attachment was scrubbed... URL: From ninarock at list.ru Wed Mar 11 08:26:02 2015 From: ninarock at list.ru (Butterfly) Date: Wed, 11 Mar 2015 05:26:02 -0700 (MST) Subject: [vtkusers] vtkFreeType in a multi-threading application Message-ID: <1426076762728-5730743.post@n5.nabble.com> Hi, I've read that much work was done lately for thread safety in VTK, and I'am very happy about this, but unfortunately I have a problem while trying it in my example. I tried this in VTK 6.1 and VTK 6.2 under Windows 32 bit. In my application I initiate two threads (for simplicity let's say I don't need any communication, they are completely independent). Each thread creates its own vtkChartXY, data in the chart is continuously updated, e.g. 10 times per second. After start both render windows show normally, I see the data update in both windows several times (about 10 times or more..) and then the application crashes with "corruption of the heap" error "HEAP: Free Heap block 12e58b20 modified at 12e58b78 after it was freed". The call stack is not the same at each start, but the error is always inside the vtkFreeType.dll (please see 2 examples of the call stack below). As I understand the error appears while drawing text in the chart (drawing axis labels and chart legend). I tried to read about FreeType project, and I found the following: * For multi-threading applications each thread should have its own FT_Library object.* http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html But if I understand right, VTK creates only one instance of vtkFreeTypeTools (in the code is said that it is a singleton), and consequently we have only one FT_Library object. I understand that charts does not require much computation power and we can let them all live in one thread, but this problem may occur also for 3D render windows where we use axes actors that also render text. Is there any solution for my problem? Are there any plans for future releases that address this issue? Many thanks in advance! Call stack example 1: msvcr110d.dll!_heap_alloc_base(unsigned int size) Line 57 msvcr110d.dll!_heap_alloc_dbg_impl(unsigned int nSize, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 431 + 0x9 bytes msvcr110d.dll!_nh_malloc_dbg_impl(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 239 + 0x19 bytes msvcr110d.dll!_nh_malloc_dbg(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine) Line 302 + 0x1d bytes msvcr110d.dll!malloc(unsigned int nSize) Line 56 + 0x15 bytes vtkfreetype-6.2.dll!ft_alloc(FT_MemoryRec_ * memory, long size) Line 74 + 0xc bytes vtkfreetype-6.2.dll!vtk_freetype_ft_mem_qalloc(FT_MemoryRec_ * memory, long size, int * p_error) Line 76 + 0x12 bytes vtkfreetype-6.2.dll!vtk_freetype_ft_mem_alloc(FT_MemoryRec_ * memory, long size, int * p_error) Line 55 + 0x11 bytes vtkfreetype-6.2.dll!ft_smooth_render_generic(FT_RendererRec_ * render, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ mode, const FT_Vector_ * origin, FT_Render_Mode_ required_mode) Line 244 + 0x15 bytes vtkfreetype-6.2.dll!ft_smooth_render(FT_RendererRec_ * render, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ mode, const FT_Vector_ * origin) Line 384 + 0x17 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Render_Glyph_Internal(FT_LibraryRec_ * library, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ render_mode) Line 4021 + 0x18 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Render_Glyph(FT_GlyphSlotRec_ * slot, FT_Render_Mode_ render_mode) Line 4061 + 0x11 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Load_Glyph(FT_FaceRec_ * face, unsigned int glyph_index, int load_flags) Line 794 + 0xd bytes vtkfreetype-6.2.dll!ftc_basic_family_load_glyph(FTC_FamilyRec_ * ftcfamily, unsigned int gindex, FTC_CacheRec_ * cache, FT_GlyphRec_ * * aglyph) Line 211 + 0x14 bytes vtkfreetype-6.2.dll!FTC_INode_New(FTC_INodeRec_ * * pinode, FTC_GQueryRec_ * gquery, FTC_CacheRec_ * cache) Line 80 + 0x1d bytes vtkfreetype-6.2.dll!ftc_inode_new(FTC_NodeRec_ * * ftcpinode, void * ftcgquery, FTC_CacheRec_ * cache) Line 102 + 0x11 bytes vtkfreetype-6.2.dll!FTC_Cache_NewNode(FTC_CacheRec_ * cache, int hash, void * query, FTC_NodeRec_ * * anode) Line 466 + 0x16 bytes vtkfreetype-6.2.dll!vtk_freetype_FTC_ImageCache_Lookup(FTC_ImageCacheRec_ * cache, FTC_ImageTypeRec_ * type, unsigned int gindex, FT_GlyphRec_ * * aglyph, FTC_NodeRec_ * * anode) Line 385 + 0x2ae bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetGlyph(unsigned long tprop_cache_id, int font_size, unsigned int gindex, FT_GlyphRec_ * * glyph, int request) Line 867 + 0x1c bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetBitmap(unsigned int c, unsigned long prop_cache_id, int prop_font_size, unsigned int & gindex, FT_BitmapGlyphRec_ * & bitmap_glyph) Line 2230 + 0x1c bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetLineMetrics(vtkUnicodeString::const_iterator begin, vtkUnicodeString::const_iterator end, vtkFreeTypeTools::MetaData & metaData, int & width, int * bbox) Line 2324 + 0x2e bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::CalculateBoundingBox(const vtkUnicodeString & str, vtkFreeTypeTools::MetaData & metaData) Line 1273 vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetBoundingBox(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox) Line 447 + 0x13 bytes vtkRenderingFreeType-6.2.dll!vtkMathTextFreeTypeTextRenderer::GetBoundingBoxInternal(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox, int dpi, int backend) Line 155 + 0x1d bytes vtkRenderingCore-6.2.dll!vtkTextRenderer::GetBoundingBox(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox, int dpi, int backend) Line 160 + 0x23 bytes vtkRenderingFreeType-6.2.dll!vtkTextRendererStringToImage::GetBounds(vtkTextProperty * property, const vtkUnicodeString & string) Line 62 + 0x23 bytes vtkRenderingContextOpenGL-6.2.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkUnicodeString & string, float * bounds) Line 889 + 0x2d bytes vtkRenderingContextOpenGL-6.2.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 812 + 0x41 bytes vtkRenderingContext2D-6.2.dll!vtkContext2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 619 + 0x23 bytes vtkChartsCore-6.2.dll!vtkAxis::GetBoundingRect(vtkContext2D * painter) Line 875 + 0x38 bytes vtkChartsCore-6.2.dll!vtkChartXY::UpdateLayout(vtkContext2D * painter) Line 845 vtkChartsCore-6.2.dll!vtkChartXY::Paint(vtkContext2D * painter) Line 405 + 0x16 bytes vtkRenderingContext2D-6.2.dll!vtkContextScenePrivate::PaintItems(vtkContext2D * context) Line 80 + 0x20 bytes vtkRenderingContext2D-6.2.dll!vtkContextScene::Paint(vtkContext2D * painter) Line 120 vtkRenderingContext2D-6.2.dll!vtkContextActor::RenderOverlay(vtkViewport * viewport) Line 220 + 0x38 bytes vtkRenderingCore-6.2.dll!vtkRenderer::UpdateGeometry() Line 584 + 0x2e bytes vtkRenderingOpenGL-6.2.dll!vtkOpenGLRenderer::DeviceRender() Line 270 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderer::Render() Line 291 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRendererCollection::Render() Line 51 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::DoStereoRender() Line 774 vtkRenderingCore-6.2.dll!vtkRenderWindow::DoFDRender() Line 740 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::DoAARender() Line 619 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::Render() Line 435 + 0x12 bytes Call stack example 2: vtkfreetype-6.2.dll!gray_find_cell(TWorker_ * worker) Line 470 + 0x5 bytes vtkfreetype-6.2.dll!gray_record_cell(TWorker_ * worker) Line 501 + 0x9 bytes vtkfreetype-6.2.dll!gray_set_cell(TWorker_ * worker, long ex, long ey) Line 544 + 0x9 bytes vtkfreetype-6.2.dll!gray_render_line(TWorker_ * worker, long to_x, long to_y) Line 835 + 0x14 bytes vtkfreetype-6.2.dll!gray_line_to(const FT_Vector_ * to, TWorker_ * worker) Line 1136 + 0x1c bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Outline_Decompose(FT_Outline_ * outline, const FT_Outline_Funcs_ * func_interface, void * user) Line 160 + 0x12 bytes vtkfreetype-6.2.dll!gray_convert_glyph_inner(TWorker_ * worker) Line 1706 + 0x18 bytes vtkfreetype-6.2.dll!gray_convert_glyph(TWorker_ * worker) Line 1808 + 0x9 bytes vtkfreetype-6.2.dll!gray_raster_render(TRaster_ * raster, const FT_Raster_Params_ * params) Line 1938 + 0x9 bytes vtkfreetype-6.2.dll!ft_smooth_render_generic(FT_RendererRec_ * render, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ mode, const FT_Vector_ * origin, FT_Render_Mode_ required_mode) Line 297 + 0x18 bytes vtkfreetype-6.2.dll!ft_smooth_render(FT_RendererRec_ * render, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ mode, const FT_Vector_ * origin) Line 384 + 0x17 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Render_Glyph_Internal(FT_LibraryRec_ * library, FT_GlyphSlotRec_ * slot, FT_Render_Mode_ render_mode) Line 4021 + 0x18 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Render_Glyph(FT_GlyphSlotRec_ * slot, FT_Render_Mode_ render_mode) Line 4061 + 0x11 bytes vtkfreetype-6.2.dll!vtk_freetype_FT_Load_Glyph(FT_FaceRec_ * face, unsigned int glyph_index, int load_flags) Line 794 + 0xd bytes vtkfreetype-6.2.dll!ftc_basic_family_load_glyph(FTC_FamilyRec_ * ftcfamily, unsigned int gindex, FTC_CacheRec_ * cache, FT_GlyphRec_ * * aglyph) Line 211 + 0x14 bytes vtkfreetype-6.2.dll!FTC_INode_New(FTC_INodeRec_ * * pinode, FTC_GQueryRec_ * gquery, FTC_CacheRec_ * cache) Line 80 + 0x1d bytes vtkfreetype-6.2.dll!ftc_inode_new(FTC_NodeRec_ * * ftcpinode, void * ftcgquery, FTC_CacheRec_ * cache) Line 102 + 0x11 bytes vtkfreetype-6.2.dll!FTC_Cache_NewNode(FTC_CacheRec_ * cache, int hash, void * query, FTC_NodeRec_ * * anode) Line 466 + 0x16 bytes vtkfreetype-6.2.dll!vtk_freetype_FTC_ImageCache_Lookup(FTC_ImageCacheRec_ * cache, FTC_ImageTypeRec_ * type, unsigned int gindex, FT_GlyphRec_ * * aglyph, FTC_NodeRec_ * * anode) Line 385 + 0x2ae bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetGlyph(unsigned long tprop_cache_id, int font_size, unsigned int gindex, FT_GlyphRec_ * * glyph, int request) Line 867 + 0x1c bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetBitmap(unsigned int c, unsigned long prop_cache_id, int prop_font_size, unsigned int & gindex, FT_BitmapGlyphRec_ * & bitmap_glyph) Line 2230 + 0x1c bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::CalculateBoundingBox(const vtkUnicodeString & str, vtkFreeTypeTools::MetaData & metaData) Line 1289 + 0x28 bytes vtkRenderingFreeType-6.2.dll!vtkFreeTypeTools::GetBoundingBox(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox) Line 447 + 0x13 bytes vtkRenderingFreeType-6.2.dll!vtkMathTextFreeTypeTextRenderer::GetBoundingBoxInternal(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox, int dpi, int backend) Line 155 + 0x1d bytes vtkRenderingCore-6.2.dll!vtkTextRenderer::GetBoundingBox(vtkTextProperty * tprop, const vtkUnicodeString & str, int * bbox, int dpi, int backend) Line 160 + 0x23 bytes vtkRenderingFreeType-6.2.dll!vtkTextRendererStringToImage::GetBounds(vtkTextProperty * property, const vtkUnicodeString & string) Line 62 + 0x23 bytes vtkRenderingContextOpenGL-6.2.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkUnicodeString & string, float * bounds) Line 889 + 0x2d bytes vtkRenderingContextOpenGL-6.2.dll!vtkOpenGLContextDevice2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 812 + 0x41 bytes vtkRenderingContext2D-6.2.dll!vtkContext2D::ComputeStringBounds(const vtkStdString & string, float * bounds) Line 619 + 0x23 bytes vtkChartsCore-6.2.dll!vtkAxis::GetBoundingRect(vtkContext2D * painter) Line 875 + 0x38 bytes vtkChartsCore-6.2.dll!vtkAxis::Paint(vtkContext2D * painter) Line 297 vtkRenderingContext2D-6.2.dll!vtkContextScenePrivate::PaintItems(vtkContext2D * context) Line 80 + 0x20 bytes vtkRenderingContext2D-6.2.dll!vtkAbstractContextItem::PaintChildren(vtkContext2D * painter) Line 51 vtkChartsCore-6.2.dll!vtkChartXY::Paint(vtkContext2D * painter) Line 425 + 0x13 bytes vtkRenderingContext2D-6.2.dll!vtkContextScenePrivate::PaintItems(vtkContext2D * context) Line 80 + 0x20 bytes vtkRenderingContext2D-6.2.dll!vtkContextScene::Paint(vtkContext2D * painter) Line 120 vtkRenderingContext2D-6.2.dll!vtkContextActor::RenderOverlay(vtkViewport * viewport) Line 220 + 0x38 bytes vtkRenderingCore-6.2.dll!vtkRenderer::UpdateGeometry() Line 584 + 0x2e bytes vtkRenderingOpenGL-6.2.dll!vtkOpenGLRenderer::DeviceRender() Line 270 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderer::Render() Line 291 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRendererCollection::Render() Line 51 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::DoStereoRender() Line 774 vtkRenderingCore-6.2.dll!vtkRenderWindow::DoFDRender() Line 740 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::DoAARender() Line 619 + 0x12 bytes vtkRenderingCore-6.2.dll!vtkRenderWindow::Render() Line 435 + 0x12 bytes -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkFreeType-in-a-multi-threading-application-tp5730743.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Wed Mar 11 08:53:09 2015 From: david.lonie at kitware.com (David Lonie) Date: Wed, 11 Mar 2015 08:53:09 -0400 Subject: [vtkusers] Error in vtkTextActor when creating a vtkScalarBarActor with no title In-Reply-To: References: Message-ID: Hi David, None of those things should be happening -- I'll take a look. Dave On Tue, Mar 10, 2015 at 7:34 PM, David Gobbi wrote: > This may sound like a silly, but vtkScalarBarActor is giving me trouble. > I'm using the master branch. > > If I don't call SetTitle, the vtkScalarBarActor gives me this error: > > vtkTextActor::SetInput was passed an uninitialized string > > If I call SetTitle("") with an empty string, I get this error: > > vtkOpenGLTexture: No scalar values found for texture input! > > Finally, if I call SetTitle(" "), i.e. give it a space character, then > sometimes > when I render the program gets stuck for a few seconds in the following > function: > > vtkFreeTypeTools::CalculateBoundingBox(). > > Is there something that makes computing the bounding box of a single > space character difficult for freetype? And why does vtkScalarBarActor > require the user to set a title? > > - David > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Wed Mar 11 09:49:53 2015 From: david.lonie at kitware.com (David Lonie) Date: Wed, 11 Mar 2015 09:49:53 -0400 Subject: [vtkusers] Error in vtkTextActor when creating a vtkScalarBarActor with no title In-Reply-To: References: Message-ID: This should clean up the errors for empty inputs: http://review.source.kitware.com/#/t/5562/ I'm not sure why " " would slow down the bbox calculation, and I couldn't reproduce that here. On Wed, Mar 11, 2015 at 8:53 AM, David Lonie wrote: > Hi David, > > None of those things should be happening -- I'll take a look. > > Dave > > On Tue, Mar 10, 2015 at 7:34 PM, David Gobbi > wrote: > >> This may sound like a silly, but vtkScalarBarActor is giving me trouble. >> I'm using the master branch. >> >> If I don't call SetTitle, the vtkScalarBarActor gives me this error: >> >> vtkTextActor::SetInput was passed an uninitialized string >> >> If I call SetTitle("") with an empty string, I get this error: >> >> vtkOpenGLTexture: No scalar values found for texture input! >> >> Finally, if I call SetTitle(" "), i.e. give it a space character, then >> sometimes >> when I render the program gets stuck for a few seconds in the following >> function: >> >> vtkFreeTypeTools::CalculateBoundingBox(). >> >> Is there something that makes computing the bounding box of a single >> space character difficult for freetype? And why does vtkScalarBarActor >> require the user to set a title? >> >> - David >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Mar 11 10:41:55 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 11 Mar 2015 10:41:55 -0400 Subject: [vtkusers] Bezier Curve in VTK 6.2.0 In-Reply-To: References: Message-ID: On Tue, Mar 10, 2015 at 3:38 AM, Huang Li wrote: > vtkParametricSpline Try http://www.vtk.org/doc/nightly/html/classvtkSplineWidget.html and specifically look at the examples and tests for the class to get you started. 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 Wed Mar 11 10:42:41 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 11 Mar 2015 10:42:41 -0400 Subject: [vtkusers] vtk 6.2 INSTALL error : cannot find vtkhdf5-6.2 In-Reply-To: References: Message-ID: What were the errors? David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Mar 11, 2015 at 6:45 AM, Shen-Yeh Chen wrote: > Hi all, > > > I am using cmake 2.8.11.2 to build vtk 6.2 (the compiler is VS2005 > win64). I am binding it with tcl/tk 8.6. > > VS 2005 passed the "ALL_BUILD" compilation and building (with couple of > errors), but it failed on INSTALL. The error messages say "cannot find > [path]vtkhdf5-6.2.dll" > > Any hint or help ? > > Regards > S-Y. Chen > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Mar 11 12:03:21 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 11 Mar 2015 10:03:21 -0600 Subject: [vtkusers] Error in vtkTextActor when creating a vtkScalarBarActor with no title In-Reply-To: References: Message-ID: That fixes the problem. As for the slow-down with " ", I might dig deeper but really it isn't much of an issue (the only reason I tried it was because "" was generating warnings). Thanks! - David On Wed, Mar 11, 2015 at 7:49 AM, David Lonie wrote: > This should clean up the errors for empty inputs: > > http://review.source.kitware.com/#/t/5562/ > > I'm not sure why " " would slow down the bbox calculation, and I couldn't > reproduce that here. > > On Wed, Mar 11, 2015 at 8:53 AM, David Lonie > wrote: > >> Hi David, >> >> None of those things should be happening -- I'll take a look. >> >> Dave >> >> On Tue, Mar 10, 2015 at 7:34 PM, David Gobbi >> wrote: >> >>> This may sound like a silly, but vtkScalarBarActor is giving me trouble. >>> I'm using the master branch. >>> >>> If I don't call SetTitle, the vtkScalarBarActor gives me this error: >>> >>> vtkTextActor::SetInput was passed an uninitialized string >>> >>> If I call SetTitle("") with an empty string, I get this error: >>> >>> vtkOpenGLTexture: No scalar values found for texture input! >>> >>> Finally, if I call SetTitle(" "), i.e. give it a space character, then >>> sometimes >>> when I render the program gets stuck for a few seconds in the following >>> function: >>> >>> vtkFreeTypeTools::CalculateBoundingBox(). >>> >>> Is there something that makes computing the bounding box of a single >>> space character difficult for freetype? And why does vtkScalarBarActor >>> require the user to set a title? >>> >>> - David >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Mar 11 12:32:07 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 11 Mar 2015 22:02:07 +0530 Subject: [vtkusers] Assiging attributes to vtk polydata Message-ID: Hi All, Once I generate the vtkpolydata, how do I assign any particular attributes (say of type scaler and named as "density") to the dataset. I looked into the examples using vtkAssignAttribute ( http://www.vtk.org/doc/nightly/html/classvtkAssignAttribute.html) Can anyone please explain what does this statement means from the page : aa->Assign("foo", vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA); Once the point attributes are assigned, does it mean that each point data will contain the information of the attributes in the vtk (.vtp) file ? Thanks much. Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Mar 11 12:36:57 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 11 Mar 2015 22:06:57 +0530 Subject: [vtkusers] writing only the point data information for vtp Message-ID: Hi All, I am using the class vtkXMLPolyDataWriter to write polydata in my vtp file. Is there any way, that I can write only the PointData and ignore the rest ... ... ... ... ... ... If I want to do this, do I have to write my own writer class ? Thanks, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Mar 11 12:39:37 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 11 Mar 2015 22:09:37 +0530 Subject: [vtkusers] Writing addition xml information in a vtp file Message-ID: Hi All, When I am writing polydata to a .vtp file, is there a way I can write addition information under a custom declared XML tags, for example, can I write something like below in a .vtp file using XMLPolyDataWriter class ? 3 Thanks in advance, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From felfilali at dons.usfca.edu Wed Mar 11 13:31:04 2015 From: felfilali at dons.usfca.edu (Fatima Zahra El Filali) Date: Wed, 11 Mar 2015 10:31:04 -0700 Subject: [vtkusers] vtk vector file issues Message-ID: Hello, I am creating my own vtk file (originally wanted to do it in binary but decided to do ASCII for visibility issues). I am following the office tube example but wanted to use my own data (wind data to be precise) My file is copied bellow. When I run my code (using the same approach as OfficeTube), I get the following errors: ERROR: In /Users/fatimazahra/Documents/School/DataViz/vtkSource/vtkSource/VTK/IO/Legacy/vtkStructuredGridReader.cxx, line 316 vtkStructuredGridReader (0x7f8d22e9bda0): *Unrecognized keyword: vectors* ERROR: In /Users/fatimazahra/Documents/School/DataViz/vtkSource/vtkSource/VTK/Filters/FlowPaths/vtkStreamer.cxx, line 496 vtkStreamLine (0x7f8d22ea3190): *No vector data defined!* Any ideas? Thanks File looks something like this: # vtk DataFile Version 1.0 vtk output ASCII DATASET STRUCTURED_GRID DIMENSIONS 21 20 20 POINTS 8400 float 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 .... 20 19 19 POINT_DATA 8400 SCALARS scalars float LOOKUP_TABLE default VECTORS vectors float 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 1.13709529971e-31 .... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerrick.Bivins at halliburton.com Wed Mar 11 13:41:23 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Wed, 11 Mar 2015 17:41:23 +0000 Subject: [vtkusers] [EXTERNAL] Assiging attributes to vtk polydata In-Reply-To: References: Message-ID: Hi Chiranjib, You could use vtkAssignAttribute to set ?foo? as the ?Active Scalar Array of the Point Data? , as in the example, which is useful in situations where algorithms/filters that are consuming the output of vtkAssignAttribute are setup to work on the ?Active Scalar?( http://www.vtk.org/doc/nightly/html/classvtkDataSetAttributes.html#a626aeb4cf7f739d11068a464c968db8c ). I?ve used vtkAssignAttribute in instances where I needed to calculate a new array via vtkArrayCalculator. I set the output array of the calculator as the active scalar using vtkAssignAttribute, so that it would be used as the ?input array to process? in a vtkContourFilter, for example. Gerrick From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Chiranjib Sur Sent: Wednesday, March 11, 2015 11:32 AM To: vtkusers at vtk.org Subject: [EXTERNAL] [vtkusers] Assiging attributes to vtk polydata Hi All, Once I generate the vtkpolydata, how do I assign any particular attributes (say of type scaler and named as "density") to the dataset. I looked into the examples using vtkAssignAttribute (http://www.vtk.org/doc/nightly/html/classvtkAssignAttribute.html) Can anyone please explain what does this statement means from the page : aa->Assign("foo", vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA); Once the point attributes are assigned, does it mean that each point data will contain the information of the attributes in the vtk (.vtp) file ? Thanks much. Chiranjib ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Mar 11 14:43:26 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 11 Mar 2015 14:43:26 -0400 Subject: [vtkusers] writing only the point data information for vtp In-Reply-To: References: Message-ID: You might be able to create another vtkPolyData and just set its PointData to the PointData of your original polydata. On Wed, Mar 11, 2015 at 12:36 PM, Chiranjib Sur wrote: > Hi All, > I am using the class vtkXMLPolyDataWriter to write polydata in my vtp file. > Is there any way, that I can write only the PointData and ignore the rest > > ... > ... > ... > ... > ... > ... > > If I want to do this, do I have to write my own writer class ? > > Thanks, > Chiranjib > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From berk.geveci at kitware.com Wed Mar 11 16:12:47 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 11 Mar 2015 16:12:47 -0400 Subject: [vtkusers] Pitch for Google Summer of Code topics Message-ID: Hi folks, I wanted to make a pitch for the Google Summer of Code topics listed below. Better support for shared-memory parallelism is essential for a healthy VTK for many years to come. If you are a student, please consider writing a proposal for one of these topics. If you are a professor/mentor, please encourage strong developers in your institution to apply. Best, -berk *Shared Memory Parallelism in VTK* Brief explanation: Development of multi-threaded algorithms in VTK. Multiple R&D efforts are leading the creation of an infrastructure to support next generation multi-threaded parallel algorithm development in VTK. These efforts are based on modern parallel libraries such as Intel TBB and Inria KAAPI. The main goal of this project will be the development of algorithms that leverage this infrastructure. The focus will be on upgrading existing core algorithms such as iso-surfacing, clipping, cutting, warping etc. to be parallel. Ideally, this will include modernization of the old multi-threading code in the imaging pipeline. Expected results: A number of algorithms that execute in parallel using shared memory. Scalability of new algorithms will have to be measured and documented. Development of regression tests and examples will be also expected. Prerequisites: Experience in C++ and multi-threaded code development. Understanding of core visualization algorithms and data structures. Some experience in VTK ideally but not necessary. Mentor: Berk Geveci (berk dot geveci at kitware dot com) and David Gobbi (david dot gobbi at gmail dot com) *Fine-Grained Parallelism in VTK-m* Brief explanation: VTK-m is a toolkit of scientific visualization algorithms for emerging processor architectures ( GPU's and Coprocessors's ). VTK-m is designed for fine-grained concurrency and provides abstract data and execution models that can be applied to a variety of algorithms. The goal of the project will be on developing algorithms such as Slice by implicit surface, Gradient, Streamlines, External Faces, Resample, etc. using VTKM-m data and execution model. Expected results: A collection of algorithms that are processor architecture agnostic and execute on GPU's and Coprocessor's using VTK-m's data and execution model. Performance of new algorithms will have to be measured and documented. Development of regression tests and examples will be also expected. Prerequisites: Experience in templated C++ development, visualization algorithms, data structures and highly parallel architectures such as GPU's. Some experience in VTK or CUDA or OpenCL would be ideal but not necessary. Mentor: Robert Maynard (robert dot maynard at kitware dot com) and Kenneth Moreland (kmorel at sandia dot gov) -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Thu Mar 12 00:53:10 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 12 Mar 2015 10:23:10 +0530 Subject: [vtkusers] writing only the point data information for vtp In-Reply-To: References: Message-ID: Hi Bill, Thanks for your quick reply. I gave a try on your suggestion, but could not get the thing I wanted. May be the following description (what I intend to do) will be helpful. Here is the code snippets: //VTk writer vtkSmartPointer w = vtkSmartPointer::New(); // VTK points vtkSmartPointer polyPoints = vtkSmartPointer::New(); // Set the precision for the new points polyPoints->SetDataType( VTK_DOUBLE ); // VTK PolyData vtkSmartPointer polydata = vtkSmartPointer::New(); // Generate points for the polydata ..... // polydata->SetPoints( newPoints ); // Set the writer to write the polydata #if VTK_MAJOR_VERSION <= 5 w->SetInput( polydata ); #else w->SetInputData( polydata ); #endif // set filename w->SetFileName("myFile.vtp"); // Write the poly data into file w->Write(); ------------------------------------------------------------------ At this stage : myFile.vtp file contains : ... ... ... ... ... ... I just need to print the part under the tag ... and nothing else. Any suggestions ? Thank in advance, Chiranjib On Thu, Mar 12, 2015 at 12:13 AM, Bill Lorensen wrote: > You might be able to create another vtkPolyData and just set its > PointData to the PointData of your original polydata. > > On Wed, Mar 11, 2015 at 12:36 PM, Chiranjib Sur > wrote: > > Hi All, > > I am using the class vtkXMLPolyDataWriter to write polydata in my vtp > file. > > Is there any way, that I can write only the PointData and ignore the > rest > > > > ... > > ... > > ... > > ... > > ... > > ... > > > > If I want to do this, do I have to write my own writer class ? > > > > Thanks, > > Chiranjib > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Thu Mar 12 09:15:34 2015 From: david.lonie at kitware.com (David Lonie) Date: Thu, 12 Mar 2015 09:15:34 -0400 Subject: [vtkusers] vtkFreeType in a multi-threading application In-Reply-To: <1426076762728-5730743.post@n5.nabble.com> References: <1426076762728-5730743.post@n5.nabble.com> Message-ID: On Wed, Mar 11, 2015 at 8:26 AM, Butterfly wrote: > After start both render windows show normally, I see the data update in > both > windows several times (about 10 times or more..) and then the application > crashes with "corruption of the heap" error "HEAP: Free Heap block 12e58b20 > modified at 12e58b78 after it was freed". The call stack is not the same at > each start, but the error is always inside the vtkFreeType.dll (please see > 2 > examples of the call stack below). > > As I understand the error appears while drawing text in the chart (drawing > axis labels and chart legend). I tried to read about FreeType project, and > I > found the following: > * For multi-threading applications each thread should have its own > FT_Library object.* > http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html > > > But if I understand right, VTK creates only one instance of > vtkFreeTypeTools > (in the code is said that it is a singleton), and consequently we have only > one FT_Library object. > This is indeed the problem -- thanks for the report. As of right now, we don't have a workaround, but I've created an bug report to keep track of the issue: http://vtk.org/Bug/view.php?id=15376 Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Thu Mar 12 14:08:08 2015 From: serge at infolytica.com (Serge Lalonde) Date: Thu, 12 Mar 2015 14:08:08 -0400 Subject: [vtkusers] Multicore support? Message-ID: <5501D608.3040107@infolytica.com> An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Mar 12 14:28:12 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 12 Mar 2015 12:28:12 -0600 Subject: [vtkusers] Multicore support? In-Reply-To: <5501D608.3040107@infolytica.com> References: <5501D608.3040107@infolytica.com> Message-ID: Hi Serge, Multicore support for grid algorithms is a very high priority for ongoing VTK development. Also, if you know any students who are skilled at implementing SMP algorithms, please encourage them to apply for a VTK GSoC project: http://www.vtk.org/Wiki/VTK/GSoC_2015 Cheers, - David On Thu, Mar 12, 2015 at 12:08 PM, Serge Lalonde wrote: > Does anyone know if VTK 6.1 uses any kind of multicore support to speed > up the algorithms? > Specifically, for the unstructured grid algorithms? Ex: Cut Mesh, Clip, > Contour, Threshold. > If so, how do we enable it? So far, I only see one CPU running. > > Thanks. > -- > www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 > (514) 849-8752 x236, Fax: (514) 849-4239 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Thu Mar 12 17:30:18 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Thu, 12 Mar 2015 14:30:18 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> Message-ID: <1426195818211-5730784.post@n5.nabble.com> Okay and thanks for the hint, David. Can I read DICOM data sets with different file-sizes (with your vtk-dicom)? for example a Cone-Beam-CT data set: test_1.dcm - 80KB test_2.dcm - 81KB test_3.dcm - 90KB test_4.dcm - 95KB test_5.dcm - 95KB test_6.dcm - 89KB test_7.dcm - 84KB test_8.dcm - 81KB -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730784.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Mar 12 17:41:37 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 12 Mar 2015 15:41:37 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426195818211-5730784.post@n5.nabble.com> References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> Message-ID: On Thu, Mar 12, 2015 at 3:30 PM, -Daniel- wrote: > Okay and thanks for the hint, David. > > Can I read DICOM data sets with different file-sizes (with your vtk-dicom)? > for example a Cone-Beam-CT data set: > test_1.dcm - 80KB > test_2.dcm - 81KB > test_3.dcm - 90KB > test_4.dcm - 95KB > test_5.dcm - 95KB > test_6.dcm - 89KB > test_7.dcm - 84KB > test_8.dcm - 81KB > You mean compressed files? Yes, vtk-dicom can read compressed files, but only if you build GDCM (or DCMTK) first and then turn on USE_GDCM (or USE_DCMTK) when you use cmake to configure vtk-dicom. Currently, vtk-dicom relies on these other libraries to perform the decompression and make the dicom data full-size. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From pattersonnp.work at gmail.com Thu Mar 12 17:45:23 2015 From: pattersonnp.work at gmail.com (Nick Patterson) Date: Thu, 12 Mar 2015 21:45:23 +0000 Subject: [vtkusers] Overlaying contours on DICOM image Message-ID: <5B764EEE-09FB-4813-982E-F907A049FD71@gmail.com> Hi, I have been using the http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOMSeries example to read a CT series. I have also been using the vtkGDCMPolyDataReader to read in structures from DICOM file. I would like to take the 2D slices from the polydata (effectively contours) and overlay them on the respective CT slice. I wondered if anyone can provide guidance on how to do this? I have tried multiple things, such as vtkPolyDataMapper2D, vtkActor2D etc, but not really making much progress. Regards, Nick. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Thu Mar 12 18:22:56 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Thu, 12 Mar 2015 15:22:56 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> Message-ID: <1426198976088-5730788.post@n5.nabble.com> Yes, I mean compressed files. :) But unfortunately I can't compile GDCM for my system. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730788.html Sent from the VTK - Users mailing list archive at Nabble.com. From ich_daniel at habmalnefrage.de Thu Mar 12 18:31:34 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Thu, 12 Mar 2015 15:31:34 -0700 (MST) Subject: [vtkusers] System.loadLibray() in 6.2 Message-ID: <1426199494879-5730789.post@n5.nabble.com> Hi, I have previously worked with VTK 6.1 (+ Java) and now I switched to 6.2. But when I test my program code, I must always load all DLLs via System.loadLibrary(..). This was not the case previously. The libraries did not need be loaded separately. Is it any settings in the cmake, I have not set or set incorrectly? -- View this message in context: http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Mar 12 18:33:45 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 12 Mar 2015 16:33:45 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426198976088-5730788.post@n5.nabble.com> References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> Message-ID: On Thu, Mar 12, 2015 at 4:22 PM, -Daniel- wrote: > Yes, I mean compressed files. :) > But unfortunately I can't compile GDCM for my system. > I thought you only had problems with the GDCM Java wrappers. Can you build GDCM without the wrappers? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Mar 12 19:40:30 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 12 Mar 2015 17:40:30 -0600 Subject: [vtkusers] System.loadLibray() in 6.2 In-Reply-To: <1426199494879-5730789.post@n5.nabble.com> References: <1426199494879-5730789.post@n5.nabble.com> Message-ID: You need to load manually the library by having something along those line in your main. // ----------------------------------------------------------------- // Load VTK library and print which library was not properly loaded static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) { System.out.println(lib.GetLibraryName() + " not loaded"); } } } vtkNativeLibrary.DisableOutputWindow(null); } // ----------------------------------------------------------------- Java related change for 6.2: - vtkPanel used to system load the native library automatically. We removed that as it could cause issue when used in advanced class loader system such as OSGI. - Automate VTK build with Java wrapping on Windows/Linux/Mac dashboards. On Thu, Mar 12, 2015 at 4:31 PM, -Daniel- wrote: > Hi, > I have previously worked with VTK 6.1 (+ Java) and now I switched to 6.2. > But when I test my program code, I must always load all DLLs via > System.loadLibrary(..). This was not the case previously. > The libraries did not need be loaded separately. > Is it any settings in the cmake, I have not set or set incorrectly? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Mar 12 20:04:06 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 12 Mar 2015 20:04:06 -0400 Subject: [vtkusers] Multicore support? In-Reply-To: References: <5501D608.3040107@infolytica.com> Message-ID: +1 to what David said. Please see the following: http://www.vtk.org/Wiki/VTK/VTK_SMP https://hal.inria.fr/hal-00789814/document http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.396.4673&rep=rep1&type=pdf This is also relevant: http://www.kitware.com/blog/home/post/728 Some of the algorithms we have experimented with are in Filters/SMP. The recommended backend is TBB. Expect to see a lot of action in this area in the coming months and years. Best, -berk On Thu, Mar 12, 2015 at 2:28 PM, David Gobbi wrote: > Hi Serge, > > Multicore support for grid algorithms is a very high priority for ongoing > VTK development. Also, if you know any students who are skilled at > implementing SMP algorithms, please encourage them to apply for > a VTK GSoC project: > > http://www.vtk.org/Wiki/VTK/GSoC_2015 > > Cheers, > > - David > > > > On Thu, Mar 12, 2015 at 12:08 PM, Serge Lalonde > wrote: > >> Does anyone know if VTK 6.1 uses any kind of multicore support to speed >> up the algorithms? >> Specifically, for the unstructured grid algorithms? Ex: Cut Mesh, Clip, >> Contour, Threshold. >> If so, how do we enable it? So far, I only see one CPU running. >> >> Thanks. >> -- >> www.infolytica.com >> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 >> (514) 849-8752 x236, Fax: (514) 849-4239 >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaahaaah at yandex.ru Fri Mar 13 04:41:50 2015 From: aaahaaah at yandex.ru (Albert Akhriev) Date: Fri, 13 Mar 2015 08:41:50 +0000 Subject: [vtkusers] ow to build standalone VTK IO Message-ID: <5502A2CE.1090308@yandex.ru> Hi All, I need vtkIO compiled on remote machine where I run a solver and save the results into a file using vtkIO. The problem is that I do not have root privilege, so compilation of the full VTK package is problematic because there is no OpenGL on remote machine (even Mesa). In fact, I do not need graphics in there, rather vtkIO solely. Please, let me know how can I modify makefiles to build vtkIO only and skip all other stuff? Thank you in advance. Albert From ninarock at list.ru Fri Mar 13 05:05:50 2015 From: ninarock at list.ru (Butterfly) Date: Fri, 13 Mar 2015 02:05:50 -0700 (MST) Subject: [vtkusers] vtkFreeType in a multi-threading application In-Reply-To: References: Message-ID: <1426237550325-5730798.post@n5.nabble.com> Many, many thanks !!! -- View this message in context: http://vtk.1045678.n5.nabble.com/Re-vtkFreeType-in-a-multi-threading-application-tp5730775p5730798.html Sent from the VTK - Users mailing list archive at Nabble.com. From ich_daniel at habmalnefrage.de Fri Mar 13 06:02:17 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 13 Mar 2015 03:02:17 -0700 (MST) Subject: [vtkusers] System.loadLibray() in 6.2 In-Reply-To: References: <1426199494879-5730789.post@n5.nabble.com> Message-ID: <1426240937428-5730799.post@n5.nabble.com> If I use your hint, I get the following error message: java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) .. java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in java.library.path .. and so on. But I use System.loadLibrary(..) over all DLLs, then all libraries be loaded. -- View this message in context: http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730799.html Sent from the VTK - Users mailing list archive at Nabble.com. From ich_daniel at habmalnefrage.de Fri Mar 13 06:04:53 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 13 Mar 2015 03:04:53 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> Message-ID: <1426241093401-5730800.post@n5.nabble.com> Ok, I did it. Do you have an example for load compressed files? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730800.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Fri Mar 13 07:39:33 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 13 Mar 2015 07:39:33 -0400 Subject: [vtkusers] ow to build standalone VTK IO In-Reply-To: <5502A2CE.1090308@yandex.ru> References: <5502A2CE.1090308@yandex.ru> Message-ID: Assuming vtk >= 6.0 it is easy. (that's what 6.0 was about). With cmake turn of all of the GROUPS and TESTING and in the advanced options, turn on vtkModule_IOfoo. Then build. Optionally remove the source code directories that do not belong to the set of modules cmake enables. On Mar 13, 2015 4:50 AM, "Albert Akhriev" wrote: > Hi All, > > I need vtkIO compiled on remote machine where I run a solver and save the > results into a file using vtkIO. > The problem is that I do not have root privilege, so compilation of the > full VTK package is problematic > because there is no OpenGL on remote machine (even Mesa). > In fact, I do not need graphics in there, rather vtkIO solely. > Please, let me know how can I modify makefiles to build vtkIO only and > skip all other stuff? > Thank you in advance. > > Albert > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.askeland at gmail.com Fri Mar 13 08:11:01 2015 From: christian.askeland at gmail.com (Christian Askeland) Date: Fri, 13 Mar 2015 13:11:01 +0100 Subject: [vtkusers] Crash in vtkImageMapToColors when upgrading 6.1->6.2 Message-ID: Hi all, I recently upgraded from vtk 6.1.0 to 6.2.0. Most of my rather large vtk-based application runs as before, but I get a crash in vtkImageMapToColors. I am testing on OSX10.8, but my jenkins indicates that this also happens on Ubuntu 14.04. The vtkLookupTable that is input to the mapper has a custom NumberOfTableValues, and a little digging has shown that setting this value > 256 (the default) causes the crash. Here is a distilled version of the problem: typedef vtkSmartPointer vtkImageDataPtr; typedef vtkSmartPointer vtkLookupTablePtr; typedef vtkSmartPointer vtkImageMapToColorsPtr; // create simple image data vtkImageDataPtr image = vtkImageDataPtr::New(); image->SetExtent(0, 2, 0, 2, 0, 2); // 3x3x3 image image->AllocateScalars(VTK_UNSIGNED_CHAR, 1); // create simple lut data with a custom table size int numberOfTableValues = 257; // anything above 256 (default) fails vtkLookupTablePtr lut = vtkLookupTablePtr::New(); lut->SetNumberOfTableValues(numberOfTableValues); lut->SetTableRange(0, numberOfTableValues - 1); lut->Build(); // send through a vtkImageMapToColors vtkImageMapToColorsPtr mapper = vtkImageMapToColorsPtr::New(); mapper->SetOutputFormatToRGBA(); mapper->SetInputData(image); mapper->SetLookupTable(lut); mapper->Update(); // crashes deep inside vtkLookupTable::MapScalarsThroughTable2 The call stack in the crashing thread is abort free vtkDataArrayTemplate::ResizeAndExtend(long long) vtkDataArrayTemplate::Resize(long long) void (anonymous namespace)::vtkLookupTableMapData(...) vtkLookupTable::MapScalarsThroughTable2(void*, unsigned char*, int, int, int, int) vtkImageMapToColors::ThreadedRequestData(...) vtkThreadedImageAlgorithmThreadedExecute(...) Even more digging shows that calling vtkLookupTable::MapScalarsThroughTable explicitly after creating the lut removes the crash: unsigned char input = 0; lut->MapScalarsThroughTable2(&input, &input, VTK_UNSIGNED_CHAR, 1, 1, 1); I have not started digging into the vtk code itself yet. I would appreciate if anyone have an idea of what is wrong here. I can file a bug report if noone have a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 2130220212 at email.szu.edu.cn Fri Mar 13 08:16:20 2015 From: 2130220212 at email.szu.edu.cn (Jason) Date: Fri, 13 Mar 2015 05:16:20 -0700 (MST) Subject: [vtkusers] Get arbitrary slice from Image volume by several points In-Reply-To: <1426245844967-5730802.post@n5.nabble.com> References: <1426233772320-5730794.post@n5.nabble.com> <1426234527195-5730795.post@n5.nabble.com> <1426236791389-5730797.post@n5.nabble.com> <1426245844967-5730802.post@n5.nabble.com> Message-ID: <1426248980693-5730805.post@n5.nabble.com> Thanks a lot. I have made a verification on this. It could have several matrix of axialElement for a specific plane, and the difference between these matrix on the slice is only the size, rotation and stretch. All the features are the same. -- View this message in context: http://vtk.1045678.n5.nabble.com/Get-arbitrary-slice-from-Image-volume-by-several-points-tp5730794p5730805.html Sent from the VTK - Users mailing list archive at Nabble.com. From 2130220212 at email.szu.edu.cn Fri Mar 13 08:19:22 2015 From: 2130220212 at email.szu.edu.cn (Jason) Date: Fri, 13 Mar 2015 05:19:22 -0700 (MST) Subject: [vtkusers] Get arbitrary slice from Image volume by several points In-Reply-To: <1426248980693-5730805.post@n5.nabble.com> References: <1426233772320-5730794.post@n5.nabble.com> <1426234527195-5730795.post@n5.nabble.com> <1426236791389-5730797.post@n5.nabble.com> <1426245844967-5730802.post@n5.nabble.com> <1426248980693-5730805.post@n5.nabble.com> Message-ID: <1426249162769-5730806.post@n5.nabble.com> All we need to do is to calculate three vectors: X , Y and Normal through three points on the plane. -- View this message in context: http://vtk.1045678.n5.nabble.com/Get-arbitrary-slice-from-Image-volume-by-several-points-tp5730794p5730806.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Fri Mar 13 08:37:57 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 13 Mar 2015 06:37:57 -0600 Subject: [vtkusers] Crash in vtkImageMapToColors when upgrading 6.1->6.2 In-Reply-To: References: Message-ID: Hi Christian, I noticed this same issue a few days ago and filed a bug report: http://www.vtk.org/Bug/view.php?id=15365 Until this bug is fixed, here is a workaround: lut->SetNumberOfTableValues(numberOfTableValues); lut->GetTable()->Resize(numberOfTableValues + 3); Basically, the crash occurs because Resize() is being called by multiple threads inside vtkImageMapToColors, so the workaround is to call Resize() beforehand. - David On Fri, Mar 13, 2015 at 6:11 AM, Christian Askeland < christian.askeland at gmail.com> wrote: > Hi all, > > I recently upgraded from vtk 6.1.0 to 6.2.0. Most of my rather large > vtk-based application runs as before, but I get a crash in > vtkImageMapToColors. I am testing on OSX10.8, but my jenkins indicates that > this also happens on Ubuntu 14.04. > > The vtkLookupTable that is input to the mapper has a custom > NumberOfTableValues, and a little digging has shown that setting this value > > 256 (the default) causes the crash. > > Here is a distilled version of the problem: > > typedef vtkSmartPointer vtkImageDataPtr; > typedef vtkSmartPointer vtkLookupTablePtr; > typedef vtkSmartPointer vtkImageMapToColorsPtr; > > // create simple image data > vtkImageDataPtr image = vtkImageDataPtr::New(); > image->SetExtent(0, 2, 0, 2, 0, 2); // 3x3x3 image > image->AllocateScalars(VTK_UNSIGNED_CHAR, 1); > > // create simple lut data with a custom table size > int numberOfTableValues = 257; // anything above 256 (default) fails > vtkLookupTablePtr lut = vtkLookupTablePtr::New(); > lut->SetNumberOfTableValues(numberOfTableValues); > lut->SetTableRange(0, numberOfTableValues - 1); > lut->Build(); > > // send through a vtkImageMapToColors > vtkImageMapToColorsPtr mapper = vtkImageMapToColorsPtr::New(); > mapper->SetOutputFormatToRGBA(); > mapper->SetInputData(image); > mapper->SetLookupTable(lut); > mapper->Update(); // crashes deep inside > vtkLookupTable::MapScalarsThroughTable2 > > The call stack in the crashing thread is > > abort > free > vtkDataArrayTemplate::ResizeAndExtend(long long) > vtkDataArrayTemplate::Resize(long long) > void (anonymous namespace)::vtkLookupTableMapData(...) > vtkLookupTable::MapScalarsThroughTable2(void*, unsigned char*, int, int, > int, int) > vtkImageMapToColors::ThreadedRequestData(...) > vtkThreadedImageAlgorithmThreadedExecute(...) > > Even more digging shows that calling > vtkLookupTable::MapScalarsThroughTable explicitly after creating the lut > removes the crash: > > unsigned char input = 0; > lut->MapScalarsThroughTable2(&input, &input, VTK_UNSIGNED_CHAR, 1, 1, 1); > > I have not started digging into the vtk code itself yet. > > I would appreciate if anyone have an idea of what is wrong here. I can > file a bug report if noone have a solution. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Mar 13 08:44:16 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 13 Mar 2015 06:44:16 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426241093401-5730800.post@n5.nabble.com> References: <1416337949104-5729490.post@n5.nabble.com> <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> Message-ID: On Fri, Mar 13, 2015 at 4:04 AM, -Daniel- wrote: > Ok, I did it. > Do you have an example for load compressed files? The C++ example for loading and displaying a DICOM file is here: Examples/TestDICOMDisplay.cxx If vtk-dicom is built with USE_GDCM=ON, there is nothing special that needs to be done to load a compressed file. It will automatically detect that the file is compressed. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Fri Mar 13 10:05:52 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 13 Mar 2015 08:05:52 -0600 Subject: [vtkusers] System.loadLibray() in 6.2 In-Reply-To: <1426240937428-5730799.post@n5.nabble.com> References: <1426199494879-5730789.post@n5.nabble.com> <1426240937428-5730799.post@n5.nabble.com> Message-ID: Hum interesting, I'm wondering what are the differences in names between your System.loadLibrary(..) calls and the one listed in vtkNativeLibrary. I'm wondering if it is specific to windows? Do you mind sharing your list of System.loadLibrary(..) and what you have for for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { System.out.println(lib.GetLibraryName()); } Those should match... Thanks, Seb On Fri, Mar 13, 2015 at 4:02 AM, -Daniel- wrote: > If I use your hint, I get the following error message: > java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > .. > java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in > java.library.path > .. > and so on. > > But I use System.loadLibrary(..) over all DLLs, then all libraries be > loaded. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730799.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Mar 13 11:53:50 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 13 Mar 2015 11:53:50 -0400 Subject: [vtkusers] suggestions for new vtk website content? Message-ID: Hey Gang, For the new VTK website, I came up with this list of some of the more fundamental and/or interesting tools in VTK with pointers to suggested places one might go to get started with them. If you have suggestions to improve it, I would love to hear from you. Bonus points if you provide simple examples and/or cool looking images for us to show off (ideally on the vtk wiki example page) (Once again kudos to David Doria, Bill Lorensen and everyone else who has contributed to the VTK wiki examples wiki project!) thanks -- Visualization -- Scalar (N=1) algorithms * color mapping http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/ColoredElevationMap * carpet plots (warp scalars) http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/WarpScalar * iso-contouring http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/IsosurfaceSampling * thresholding http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs Vector (N=3) algorithms * hedgehogs (and other glyph types) http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs * streamlines http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines * LIC (line integral convolution) http://www.paraview.org/Wiki/ParaView/Line_Integral_Convolution * displacement plots (warp vectors) http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/WarpVector Tensor (N=6) algorithms * tensor ellipsoids http://www.vtk.org/doc/nightly/html/classvtkTensorProbeWidget.html * tensor glyphs http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TensorGlyph * hyper-streamlines http://www.vtk.org/doc/nightly/html/classvtkHyperStreamline.html -- Modelling -- * procedural sources that generate simple and complex shapes etc http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo * implicit modeling http://www.itk.org/Wiki/VTK/Examples/Cxx/Filtering/ImplicitBoolean * decimation http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Decimation * boolean mesh operations http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter * cutting and clipping * probing http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RandomProbe * normal generation * connected components http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ConnectivityFilter * linear and rotational extrusion http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/LinearExtrusion http://www.vtk.org/doc/nightly/html/classvtkRotationalExtrusionFilter.html * splatting * interactive 3D splines http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/KochanekSpline * appending, merging, cleaning data * mesh smoothing http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/SmoothPolyDataFilter * 2D & 3D Delaunay triangulation (including alpha shapes) http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/Delaunay3D * surface reconstruction http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/SurfaceFromUnorganizedPoints * vector and scalar mesh warping -- Imaging -- * diffusion filters http://www.vtk.org/doc/nightly/html/classvtkImageAnisotropicDiffusion3D.html * Butterworth, low-pass, high-pass filters * dilation, erosion, skeleton http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDilateErode3D http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDilateErode3D * convolution http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSeparableConvolution * mathematics: difference, arithmetic, magnitude, divergence, gradient, mean http://www.vtk.org/doc/nightly/html/classvtkImageMathematics.html http://www.vtk.org/doc/nightly/html/classvtkImageGradientMagnitude.html * distance * Fourier (FFT and RFFT), Gaussian, Sobel http://http//www.vtk.org/doc/nightly/html/classvtkImageFFT.html http://www.vtk.org/doc/nightly/html/classvtkImageRFFT.html * histogram http://www.vtk.org/doc/nightly/html/c2_vtk_t_9.html#c2_vtk_t_vtkImageHistogram * anisotropic diffusion http://www.vtk.org/doc/nightly/html/classvtkImageAnisotropicDiffusion3D.html * flip, permute, resample, reslice, pad http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html * blending http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/CombineImages * direct volume rendering http://www.kitware.com/source/home/post/154 -- 3D Graphics -- Surface Rendering * per point, cell or actor level control of explicit color values or color mapping of data values * depth peeling based translucency and other multipass techniques http://www.vtk.org/Wiki/VTK/MultiPass_Rendering * shadow mapping based shadows http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows Volume Rendering * software ray casting implementations * texture-based hardware implementations * Surface geometry can be intermixed with volume rendering Graphics Model * Lights illuminate the scene * Cameras define viewpoint * Actors and mappers that connect surface and volume renderings of data into the scene * Manual and automatic generation of level-of-detail in LOD Actors for interactive views of huge models http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LODProp3D * Assemblies group actors into arbitrary hierarchies * Mappers define geometry/link into visualization pipeline * Renderers encapsulate the above into layers and areas within windows Annotation * 2D and 3D text with loadable fonts and latex math text markup http://www.vtk.org/doc/nightly/html/classvtkTextRenderer.html * configurable scalar bars * x-y plots * Flying axes * Overlay planes http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/BackgroundImage * 3D Widgets with extendable view/render architecture http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/BackgroundImage Special Features * Multiple windows/viewports * Variety of stereo output drivers * Motion and focal blur Output to raster (png, jpeg, tiff, bmp and ppm) and vector (ps, pdf) formats -- 2D Plots and Charts -- * vtkTable most of the plots and views take in tabular data http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/ConstructTable * vtkContextScene manages collections of charts and other essentially 2D items on the page http://www.vtk.org/doc/nightly/html/classvtkContextScene.html * vtkChart and area in the context scene where a plot will be displayed http://www.vtk.org/doc/nightly/html/classvtkChart.html * vtkPlot several types of plots that can be drawn in the Chart http://www.vtk.org/doc/nightly/html/classvtkPlot.html * vtkImageItem simply displays vtkImageData in the context scene http://www.vtk.org/doc/nightly/html/classvtkImageItem.html -- Interaction and GUI -- * Integrates seamlessly with a variety of windowing systems including: Qt, FLTK, wxWindows, Tcl/Tk, Python/Tk, Java, X11, Motif, Windows, Cocoa and Carbon. https://vimeo.com/64823685 * A variety of interaction styles including trackball and joystick modes for cameras and actors along with customizable derivatives. http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html http://www.itk.org/Wiki/VTK/Examples/Cxx/Images/PickPixel * An extensive set of 3D widgets including: point, line, spline, plane, box, sphere, scalar bar and image plane widgets who?s appearance and behavior can be independently customized. http://www.vtk.org/Wiki/VTK_Widget_Examples * Picking and Selection for on screen mouse directed scene and data inspection. http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Picking http://www.paraview.org/Wiki/Selection_Implementation_in_VTK_and_ParaView_III * command/observer event pattern ? objects can watch other objects for a particular event and invoke callbacks as appropriate. http://www.vtk.org/Wiki/VTK/Tutorials/Callbacks * Events can be prioritized and aborted for complex event handling -- Infovis -- * vtkTable and vtkGraph classes that most of VTK?s info vis filters operate on http://www.vtk.org/Wiki/VTK/Examples/Cxx/Graphs/VisualizeDirectedGraph * parallel coordinates view http://www.paraview.org/Wiki/VTK/Examples/Cxx/InfoVis/ParallelCoordinatesView * programmable glyphs * splatting * dimensional reduction * abstract view infrastructure including vtkGraphLayoutView http://www.vtk.org/doc/nightly/html/classvtkGraphLayoutView.html * treemaps http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/TreeMapView * hierarchical bundles http://www.vtk.org/doc/nightly/html/classvtkGraphHierarchicalBundleEdges.html * a variety of graph layout algorithms http://www.vtk.org/doc/nightly/html/classvtkGraphLayout.html 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 Gerrick.Bivins at halliburton.com Fri Mar 13 11:30:42 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Fri, 13 Mar 2015 15:30:42 +0000 Subject: [vtkusers] [EXTERNAL] Re: System.loadLibray() in 6.2 In-Reply-To: References: <1426199494879-5730789.post@n5.nabble.com> <1426240937428-5730799.post@n5.nabble.com> Message-ID: I also noticed something strange about this when trying to install VTK 6.2 on Ubuntu. The natives didn?t load properly. I had to resort to setting environment variables? ? This was on my personal machine which, I don?t have access to at the moment. Gerrick From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Sebastien Jourdain Sent: Friday, March 13, 2015 9:06 AM To: -Daniel- Cc: vtkusers Subject: [EXTERNAL] Re: [vtkusers] System.loadLibray() in 6.2 Hum interesting, I'm wondering what are the differences in names between your System.loadLibrary(..) calls and the one listed in vtkNativeLibrary. I'm wondering if it is specific to windows? Do you mind sharing your list of System.loadLibrary(..) and what you have for for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { System.out.println(lib.GetLibraryName()); } Those should match... Thanks, Seb On Fri, Mar 13, 2015 at 4:02 AM, -Daniel- > wrote: If I use your hint, I get the following error message: java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) .. java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in java.library.path .. and so on. But I use System.loadLibrary(..) over all DLLs, then all libraries be loaded. -- View this message in context: http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730799.html Sent from the VTK - Users mailing list archive at Nabble.com. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Mar 13 12:10:04 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 13 Mar 2015 10:10:04 -0600 Subject: [vtkusers] [EXTERNAL] Re: System.loadLibray() in 6.2 In-Reply-To: References: <1426199494879-5730789.post@n5.nabble.com> <1426240937428-5730799.post@n5.nabble.com> Message-ID: I'm not sure if this is related, but I remember having to be selective about which java libraries were loaded, because if I tried to load them all it would fail. The code that I used to load the libraries is here: https://github.com/dgobbi/vtk-dicom/blob/master/Testing/TestDICOMJava.java.in - David On Fri, Mar 13, 2015 at 9:30 AM, Gerrick Bivins < Gerrick.Bivins at halliburton.com> wrote: > I also noticed something strange about this when trying to install VTK > 6.2 on Ubuntu. > > The natives didn't load properly. > > I had to resort to setting environment variables... > > L > > This was on my personal machine which, I don't have access to at the > moment. > > Gerrick > > > > *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Sebastien > Jourdain > *Sent:* Friday, March 13, 2015 9:06 AM > *To:* -Daniel- > *Cc:* vtkusers > *Subject:* [EXTERNAL] Re: [vtkusers] System.loadLibray() in 6.2 > > > > Hum interesting, > > > > I'm wondering what are the differences in names between your System.loadLibrary(..) > calls and the one listed in vtkNativeLibrary. > > > > I'm wondering if it is specific to windows? > > > > Do you mind sharing your list of System.loadLibrary(..) and what you have > for > > > > for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { > > System.out.println(lib.GetLibraryName()); > > } > > > > Those should match... > > > > Thanks, > > > > Seb > > > > On Fri, Mar 13, 2015 at 4:02 AM, -Daniel- > wrote: > > If I use your hint, I get the following error message: > java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > .. > java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in > java.library.path > .. > and so on. > > But I use System.loadLibrary(..) over all DLLs, then all libraries be > loaded. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Mar 13 16:43:50 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 13 Mar 2015 14:43:50 -0600 Subject: [vtkusers] Overlaying contours on DICOM image In-Reply-To: <5B764EEE-09FB-4813-982E-F907A049FD71@gmail.com> References: <5B764EEE-09FB-4813-982E-F907A049FD71@gmail.com> Message-ID: Hi Nick, I haven't used dicom contours specifically, but in general whenever I do any work in VTK where coordinate systems are important, I avoid any use of the 2D rendering classes. After all, VTK's claim to fame is 3D visualization. With 3D data and 3D actors (i.e. classes derived from vtkProp3D), you can use the UserMatrix property of the actor to get the actors in the right position. A tricky part of rendering images via 3D actors such as vtkImageActor or vtkImageSlice is proper positioning of the VTK camera. But the overall flexibility of 3D rendering far outweighs the convenience of 2D rendering. - David On Thu, Mar 12, 2015 at 3:45 PM, Nick Patterson wrote: > Hi, > > I have been using the > http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOMSeries example to > read a CT series. I have also been using the vtkGDCMPolyDataReader to read > in structures from DICOM file. I would like to take the 2D slices from the > polydata (effectively contours) and overlay them on the respective CT > slice. I wondered if anyone can provide guidance on how to do this? I have > tried multiple things, such as vtkPolyDataMapper2D, vtkActor2D etc, but not > really making much progress. > > Regards, Nick. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Fri Mar 13 16:54:22 2015 From: serge at infolytica.com (Serge Lalonde) Date: Fri, 13 Mar 2015 16:54:22 -0400 Subject: [vtkusers] Tips for the display of a fixed size origin marker Message-ID: <55034E7E.3080009@infolytica.com> An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Mar 13 17:23:44 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 13 Mar 2015 15:23:44 -0600 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: <55034E7E.3080009@infolytica.com> References: <55034E7E.3080009@infolytica.com> Message-ID: Hi Serge, To get the scale right, I add an observer for the renderer's StartEvent that does all the necessary calculations to set the position and scale of the actor correctly just before the render occurs. It's kind of messy, but I don't know a better way. The code that I use to compute the correct actor scale is as follows: void ComputeScale(const double position[3], vtkRenderer *renderer) { // Find the cursor scale factor such that 1 data unit length // equals 1 screen pixel at the cursor's distance from the camera. // Start by computing the height of the window at the cursor position. double worldHeight = 1.0; vtkCamera *camera = renderer->GetActiveCamera(); if (camera->GetParallelProjection()) { worldHeight = 2*camera->GetParallelScale(); } else { vtkMatrix4x4 *matrix = camera->GetViewTransformMatrix(); // Get a 3x3 matrix with the camera orientation double cvz[3]; cvz[0] = matrix->GetElement(2, 0); cvz[1] = matrix->GetElement(2, 1); cvz[2] = matrix->GetElement(2, 2); double cameraPosition[3]; camera->GetPosition(cameraPosition); double v[3]; v[0] = cameraPosition[0] - position[0]; v[1] = cameraPosition[1] - position[1]; v[2] = cameraPosition[2] - position[2]; worldHeight = 2*(vtkMath::Dot(v,cvz) * tan(0.5*camera->GetViewAngle()/57.296)); } // Compare world height to window height. int windowHeight = renderer->GetSize()[1]; double scale = 1.0; if (windowHeight > 0) { scale = worldHeight/windowHeight; } return scale; } For the other question, it sounds like you want VTK to ignore the depth buffer when it renders your actor. I don't know if this is possible. If I need an annotation or a cursor to be in front of everything, I do a pick to find the depth (i.e. frontmost object) at the position where I want to render my cursor, and then I place my cursor at that depth. - David On Fri, Mar 13, 2015 at 2:54 PM, Serge Lalonde wrote: > Anyone have any suggestions on how to implement the display of the origin? > It doesn't have to be axes (although that would be nice). > The trick is to get it to be a fixed size regardless of the camera zoom > and to make it visible even if "hidden" inside of another actor. > > Thanks for any tips. > -- > www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 > (514) 849-8752 x236, Fax: (514) 849-4239 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdrahos at thinksurgical.com Fri Mar 13 17:32:07 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Fri, 13 Mar 2015 14:32:07 -0700 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: References: <55034E7E.3080009@infolytica.com>, , Message-ID: Sent my email response a bit too early, sorry. If you decide to layer the renderers, you'll probably want to set the foreground renderer as non-interactive (vtkRenderer::SetInteractive(0)) otherwise it will be grabbing the events from interactors. Cheers, Miro ________________________________________ From: Miroslav Drahos Sent: Friday, March 13, 2015 2:28 PM To: David Gobbi; Serge Lalonde Cc: vtkusers at vtk.org Subject: RE: [vtkusers] Tips for the display of a fixed size origin marker You could stack two renderers, assign the layer number to them (vtkRenderer::SetLayer(int) and vtkRenderWindow::SetNumberOfLayers(int) ) and have the one that's on top contain the origin label actor. That way it will always be visible (as a top layer). ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of David Gobbi [david.gobbi at gmail.com] Sent: Friday, March 13, 2015 2:23 PM To: Serge Lalonde Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Tips for the display of a fixed size origin marker Hi Serge, To get the scale right, I add an observer for the renderer's StartEvent that does all the necessary calculations to set the position and scale of the actor correctly just before the render occurs. It's kind of messy, but I don't know a better way. The code that I use to compute the correct actor scale is as follows: void ComputeScale(const double position[3], vtkRenderer *renderer) { // Find the cursor scale factor such that 1 data unit length // equals 1 screen pixel at the cursor's distance from the camera. // Start by computing the height of the window at the cursor position. double worldHeight = 1.0; vtkCamera *camera = renderer->GetActiveCamera(); if (camera->GetParallelProjection()) { worldHeight = 2*camera->GetParallelScale(); } else { vtkMatrix4x4 *matrix = camera->GetViewTransformMatrix(); // Get a 3x3 matrix with the camera orientation double cvz[3]; cvz[0] = matrix->GetElement(2, 0); cvz[1] = matrix->GetElement(2, 1); cvz[2] = matrix->GetElement(2, 2); double cameraPosition[3]; camera->GetPosition(cameraPosition); double v[3]; v[0] = cameraPosition[0] - position[0]; v[1] = cameraPosition[1] - position[1]; v[2] = cameraPosition[2] - position[2]; worldHeight = 2*(vtkMath::Dot(v,cvz) * tan(0.5*camera->GetViewAngle()/57.296)); } // Compare world height to window height. int windowHeight = renderer->GetSize()[1]; double scale = 1.0; if (windowHeight > 0) { scale = worldHeight/windowHeight; } return scale; } For the other question, it sounds like you want VTK to ignore the depth buffer when it renders your actor. I don't know if this is possible. If I need an annotation or a cursor to be in front of everything, I do a pick to find the depth (i.e. frontmost object) at the position where I want to render my cursor, and then I place my cursor at that depth. - David On Fri, Mar 13, 2015 at 2:54 PM, Serge Lalonde > wrote: Anyone have any suggestions on how to implement the display of the origin? It doesn't have to be axes (although that would be nice). The trick is to get it to be a fixed size regardless of the camera zoom and to make it visible even if "hidden" inside of another actor. Thanks for any tips. -- www.infolytica.com 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 (514) 849-8752 x236, Fax: (514) 849-4239 From mdrahos at thinksurgical.com Fri Mar 13 17:28:46 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Fri, 13 Mar 2015 14:28:46 -0700 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: References: <55034E7E.3080009@infolytica.com>, Message-ID: You could stack two renderers, assign the layer number to them (vtkRenderer::SetLayer(int) and vtkRenderWindow::SetNumberOfLayers(int) ) and have the one that's on top contain the origin label actor. That way it will always be visible (as a top layer). ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of David Gobbi [david.gobbi at gmail.com] Sent: Friday, March 13, 2015 2:23 PM To: Serge Lalonde Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Tips for the display of a fixed size origin marker Hi Serge, To get the scale right, I add an observer for the renderer's StartEvent that does all the necessary calculations to set the position and scale of the actor correctly just before the render occurs. It's kind of messy, but I don't know a better way. The code that I use to compute the correct actor scale is as follows: void ComputeScale(const double position[3], vtkRenderer *renderer) { // Find the cursor scale factor such that 1 data unit length // equals 1 screen pixel at the cursor's distance from the camera. // Start by computing the height of the window at the cursor position. double worldHeight = 1.0; vtkCamera *camera = renderer->GetActiveCamera(); if (camera->GetParallelProjection()) { worldHeight = 2*camera->GetParallelScale(); } else { vtkMatrix4x4 *matrix = camera->GetViewTransformMatrix(); // Get a 3x3 matrix with the camera orientation double cvz[3]; cvz[0] = matrix->GetElement(2, 0); cvz[1] = matrix->GetElement(2, 1); cvz[2] = matrix->GetElement(2, 2); double cameraPosition[3]; camera->GetPosition(cameraPosition); double v[3]; v[0] = cameraPosition[0] - position[0]; v[1] = cameraPosition[1] - position[1]; v[2] = cameraPosition[2] - position[2]; worldHeight = 2*(vtkMath::Dot(v,cvz) * tan(0.5*camera->GetViewAngle()/57.296)); } // Compare world height to window height. int windowHeight = renderer->GetSize()[1]; double scale = 1.0; if (windowHeight > 0) { scale = worldHeight/windowHeight; } return scale; } For the other question, it sounds like you want VTK to ignore the depth buffer when it renders your actor. I don't know if this is possible. If I need an annotation or a cursor to be in front of everything, I do a pick to find the depth (i.e. frontmost object) at the position where I want to render my cursor, and then I place my cursor at that depth. - David On Fri, Mar 13, 2015 at 2:54 PM, Serge Lalonde > wrote: Anyone have any suggestions on how to implement the display of the origin? It doesn't have to be axes (although that would be nice). The trick is to get it to be a fixed size regardless of the camera zoom and to make it visible even if "hidden" inside of another actor. Thanks for any tips. -- www.infolytica.com 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 (514) 849-8752 x236, Fax: (514) 849-4239 From inglis.dl at gmail.com Fri Mar 13 17:46:48 2015 From: inglis.dl at gmail.com (DL I) Date: Fri, 13 Mar 2015 17:46:48 -0400 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: <55034E7E.3080009@infolytica.com> References: <55034E7E.3080009@infolytica.com> Message-ID: HI Serge does vtkOrientationMarkWidget do what you want? You can add vtkAxesActor or vtkAnnotatedCubeActor to the widget for its representation. Dean On Fri, Mar 13, 2015 at 4:54 PM, Serge Lalonde wrote: > Anyone have any suggestions on how to implement the display of the origin? > It doesn't have to be axes (although that would be nice). > The trick is to get it to be a fixed size regardless of the camera zoom and > to make it visible even if "hidden" inside of another actor. > > Thanks for any tips. > -- > www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 > (514) 849-8752 x236, Fax: (514) 849-4239 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From cory.quammen at kitware.com Sun Mar 15 00:40:59 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 15 Mar 2015 00:40:59 -0400 Subject: [vtkusers] Crash in vtkImageMapToColors when upgrading 6.1->6.2 In-Reply-To: References: Message-ID: David and Christian, I have posted a proposed fix for this at http://review.source.kitware.com/#/t/5576/ Your reviews and testing are appreciated. Thanks, Cory On Fri, Mar 13, 2015 at 8:37 AM, David Gobbi wrote: > Hi Christian, > > I noticed this same issue a few days ago and filed a bug report: > http://www.vtk.org/Bug/view.php?id=15365 > > Until this bug is fixed, here is a workaround: > > lut->SetNumberOfTableValues(numberOfTableValues); > lut->GetTable()->Resize(numberOfTableValues + 3); > > Basically, the crash occurs because Resize() is being called by > multiple threads inside vtkImageMapToColors, so the workaround > is to call Resize() beforehand. > > - David > > > On Fri, Mar 13, 2015 at 6:11 AM, Christian Askeland > wrote: >> >> Hi all, >> >> I recently upgraded from vtk 6.1.0 to 6.2.0. Most of my rather large >> vtk-based application runs as before, but I get a crash in >> vtkImageMapToColors. I am testing on OSX10.8, but my jenkins indicates that >> this also happens on Ubuntu 14.04. >> >> The vtkLookupTable that is input to the mapper has a custom >> NumberOfTableValues, and a little digging has shown that setting this value >> > 256 (the default) causes the crash. >> >> Here is a distilled version of the problem: >> >> typedef vtkSmartPointer vtkImageDataPtr; >> typedef vtkSmartPointer vtkLookupTablePtr; >> typedef vtkSmartPointer vtkImageMapToColorsPtr; >> >> // create simple image data >> vtkImageDataPtr image = vtkImageDataPtr::New(); >> image->SetExtent(0, 2, 0, 2, 0, 2); // 3x3x3 image >> image->AllocateScalars(VTK_UNSIGNED_CHAR, 1); >> >> // create simple lut data with a custom table size >> int numberOfTableValues = 257; // anything above 256 (default) fails >> vtkLookupTablePtr lut = vtkLookupTablePtr::New(); >> lut->SetNumberOfTableValues(numberOfTableValues); >> lut->SetTableRange(0, numberOfTableValues - 1); >> lut->Build(); >> >> // send through a vtkImageMapToColors >> vtkImageMapToColorsPtr mapper = vtkImageMapToColorsPtr::New(); >> mapper->SetOutputFormatToRGBA(); >> mapper->SetInputData(image); >> mapper->SetLookupTable(lut); >> mapper->Update(); // crashes deep inside >> vtkLookupTable::MapScalarsThroughTable2 >> >> The call stack in the crashing thread is >> >> abort >> free >> vtkDataArrayTemplate::ResizeAndExtend(long long) >> vtkDataArrayTemplate::Resize(long long) >> void (anonymous namespace)::vtkLookupTableMapData(...) >> vtkLookupTable::MapScalarsThroughTable2(void*, unsigned char*, int, int, >> int, int) >> vtkImageMapToColors::ThreadedRequestData(...) >> vtkThreadedImageAlgorithmThreadedExecute(...) >> >> Even more digging shows that calling >> vtkLookupTable::MapScalarsThroughTable explicitly after creating the lut >> removes the crash: >> >> unsigned char input = 0; >> lut->MapScalarsThroughTable2(&input, &input, VTK_UNSIGNED_CHAR, 1, 1, 1); >> >> I have not started digging into the vtk code itself yet. >> >> I would appreciate if anyone have an idea of what is wrong here. I can >> file a bug report if noone have a solution. >> > -- Cory Quammen R&D Engineer Kitware, Inc. From mnour.ai at hotmail.com Sun Mar 15 02:20:16 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Sun, 15 Mar 2015 06:20:16 +0000 Subject: [vtkusers] Fill interior 3D object Message-ID: Hi all,I am using MS visual studio 2008 and vtk 5.10I want to fill interior of some objects (like sphere), so they must be solid. I've tried vtkFillHolesFilter class but it fills holes of surface not inside object.Is there any other filter or class can do it?Thank you very much -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.robitaille at gmail.com Sun Mar 15 08:45:53 2015 From: thomas.robitaille at gmail.com (Thomas Robitaille) Date: Sun, 15 Mar 2015 13:45:53 +0100 Subject: [vtkusers] Latest Python 3 status? Message-ID: Hi everyone, Back in August, there was a discussion on this list about the status of Python 3 support, and some ideas were discussed in terms of planning this: http://public.kitware.com/pipermail/vtkusers/2014-August/084657.html I was just curious whether there have been any updates since then? Is anyone actively working on this? Is there a page that summarizes the workflow and progress and how people can help? Thanks, Tom From ich_daniel at habmalnefrage.de Sun Mar 15 10:55:47 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sun, 15 Mar 2015 07:55:47 -0700 (MST) Subject: [vtkusers] System.loadLibray() in 6.2 In-Reply-To: References: <1426199494879-5730789.post@n5.nabble.com> <1426240937428-5730799.post@n5.nabble.com> Message-ID: <1426431347991-5730826.post@n5.nabble.com> At first, sorry for this long message! By using vtkNativeLibrary (hint of Sebastien), I get following output: java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkRenderingGL2PSJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkRenderingLICJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkRenderingOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkRenderingVolumeOpenGLJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) java.lang.UnsatisfiedLinkError: no vtkTestingRenderingJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) at start.myProg.loadVTKLibrary(myProg.java:280) at start.myProg.main(myProg.java:82) vtkAcceleratorsDaxJava not loaded vtkAcceleratorsPistonJava not loaded vtkDomainsChemistryOpenGL2Java not loaded vtkFiltersParallelFlowPathsJava not loaded vtkFiltersParallelGeometryJava not loaded vtkChartsCoreJava is loaded! vtkCommonColorJava is loaded! vtkCommonComputationalGeometryJava is loaded! vtkCommonCoreJava is loaded! vtkCommonDataModelJava is loaded! vtkCommonExecutionModelJava is loaded! vtkFiltersParallelMPIJava not loaded vtkFiltersParallelStatisticsJava not loaded vtkFiltersReebGraphJava not loaded vtkCommonMathJava is loaded! vtkCommonMiscJava is loaded! vtkCommonSystemJava is loaded! vtkCommonTransformsJava is loaded! vtkDomainsChemistryJava is loaded! vtkFiltersAMRJava is loaded! vtkFiltersCoreJava is loaded! vtkFiltersExtractionJava is loaded! vtkFiltersFlowPathsJava is loaded! vtkFiltersGeneralJava is loaded! vtkFiltersGenericJava is loaded! vtkFiltersGeometryJava is loaded! vtkFiltersHybridJava is loaded! vtkFiltersHyperTreeJava is loaded! vtkFiltersImagingJava is loaded! vtkFiltersModelingJava is loaded! vtkFiltersParallelJava is loaded! vtkFiltersParallelImagingJava is loaded! vtkFiltersProgrammableJava is loaded! vtkFiltersSelectionJava is loaded! vtkFiltersSMPJava is loaded! vtkFiltersSourcesJava is loaded! vtkFiltersStatisticsJava is loaded! vtkFiltersStatisticsGnuRJava not loaded vtkFiltersTextureJava is loaded! vtkFiltersVerdictJava is loaded! vtkGeovisCoreJava is loaded! vtkImagingColorJava is loaded! vtkImagingCoreJava is loaded! vtkImagingFourierJava is loaded! vtkImagingGeneralJava is loaded! vtkImagingHybridJava is loaded! vtkImagingMathJava is loaded! vtkImagingMorphologicalJava is loaded! vtkImagingSourcesJava is loaded! vtkImagingStatisticsJava is loaded! vtkImagingStencilJava is loaded! vtkInfovisBoostGraphAlgorithmsJava not loaded vtkInfovisCoreJava is loaded! vtkInfovisLayoutJava is loaded! vtkInfovisParallelJava not loaded vtkInteractionImageJava is loaded! vtkInteractionStyleJava is loaded! vtkInteractionWidgetsJava is loaded! vtkIOADIOSJava not loaded vtkIOAMRJava is loaded! vtkIOCoreJava is loaded! vtkIOEnSightJava is loaded! vtkIOExodusJava is loaded! vtkIOExportJava is loaded! vtkIOFFMPEGJava not loaded vtkIOGDALJava not loaded vtkIOGeoJSONJava not loaded vtkIOGeometryJava is loaded! vtkIOImageJava is loaded! vtkIOImportJava is loaded! vtkIOInfovisJava is loaded! vtkIOLegacyJava is loaded! vtkIOLSDynaJava is loaded! vtkIOMINCJava is loaded! vtkIOMovieJava is loaded! vtkIOMPIImageJava not loaded vtkIOMPIParallelJava not loaded vtkIOMySQLJava not loaded vtkIONetCDFJava is loaded! vtkIOODBCJava not loaded vtkIOParallelJava is loaded! vtkIOParallelExodusJava not loaded vtkIOParallelLSDynaJava not loaded vtkIOParallelNetCDFJava not loaded vtkIOParallelXMLJava is loaded! vtkIOPLYJava is loaded! vtkIOPostgreSQLJava not loaded vtkIOSQLJava is loaded! vtkIOVideoJava is loaded! vtkIOVPICJava not loaded vtkIOXdmf2Java not loaded vtkIOXdmf3Java not loaded vtkIOXMLJava is loaded! vtkIOXMLParserJava is loaded! vtkParallelCoreJava is loaded! vtkParallelMPIJava not loaded vtkRenderingAnnotationJava is loaded! vtkRenderingContext2DJava is loaded! vtkRenderingContextOpenGLJava not loaded vtkRenderingContextOpenGL2Java not loaded vtkRenderingCoreJava is loaded! vtkRenderingExternalJava not loaded vtkRenderingFreeTypeJava is loaded! vtkRenderingFreeTypeOpenGLJava not loaded vtkRenderingFreeTypeOpenGL2Java not loaded vtkRenderingGL2PSJava not loaded vtkRenderingImageJava is loaded! vtkRenderingLabelJava is loaded! vtkRenderingLICJava not loaded vtkRenderingLODJava is loaded! vtkRenderingMatplotlibJava not loaded vtkRenderingOpenGLJava not loaded vtkRenderingOpenGL2Java not loaded vtkRenderingParallelJava not loaded vtkRenderingParallelLICJava not loaded vtkRenderingQtJava not loaded vtkRenderingVolumeJava is loaded! vtkRenderingVolumeAMRJava not loaded vtkRenderingVolumeOpenGLJava not loaded vtkRenderingVolumeOpenGL2Java not loaded vtkRenderingVolumeOpenGLNewJava not loaded vtkTestingRenderingJava not loaded vtkPythonInterpreterJava not loaded vtkViewsContext2DJava is loaded! vtkViewsCoreJava is loaded! vtkViewsGeovisJava not loaded vtkViewsInfovisJava is loaded! vtkWebCoreJava not loaded vtkWebGLExporterJava not loaded # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff84ddf9750, pid=3592, tid=3684 # # JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build 1.8.0_40-b25) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [vtkCommonCore-6.2.dll+0xf9750] ... and so on... Up to the crash 80 files loaded and 49 not loaded. My current version (without crash) load total of 193 dll-files: //*************** dir == (../directory/to/the/VTK/DLLs) File[] files = dir.listFiles(); if (files != null) { for (int i = 0; i < files.length; i++) { // only the lib-name needed, without file extension System.loadLibrary(files[i].getName().substring(0, files[i].getName().length()-4)); if (files[i].isDirectory()) { listDir(files[i]); } } } //*************** -- View this message in context: http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730826.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Mar 15 11:07:55 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 15 Mar 2015 09:07:55 -0600 Subject: [vtkusers] Latest Python 3 status? In-Reply-To: References: Message-ID: http://vtk.markmail.org/search/?q=python3 On Sun, Mar 15, 2015 at 6:45 AM, Thomas Robitaille < thomas.robitaille at gmail.com> wrote: > Hi everyone, > > Back in August, there was a discussion on this list about the status > of Python 3 support, and some ideas were discussed in terms of > planning this: > > http://public.kitware.com/pipermail/vtkusers/2014-August/084657.html > > I was just curious whether there have been any updates since then? Is > anyone actively working on this? Is there a page that summarizes the > workflow and progress and how people can help? > > Thanks, > Tom > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Sun Mar 15 13:23:57 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sun, 15 Mar 2015 10:23:57 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> Message-ID: <1426440237529-5730828.post@n5.nabble.com> I try to use the example, but I get a UnsatisfiedLinkError "vtk.vtkDICOMSorter.VTKInit()J". The relevant DLLs are in the intended folder. Only "vtkDICOM-6.1.dll" and "vtkDICOMJava.dll" (and vtkdicom.jar) was created. No more DLLs? Is it all? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730828.html Sent from the VTK - Users mailing list archive at Nabble.com. From madaramh at gmail.com Mon Mar 16 01:29:47 2015 From: madaramh at gmail.com (madz) Date: Sun, 15 Mar 2015 22:29:47 -0700 (MST) Subject: [vtkusers] Generate interpolated points Message-ID: <1426483787106-5730829.post@n5.nabble.com> I have a set of linear 3D points I want to interpolate them and increase the number of points in the line. eg - Interpolate 6 points and create 20 points along the line How do I achieve this objective. Any help would be appreciated. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Generate-interpolated-points-tp5730829.html Sent from the VTK - Users mailing list archive at Nabble.com. From christian.askeland at gmail.com Mon Mar 16 03:23:16 2015 From: christian.askeland at gmail.com (Christian Askeland) Date: Mon, 16 Mar 2015 08:23:16 +0100 Subject: [vtkusers] Crash in vtkImageMapToColors when upgrading 6.1->6.2 In-Reply-To: References: Message-ID: Hi David and Cory, Thank you for looking into this. I'll use the workaround until the next release. -Christian On Sun, Mar 15, 2015 at 5:40 AM, Cory Quammen wrote: > David and Christian, > > I have posted a proposed fix for this at > http://review.source.kitware.com/#/t/5576/ > > Your reviews and testing are appreciated. > > Thanks, > Cory > > On Fri, Mar 13, 2015 at 8:37 AM, David Gobbi > wrote: > > Hi Christian, > > > > I noticed this same issue a few days ago and filed a bug report: > > http://www.vtk.org/Bug/view.php?id=15365 > > > > Until this bug is fixed, here is a workaround: > > > > lut->SetNumberOfTableValues(numberOfTableValues); > > lut->GetTable()->Resize(numberOfTableValues + 3); > > > > Basically, the crash occurs because Resize() is being called by > > multiple threads inside vtkImageMapToColors, so the workaround > > is to call Resize() beforehand. > > > > - David > > > > > > On Fri, Mar 13, 2015 at 6:11 AM, Christian Askeland > > wrote: > >> > >> Hi all, > >> > >> I recently upgraded from vtk 6.1.0 to 6.2.0. Most of my rather large > >> vtk-based application runs as before, but I get a crash in > >> vtkImageMapToColors. I am testing on OSX10.8, but my jenkins indicates > that > >> this also happens on Ubuntu 14.04. > >> > >> The vtkLookupTable that is input to the mapper has a custom > >> NumberOfTableValues, and a little digging has shown that setting this > value > >> > 256 (the default) causes the crash. > >> > >> Here is a distilled version of the problem: > >> > >> typedef vtkSmartPointer vtkImageDataPtr; > >> typedef vtkSmartPointer vtkLookupTablePtr; > >> typedef vtkSmartPointer vtkImageMapToColorsPtr; > >> > >> // create simple image data > >> vtkImageDataPtr image = vtkImageDataPtr::New(); > >> image->SetExtent(0, 2, 0, 2, 0, 2); // 3x3x3 image > >> image->AllocateScalars(VTK_UNSIGNED_CHAR, 1); > >> > >> // create simple lut data with a custom table size > >> int numberOfTableValues = 257; // anything above 256 (default) fails > >> vtkLookupTablePtr lut = vtkLookupTablePtr::New(); > >> lut->SetNumberOfTableValues(numberOfTableValues); > >> lut->SetTableRange(0, numberOfTableValues - 1); > >> lut->Build(); > >> > >> // send through a vtkImageMapToColors > >> vtkImageMapToColorsPtr mapper = vtkImageMapToColorsPtr::New(); > >> mapper->SetOutputFormatToRGBA(); > >> mapper->SetInputData(image); > >> mapper->SetLookupTable(lut); > >> mapper->Update(); // crashes deep inside > >> vtkLookupTable::MapScalarsThroughTable2 > >> > >> The call stack in the crashing thread is > >> > >> abort > >> free > >> vtkDataArrayTemplate::ResizeAndExtend(long long) > >> vtkDataArrayTemplate::Resize(long long) > >> void (anonymous namespace)::vtkLookupTableMapData(...) > >> vtkLookupTable::MapScalarsThroughTable2(void*, unsigned char*, int, int, > >> int, int) > >> vtkImageMapToColors::ThreadedRequestData(...) > >> vtkThreadedImageAlgorithmThreadedExecute(...) > >> > >> Even more digging shows that calling > >> vtkLookupTable::MapScalarsThroughTable explicitly after creating the lut > >> removes the crash: > >> > >> unsigned char input = 0; > >> lut->MapScalarsThroughTable2(&input, &input, VTK_UNSIGNED_CHAR, 1, 1, > 1); > >> > >> I have not started digging into the vtk code itself yet. > >> > >> I would appreciate if anyone have an idea of what is wrong here. I can > >> file a bug report if noone have a solution. > >> > > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tr_jun-jiang.ee at vitrox.com Mon Mar 16 04:29:29 2015 From: tr_jun-jiang.ee at vitrox.com (James Potota) Date: Mon, 16 Mar 2015 01:29:29 -0700 (MST) Subject: [vtkusers] Embed C++ vtk window into java Message-ID: <1426494569674-5730831.post@n5.nabble.com> Hi. I'm new to vtk. I can launch a C++ VTK window in my Java application by using JNI but they were in separate windows. What I want to do is embed that C++ vtk window into my java application. I hava an idea which is pass the "vtkRenderWindow" as an object from C++ to Java via JNI. Because I assume both "vtkRenderWindow" in C++ and Java were the same data type but i doubt it would works. Can anyone please show me a correct way to achieve this ? I would really appreciate that. -- View this message in context: http://vtk.1045678.n5.nabble.com/Embed-C-vtk-window-into-java-tp5730831.html Sent from the VTK - Users mailing list archive at Nabble.com. From Gerrick.Bivins at halliburton.com Mon Mar 16 08:03:44 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Mon, 16 Mar 2015 12:03:44 +0000 Subject: [vtkusers] [EXTERNAL] Embed C++ vtk window into java In-Reply-To: <1426494569674-5730831.post@n5.nabble.com> References: <1426494569674-5730831.post@n5.nabble.com> Message-ID: Hi James, It's not clear to me what you are trying to accomplish. VTK can run in C++ or Java (and Python). Why do you need to embed a C++ window in Java? Using the Java API's you can create a "VTK window" for your Java application like this: http://www.vtk.org/Wiki/VTK/Examples/Java/Cylinder More examples here: http://www.vtk.org/Wiki/VTK/Examples/Java Gerrick -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of James Potota Sent: Monday, March 16, 2015 3:29 AM To: vtkusers at vtk.org Subject: [EXTERNAL] [vtkusers] Embed C++ vtk window into java Hi. I'm new to vtk. I can launch a C++ VTK window in my Java application by using JNI but they were in separate windows. What I want to do is embed that C++ vtk window into my java application. I hava an idea which is pass the "vtkRenderWindow" as an object from C++ to Java via JNI. Because I assume both "vtkRenderWindow" in C++ and Java were the same data type but i doubt it would works. Can anyone please show me a correct way to achieve this ? I would really appreciate that. -- View this message in context: http://vtk.1045678.n5.nabble.com/Embed-C-vtk-window-into-java-tp5730831.html Sent from the VTK - Users mailing list archive at Nabble.com. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. From david.gobbi at gmail.com Mon Mar 16 09:45:07 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 16 Mar 2015 07:45:07 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426440237529-5730828.post@n5.nabble.com> References: <1416380155124-5729504.post@n5.nabble.com> <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> Message-ID: On Sun, Mar 15, 2015 at 11:23 AM, -Daniel- wrote: > I try to use the example, but I get a UnsatisfiedLinkError > "vtk.vtkDICOMSorter.VTKInit()J". > The relevant DLLs are in the intended folder. Only "vtkDICOM-6.1.dll" and > "vtkDICOMJava.dll" (and vtkdicom.jar) was created. No more DLLs? Is it all? > Those are the only two DLLs. Do you load the vtkDICOMJava library in your program, e.g. is Runtime.getRuntime().loadLibrary("vtkDICOMJava") called? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Mon Mar 16 09:46:48 2015 From: serge at infolytica.com (Serge Lalonde) Date: Mon, 16 Mar 2015 09:46:48 -0400 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: References: <55034E7E.3080009@infolytica.com>, , Message-ID: <5506DEC8.2040706@infolytica.com> An HTML attachment was scrubbed... URL: From serge at infolytica.com Mon Mar 16 09:50:13 2015 From: serge at infolytica.com (Serge Lalonde) Date: Mon, 16 Mar 2015 09:50:13 -0400 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: References: <55034E7E.3080009@infolytica.com> Message-ID: <5506DF95.306@infolytica.com> An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Mar 16 09:50:00 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 16 Mar 2015 07:50:00 -0600 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: <5506DEC8.2040706@infolytica.com> References: <55034E7E.3080009@infolytica.com> <5506DEC8.2040706@infolytica.com> Message-ID: Hi Serge, In this case, you can just set both the renderers to have the same camera. - David On Mon, Mar 16, 2015 at 7:46 AM, Serge Lalonde wrote: > Hi Miroslav and David, > > Thanks for the suggestions. That's what I was looking for. > I'll implement it using a separate renderer to avoid mixing actors and to > set the layer. > I just need to read up on synchronizing the cameras between the two > renderers and it should work. > > Thanks! > > > On 3/13/2015 5:32 PM, Miroslav Drahos wrote: > > Sent my email response a bit too early, sorry. > > If you decide to layer the renderers, you'll probably want to set the foreground renderer as non-interactive (vtkRenderer::SetInteractive(0)) otherwise it will be grabbing the events from interactors. > Cheers, > Miro > > > ________________________________________ > From: Miroslav Drahos > Sent: Friday, March 13, 2015 2:28 PM > To: David Gobbi; Serge Lalonde > Cc: vtkusers at vtk.org > Subject: RE: [vtkusers] Tips for the display of a fixed size origin marker > > You could stack two renderers, assign the layer number to them (vtkRenderer::SetLayer(int) and vtkRenderWindow::SetNumberOfLayers(int) ) and have the one that's on top contain the origin label actor. That way it will always be visible (as a top layer). > > ________________________________________ > From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of David Gobbi [david.gobbi at gmail.com] > Sent: Friday, March 13, 2015 2:23 PM > To: Serge Lalonde > Cc: vtkusers at vtk.org > Subject: Re: [vtkusers] Tips for the display of a fixed size origin marker > > Hi Serge, > > To get the scale right, I add an observer for the renderer's StartEvent > that does all the necessary calculations to set the position and scale > of the actor correctly just before the render occurs. It's kind of messy, > but I don't know a better way. The code that I use to compute the > correct actor scale is as follows: > > void ComputeScale(const double position[3], vtkRenderer *renderer) > { > // Find the cursor scale factor such that 1 data unit length > // equals 1 screen pixel at the cursor's distance from the camera. > // Start by computing the height of the window at the cursor position. > double worldHeight = 1.0; > vtkCamera *camera = renderer->GetActiveCamera(); > if (camera->GetParallelProjection()) > { > worldHeight = 2*camera->GetParallelScale(); > } > else > { > vtkMatrix4x4 *matrix = camera->GetViewTransformMatrix(); > // Get a 3x3 matrix with the camera orientation > double cvz[3]; > cvz[0] = matrix->GetElement(2, 0); > cvz[1] = matrix->GetElement(2, 1); > cvz[2] = matrix->GetElement(2, 2); > > double cameraPosition[3]; > camera->GetPosition(cameraPosition); > > double v[3]; > v[0] = cameraPosition[0] - position[0]; > v[1] = cameraPosition[1] - position[1]; > v[2] = cameraPosition[2] - position[2]; > > worldHeight = 2*(vtkMath::Dot(v,cvz) > * tan(0.5*camera->GetViewAngle()/57.296)); > } > > // Compare world height to window height. > int windowHeight = renderer->GetSize()[1]; > double scale = 1.0; > if (windowHeight > 0) > { > scale = worldHeight/windowHeight; > } > > return scale; > } > > For the other question, it sounds like you want VTK to ignore the depth > buffer when it renders your actor. I don't know if this is possible. If I need > an annotation or a cursor to be in front of everything, I do a pick to find the > depth (i.e. frontmost object) at the position where I want to render my cursor, > and then I place my cursor at that depth. > > - David > > > On Fri, Mar 13, 2015 at 2:54 PM, Serge Lalonde > wrote: > Anyone have any suggestions on how to implement the display of the origin? > It doesn't have to be axes (although that would be nice). > The trick is to get it to be a fixed size regardless of the camera zoom and to make it visible even if "hidden" inside of another actor. > > Thanks for any tips. > --www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3(514) 849-8752 x236 <%28514%29%20849-8752%20x236>, Fax: (514) 849-4239 <%28514%29%20849-4239> > > > > -- > www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 > (514) 849-8752 x236, Fax: (514) 849-4239 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Mar 16 10:47:04 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 16 Mar 2015 08:47:04 -0600 Subject: [vtkusers] System.loadLibray() in 6.2 In-Reply-To: <1426431347991-5730826.post@n5.nabble.com> References: <1426199494879-5730789.post@n5.nabble.com> <1426240937428-5730799.post@n5.nabble.com> <1426431347991-5730826.post@n5.nabble.com> Message-ID: Thanks Daniel for sharing. I guess if we revisit that part to allow the native libraries to be loaded from a single jar, that could solve the problem all together. I'll see if I can get some time to work on that part. Seb On Sun, Mar 15, 2015 at 8:55 AM, -Daniel- wrote: > At first, sorry for this long message! > > By using vtkNativeLibrary (hint of Sebastien), I get following output: > > java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkRenderingGL2PSJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkRenderingLICJava in java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkRenderingOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkRenderingVolumeOpenGLJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > java.lang.UnsatisfiedLinkError: no vtkTestingRenderingJava in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225) > at > vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160) > at start.myProg.loadVTKLibrary(myProg.java:280) > at start.myProg.main(myProg.java:82) > vtkAcceleratorsDaxJava not loaded > vtkAcceleratorsPistonJava not loaded > vtkDomainsChemistryOpenGL2Java not loaded > vtkFiltersParallelFlowPathsJava not loaded > vtkFiltersParallelGeometryJava not loaded > vtkChartsCoreJava is loaded! > vtkCommonColorJava is loaded! > vtkCommonComputationalGeometryJava is loaded! > vtkCommonCoreJava is loaded! > vtkCommonDataModelJava is loaded! > vtkCommonExecutionModelJava is loaded! > vtkFiltersParallelMPIJava not loaded > vtkFiltersParallelStatisticsJava not loaded > vtkFiltersReebGraphJava not loaded > vtkCommonMathJava is loaded! > vtkCommonMiscJava is loaded! > vtkCommonSystemJava is loaded! > vtkCommonTransformsJava is loaded! > vtkDomainsChemistryJava is loaded! > vtkFiltersAMRJava is loaded! > vtkFiltersCoreJava is loaded! > vtkFiltersExtractionJava is loaded! > vtkFiltersFlowPathsJava is loaded! > vtkFiltersGeneralJava is loaded! > vtkFiltersGenericJava is loaded! > vtkFiltersGeometryJava is loaded! > vtkFiltersHybridJava is loaded! > vtkFiltersHyperTreeJava is loaded! > vtkFiltersImagingJava is loaded! > vtkFiltersModelingJava is loaded! > vtkFiltersParallelJava is loaded! > vtkFiltersParallelImagingJava is loaded! > vtkFiltersProgrammableJava is loaded! > vtkFiltersSelectionJava is loaded! > vtkFiltersSMPJava is loaded! > vtkFiltersSourcesJava is loaded! > vtkFiltersStatisticsJava is loaded! > vtkFiltersStatisticsGnuRJava not loaded > vtkFiltersTextureJava is loaded! > vtkFiltersVerdictJava is loaded! > vtkGeovisCoreJava is loaded! > vtkImagingColorJava is loaded! > vtkImagingCoreJava is loaded! > vtkImagingFourierJava is loaded! > vtkImagingGeneralJava is loaded! > vtkImagingHybridJava is loaded! > vtkImagingMathJava is loaded! > vtkImagingMorphologicalJava is loaded! > vtkImagingSourcesJava is loaded! > vtkImagingStatisticsJava is loaded! > vtkImagingStencilJava is loaded! > vtkInfovisBoostGraphAlgorithmsJava not loaded > vtkInfovisCoreJava is loaded! > vtkInfovisLayoutJava is loaded! > vtkInfovisParallelJava not loaded > vtkInteractionImageJava is loaded! > vtkInteractionStyleJava is loaded! > vtkInteractionWidgetsJava is loaded! > vtkIOADIOSJava not loaded > vtkIOAMRJava is loaded! > vtkIOCoreJava is loaded! > vtkIOEnSightJava is loaded! > vtkIOExodusJava is loaded! > vtkIOExportJava is loaded! > vtkIOFFMPEGJava not loaded > vtkIOGDALJava not loaded > vtkIOGeoJSONJava not loaded > vtkIOGeometryJava is loaded! > vtkIOImageJava is loaded! > vtkIOImportJava is loaded! > vtkIOInfovisJava is loaded! > vtkIOLegacyJava is loaded! > vtkIOLSDynaJava is loaded! > vtkIOMINCJava is loaded! > vtkIOMovieJava is loaded! > vtkIOMPIImageJava not loaded > vtkIOMPIParallelJava not loaded > vtkIOMySQLJava not loaded > vtkIONetCDFJava is loaded! > vtkIOODBCJava not loaded > vtkIOParallelJava is loaded! > vtkIOParallelExodusJava not loaded > vtkIOParallelLSDynaJava not loaded > vtkIOParallelNetCDFJava not loaded > vtkIOParallelXMLJava is loaded! > vtkIOPLYJava is loaded! > vtkIOPostgreSQLJava not loaded > vtkIOSQLJava is loaded! > vtkIOVideoJava is loaded! > vtkIOVPICJava not loaded > vtkIOXdmf2Java not loaded > vtkIOXdmf3Java not loaded > vtkIOXMLJava is loaded! > vtkIOXMLParserJava is loaded! > vtkParallelCoreJava is loaded! > vtkParallelMPIJava not loaded > vtkRenderingAnnotationJava is loaded! > vtkRenderingContext2DJava is loaded! > vtkRenderingContextOpenGLJava not loaded > vtkRenderingContextOpenGL2Java not loaded > vtkRenderingCoreJava is loaded! > vtkRenderingExternalJava not loaded > vtkRenderingFreeTypeJava is loaded! > vtkRenderingFreeTypeOpenGLJava not loaded > vtkRenderingFreeTypeOpenGL2Java not loaded > vtkRenderingGL2PSJava not loaded > vtkRenderingImageJava is loaded! > vtkRenderingLabelJava is loaded! > vtkRenderingLICJava not loaded > vtkRenderingLODJava is loaded! > vtkRenderingMatplotlibJava not loaded > vtkRenderingOpenGLJava not loaded > vtkRenderingOpenGL2Java not loaded > vtkRenderingParallelJava not loaded > vtkRenderingParallelLICJava not loaded > vtkRenderingQtJava not loaded > vtkRenderingVolumeJava is loaded! > vtkRenderingVolumeAMRJava not loaded > vtkRenderingVolumeOpenGLJava not loaded > vtkRenderingVolumeOpenGL2Java not loaded > vtkRenderingVolumeOpenGLNewJava not loaded > vtkTestingRenderingJava not loaded > vtkPythonInterpreterJava not loaded > vtkViewsContext2DJava is loaded! > vtkViewsCoreJava is loaded! > vtkViewsGeovisJava not loaded > vtkViewsInfovisJava is loaded! > vtkWebCoreJava not loaded > vtkWebGLExporterJava not loaded > # > # A fatal error has been detected by the Java Runtime Environment: > # > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff84ddf9750, > pid=3592, tid=3684 > # > # JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build > 1.8.0_40-b25) > # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode > windows-amd64 compressed oops) > # Problematic frame: > # C [vtkCommonCore-6.2.dll+0xf9750] > > ... and so on... > > Up to the crash 80 files loaded and 49 not loaded. > > > My current version (without crash) load total of 193 dll-files: > > //*************** > dir == (../directory/to/the/VTK/DLLs) > File[] files = dir.listFiles(); > if (files != null) { > for (int i = 0; i < files.length; i++) { > // only the lib-name needed, without file extension > System.loadLibrary(files[i].getName().substring(0, > files[i].getName().length()-4)); > if (files[i].isDirectory()) { > listDir(files[i]); > } > } > } > //*************** > > > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730826.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdrahos at thinksurgical.com Mon Mar 16 14:05:48 2015 From: mdrahos at thinksurgical.com (Miroslav Drahos) Date: Mon, 16 Mar 2015 11:05:48 -0700 Subject: [vtkusers] Tips for the display of a fixed size origin marker In-Reply-To: References: <55034E7E.3080009@infolytica.com> <5506DEC8.2040706@infolytica.com>, Message-ID: Serge, just like David mentioned, tying cameras should be as easy as: ren1->SetActiveCamera(ren2->GetActiveCamera()); Cheers, Miro ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of David Gobbi [david.gobbi at gmail.com] Sent: Monday, March 16, 2015 6:50 AM To: Serge Lalonde Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Tips for the display of a fixed size origin marker Hi Serge, In this case, you can just set both the renderers to have the same camera. - David On Mon, Mar 16, 2015 at 7:46 AM, Serge Lalonde > wrote: Hi Miroslav and David, Thanks for the suggestions. That's what I was looking for. I'll implement it using a separate renderer to avoid mixing actors and to set the layer. I just need to read up on synchronizing the cameras between the two renderers and it should work. Thanks! On 3/13/2015 5:32 PM, Miroslav Drahos wrote: Sent my email response a bit too early, sorry. If you decide to layer the renderers, you'll probably want to set the foreground renderer as non-interactive (vtkRenderer::SetInteractive(0)) otherwise it will be grabbing the events from interactors. Cheers, Miro ________________________________________ From: Miroslav Drahos Sent: Friday, March 13, 2015 2:28 PM To: David Gobbi; Serge Lalonde Cc: vtkusers at vtk.org Subject: RE: [vtkusers] Tips for the display of a fixed size origin marker You could stack two renderers, assign the layer number to them (vtkRenderer::SetLayer(int) and vtkRenderWindow::SetNumberOfLayers(int) ) and have the one that's on top contain the origin label actor. That way it will always be visible (as a top layer). ________________________________________ From: vtkusers [vtkusers-bounces at vtk.org] On Behalf Of David Gobbi [david.gobbi at gmail.com] Sent: Friday, March 13, 2015 2:23 PM To: Serge Lalonde Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Tips for the display of a fixed size origin marker Hi Serge, To get the scale right, I add an observer for the renderer's StartEvent that does all the necessary calculations to set the position and scale of the actor correctly just before the render occurs. It's kind of messy, but I don't know a better way. The code that I use to compute the correct actor scale is as follows: void ComputeScale(const double position[3], vtkRenderer *renderer) { // Find the cursor scale factor such that 1 data unit length // equals 1 screen pixel at the cursor's distance from the camera. // Start by computing the height of the window at the cursor position. double worldHeight = 1.0; vtkCamera *camera = renderer->GetActiveCamera(); if (camera->GetParallelProjection()) { worldHeight = 2*camera->GetParallelScale(); } else { vtkMatrix4x4 *matrix = camera->GetViewTransformMatrix(); // Get a 3x3 matrix with the camera orientation double cvz[3]; cvz[0] = matrix->GetElement(2, 0); cvz[1] = matrix->GetElement(2, 1); cvz[2] = matrix->GetElement(2, 2); double cameraPosition[3]; camera->GetPosition(cameraPosition); double v[3]; v[0] = cameraPosition[0] - position[0]; v[1] = cameraPosition[1] - position[1]; v[2] = cameraPosition[2] - position[2]; worldHeight = 2*(vtkMath::Dot(v,cvz) * tan(0.5*camera->GetViewAngle()/57.296)); } // Compare world height to window height. int windowHeight = renderer->GetSize()[1]; double scale = 1.0; if (windowHeight > 0) { scale = worldHeight/windowHeight; } return scale; } For the other question, it sounds like you want VTK to ignore the depth buffer when it renders your actor. I don't know if this is possible. If I need an annotation or a cursor to be in front of everything, I do a pick to find the depth (i.e. frontmost object) at the position where I want to render my cursor, and then I place my cursor at that depth. - David On Fri, Mar 13, 2015 at 2:54 PM, Serge Lalonde > wrote: Anyone have any suggestions on how to implement the display of the origin? It doesn't have to be axes (although that would be nice). The trick is to get it to be a fixed size regardless of the camera zoom and to make it visible even if "hidden" inside of another actor. Thanks for any tips. -- www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 (514) 849-8752 x236, Fax: (514) 849-4239 -- www.infolytica.com 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 (514) 849-8752 x236, Fax: (514) 849-4239 From sean at rogue-research.com Mon Mar 16 14:09:26 2015 From: sean at rogue-research.com (Sean McBride) Date: Mon, 16 Mar 2015 14:09:26 -0400 Subject: [vtkusers] RFC: Compiler support, removing hacks for old compilers Message-ID: <20150316180926.1146005295@mail.rogue-research.com> Hi all, VTK currently contains hacks for various old compilers. I'd like to prune some of this and increase the minimum compiler requirements. I'd be interested to know from the community what are the oldest compilers you care about? Anyone out there using a compiler older than 5 years or so? Concretely, I thought I'd start by removing support for: - gcc 3.x - MSVC++ 8.0 (aka Visual Studio 2005) The minimums would therefore become: - gcc 4.0 - Released: 2005-04-20 - MSVC++ 9.0 (aka Visual Studio 2008) - Released: 2007-11-19 The motivation being: - reduce cruft in the codebase - allow use of newer language features (C++11 eventually) Thoughts? Thanks, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From jim at jslengineeringsoftware.com Mon Mar 16 15:43:48 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Mon, 16 Mar 2015 15:43:48 -0400 Subject: [vtkusers] Java distribution with VTK Message-ID: <55073274.6040607@jslengineeringsoftware.com> Hello all, What is the simplest way to include VTK dlls with a Java program for distribution to Win 7 PCs that don't have VTK installed? Java program uses a .bat file to start. Tried copying the dlls from C:\vtk_build\bin\Debug to the dir ...vtk-libs in the Java program files and including that dir when I set the path in the batch file, but that didn't seem to work. Thanks, Jim From david.gobbi at gmail.com Mon Mar 16 15:53:03 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 16 Mar 2015 13:53:03 -0600 Subject: [vtkusers] Java distribution with VTK In-Reply-To: <55073274.6040607@jslengineeringsoftware.com> References: <55073274.6040607@jslengineeringsoftware.com> Message-ID: Hi Jim, The windows debug DLLs are not redistributable. This is due to their dependencies (they require the target computer to have MSVC installed) and also due to Microsoft policy/licensing. For redistribution, you should compile in release mode. - David On Mon, Mar 16, 2015 at 1:43 PM, James Labiak < jim at jslengineeringsoftware.com> wrote: > Hello all, > What is the simplest way to include VTK dlls with a Java program for > distribution to Win 7 PCs that don't have VTK installed? Java program uses > a .bat file to start. Tried copying the dlls from C:\vtk_build\bin\Debug to > the dir ...vtk-libs in the Java program files and including that dir when I > set the path in the batch file, but that didn't seem to work. > Thanks, > Jim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Mar 16 16:22:56 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 16 Mar 2015 14:22:56 -0600 Subject: [vtkusers] Java distribution with VTK In-Reply-To: References: <55073274.6040607@jslengineeringsoftware.com> Message-ID: Redistributed package of VTK/Java are generated everyday and can be found on our dashboard with the following link. Although, the Windows machine needs to get back on so you could get the windows one again. Seb https://open.cdash.org/index.php?project=VTK&filtercount=1&showfilters=1&field1=groupname/string&compare1=63&value1=super On Mon, Mar 16, 2015 at 1:53 PM, David Gobbi wrote: > Hi Jim, > > The windows debug DLLs are not redistributable. This is due to their > dependencies (they require the target computer to have MSVC installed) and > also due to Microsoft policy/licensing. For redistribution, you should > compile in release mode. > > - David > > On Mon, Mar 16, 2015 at 1:43 PM, James Labiak < > jim at jslengineeringsoftware.com> wrote: > >> Hello all, >> What is the simplest way to include VTK dlls with a Java program for >> distribution to Win 7 PCs that don't have VTK installed? Java program uses >> a .bat file to start. Tried copying the dlls from C:\vtk_build\bin\Debug to >> the dir ...vtk-libs in the Java program files and including that dir when I >> set the path in the batch file, but that didn't seem to work. >> Thanks, >> Jim >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.sambin at gmail.com Mon Mar 16 17:27:02 2015 From: m.sambin at gmail.com (Marco Sambin) Date: Mon, 16 Mar 2015 22:27:02 +0100 Subject: [vtkusers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: <20150316180926.1146005295@mail.rogue-research.com> References: <20150316180926.1146005295@mail.rogue-research.com> Message-ID: No problem with the "new" minimums for me. Regards, Marco Il 16/mar/2015 19:10 "Sean McBride" ha scritto: > Hi all, > > VTK currently contains hacks for various old compilers. I'd like to prune > some of this and increase the minimum compiler requirements. > > I'd be interested to know from the community what are the oldest compilers > you care about? Anyone out there using a compiler older than 5 years or so? > > Concretely, I thought I'd start by removing support for: > - gcc 3.x > - MSVC++ 8.0 (aka Visual Studio 2005) > > The minimums would therefore become: > - gcc 4.0 - Released: 2005-04-20 > - MSVC++ 9.0 (aka Visual Studio 2008) - Released: 2007-11-19 > > The motivation being: > - reduce cruft in the codebase > - allow use of newer language features (C++11 eventually) > > Thoughts? > > Thanks, > > -- > ____________________________________________________________ > 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 > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tr_jun-jiang.ee at vitrox.com Mon Mar 16 20:26:09 2015 From: tr_jun-jiang.ee at vitrox.com (James Potota) Date: Mon, 16 Mar 2015 17:26:09 -0700 (MST) Subject: [vtkusers] [EXTERNAL] Embed C++ vtk window into java In-Reply-To: References: <1426494569674-5730831.post@n5.nabble.com> Message-ID: <1426551969550-5730861.post@n5.nabble.com> Thanks for replying Gerrick. I have one mate who is responsible for vtk, he wasn't proficient at Java but C++. So i thought it would be more comfortable for him to code in C++ and i just handle that rendered Window. Do you have any suggestion ? I'm ready to learn. Thanks. James -- View this message in context: http://vtk.1045678.n5.nabble.com/Embed-C-vtk-window-into-java-tp5730831p5730861.html Sent from the VTK - Users mailing list archive at Nabble.com. From bhathaw1 at nycap.rr.com Mon Mar 16 22:58:03 2015 From: bhathaw1 at nycap.rr.com (Barry Hathaway) Date: Mon, 16 Mar 2015 16:58:03 -1000 Subject: [vtkusers] vtkDistanceWidget unit conversion Message-ID: <5507983B.9050101@nycap.rr.com> I'm using vtkDistanceWidget and was wondering if it is possible to scale the distance measurement that is displayed in the label by a factor of 1000 - basically I want to measurement displayed in mm rather than meters. Also, is it possible to augment the label with the distance in only the Z direction? Thanks in advance. Barry Hathaway From madaramh at gmail.com Tue Mar 17 00:26:47 2015 From: madaramh at gmail.com (madz) Date: Mon, 16 Mar 2015 21:26:47 -0700 (MST) Subject: [vtkusers] FindPoint() giving incorrect results Message-ID: <1426566407140-5730868.post@n5.nabble.com> I have two sets of polydata called polydata A and polydata B. I want to match the points of polydata A to that of polydata B and get polydata output. The polydata A points looks like the following, Polyadata B looks like the following The output poydata does not gives the point locations correctly, it gives something like the following, I have tried this using, *polydataB->FindPoint(pointOfA)* and using both *vtkPointLocator *and *vtkKdTreePointLocator*, but both gives the same incorrect result. What should I do to avoid this problem. Thank you. -- View this message in context: http://vtk.1045678.n5.nabble.com/FindPoint-giving-incorrect-results-tp5730868.html Sent from the VTK - Users mailing list archive at Nabble.com. From siling1992 at gmail.com Tue Mar 17 03:25:28 2015 From: siling1992 at gmail.com (siling tan) Date: Tue, 17 Mar 2015 15:25:28 +0800 Subject: [vtkusers] Get Patient's ID from Dicom Images Message-ID: Hi, This is Si Ling, I would like to seek your advice on the following question. I'm using vtkDICOMImageReader to get patient's information like name, descriptive name, studyID and studyUID, and image data. I wanted to get patient's ID. How can I do that? vtkDICOMImageReader doesn't provide this function. Posisble solutions: 1. Using vtkMedicalImageReader2. 2. Get a library to read the DICOM image's dcm file/extension. 3. Use itk-snap. I tried using vtkMedicalImageReader2 but I got an empty string. Is there a simple way to get patient's ID? Thank you so much for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ravi.HM at LntTechservices.com Tue Mar 17 04:59:27 2015 From: Ravi.HM at LntTechservices.com (Ravi HM) Date: Tue, 17 Mar 2015 08:59:27 +0000 Subject: [vtkusers] Get Patient's ID from Dicom Images In-Reply-To: References: Message-ID: Use GDCM or RZDCX to get the patient information from dicom image From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of siling tan Sent: Tuesday, March 17, 2015 12:55 PM To: vtkusers at vtk.org Subject: [vtkusers] Get Patient's ID from Dicom Images Hi, This is Si Ling, I would like to seek your advice on the following question. I'm using vtkDICOMImageReader to get patient's information like name, descriptive name, studyID and studyUID, and image data. I wanted to get patient's ID. How can I do that? vtkDICOMImageReader doesn't provide this function. Posisble solutions: 1. Using vtkMedicalImageReader2. 2. Get a library to read the DICOM image's dcm file/extension. 3. Use itk-snap. I tried using vtkMedicalImageReader2 but I got an empty string. Is there a simple way to get patient's ID? Thank you so much for your help. L&T Technology Services Ltd www.LntTechservices.com This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Tue Mar 17 07:16:39 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Tue, 17 Mar 2015 04:16:39 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> Message-ID: <1426590999726-5730872.post@n5.nabble.com> I load the two DLLs with "Runtime.getRuntime().loadLibrary(dllname);" and I get an errror: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\extend DLLs\vtkDICOMJava.dll: Can't find dependent libraries Was the cmake-configuration incorrect? Perhaps already for compiling GDCM? ... I see in my cmake-GDCM settings, I forgot to set GDCM_USE_VTK. But now (with set flag) I get 13 errors when compiling in Visual Studio 10. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730872.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Tue Mar 17 07:59:00 2015 From: sur.chiranjib at gmail.com (chiranjibsur) Date: Tue, 17 Mar 2015 04:59:00 -0700 (MST) Subject: [vtkusers] Get/Set values in scalar data In-Reply-To: References: Message-ID: <1426593540827-5730873.post@n5.nabble.com> Hi, I have a subsequent question. If I want to add 3 component data (velocity->SetNumberOfComponents(3);), then what is the procedure. Is there a corresponding example available for that ? Thanks in advance. Chiranjib -- View this message in context: http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-tp3259506p5730873.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Tue Mar 17 08:03:58 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Tue, 17 Mar 2015 17:33:58 +0530 Subject: [vtkusers] Get/Set values Vector Data Message-ID: Hi All, I want to assign values (3 component vector) to all in a polydata set. I found the email thread where the solution for a one component scalar data is explained ( http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html ) Anybody can help explaining how to do this for a 3-component vector data type. Thanks in advance. Chiranjib Sur -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Tue Mar 17 09:25:05 2015 From: allen at sci.utah.edu (Allen Sanderson) Date: Tue, 17 Mar 2015 14:25:05 +0100 Subject: [vtkusers] Get/Set values Vector Data In-Reply-To: References: Message-ID: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> Here is some sample code: vtkDoubleArray *velocityArray = vtkDoubleArray::New(); velocityArray->SetName(var.c_str()); // NOTE: you want to set the number of components BEFORE setting the number of Tuples so memory is correctly allocated. velocityArray->SetNumberOfComponents(3); velocityArray->SetNumberOfTuples(nTuples); polydata->GetPointData()->AddArray(velocityArray); double dx, dy, dz; Loop: velocityArray->SetTuple3(index, dx, dy, dz); Where : 0<= index < nTuples velocityArray->Delete(); The get would be: double *velocity = velocityArray->GetTuple3(l); Cheers, Allen Allen Sanderson SCI Institute University of Utah www.sci.utah.edu On Mar 17, 2015, at 1:03 PM, Chiranjib Sur wrote: > Hi All, > I want to assign values (3 component vector) to all in a polydata set. > I found the email thread where the solution for a one component scalar data is explained (http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html) > > Anybody can help explaining how to do this for a 3-component vector data type. > > Thanks in advance. > > Chiranjib Sur > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Mar 17 10:16:57 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 17 Mar 2015 08:16:57 -0600 Subject: [vtkusers] [EXTERNAL] Embed C++ vtk window into java In-Reply-To: <1426551969550-5730861.post@n5.nabble.com> References: <1426494569674-5730831.post@n5.nabble.com> <1426551969550-5730861.post@n5.nabble.com> Message-ID: Hi James, just look at the sample code in ${VTK_SRC}/Wrapping/Java/vtk/sample/** Seb On Mon, Mar 16, 2015 at 6:26 PM, James Potota wrote: > Thanks for replying Gerrick. > > I have one mate who is responsible for vtk, he wasn't proficient at Java > but > C++. So i thought it would be more comfortable for him to code in C++ and i > just handle that rendered Window. > > Do you have any suggestion ? I'm ready to learn. > > Thanks. > > James > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Embed-C-vtk-window-into-java-tp5730831p5730861.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Mar 17 11:04:48 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 17 Mar 2015 09:04:48 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426590999726-5730872.post@n5.nabble.com> References: <1425984798312-5730723.post@n5.nabble.com> <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> Message-ID: On Tue, Mar 17, 2015 at 5:16 AM, -Daniel- wrote: > I load the two DLLs with "Runtime.getRuntime().loadLibrary(dllname);" and I > get an errror: Exception in thread "main" java.lang.UnsatisfiedLinkError: > D:\extend DLLs\vtkDICOMJava.dll: Can't find dependent libraries > I see this error on my system when the PATH is not set correctly. Make sure that all of the VTK dlls are in the path. I know that on my system, when the path is set, this error does not occur. Was the cmake-configuration incorrect? Perhaps already for compiling GDCM? > ... I see in my cmake-GDCM settings, I forgot to set GDCM_USE_VTK. But now > (with set flag) I get 13 errors when compiling in Visual Studio 10. > Don't turn on GDCM_USE_VTK. Just turn on USE_GDCM in vtk-dicom. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Tue Mar 17 11:18:39 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Tue, 17 Mar 2015 11:18:39 -0400 Subject: [vtkusers] Java distribution with VTK In-Reply-To: References: <55073274.6040607@jslengineeringsoftware.com> Message-ID: <550845CF.9090700@jslengineeringsoftware.com> Hi David, I cut the VTK dlls out of my Java program. First I tried just recompiling VTK with MSVC in release mode; it was in debug mode. This caused the Java program to not display errors about not finding the VTK dlls, but the VTK portion of the program just got stuck. Second, I tried changing CMake BUILD_SHARED_LIBS to OFF (it was ON), then recompiled MSVC in release mode. MSVC then gave a bunch of errors like below. I'd like to go through the compile process instead of using the dashboard if possible, unless I'm misunderstanding something. Thanks, Jim Error 26 error C2375: 'vtkJavaGetPointerFromObject' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 48 1 vtkWrappingJava Error 27 error C2375: 'vtkJavaMakeJArrayOfDoubleFromDouble' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 53 1 vtkWrappingJava Error 28 error C2375: 'vtkJavaMakeJArrayOfDoubleFromFloat' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 78 1 vtkWrappingJava Error 29 error C2375: 'vtkJavaMakeJArrayOfIntFromInt' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 103 1 vtkWrappingJava Error 30 error C2375: 'vtkJavaMakeJArrayOfIntFromIdType' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 128 1 vtkWrappingJava Error 31 error C2375: 'vtkJavaMakeJArrayOfIntFromLongLong' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 154 1 vtkWrappingJava Error 32 error C2375: 'vtkJavaMakeJArrayOfIntFromSignedChar' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 207 1 vtkWrappingJava Error 33 error C2375: 'vtkJavaMakeJArrayOfFloatFromFloat' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 232 1 vtkWrappingJava Error 34 error C2375: 'vtkJavaMakeJArrayOfShortFromShort' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 257 1 vtkWrappingJava Error 35 error C2375: 'vtkJavaMakeJArrayOfByteFromUnsignedChar' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 282 1 vtkWrappingJava Error 36 error C2375: 'vtkJavaMakeJArrayOfLongFromLong' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 307 1 vtkWrappingJava Error 37 error C2375: 'vtkJavaMakeJArrayOfUnsignedLongFromUnsignedLong' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 333 1 vtkWrappingJava Error 38 error C2375: 'vtkJavaMakeJArrayOfUnsignedShortFromUnsignedShort' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 359 1 vtkWrappingJava Error 39 error C2375: 'vtkJavaMakeJArrayOfUnsignedCharFromUnsignedChar' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 385 1 vtkWrappingJava Error 40 error C2375: 'vtkJavaMakeJArrayOfUnsignedIntFromUnsignedInt' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 411 1 vtkWrappingJava Error 41 error C2375: 'vtkJavaMakeJArrayOfCharFromChar' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 437 1 vtkWrappingJava Error 42 error C2375: 'vtkJavaUTFToChar' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 538 1 vtkWrappingJava Error 43 error C2375: 'vtkJavaUTFToString' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 543 1 vtkWrappingJava Error 44 error C2375: 'vtkJavaMakeJavaString' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 556 1 vtkWrappingJava Error 45 error C2375: 'vtkJavaVoidFunc' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 569 1 vtkWrappingJava Error 46 error C2375: 'vtkJavaVoidFuncArgDelete' : redefinition; different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 586 1 vtkWrappingJava Error 59 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Core\LINK vtkCommonCoreJava Error 60 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\System\LINK vtkCommonSystemJava Error 61 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Math\LINK vtkCommonMathJava Error 62 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Misc\LINK vtkCommonMiscJava Error 63 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Transforms\LINK vtkCommonTransformsJava Error 64 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\DataModel\LINK vtkCommonDataModelJava Error 65 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Color\LINK vtkCommonColorJava Error 66 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\ComputationalGeometry\LINK vtkCommonComputationalGeometryJava Error 67 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\ExecutionModel\LINK vtkCommonExecutionModelJava Error 68 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Programmable\LINK vtkFiltersProgrammableJava Error 69 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Video\LINK vtkIOVideoJava Error 70 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Verdict\LINK vtkFiltersVerdictJava Error 71 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\EnSight\LINK vtkIOEnSightJava Error 72 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Math\LINK vtkImagingMathJava Error 73 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Core\LINK vtkIOCoreJava Error 74 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\XMLParser\LINK vtkIOXMLParserJava Error 75 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\NetCDF\LINK vtkIONetCDFJava Error 76 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Movie\LINK vtkIOMovieJava Error 77 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Legacy\LINK vtkIOLegacyJava Error 78 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Image\LINK vtkIOImageJava Error 79 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Core\LINK vtkImagingCoreJava Error 80 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Geometry\LINK vtkIOGeometryJava Error 81 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\SQL\LINK vtkIOSQLJava Error 82 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Sources\LINK vtkImagingSourcesJava Error 83 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Parallel\Core\LINK vtkParallelCoreJava Error 84 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Fourier\LINK vtkImagingFourierJava Error 85 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Statistics\LINK vtkFiltersStatisticsJava Error 86 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Statistics\LINK vtkImagingStatisticsJava Error 87 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Color\LINK vtkImagingColorJava Error 88 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\General\LINK vtkImagingGeneralJava Error 89 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\PLY\LINK vtkIOPLYJava Error 90 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Hybrid\LINK vtkImagingHybridJava Error 91 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Imaging\LINK vtkFiltersImagingJava Error 92 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Morphological\LINK vtkImagingMorphologicalJava Error 93 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Core\LINK vtkFiltersCoreJava Error 94 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Imaging\Stencil\LINK vtkImagingStencilJava Error 95 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\XML\LINK vtkIOXMLJava Error 96 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Selection\LINK vtkFiltersSelectionJava Error 97 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\LSDyna\LINK vtkIOLSDynaJava Error 98 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Geometry\LINK vtkFiltersGeometryJava Error 99 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\General\LINK vtkFiltersGeneralJava Error 100 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\SMP\LINK vtkFiltersSMPJava Error 101 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\AMR\LINK vtkFiltersAMRJava Error 102 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Texture\LINK vtkFiltersTextureJava Error 103 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Exodus\LINK vtkIOExodusJava Error 104 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\HyperTree\LINK vtkFiltersHyperTreeJava Error 105 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Sources\LINK vtkFiltersSourcesJava Error 106 error LNK1181: cannot open input file '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\Modeling\LINK vtkFiltersModelingJava On 3/16/2015 3:53 PM, David Gobbi wrote: > Hi Jim, > > The windows debug DLLs are not redistributable. This is due to their > dependencies (they require the target computer to have MSVC installed) > and also due to Microsoft policy/licensing. For redistribution, you > should compile in release mode. > > - David > > On Mon, Mar 16, 2015 at 1:43 PM, James Labiak > > wrote: > > Hello all, > What is the simplest way to include VTK dlls with a Java program > for distribution to Win 7 PCs that don't have VTK installed? Java > program uses a .bat file to start. Tried copying the dlls from > C:\vtk_build\bin\Debug to the dir ...vtk-libs in the Java program > files and including that dir when I set the path in the batch > file, but that didn't seem to work. > Thanks, > Jim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Mar 17 11:33:13 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 17 Mar 2015 09:33:13 -0600 Subject: [vtkusers] Java distribution with VTK In-Reply-To: <550845CF.9090700@jslengineeringsoftware.com> References: <55073274.6040607@jslengineeringsoftware.com> <550845CF.9090700@jslengineeringsoftware.com> Message-ID: Hi Jim, The VTK Java wrappers require that BUILD_SHARED_LIBS is ON. - David On Tue, Mar 17, 2015 at 9:18 AM, James Labiak < jim at jslengineeringsoftware.com> wrote: > Hi David, > I cut the VTK dlls out of my Java program. > First I tried just recompiling VTK with MSVC in release mode; it was in > debug mode. This caused the Java program to not display errors about not > finding the VTK dlls, but the VTK portion of the program just got stuck. > Second, I tried changing CMake BUILD_SHARED_LIBS to OFF (it was ON), then > recompiled MSVC in release mode. MSVC then gave a bunch of errors like > below. I'd like to go through the compile process instead of using the > dashboard if possible, unless I'm misunderstanding something. > Thanks, > Jim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tavares at fe.up.pt Tue Mar 17 13:18:38 2015 From: tavares at fe.up.pt (=?utf-8?Q?=22Jo=C3=A3o_Manuel_R=2E_S=2E_Tavares=22?=) Date: Tue, 17 Mar 2015 17:18:38 +0000 Subject: [vtkusers] V ECCOMAS Thematic Conference VipIMAGE 2015: SUBMISSION EXTENDED References: <088943A4-C45B-4461-9787-256E004F0ACD@fe.up.pt> Message-ID: <66ED027A-2E09-4CEA-9823-A26F1D810A5F@fe.up.pt> Dear Colleague, We are pleased to inform you that the submission of abstracts for the International Conference VipIMAGE 2015 - V ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING (www.fe.up.pt/vipimage) to be held in October 19-21, 2015, in H10 Costa Adeje Palace, Tenerife, Spain, is going well. Attending several requests, the organizing committee has extended the submission period to April 20th. Once again, we would like to invite you to participate and share your expertise in VipIMAGE 2015. Possible Topics (not limited to) - Signal and Image Processing - Computational Vision - Medical Imaging - Physics of Medical Imaging - Tracking and Analysis of Movement - Simulation and Modeling - Image Acquisition - Industrial Applications - Shape Reconstruction - Segmentation, Matching, Simulation - Data Interpolation, Registration, Acquisition and Compression - 3D Vision - Virtual Reality - Visual Inspection - Software Development for Image Processing and Analysis - Computer Aided Diagnosis, Surgery, Therapy, and Treatment - Computational Bioimaging and Visualization - Telemedicine Systems and Applications Invited Lecturers - Alexandre Xavier Falc?o, Universidade de Campinas, Brazil - Cristian A. Linte, Mayo Clinic, USA - Fiorella Sgallari, University of Bologna, Italy - Yongjie Zhang, Carnegie Mellon University, USA - Xiaochuan Pan, The University of Chicago, USA - Xue-cheng Tai, University of Bergen, Norway Thematic Sessions Proposals to organize Thematic Sessions under the auspicious of VipIMAGE 2015 are welcome. Proposals for Thematic Sessions should be submitted by email to the conference co-chairs (tavares at fe.up.pt, rnatal at fe.up.pt). Confirmed Thematic Session - Computational Vision and Image Processing applied to Dental Medicine Publications - Proceedings: The proceedings book will be published by Taylor & Francis Group and indexed by Thomson Reuters Conference Proceedings Citation Index, IET Inspect and Elsevier Scopus. - Springer Book: A book with 20 invited works from the ones presented in the conference will be published by Springer under the book series "Lecture Notes in Computational Vision and Biomechanics" indexed by Elsevier Scopus. - Journal Publication: A dedicated special issue of the Taylor & Francis international journal "Computer Methods in Biomechanics and Biomedical Engineering: Imaging & Visualization" will be published with extended versions of the best works presented in the conference. Important dates (Postponed) - Deadline for Thematic Session Proposals: April 15, 2015 - Deadline for Extended Abstracts (2-4 pages): April 20, 2015 - Authors Notification: May 15, 2015 - Deadline for Papers: July 1, 2015 We are looking forward to see you in Tenerife next October, Jo?o Manuel R. S. Tavares Renato Natal Jorge (VipIMAGE 2015 co-chairs) For further details, please, have a look in the conference website at: www.fe.up.pt/vipimage, the Facebook page at: www.facebook.com/pages/Vipimage/237980719665456, or join the LinkedIn group at: http://www.linkedin.com/groups?gid=4752820&trk=hb_side_g. ___________________________________________________________________________ Jo?o Manuel R. S. Tavares, MSc, PhD Faculdade de Engenharia, Universidade do Porto (FEUP) Departamento de Engenharia Mec?nica (DEMec) Rua Dr. Roberto Frias, s/n , 4200-465 PORTO, PORTUGAL Phone: +351 22 508 3472, FAX: +351 22 508 1445 Mobile: +351 93 420 1076, Skype: jmrstavares e-mail: tavares at fe.up.pt , url: www.fe.up.pt/~tavares , Facebook: www.facebook.com/jmrstavares , Linkedin: www.linkedin.com/pub/jo%C3%A3o-manuel-r-s-tavares/5a/656/934 , Twitter: twitter.com/jmrstavares Editor-In-Chief: T&F CMBBE: Imaging & Visualization - www.tandfonline.com/tciv Co-Editor: SPRINGER book series LNCV&B - www.springer.com/series/8910 Co-Chair: ECCOMAS VipIMAGE - www.fe.up.pt/~vipimage Co-Chair: CompIMAGE - www.fe.up.pt/CompIMAGE Co-Chair: ICCEBS - www.fe.up.pt/~iccebs Co-Chair: BioDENTAL - www.fe.up.pt/~biodenta ___________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Tue Mar 17 16:13:57 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Tue, 17 Mar 2015 16:13:57 -0400 Subject: [vtkusers] Java distribution with VTK In-Reply-To: References: <55073274.6040607@jslengineeringsoftware.com> <550845CF.9090700@jslengineeringsoftware.com> Message-ID: <55088B05.8050000@jslengineeringsoftware.com> I used dependency walker and couldn't find any missing MS dlls on the test machine. Finally I remembered that I already had multiple versions of MSVC redistributable packages installed on the test machine. The original errors were that VTK dlls couldn't be found, so I changed my installer program program to copy the VTK dlls from the C:\vtk_build\bin\Release directory to the Java application directory, and now everything works on the test machine (MSVC compiling is set to "release", and BUILD_SHARED_LIBS is ON). I think that this isn't violating any license terms, as I will just require that an MSVC redistributable package be installed prior to my Java program. Then I don't have to worry about individual MS dlls. Thanks again for the help, Jim On 3/17/2015 11:25 AM, Sebastien Jourdain wrote: > BUILD_SHARED_LIBS must be ON. > > But I think the missing part is providing the MSVC runtime dll. > If you use dependency walker, you will notice which dll is missing and > should be provided. > > Hope that bring some light, > > Seb > > On Tue, Mar 17, 2015 at 9:18 AM, James Labiak > > wrote: > > Hi David, > I cut the VTK dlls out of my Java program. > First I tried just recompiling VTK with MSVC in release mode; it > was in debug mode. This caused the Java program to not display > errors about not finding the VTK dlls, but the VTK portion of the > program just got stuck. Second, I tried changing CMake > BUILD_SHARED_LIBS to OFF (it was ON), then recompiled MSVC in > release mode. MSVC then gave a bunch of errors like below. I'd > like to go through the compile process instead of using the > dashboard if possible, unless I'm misunderstanding something. > Thanks, > Jim > > Error 26 error C2375: 'vtkJavaGetPointerFromObject' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 48 1 > vtkWrappingJava > Error 27 error C2375: 'vtkJavaMakeJArrayOfDoubleFromDouble' > : redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 53 1 > vtkWrappingJava > Error 28 error C2375: 'vtkJavaMakeJArrayOfDoubleFromFloat' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 78 1 > vtkWrappingJava > Error 29 error C2375: 'vtkJavaMakeJArrayOfIntFromInt' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 103 1 > vtkWrappingJava > Error 30 error C2375: 'vtkJavaMakeJArrayOfIntFromIdType' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 128 1 > vtkWrappingJava > Error 31 error C2375: 'vtkJavaMakeJArrayOfIntFromLongLong' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 154 1 > vtkWrappingJava > Error 32 error C2375: 'vtkJavaMakeJArrayOfIntFromSignedChar' > : redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 207 1 > vtkWrappingJava > Error 33 error C2375: 'vtkJavaMakeJArrayOfFloatFromFloat' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 232 1 > vtkWrappingJava > Error 34 error C2375: 'vtkJavaMakeJArrayOfShortFromShort' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 257 1 > vtkWrappingJava > Error 35 error C2375: > 'vtkJavaMakeJArrayOfByteFromUnsignedChar' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 282 1 vtkWrappingJava > Error 36 error C2375: 'vtkJavaMakeJArrayOfLongFromLong' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 307 1 > vtkWrappingJava > Error 37 error C2375: > 'vtkJavaMakeJArrayOfUnsignedLongFromUnsignedLong' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 333 1 vtkWrappingJava > Error 38 error C2375: > 'vtkJavaMakeJArrayOfUnsignedShortFromUnsignedShort' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 359 1 > vtkWrappingJava > Error 39 error C2375: > 'vtkJavaMakeJArrayOfUnsignedCharFromUnsignedChar' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 385 1 vtkWrappingJava > Error 40 error C2375: > 'vtkJavaMakeJArrayOfUnsignedIntFromUnsignedInt' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 411 1 vtkWrappingJava > Error 41 error C2375: 'vtkJavaMakeJArrayOfCharFromChar' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 437 1 > vtkWrappingJava > Error 42 error C2375: 'vtkJavaUTFToChar' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 538 1 vtkWrappingJava > Error 43 error C2375: 'vtkJavaUTFToString' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 543 1 vtkWrappingJava > Error 44 error C2375: 'vtkJavaMakeJavaString' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 556 1 > vtkWrappingJava > Error 45 error C2375: 'vtkJavaVoidFunc' : redefinition; > different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx > 569 1 vtkWrappingJava > Error 46 error C2375: 'vtkJavaVoidFuncArgDelete' : > redefinition; different linkage > C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 586 1 > vtkWrappingJava > Error 59 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\Core\LINK vtkCommonCoreJava > Error 60 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\System\LINK vtkCommonSystemJava > Error 61 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\Math\LINK vtkCommonMathJava > Error 62 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\Misc\LINK vtkCommonMiscJava > Error 63 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\Transforms\LINK vtkCommonTransformsJava > Error 64 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\DataModel\LINK vtkCommonDataModelJava > Error 65 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\Color\LINK vtkCommonColorJava > Error 66 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\ComputationalGeometry\LINK > vtkCommonComputationalGeometryJava > Error 67 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Common\ExecutionModel\LINK vtkCommonExecutionModelJava > Error 68 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Programmable\LINK vtkFiltersProgrammableJava > Error 69 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Video\LINK vtkIOVideoJava > Error 70 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Verdict\LINK vtkFiltersVerdictJava > Error 71 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\EnSight\LINK vtkIOEnSightJava > Error 72 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Math\LINK vtkImagingMathJava > Error 73 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Core\LINK vtkIOCoreJava > Error 74 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\XMLParser\LINK vtkIOXMLParserJava > Error 75 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\NetCDF\LINK vtkIONetCDFJava > Error 76 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Movie\LINK vtkIOMovieJava > Error 77 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Legacy\LINK vtkIOLegacyJava > Error 78 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Image\LINK vtkIOImageJava > Error 79 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Core\LINK vtkImagingCoreJava > Error 80 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Geometry\LINK vtkIOGeometryJava > Error 81 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\SQL\LINK vtkIOSQLJava > Error 82 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Sources\LINK vtkImagingSourcesJava > Error 83 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Parallel\Core\LINK vtkParallelCoreJava > Error 84 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Fourier\LINK vtkImagingFourierJava > Error 85 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Statistics\LINK vtkFiltersStatisticsJava > Error 86 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Statistics\LINK vtkImagingStatisticsJava > Error 87 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Color\LINK vtkImagingColorJava > Error 88 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\General\LINK vtkImagingGeneralJava > Error 89 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\PLY\LINK vtkIOPLYJava > Error 90 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Hybrid\LINK vtkImagingHybridJava > Error 91 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Imaging\LINK vtkFiltersImagingJava > Error 92 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Morphological\LINK vtkImagingMorphologicalJava > Error 93 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Core\LINK vtkFiltersCoreJava > Error 94 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Imaging\Stencil\LINK vtkImagingStencilJava > Error 95 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\XML\LINK vtkIOXMLJava > Error 96 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Selection\LINK vtkFiltersSelectionJava > Error 97 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\LSDyna\LINK vtkIOLSDynaJava > Error 98 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Geometry\LINK vtkFiltersGeometryJava > Error 99 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\General\LINK vtkFiltersGeneralJava > Error 100 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\SMP\LINK vtkFiltersSMPJava > Error 101 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\AMR\LINK vtkFiltersAMRJava > Error 102 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Texture\LINK vtkFiltersTextureJava > Error 103 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\IO\Exodus\LINK vtkIOExodusJava > Error 104 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\HyperTree\LINK vtkFiltersHyperTreeJava > Error 105 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Sources\LINK vtkFiltersSourcesJava > Error 106 error LNK1181: cannot open input file > '..\..\lib\Release\vtkWrappingJava.lib' > C:\vtk_build\Filters\Modeling\LINK vtkFiltersModelingJava > > > On 3/16/2015 3:53 PM, David Gobbi wrote: >> Hi Jim, >> >> The windows debug DLLs are not redistributable. This is due to >> their dependencies (they require the target computer to have MSVC >> installed) and also due to Microsoft policy/licensing. For >> redistribution, you should compile in release mode. >> >> - David >> >> On Mon, Mar 16, 2015 at 1:43 PM, James Labiak >> > > wrote: >> >> Hello all, >> What is the simplest way to include VTK dlls with a Java >> program for distribution to Win 7 PCs that don't have VTK >> installed? Java program uses a .bat file to start. Tried >> copying the dlls from C:\vtk_build\bin\Debug to the dir >> ...vtk-libs in the Java program files and including that dir >> when I set the path in the batch file, but that didn't seem >> to work. >> Thanks, >> Jim >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Tue Mar 17 16:33:14 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 17 Mar 2015 14:33:14 -0600 Subject: [vtkusers] Java distribution with VTK In-Reply-To: <55088B05.8050000@jslengineeringsoftware.com> References: <55073274.6040607@jslengineeringsoftware.com> <550845CF.9090700@jslengineeringsoftware.com> <55088B05.8050000@jslengineeringsoftware.com> Message-ID: Glad to hear that you figured it out. Seb On Tue, Mar 17, 2015 at 2:13 PM, James Labiak < jim at jslengineeringsoftware.com> wrote: > I used dependency walker and couldn't find any missing MS dlls on the > test machine. Finally I remembered that I already had multiple versions of > MSVC redistributable packages installed on the test machine. The original > errors were that VTK dlls couldn't be found, so I changed my installer > program program to copy the VTK dlls from the C:\vtk_build\bin\Release > directory to the Java application directory, and now everything works on > the test machine (MSVC compiling is set to "release", and BUILD_SHARED_LIBS > is ON). I think that this isn't violating any license terms, as I will just > require that an MSVC redistributable package be installed prior to my Java > program. Then I don't have to worry about individual MS dlls. > Thanks again for the help, > Jim > > > On 3/17/2015 11:25 AM, Sebastien Jourdain wrote: > > BUILD_SHARED_LIBS must be ON. > > But I think the missing part is providing the MSVC runtime dll. > If you use dependency walker, you will notice which dll is missing and > should be provided. > > Hope that bring some light, > > Seb > > On Tue, Mar 17, 2015 at 9:18 AM, James Labiak < > jim at jslengineeringsoftware.com> wrote: > >> Hi David, >> I cut the VTK dlls out of my Java program. >> First I tried just recompiling VTK with MSVC in release mode; it was in >> debug mode. This caused the Java program to not display errors about not >> finding the VTK dlls, but the VTK portion of the program just got stuck. >> Second, I tried changing CMake BUILD_SHARED_LIBS to OFF (it was ON), then >> recompiled MSVC in release mode. MSVC then gave a bunch of errors like >> below. I'd like to go through the compile process instead of using the >> dashboard if possible, unless I'm misunderstanding something. >> Thanks, >> Jim >> >> Error 26 error C2375: 'vtkJavaGetPointerFromObject' : redefinition; >> different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx >> 48 1 vtkWrappingJava >> Error 27 error C2375: 'vtkJavaMakeJArrayOfDoubleFromDouble' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 53 1 >> vtkWrappingJava >> Error 28 error C2375: 'vtkJavaMakeJArrayOfDoubleFromFloat' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 78 1 >> vtkWrappingJava >> Error 29 error C2375: 'vtkJavaMakeJArrayOfIntFromInt' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 103 1 >> vtkWrappingJava >> Error 30 error C2375: 'vtkJavaMakeJArrayOfIntFromIdType' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 128 1 >> vtkWrappingJava >> Error 31 error C2375: 'vtkJavaMakeJArrayOfIntFromLongLong' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 154 1 >> vtkWrappingJava >> Error 32 error C2375: 'vtkJavaMakeJArrayOfIntFromSignedChar' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 207 1 >> vtkWrappingJava >> Error 33 error C2375: 'vtkJavaMakeJArrayOfFloatFromFloat' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 232 1 >> vtkWrappingJava >> Error 34 error C2375: 'vtkJavaMakeJArrayOfShortFromShort' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 257 1 >> vtkWrappingJava >> Error 35 error C2375: 'vtkJavaMakeJArrayOfByteFromUnsignedChar' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 282 1 >> vtkWrappingJava >> Error 36 error C2375: 'vtkJavaMakeJArrayOfLongFromLong' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 307 1 >> vtkWrappingJava >> Error 37 error C2375: >> 'vtkJavaMakeJArrayOfUnsignedLongFromUnsignedLong' : redefinition; different >> linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 333 1 >> vtkWrappingJava >> Error 38 error C2375: >> 'vtkJavaMakeJArrayOfUnsignedShortFromUnsignedShort' : redefinition; >> different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx >> 359 1 vtkWrappingJava >> Error 39 error C2375: >> 'vtkJavaMakeJArrayOfUnsignedCharFromUnsignedChar' : redefinition; different >> linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 385 1 >> vtkWrappingJava >> Error 40 error C2375: >> 'vtkJavaMakeJArrayOfUnsignedIntFromUnsignedInt' : redefinition; different >> linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 411 1 >> vtkWrappingJava >> Error 41 error C2375: 'vtkJavaMakeJArrayOfCharFromChar' : >> redefinition; different linkage >> C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 437 1 >> vtkWrappingJava >> Error 42 error C2375: 'vtkJavaUTFToChar' : redefinition; different >> linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 538 1 >> vtkWrappingJava >> Error 43 error C2375: 'vtkJavaUTFToString' : redefinition; >> different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx >> 543 1 vtkWrappingJava >> Error 44 error C2375: 'vtkJavaMakeJavaString' : redefinition; >> different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx >> 556 1 vtkWrappingJava >> Error 45 error C2375: 'vtkJavaVoidFunc' : redefinition; different >> linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx 569 1 >> vtkWrappingJava >> Error 46 error C2375: 'vtkJavaVoidFuncArgDelete' : redefinition; >> different linkage C:\vtk\vtk-source\Wrapping\Java\vtkJavaUtil.cxx >> 586 1 vtkWrappingJava >> Error 59 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Core\LINK >> vtkCommonCoreJava >> Error 60 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\System\LINK vtkCommonSystemJava >> Error 61 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Math\LINK >> vtkCommonMathJava >> Error 62 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Common\Misc\LINK >> vtkCommonMiscJava >> Error 63 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\Transforms\LINK vtkCommonTransformsJava >> Error 64 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\DataModel\LINK vtkCommonDataModelJava >> Error 65 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\Color\LINK vtkCommonColorJava >> Error 66 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\ComputationalGeometry\LINK >> vtkCommonComputationalGeometryJava >> Error 67 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Common\ExecutionModel\LINK vtkCommonExecutionModelJava >> Error 68 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Programmable\LINK vtkFiltersProgrammableJava >> Error 69 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Video\LINK >> vtkIOVideoJava >> Error 70 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Verdict\LINK vtkFiltersVerdictJava >> Error 71 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\EnSight\LINK >> vtkIOEnSightJava >> Error 72 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Math\LINK vtkImagingMathJava >> Error 73 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Core\LINK >> vtkIOCoreJava >> Error 74 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\IO\XMLParser\LINK vtkIOXMLParserJava >> Error 75 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\NetCDF\LINK >> vtkIONetCDFJava >> Error 76 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Movie\LINK >> vtkIOMovieJava >> Error 77 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Legacy\LINK >> vtkIOLegacyJava >> Error 78 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Image\LINK >> vtkIOImageJava >> Error 79 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Core\LINK vtkImagingCoreJava >> Error 80 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Geometry\LINK >> vtkIOGeometryJava >> Error 81 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\SQL\LINK >> vtkIOSQLJava >> Error 82 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Sources\LINK vtkImagingSourcesJava >> Error 83 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Parallel\Core\LINK vtkParallelCoreJava >> Error 84 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Fourier\LINK vtkImagingFourierJava >> Error 85 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Statistics\LINK vtkFiltersStatisticsJava >> Error 86 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Statistics\LINK vtkImagingStatisticsJava >> Error 87 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Color\LINK vtkImagingColorJava >> Error 88 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\General\LINK vtkImagingGeneralJava >> Error 89 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\PLY\LINK >> vtkIOPLYJava >> Error 90 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Hybrid\LINK vtkImagingHybridJava >> Error 91 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Imaging\LINK vtkFiltersImagingJava >> Error 92 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Morphological\LINK vtkImagingMorphologicalJava >> Error 93 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Core\LINK vtkFiltersCoreJava >> Error 94 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Imaging\Stencil\LINK vtkImagingStencilJava >> Error 95 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\XML\LINK >> vtkIOXMLJava >> Error 96 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Selection\LINK vtkFiltersSelectionJava >> Error 97 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\LSDyna\LINK >> vtkIOLSDynaJava >> Error 98 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Geometry\LINK vtkFiltersGeometryJava >> Error 99 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\General\LINK vtkFiltersGeneralJava >> Error 100 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\SMP\LINK >> vtkFiltersSMPJava >> Error 101 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\Filters\AMR\LINK >> vtkFiltersAMRJava >> Error 102 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Texture\LINK vtkFiltersTextureJava >> Error 103 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' C:\vtk_build\IO\Exodus\LINK >> vtkIOExodusJava >> Error 104 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\HyperTree\LINK vtkFiltersHyperTreeJava >> Error 105 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Sources\LINK vtkFiltersSourcesJava >> Error 106 error LNK1181: cannot open input file >> '..\..\lib\Release\vtkWrappingJava.lib' >> C:\vtk_build\Filters\Modeling\LINK vtkFiltersModelingJava >> >> >> On 3/16/2015 3:53 PM, David Gobbi wrote: >> >> Hi Jim, >> >> The windows debug DLLs are not redistributable. This is due to their >> dependencies (they require the target computer to have MSVC installed) and >> also due to Microsoft policy/licensing. For redistribution, you should >> compile in release mode. >> >> - David >> >> On Mon, Mar 16, 2015 at 1:43 PM, James Labiak < >> jim at jslengineeringsoftware.com> wrote: >> >>> Hello all, >>> What is the simplest way to include VTK dlls with a Java program for >>> distribution to Win 7 PCs that don't have VTK installed? Java program uses >>> a .bat file to start. Tried copying the dlls from C:\vtk_build\bin\Debug to >>> the dir ...vtk-libs in the Java program files and including that dir when I >>> set the path in the batch file, but that didn't seem to work. >>> Thanks, >>> Jim >>> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From malyushytsky at gmail.com Tue Mar 17 20:17:53 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 17:17:53 -0700 Subject: [vtkusers] Get/Set values in scalar data In-Reply-To: <1426593540827-5730873.post@n5.nabble.com> References: <1426593540827-5730873.post@n5.nabble.com> Message-ID: http://vtk.org/Wiki/VTK/Examples On Tue, Mar 17, 2015 at 4:59 AM, chiranjibsur wrote: > Hi, > I have a subsequent question. If I want to add 3 component data > (velocity->SetNumberOfComponents(3);), then what is the procedure. Is there > a corresponding example available for that ? > > Thanks in advance. > > Chiranjib > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-tp3259506p5730873.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From malyushytsky at gmail.com Tue Mar 17 20:25:33 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 17:25:33 -0700 Subject: [vtkusers] vtkLegendScaleActor label fitting Message-ID: *I am trying to use *vtkLegendScaleActor in distance mode. Everything works fine, but depending on the zoom and viewport size labels (on vertical axes) may be drawn outside of the viewport. I am looking for solution which probably can be either dynamic adjusting of the offsets or automatic scaling of the labels. Anybody can point how to do it? Best regards, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From totte at dunescientific.com Tue Mar 17 20:07:46 2015 From: totte at dunescientific.com (Totte Karlsson) Date: Tue, 17 Mar 2015 17:07:46 -0700 Subject: [vtkusers] Position a widget in display coordinates? Message-ID: <5508C1D2.7070903@dunescientific.com> Hello, This question is regarding usage of the 3D slider widget. I have been using world coordinates to set the widgets position, and that seem to be working fine. Now, however, I would like to simply place the widget horizontally at the bottom of the render window. Whats the right way to do such? I imagine I would need to go from normalized (2D) display values, say (-0.8, -0.8) & (0.8,-0.8) which would be at the bottom of the window, to world coordinates (3D). Any pointers on how to achieve this? The widget position would need to be recalculated if the camera changes. Thanks, tk -- ......................... Totte Karlsson, Ph.D. Dune Scientific, LLC 425-296 1980 (office) 425-780 9648 (cell) www.dunescientific.com ......................... From malyushytsky at gmail.com Tue Mar 17 20:53:12 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 17:53:12 -0700 Subject: [vtkusers] FindPoint() giving incorrect results In-Reply-To: <1426566407140-5730868.post@n5.nabble.com> References: <1426566407140-5730868.post@n5.nabble.com> Message-ID: How do you know results are incorrect? I had vtkKdTreePointLocator producing incorrect results with FindClosestPoint (if not mistaken in 5.6.1). Not sure was it fixed or not. At the same time vtkPointLocator FindClosestPoint was providing correct result. That was proven by brute force search of closest point (always work). In you case it is not clear what methods you are using. AFAIK there is no FindPoint method in any of above class. In any case I suggest you to prove that it does not work by brute first method first and report the bug (if any). Regards, Alex On Mon, Mar 16, 2015 at 9:26 PM, madz wrote: > I have two sets of polydata called polydata A and polydata B. I want to > match > the points of polydata A to that of polydata B and get polydata output. > > The polydata A points looks like the following, > > > Polyadata B looks like the following > > > The output poydata does not gives the point locations correctly, it gives > something like the following, > > > I have tried this using, > > *polydataB->FindPoint(pointOfA)* > > and using both *vtkPointLocator *and *vtkKdTreePointLocator*, but both > gives > the same incorrect result. What should I do to avoid this problem. > > Thank you. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/FindPoint-giving-incorrect-results-tp5730868.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From malyushytsky at gmail.com Tue Mar 17 21:13:33 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 18:13:33 -0700 Subject: [vtkusers] vtkDistanceWidget unit conversion In-Reply-To: <5507983B.9050101@nycap.rr.com> References: <5507983B.9050101@nycap.rr.com> Message-ID: I did it by subclassing vtkDistanceRepresentation2D and then setting presentation to vtkDistanceWidget. I can't provide complete code since it was written for commercial product, but can tell how: - add member to store scale factor there (set it to 1 by default); - override vtkDistanceRepresentation2D::BuildRepresentation() - do in there everything exactly the way original code did ( look at source code ) - before call to this->AxisActor->SetTitle(string) provide to sprint scaled distance value instead of original sprintf(string, this->LabelFormat, scaledDistance ); Regards, Alex On Mon, Mar 16, 2015 at 7:58 PM, Barry Hathaway wrote: > I'm using vtkDistanceWidget and was wondering if it is possible to scale > the distance measurement that is displayed > in the label by a factor of 1000 - basically I want to measurement > displayed in mm rather than meters. > Also, is it possible to augment the label with the distance in only the Z > direction? > Thanks in advance. > > Barry Hathaway > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From malyushytsky at gmail.com Tue Mar 17 21:34:00 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 18:34:00 -0700 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: Message-ID: AFAI understand there is no solid objects there are presentations of solids. Such presentation may look like solid unless you are inside the object. If that not what you want you are on your own. Similar to 2d , 3d objects exist for a solely purpose of presentation. You may 'subdivide' your sphere for example and construct it from the number of hexahedrons ( like circle from quadrilaterals), but even if you do so you will see those elements when you move your camera too close not like solids. But if it what you want , you may look at Delaunay3D. Regards, Alex On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour wrote: > Hi all, > > I am using MS visual studio 2008 and vtk 5.10 > > I want to fill interior of some objects (like sphere), so they must be > solid. > > I've tried vtkFillHolesFilter class but it fills holes of surface not > inside object. > > Is there any other filter or class can do it? > > Thank you very much > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From totte at dunescientific.com Tue Mar 17 21:07:04 2015 From: totte at dunescientific.com (Totte Karlsson) Date: Tue, 17 Mar 2015 18:07:04 -0700 Subject: [vtkusers] Position a widget in display coordinates? In-Reply-To: <5508C1D2.7070903@dunescientific.com> References: <5508C1D2.7070903@dunescientific.com> Message-ID: <5508CFB8.6090201@dunescientific.com> > I imagine I would need to go from normalized (2D) display values, say > (-0.8, -0.8) & (0.8,-0.8) which would be at the bottom of the window, > to world coordinates (3D). > Any pointers on how to achieve this? Been trying the following code, where mSliderRep is the 3d slier representation; double p1[3] = { .2, 0.1, 0}; double p2[3] = {0.8, 0.1, 0}; mSliderRep->GetPoint1Coordinate()->SetCoordinateSystemToNormalizedDisplay(); mSliderRep->GetPoint2Coordinate()->SetCoordinateSystemToNormalizedDisplay(); mSliderRep->GetPoint1Coordinate()->SetValue(p1); mSliderRep->GetPoint2Coordinate()->SetValue(p2); The above 'works' most of the time. But depending on the position of the camera, it does not work always!? Have no idea why it only works for certain camera positions? Any clues? tk From malyushytsky at gmail.com Tue Mar 17 22:01:44 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Tue, 17 Mar 2015 19:01:44 -0700 Subject: [vtkusers] Position a widget in display coordinates? In-Reply-To: <5508C1D2.7070903@dunescientific.com> References: <5508C1D2.7070903@dunescientific.com> Message-ID: Check link below http://vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestSliderWidget2D.cxx On Tue, Mar 17, 2015 at 5:07 PM, Totte Karlsson wrote: > Hello, > This question is regarding usage of the 3D slider widget. > I have been using world coordinates to set the widgets position, and that > seem to be working fine. > > Now, however, I would like to simply place the widget horizontally at the > bottom of the render window. Whats the right way to do such? > > I imagine I would need to go from normalized (2D) display values, say > (-0.8, -0.8) & (0.8,-0.8) which would be at the bottom of the window, to > world coordinates (3D). > Any pointers on how to achieve this? > > The widget position would need to be recalculated if the camera changes. > Thanks, > tk > > -- > ......................... > Totte Karlsson, Ph.D. > Dune Scientific, LLC > 425-296 1980 (office) > 425-780 9648 (cell) > www.dunescientific.com > ......................... > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ravi.HM at LntTechservices.com Tue Mar 17 23:51:19 2015 From: Ravi.HM at LntTechservices.com (Ravi HM) Date: Wed, 18 Mar 2015 03:51:19 +0000 Subject: [vtkusers] Get Patient's ID from Dicom Images In-Reply-To: References: Message-ID: Hi Si Ling, VTK does not support to read all Dicom image format, Hence I suggest GDCM. Regards, Ravi From: siling tan [mailto:siling1992 at gmail.com] Sent: Wednesday, March 18, 2015 5:54 AM To: Ravi HM Subject: Re: [vtkusers] Get Patient's ID from Dicom Images Hi Ravi, May I ask, why would you prefer to use GDCM as compared to vtkMedicalImageReader2? I read about GDCM , and I like that it's cross-platform and easy to use with vtk. http://gdcm.sourceforge.net/wiki/index.php/About Si Ling L&T Technology Services Ltd www.LntTechservices.com This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnour.ai at hotmail.com Wed Mar 18 01:46:31 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Wed, 18 Mar 2015 05:46:31 +0000 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: , Message-ID: Dear Alex, Thank you very much for your reply. I can make presentation look like solid (e.x. by using opacity property). But I want to slice an object, and result must be filled as if the object is solid. Suppose my object is a torus, so I have slice as two circles (one inside other). I want to fill space between these circles. I have tried using vtkDelaunay3D class but it distorts objects. Also I tried using vtkFillHolesFilter filter but it fills all empty space. I hope I explaine my point. Thank you again. Date: Tue, 17 Mar 2015 18:34:00 -0700 Subject: Re: [vtkusers] Fill interior 3D object From: malyushytsky at gmail.com To: mnour.ai at hotmail.com CC: vtkusers at vtk.org AFAI understand there is no solid objects there are presentations of solids.Such presentation may look like solid unless you are inside the object. If that not what you want you are on your own. Similar to 2d , 3d objects exist for a solely purpose of presentation.You may 'subdivide' your sphere for example and construct it from the number of hexahedrons ( like circle from quadrilaterals),but even if you do so you will see those elements when you move your camera too close not like solids. But if it what you want , you may look at Delaunay3D. Regards, Alex On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour wrote: Hi all,I am using MS visual studio 2008 and vtk 5.10I want to fill interior of some objects (like sphere), so they must be solid. I've tried vtkFillHolesFilter class but it fills holes of surface not inside object.Is there any other filter or class can do it?Thank you very much _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenb3ret at gmail.com Wed Mar 18 02:59:06 2015 From: greenb3ret at gmail.com (Benjamin Hopfer) Date: Wed, 18 Mar 2015 14:59:06 +0800 Subject: [vtkusers] Weird render bug with depth peeling and background texture In-Reply-To: References: Message-ID: Can anyone tell me how to proceed in a good way? Report the bug? Where? Kind Regards, Benjamin On Tue, Mar 10, 2015 at 4:46 PM, Benjamin Hopfer wrote: > I have a very weird problem with the render window. It only occurs if: > > - vtkRenderer was set to display a background texture at least once since > program start > - The background texture has a transformation (scaling for repeat) > - Depth peeling is enabled > - At least one transparent actor is displayed. > > I'm pretty sure this is a bug, but I wanted to get your insight first, > before reporting it. > I attached a minimal working example below. You can use any png file for > texture.png. I used a 2x2 pixel PNG with (0,0) and (1,1) black and the > other two white (checker board). > > I have uploaded the output of the code: http://imgur.com/a/olUW2 > > - The first image is the "expected" outcome, which I retrieved by > disabling depth peeling ("renderer->SetUseDepthPeeling(1);" is commeted out) > - The second image is the outcome after running the example below > unchanged > - The third image shows what happens if zooming is done. Basically, the > scene is restricted to the left lower part. > > It seems like the transformation of the texture is somehow also applied to > the render window? > > Any insights on this? (Im running vtk 6 on Windows 8.1) > > Kind Regards, > Benjamin > > 8<--------------------------- Minimal example > ----------------------------------------- > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > int main(int argc, char** argv) > { > // Any texture will work. I use a 2 by 2 pixel checkerboard pattern > vtkNew pngReader; > pngReader->SetFileName("texture.png"); > pngReader->Update(); > > // Setting up the texture > // IMPORTANT: Without a transformation on the texture, the bug will not > occur. > // (You can turn of texture repeating, but I transform to have a > repeating texture) > vtkNew texture; > texture->SetInputConnection(pngReader->GetOutputPort()); > texture->SetRepeat(true); > > vtkNew trans; > trans->Scale(2.0, 3.0, 1.0); > texture->SetTransform(trans.Get()); > > // Adding a transparent cone. Any geometry will work. > // IMPORTANT: If the geometry is not transparent, the bug will not occur > vtkNew coneSrc; > vtkNew coneMapper; > coneMapper->SetInputConnection(coneSrc->GetOutputPort()); > vtkNew coneActor; > coneActor->SetMapper(coneMapper.Get()); > coneActor->GetProperty()->SetOpacity(0.5); > > // Create the renderer > // IMPORTANT: If depth peeling is not enabled, the bug will not occur. > vtkNew renderer; > renderer->SetUseDepthPeeling(1); > renderer->TexturedBackgroundOn(); > renderer->SetBackgroundTexture(texture.Get()); > renderer->AddActor(coneActor.Get()); > > // Create the render window > // IMPORTANT: If AlphaBitPlanes is off, the bug will not occur. (But no > depth peeling either). > vtkNew renderWindow; > renderWindow->AlphaBitPlanesOn(); > renderWindow->AddRenderer(renderer.Get()); > > // Create the interactor and start up > vtkNew renderInteract; > renderInteract->SetRenderWindow(renderWindow.Get()); > renderWindow->Render(); > renderInteract->Start(); > > return 0; > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: From godimarcovr at gmail.com Wed Mar 18 06:41:33 2015 From: godimarcovr at gmail.com (WeltMarco) Date: Wed, 18 Mar 2015 03:41:33 -0700 (MST) Subject: [vtkusers] Problem with fullscreen on Windows with fix Message-ID: <1426675293724-5730930.post@n5.nabble.com> Hello, i'm working on a fullscreen application and from what i found i just need to call SetFullscreen(1) on my renderwindow. On my Windows 8.1 machine with an Intel HD 4000 and on another Windows 8.1 machine with an nVidia GT540M the following bug occurs: just calling SetFullscreen(1) isn't enough, it just causes the window to lose borders and enlarge to a size that doesn't cover the fullscreen (it's anchored on the top left and it doesn't reach the bottom-right). I found 2 solutions to this: 1) call SetSize(w,h), but with this you need to get the computer resolution and use that 2) for some reason, calling GetScreenSize() after the FullScreen call, makes the fullscreen work (but only if you have the taskbar hidden, if it's visible the fullscreen only reaches to it). Looking at the vtkWin32OpenGLRenderWindow source code i think the problem may be that by calling SetFullscreen the GetScreenSize call inside of it gets the SPI_GETWORKAREA information, but that isn't the right way to get fullscreen resolution. (info on this here https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx ) Hope someone fixes it, in the meantime the solutions i posted should work. -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-fullscreen-on-Windows-with-fix-tp5730930.html Sent from the VTK - Users mailing list archive at Nabble.com. From artix93 at hotmail.it Wed Mar 18 07:25:35 2015 From: artix93 at hotmail.it (artix93) Date: Wed, 18 Mar 2015 04:25:35 -0700 (MST) Subject: [vtkusers] Problem with fullscreen on Windows with fix In-Reply-To: <1426675293724-5730930.post@n5.nabble.com> References: <1426675293724-5730930.post@n5.nabble.com> Message-ID: <1426677935906-5730933.post@n5.nabble.com> right now the getscreen size is as follow > int *vtkWin32OpenGLRenderWindow::GetScreenSize(void) > { > RECT rect; > > SystemParametersInfo(SPI_GETWORKAREA, 0, &rect, 0); > > this->Size[0] = rect.right - rect.left; > this->Size[1] = rect.bottom - rect.top; > > return this->Size; > } and it doesn't get the right height because it gets the work area and that doesn't include the space occupied by the task bar. It should be changed, if you want to get the right screen size, as follow > int *vtkWin32OpenGLRenderWindow::GetScreenSize(void) > { > MONITORINFO target; > target.cbSize = sizeof(MONITORINFO); > HMONITOR Hmon = MonitorFromWindow(hWnd, MONITOR_DEFAULTTOPRIMARY); > GetMonitorInfo(Hmon, &target); > target.rcMonitor.right - target.rcMonitor.left; > target.rcMonitor.bottom - target.rcMonitor.top; > > this->Size[0] = target.rcMonitor.right - target.rcMonitor.left; > this->Size[1] = target.rcMonitor.bottom - target.rcMonitor.top; > return this->Size; > } -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-fullscreen-on-Windows-with-fix-tp5730930p5730933.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Wed Mar 18 07:55:51 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 18 Mar 2015 17:25:51 +0530 Subject: [vtkusers] Get/Set values Vector Data In-Reply-To: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> References: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> Message-ID: HI Allen, Thanks for the pointer. I am having some issues with this. before explaining the issues let me state the problem I am trying to solve in bit more dtails. I have a poly data which corresponds to to different set, i.e. the combined poly data I am dealing with correspond to two different section of the geometrical object. And I know the offset of the data set which differentiates object A from Object B from the polydata. Now when I am trying to set value like velocity with 3 component, I am facing the issues. Although I do the following, the properties are getting assigned randomly. Here is the snippet of my code : vtkSmartPointer velocity = vtkSmartPointer::New(); velocity->SetName ("Velocity"); velocity->SetNumberOfComponents(3); velocity->SetNumberOfTuples( polydata->GetNumberOfPoints()); polydata->GetPointData()->AddArray( velocity ); for (long long i = offset; i < polydata->GetNumberOfPoints(); ++i) // offset determines the position of the polydata I want to start with instead of starting at == 0) { velocity->SetTuple3( i, _Vx, _Vy, _Vz ); //_Vx,_Vy,_Vz are double and declared elsewhere // velocity->InsertNextTuple3( _Vx, _Vy, _Vz ); // Instead of using SetTuple3, I can use InsertNextTuple3 or InsertTuple3 too. } Am I doing anything wrong here ? Thanks much, Chiranjib On Tue, Mar 17, 2015 at 6:55 PM, Allen Sanderson wrote: > Here is some sample code: > > vtkDoubleArray *velocityArray = vtkDoubleArray::New(); > velocityArray->SetName(var.c_str()); > // NOTE: you want to set the number of components BEFORE setting the > number of Tuples so memory is correctly allocated. > > velocityArray->SetNumberOfComponents(3); > velocityArray->SetNumberOfTuples(nTuples); > > polydata->GetPointData()->AddArray(velocityArray); > > double dx, dy, dz; > > Loop: velocityArray->SetTuple3(index, dx, dy, dz); > Where : 0<= index < nTuples > > velocityArray->Delete(); > > > The get would be: > > double *velocity = velocityArray->GetTuple3(l); > > > Cheers, > > > Allen > > > > Allen Sanderson > > SCI Institute > > University of Utah > > www.sci.utah.edu > > > > On Mar 17, 2015, at 1:03 PM, Chiranjib Sur > wrote: > > Hi All, > I want to assign values (3 component vector) to all in a polydata set. > I found the email thread where the solution for a one component scalar > data is explained ( > http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html > ) > > Anybody can help explaining how to do this for a 3-component vector data > type. > > Thanks in advance. > > Chiranjib Sur > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Wed Mar 18 08:04:54 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Wed, 18 Mar 2015 05:04:54 -0700 (MST) Subject: [vtkusers] OpenGL2 error output Message-ID: <1426680294269-5730935.post@n5.nabble.com> Hi all, after import a 3D-object, I get this: ERROR: In ..\..\..\VTK-6.2.0\Rendering\OpenGL2\vtkOpenGLPolyDataMapper2D.cxx, line 563 vtkOpenGLPolyDataMapper2D (000000001A399750): failed after RenderOverlay 1 OpenGL errors detected 0 : (1281) Invalid value If I change the window-size (and therefore also the render panel), I fill the error-output-file with more of this error-messages. And when I clear the renderer, I get this: ERROR: In ..\..\..\VTK-6.2.0\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 87 vtkOpenGLActor (000000001CDD73F0): failed after Render 1 OpenGL errors detected 0 : (1282) Invalid operation Where could be the errors in the code? Maybe I should mention that I changed all vtkActor's to vtkOpenGLActor's. -- View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL2-error-output-tp5730935.html Sent from the VTK - Users mailing list archive at Nabble.com. From beekmaarten at yahoo.com Wed Mar 18 09:23:06 2015 From: beekmaarten at yahoo.com (Maarten Beek) Date: Wed, 18 Mar 2015 13:23:06 +0000 (UTC) Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() Message-ID: <1912781483.1106689.1426684986026.JavaMail.yahoo@mail.yahoo.com> Hi all, For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), vtkImageData::GetBounds() returns(0, 12.87, 0, 12.87, 0, 12.87) If I use these bounds as argument in vtkBox::IntersectWithLine, do I get the correct intersections?Or should I use (0, 13, 0, 13, 0, 13) for the bounds? Thanks - Maarten -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Mar 18 09:41:49 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 18 Mar 2015 07:41:49 -0600 Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() In-Reply-To: <1912781483.1106689.1426684986026.JavaMail.yahoo@mail.yahoo.com> References: <1912781483.1106689.1426684986026.JavaMail.yahoo@mail.yahoo.com> Message-ID: Hi Maarten, If you used (0, 13, ...) then you'd get the wrong answer. The bounds of a volume start and end in the center of the corner voxels. If the first voxel is 0 and the last voxel is 99, then the real-world dimension of the volume is 99 times the spacing. A voxel is a data point. Emphasis on "point". If you have a series of data points, anything before the first point or after the last point is outside of the bounds of the data points. - David On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers wrote: > Hi all, > > For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), > vtkImageData::GetBounds() returns > (0, 12.87, 0, 12.87, 0, 12.87) > > If I use these bounds as argument in vtkBox::IntersectWithLine, do I get > the correct intersections? > Or should I use (0, 13, 0, 13, 0, 13) for the bounds? > > Thanks - Maarten > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Wed Mar 18 09:45:21 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Wed, 18 Mar 2015 06:45:21 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> Message-ID: <1426686321646-5730940.post@n5.nabble.com> It's solved! I forgot to set all gdcm-dlls in the path. Thanks for your help! -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5730940.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Wed Mar 18 10:16:22 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 18 Mar 2015 08:16:22 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426686321646-5730940.post@n5.nabble.com> References: <1426195818211-5730784.post@n5.nabble.com> <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> Message-ID: On Wed, Mar 18, 2015 at 7:45 AM, -Daniel- wrote: > It's solved! > I forgot to set all gdcm-dlls in the path. > > Thanks for your help! > Great to hear that it's working. GDCM can be built with static libs, though there isn't a big advantage in doing so. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at sci.utah.edu Wed Mar 18 12:19:12 2015 From: allen at sci.utah.edu (Allen Sanderson) Date: Wed, 18 Mar 2015 17:19:12 +0100 Subject: [vtkusers] Get/Set values Vector Data In-Reply-To: References: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> Message-ID: <9FB17C1A-6BD0-40E8-B6A7-8544E5A5DC8A@sci.utah.edu> You do not need to do an insert next tuple as memory has already been allocated with the call to SetNumberOfTuples. Right off I do see anything wrong with your approach. I would check the obvious does your polydata have points?? What happens to it down stream?? Cheers, Allen On Mar 18, 2015, at 12:55 PM, Chiranjib Sur wrote: > HI Allen, > Thanks for the pointer. I am having some issues with this. before explaining the issues let me state the problem I am trying to solve in bit more dtails. > > I have a poly data which corresponds to to different set, i.e. the combined poly data I am dealing with correspond to two different section of the geometrical object. And I know the offset of the data set which differentiates object A from Object B from the polydata. > > Now when I am trying to set value like velocity with 3 component, I am facing the issues. Although I do the following, the properties are getting assigned randomly. Here is the snippet of my code : > > > vtkSmartPointer velocity = vtkSmartPointer::New(); > velocity->SetName ("Velocity"); > velocity->SetNumberOfComponents(3); > > velocity->SetNumberOfTuples( polydata->GetNumberOfPoints()); > > polydata->GetPointData()->AddArray( velocity ); > > for (long long i = offset; i < polydata->GetNumberOfPoints(); ++i) // offset determines the position of the polydata I want to start with instead of starting at == 0) > { > velocity->SetTuple3( i, _Vx, _Vy, _Vz ); //_Vx,_Vy,_Vz are double and declared elsewhere > // velocity->InsertNextTuple3( _Vx, _Vy, _Vz ); // Instead of using SetTuple3, I can use InsertNextTuple3 or InsertTuple3 too. > } > > Am I doing anything wrong here ? > > Thanks much, > Chiranjib > > On Tue, Mar 17, 2015 at 6:55 PM, Allen Sanderson wrote: > Here is some sample code: > > vtkDoubleArray *velocityArray = vtkDoubleArray::New(); > velocityArray->SetName(var.c_str()); > // NOTE: you want to set the number of components BEFORE setting the number of Tuples so memory is correctly allocated. > > velocityArray->SetNumberOfComponents(3); > velocityArray->SetNumberOfTuples(nTuples); > > polydata->GetPointData()->AddArray(velocityArray); > > double dx, dy, dz; > > Loop: velocityArray->SetTuple3(index, dx, dy, dz); > Where : 0<= index < nTuples > > velocityArray->Delete(); > > > The get would be: > > double *velocity = velocityArray->GetTuple3(l); > > > Cheers, > > Allen > > > Allen Sanderson > SCI Institute > University of Utah > www.sci.utah.edu > > > > On Mar 17, 2015, at 1:03 PM, Chiranjib Sur wrote: > >> Hi All, >> I want to assign values (3 component vector) to all in a polydata set. >> I found the email thread where the solution for a one component scalar data is explained (http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html) >> >> Anybody can help explaining how to do this for a 3-component vector data type. >> >> Thanks in advance. >> >> Chiranjib Sur >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Wed Mar 18 12:21:31 2015 From: DLRdave at aol.com (David Cole) Date: Wed, 18 Mar 2015 12:21:31 -0400 Subject: [vtkusers] Problem with fullscreen on Windows with fix In-Reply-To: <1426677935906-5730933.post@n5.nabble.com> References: <1426675293724-5730930.post@n5.nabble.com> <1426677935906-5730933.post@n5.nabble.com> Message-ID: What version of VTK are you guys looking at for this? The problem should be fixed already (but only for going full screen on the primary monitor) in VTK 'master' and the recently released VTK version 6.2. Please try the latest, and see if you still have problems. HTH, David C. On Wed, Mar 18, 2015 at 7:25 AM, artix93 wrote: > right now the getscreen size is as follow >> int *vtkWin32OpenGLRenderWindow::GetScreenSize(void) >> { >> RECT rect; >> >> SystemParametersInfo(SPI_GETWORKAREA, 0, &rect, 0); >> >> this->Size[0] = rect.right - rect.left; >> this->Size[1] = rect.bottom - rect.top; >> >> return this->Size; >> } > > and it doesn't get the right height because it gets the work area and that > doesn't include the space occupied by the task bar. > It should be changed, if you want to get the right screen size, as follow > > >> int *vtkWin32OpenGLRenderWindow::GetScreenSize(void) >> { >> MONITORINFO target; >> target.cbSize = sizeof(MONITORINFO); >> HMONITOR Hmon = MonitorFromWindow(hWnd, MONITOR_DEFAULTTOPRIMARY); >> GetMonitorInfo(Hmon, &target); >> target.rcMonitor.right - target.rcMonitor.left; >> target.rcMonitor.bottom - target.rcMonitor.top; >> >> this->Size[0] = target.rcMonitor.right - target.rcMonitor.left; >> this->Size[1] = target.rcMonitor.bottom - target.rcMonitor.top; >> return this->Size; >> } > > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-fullscreen-on-Windows-with-fix-tp5730930p5730933.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From siling1992 at gmail.com Wed Mar 18 12:29:52 2015 From: siling1992 at gmail.com (siling tan) Date: Thu, 19 Mar 2015 00:29:52 +0800 Subject: [vtkusers] Get Patient's ID from Dicom Images In-Reply-To: References: Message-ID: I see, thanks Ravi ! ?Si Ling? -------------- next part -------------- An HTML attachment was scrubbed... URL: From godimarcovr at gmail.com Wed Mar 18 13:16:34 2015 From: godimarcovr at gmail.com (WeltMarco) Date: Wed, 18 Mar 2015 10:16:34 -0700 (MST) Subject: [vtkusers] Problem with fullscreen on Windows with fix In-Reply-To: References: <1426675293724-5730930.post@n5.nabble.com> <1426677935906-5730933.post@n5.nabble.com> Message-ID: <1426698994728-5730956.post@n5.nabble.com> I'm currently using VTK 6.1, i'll try with 6.2 as soon as i can -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-fullscreen-on-Windows-with-fix-tp5730930p5730956.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Wed Mar 18 13:37:19 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 18 Mar 2015 23:07:19 +0530 Subject: [vtkusers] Get/Set values Vector Data In-Reply-To: <9FB17C1A-6BD0-40E8-B6A7-8544E5A5DC8A@sci.utah.edu> References: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> <9FB17C1A-6BD0-40E8-B6A7-8544E5A5DC8A@sci.utah.edu> Message-ID: Hi Allen, Thanks for your reply. I now understand the philosophy behind the insert tuple thing. One the other hand, to reply your questions (if I understood it correctly), I can do the get/set operation with scalars (single component) easily and correctly, which means my polydata points are created properly. What exactly you mean by "down stream". I am new to this field and may be I am missing the terminologies. To reiterate, my problem is to assign same vector properties to my poly points but with different values (separated by offset). Thanks again in advance for your help. Chiranjib On Wed, Mar 18, 2015 at 9:49 PM, Allen Sanderson wrote: > You do not need to do an insert next tuple as memory has already been > allocated with the call to SetNumberOfTuples. > > Right off I do see anything wrong with your approach. I would check the > obvious does your polydata have points?? What happens to it down stream?? > > > Cheers, > > Allen > > > > > On Mar 18, 2015, at 12:55 PM, Chiranjib Sur > wrote: > > HI Allen, > Thanks for the pointer. I am having some issues with this. before > explaining the issues let me state the problem I am trying to solve in bit > more dtails. > > I have a poly data which corresponds to to different set, i.e. the > combined poly data I am dealing with correspond to two different section of > the geometrical object. And I know the offset of the data set which > differentiates object A from Object B from the polydata. > > Now when I am trying to set value like velocity with 3 component, I am > facing the issues. Although I do the following, the properties are getting > assigned randomly. Here is the snippet of my code : > > > vtkSmartPointer velocity = > vtkSmartPointer::New(); > velocity->SetName ("Velocity"); > velocity->SetNumberOfComponents(3); > > velocity->SetNumberOfTuples( polydata->GetNumberOfPoints()); > > polydata->GetPointData()->AddArray( velocity ); > > for (long long i = offset; i < polydata->GetNumberOfPoints(); ++i) > // offset determines the position of the polydata I want to start with > instead of starting at == 0) > { > velocity->SetTuple3( i, _Vx, _Vy, _Vz ); //_Vx,_Vy,_Vz are > double and declared elsewhere > // velocity->InsertNextTuple3( _Vx, _Vy, _Vz ); // Instead > of using SetTuple3, I can use InsertNextTuple3 or InsertTuple3 too. > } > > > Am I doing anything wrong here ? > > Thanks much, > Chiranjib > > On Tue, Mar 17, 2015 at 6:55 PM, Allen Sanderson > wrote: > >> Here is some sample code: >> >> vtkDoubleArray *velocityArray = vtkDoubleArray::New(); >> velocityArray->SetName(var.c_str()); >> // NOTE: you want to set the number of components BEFORE setting the >> number of Tuples so memory is correctly allocated. >> >> velocityArray->SetNumberOfComponents(3); >> velocityArray->SetNumberOfTuples(nTuples); >> >> polydata->GetPointData()->AddArray(velocityArray); >> >> double dx, dy, dz; >> >> Loop: velocityArray->SetTuple3(index, dx, dy, dz); >> Where : 0<= index < nTuples >> >> velocityArray->Delete(); >> >> >> The get would be: >> >> double *velocity = velocityArray->GetTuple3(l); >> >> >> Cheers, >> >> Allen >> >> >> Allen Sanderson >> SCI Institute >> University of Utah >> www.sci.utah.edu >> >> >> >> On Mar 17, 2015, at 1:03 PM, Chiranjib Sur >> wrote: >> >> Hi All, >> I want to assign values (3 component vector) to all in a polydata set. >> I found the email thread where the solution for a one component scalar >> data is explained ( >> http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html >> ) >> >> Anybody can help explaining how to do this for a 3-component vector data >> type. >> >> Thanks in advance. >> >> Chiranjib Sur >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From beekmaarten at yahoo.com Wed Mar 18 14:58:46 2015 From: beekmaarten at yahoo.com (Maarten Beek) Date: Wed, 18 Mar 2015 18:58:46 +0000 (UTC) Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() In-Reply-To: References: Message-ID: <1191371333.1350434.1426705126139.JavaMail.yahoo@mail.yahoo.com> Hi David, To clarify.Since "the bounds of avolume start and end in the center of the corner voxels.", I would have to expand the bbox in all directions by 0.5*spacing to get the intersections with the 'outside' planes of the image? And the distance between one 'outside' and its opposite 'outside' would be 100 times the spacing? Maarten On Wednesday, March 18, 2015 9:42 AM, David Gobbi wrote: Hi Maarten, If you used (0, 13, ...) then you'd get the wrong answer.? The bounds of avolume start and end in the center of the corner voxels.? If the first voxelis 0 and the last voxel is 99, then the real-world dimension of the volume is99 times the spacing. A voxel is a data point.? Emphasis on "point".? If you have a series of datapoints, anything before the first point or after the last point is outside of thebounds of the data points. ?- David ? On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers wrote: Hi all, For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), vtkImageData::GetBounds() returns(0, 12.87, 0, 12.87, 0, 12.87) If I use these bounds as argument in vtkBox::IntersectWithLine, do I get the correct intersections?Or should I use (0, 13, 0, 13, 0, 13) for the bounds? Thanks - Maarten -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Mar 18 15:15:48 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 18 Mar 2015 13:15:48 -0600 Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() In-Reply-To: <1191371333.1350434.1426705126139.JavaMail.yahoo@mail.yahoo.com> References: <1191371333.1350434.1426705126139.JavaMail.yahoo@mail.yahoo.com> Message-ID: You can define "outside" to be whatever you want, but VTK defines "outside the bounds" to mean "beyond the data points that form the edge of the data set." :) If, for example, I wanted to intersect a line with the first and last slice of the volume, I would _not_ add 0.5*spacing. But that's because I consider my "slice" to be an infinitesimally thin object. So according to my definition of "slice", the distance between one end of the volume and the other is 99 times the spacing. Really, how you define things will depend partly on the requirements of your application. I'm just saying what my own definitions are. - David On Wed, Mar 18, 2015 at 12:58 PM, Maarten Beek wrote: > Hi David, > > To clarify. > Since "the bounds of avolume start and end in the center of the corner > voxels.", I would have to expand the bbox in all directions by 0.5*spacing > to get the intersections with the 'outside' planes of the image? And the > distance between one 'outside' and its opposite 'outside' would be 100 > times the spacing? > > Maarten > > > > On Wednesday, March 18, 2015 9:42 AM, David Gobbi > wrote: > > > Hi Maarten, > > If you used (0, 13, ...) then you'd get the wrong answer. The bounds of a > volume start and end in the center of the corner voxels. If the first > voxel > is 0 and the last voxel is 99, then the real-world dimension of the volume > is > 99 times the spacing. > > A voxel is a data point. Emphasis on "point". If you have a series of > data > points, anything before the first point or after the last point is outside > of the > bounds of the data points. > > - David > > > On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers < > vtkusers at vtk.org> wrote: > > Hi all, > > For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), > vtkImageData::GetBounds() returns > (0, 12.87, 0, 12.87, 0, 12.87) > > If I use these bounds as argument in vtkBox::IntersectWithLine, do I get > the correct intersections? > Or should I use (0, 13, 0, 13, 0, 13) for the bounds? > > Thanks - Maarten > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Wed Mar 18 15:18:21 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Wed, 18 Mar 2015 19:18:21 +0000 Subject: [vtkusers] Setting size of vtkPlaneSource Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2EF9A@exchange3.microbrightfield.com> Hi all, Okay, this may be a simple question but I can't seem to find the answer. I have a vtkplanesource and I need to set the size of the plane. How? My code: // Create a plane vtkSmartPointer planeSource = vtkSmartPointer::New(); planeSource->SetCenter(pCenterPoint); planeSource->SetNormal(pLineVector); Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From totte at dunescientific.com Wed Mar 18 15:24:32 2015 From: totte at dunescientific.com (Totte Karlsson) Date: Wed, 18 Mar 2015 12:24:32 -0700 Subject: [vtkusers] Position a widget in display coordinates? In-Reply-To: References: <5508C1D2.7070903@dunescientific.com> Message-ID: <5509D0F0.5070308@dunescientific.com> On 3/17/2015 7:01 PM, Alex Malyushytsky wrote: > Check link below > > http://vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestSliderWidget2D.cxx > Thanks for the link Alex, but this is for the 2D widget. Works fine for me too. My problem was with the 3D widget. I have actually switched to the 2D widget cause I suspect there are bugs in the 3D widget causing the erratic positioning. Hope to look in further on that later on. The 3D widget is better looking than the 2D one imo. > On Tue, Mar 17, 2015 at 5:07 PM, Totte Karlsson > > wrote: > > Hello, > This question is regarding usage of the 3D slider widget. > I have been using world coordinates to set the widgets position, > and that seem to be working fine. > > Now, however, I would like to simply place the widget horizontally > at the bottom of the render window. Whats the right way to do such? > > I imagine I would need to go from normalized (2D) display values, > say (-0.8, -0.8) & (0.8,-0.8) which would be at the bottom of the > window, to world coordinates (3D). > Any pointers on how to achieve this? > > The widget position would need to be recalculated if the camera > changes. > Thanks, > tk > > -- > ......................... > Totte Karlsson, Ph.D. > Dune Scientific, LLC > 425-296 1980 (office) > 425-780 9648 (cell) > www.dunescientific.com > ......................... > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhlegarreta at vicomtech.org Wed Mar 18 15:32:39 2015 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Wed, 18 Mar 2015 20:32:39 +0100 Subject: [vtkusers] Setting size of vtkPlaneSource In-Reply-To: <46CB11F12B9DC24D860D4082451B318A14F2EF9A@exchange3.microbrightfield.com> References: <46CB11F12B9DC24D860D4082451B318A14F2EF9A@exchange3.microbrightfield.com> Message-ID: Hi Doug, I guess you'll need to use the Origin and the Point1 and Point2 attributes [1] in order to do so. You may want to have a look at the example [2] or the vtkPlaneSource implementation itself [3]. HTH, JON HAITZ [1] http://www.vtk.org/doc/nightly/html/classvtkPlaneSource.html [2] http://www.itk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines [3] https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/Sources/vtkPlaneSource.cxx ---------- Forwarded message ---------- From: Doug Hoppes Date: 18 March 2015 at 20:18 Subject: [vtkusers] Setting size of vtkPlaneSource To: "vtkusers at vtk.org" Hi all, Okay, this may be a simple question but I can?t seem to find the answer. I have a vtkplanesource and I need to set the size of the plane. How? My code: // Create a plane vtkSmartPointer planeSource = vtkSmartPointer< vtkPlaneSource>::New(); planeSource->SetCenter(pCenterPoint); planeSource->SetNormal(pLineVector); Doug _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Wed Mar 18 16:56:11 2015 From: serge at infolytica.com (Serge Lalonde) Date: Wed, 18 Mar 2015 16:56:11 -0400 Subject: [vtkusers] Fixes for vtkCubeAxesActor Message-ID: <5509E66B.3080001@infolytica.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- /*========================================================================= Program: Visualization Toolkit Module: vtkCubeAxesActor.cxx Thanks: Kathleen Bonnell, B Division, Lawrence Livermore National Lab Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #include "vtkCubeAxesActor.h" #include "vtkAxisActor.h" #include "vtkAxisFollower.h" #include "vtkBoundingBox.h" #include "vtkCamera.h" #include "vtkCoordinate.h" #include "vtkFollower.h" #include "vtkMath.h" #include "vtkObjectFactory.h" #include "vtkProp3DAxisFollower.h" #include "vtkProperty.h" #include "vtkStringArray.h" #include "vtkTextProperty.h" #include "vtkViewport.h" vtkStandardNewMacro(vtkCubeAxesActor); vtkCxxSetObjectMacro(vtkCubeAxesActor, Camera,vtkCamera); // ************************************************************************* // Instantiate this object. // ************************************************************************* vtkCubeAxesActor::vtkCubeAxesActor() : vtkActor() { this->Bounds[0] = -1.0; this->Bounds[1] = 1.0; this->Bounds[2] = -1.0; this->Bounds[3] = 1.0; this->Bounds[4] = -1.0; this->Bounds[5] = 1.0; for(int i=0; i < 6; ++i) { this->RenderedBounds[i] = this->Bounds[i]; } this->OrientedBounds[0] = -1.0; this->OrientedBounds[1] = 1.0; this->OrientedBounds[2] = -1.0; this->OrientedBounds[3] = 1.0; this->OrientedBounds[4] = -1.0; this->OrientedBounds[5] = 1.0; // Disable oriented bounds and Axis origin this->UseOrientedBounds = this->UseAxisOrigin = 0; // Init default axis origin this->AxisOrigin[0] = this->AxisOrigin[1] = this->AxisOrigin[2] = 0.0; // Init default axis base this->AxisBaseForX[0] = this->AxisBaseForX[1] = this->AxisBaseForX[2] = 0; this->AxisBaseForY[0] = this->AxisBaseForY[1] = this->AxisBaseForY[2] = 0; this->AxisBaseForZ[0] = this->AxisBaseForZ[1] = this->AxisBaseForZ[2] = 0; this->AxisBaseForX[0] = this->AxisBaseForY[1] = this->AxisBaseForZ[2] = 1.0; this->RebuildAxes = false; this->Camera = NULL; this->FlyMode = VTK_FLY_CLOSEST_TRIAD; this->GridLineLocation = VTK_GRID_LINES_ALL; // By default enable distance based LOD this->EnableDistanceLOD = 1; this->DistanceLODThreshold = .8; // By default enable view angle based LOD this->EnableViewAngleLOD = 1; this->ViewAngleLODThreshold = .2; // Title and label text properties for (int i = 0; i < 3; i++) { this->TitleTextProperty[i] = vtkTextProperty::New(); this->TitleTextProperty[i]->SetColor(1.,1.,1.); this->TitleTextProperty[i]->SetFontFamilyToArial(); this->TitleTextProperty[i]->SetFontSize(18.); this->TitleTextProperty[i]->SetVerticalJustificationToCentered(); this->TitleTextProperty[i]->SetJustificationToCentered(); this->LabelTextProperty[i] = vtkTextProperty::New(); this->LabelTextProperty[i]->SetColor(1.,1.,1.); this->LabelTextProperty[i]->SetFontFamilyToArial(); this->LabelTextProperty[i]->SetFontSize(14.); this->LabelTextProperty[i]->SetVerticalJustificationToBottom(); this->LabelTextProperty[i]->SetJustificationToLeft(); } // Axis lines this->XAxesLinesProperty = vtkProperty::New(); this->YAxesLinesProperty = vtkProperty::New(); this->ZAxesLinesProperty = vtkProperty::New(); // Outer grid lines this->XAxesGridlinesProperty = vtkProperty::New(); this->YAxesGridlinesProperty = vtkProperty::New(); this->ZAxesGridlinesProperty = vtkProperty::New(); // Inner grid lines this->XAxesInnerGridlinesProperty = vtkProperty::New(); this->YAxesInnerGridlinesProperty = vtkProperty::New(); this->ZAxesInnerGridlinesProperty = vtkProperty::New(); this->XAxesInnerGridlinesProperty->SetColor(.3,.6,.1); this->YAxesInnerGridlinesProperty->SetColor(.3,.6,.1); this->ZAxesInnerGridlinesProperty->SetColor(.3,.6,.1); this->XAxesGridpolysProperty = vtkProperty::New(); this->YAxesGridpolysProperty = vtkProperty::New(); this->ZAxesGridpolysProperty = vtkProperty::New(); this->XAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity this->YAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity this->ZAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity //this->XAxesGridpolysProperty->LightingOff(); // To be able to see the polys from high camera angles //this->YAxesGridpolysProperty->LightingOff(); // To be able to see the polys from high camera angles //this->ZAxesGridpolysProperty->LightingOff(); // To be able to see the polys from high camera angles this->ScreenSize = 10.; this->LabelOffset = 20.; this->TitleOffset = 20.; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i] = vtkAxisActor::New(); this->XAxes[i]->SetTickVisibility(1); this->XAxes[i]->SetMinorTicksVisible(1); this->XAxes[i]->SetLabelVisibility(1); this->XAxes[i]->SetTitleVisibility(1); this->XAxes[i]->SetAxisTypeToX(); this->XAxes[i]->SetAxisPosition(i); this->XAxes[i]->SetAxisLinesProperty(this->XAxesLinesProperty); this->XAxes[i]->SetGridlinesProperty(this->XAxesGridlinesProperty); this->XAxes[i]->SetInnerGridlinesProperty(this->XAxesInnerGridlinesProperty); this->XAxes[i]->SetGridpolysProperty(this->XAxesGridpolysProperty); this->XAxes[i]->SetLabelOffset(this->LabelOffset); this->XAxes[i]->SetTitleOffset(this->TitleOffset); this->XAxes[i]->SetScreenSize(this->ScreenSize); this->XAxes[i]->SetCalculateTitleOffset(0); this->XAxes[i]->SetCalculateLabelOffset(0); this->YAxes[i] = vtkAxisActor::New(); this->YAxes[i]->SetTickVisibility(1); this->YAxes[i]->SetMinorTicksVisible(1); this->YAxes[i]->SetLabelVisibility(1); this->YAxes[i]->SetTitleVisibility(1); this->YAxes[i]->SetAxisTypeToY(); this->YAxes[i]->SetAxisPosition(i); this->YAxes[i]->SetAxisLinesProperty(this->YAxesLinesProperty); this->YAxes[i]->SetGridlinesProperty(this->YAxesGridlinesProperty); this->YAxes[i]->SetInnerGridlinesProperty(this->YAxesInnerGridlinesProperty); this->YAxes[i]->SetGridpolysProperty(this->YAxesGridpolysProperty); this->YAxes[i]->SetLabelOffset(this->LabelOffset); this->YAxes[i]->SetTitleOffset(this->TitleOffset); this->YAxes[i]->SetScreenSize(this->ScreenSize); this->YAxes[i]->SetCalculateTitleOffset(0); this->YAxes[i]->SetCalculateLabelOffset(0); this->ZAxes[i] = vtkAxisActor::New(); this->ZAxes[i]->SetTickVisibility(1); this->ZAxes[i]->SetMinorTicksVisible(1); this->ZAxes[i]->SetLabelVisibility(1); this->ZAxes[i]->SetTitleVisibility(1); this->ZAxes[i]->SetAxisTypeToZ(); this->ZAxes[i]->SetAxisPosition(i); this->ZAxes[i]->SetAxisLinesProperty(this->ZAxesLinesProperty); this->ZAxes[i]->SetGridlinesProperty(this->ZAxesGridlinesProperty); this->ZAxes[i]->SetInnerGridlinesProperty(this->ZAxesInnerGridlinesProperty); this->ZAxes[i]->SetGridpolysProperty(this->ZAxesGridpolysProperty); this->ZAxes[i]->SetLabelOffset(this->LabelOffset); this->ZAxes[i]->SetTitleOffset(this->TitleOffset); this->ZAxes[i]->SetScreenSize(this->ScreenSize); this->ZAxes[i]->SetCalculateTitleOffset(0); this->ZAxes[i]->SetCalculateLabelOffset(0); // Pass information to axes followers. vtkAxisFollower* follower = this->XAxes[i]->GetTitleActor(); follower->SetEnableDistanceLOD( this->EnableDistanceLOD ); follower->SetDistanceLODThreshold( this->DistanceLODThreshold ); follower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); follower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); vtkProp3DAxisFollower* axisFollower = this->XAxes[i]->GetTitleProp3D(); axisFollower->SetEnableDistanceLOD( this->EnableDistanceLOD ); axisFollower->SetDistanceLODThreshold( this->DistanceLODThreshold ); axisFollower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); axisFollower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); follower = this->YAxes[i]->GetTitleActor(); follower->SetEnableDistanceLOD( this->EnableDistanceLOD ); follower->SetDistanceLODThreshold( this->DistanceLODThreshold ); follower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); follower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); axisFollower = this->YAxes[i]->GetTitleProp3D(); axisFollower->SetEnableDistanceLOD( this->EnableDistanceLOD ); axisFollower->SetDistanceLODThreshold( this->DistanceLODThreshold ); axisFollower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); axisFollower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); follower = this->ZAxes[i]->GetTitleActor(); follower->SetEnableDistanceLOD( this->EnableDistanceLOD ); follower->SetDistanceLODThreshold( this->DistanceLODThreshold ); follower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); follower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); axisFollower = this->ZAxes[i]->GetTitleProp3D(); axisFollower->SetEnableDistanceLOD( this->EnableDistanceLOD ); axisFollower->SetDistanceLODThreshold( this->DistanceLODThreshold ); axisFollower->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); axisFollower->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); } this->XTitle = new char[7]; sprintf(this->XTitle, "%s", "X-Axis"); this->XUnits = NULL; this->YTitle = new char[7]; sprintf(this->YTitle, "%s", "Y-Axis"); this->YUnits = NULL; this->ZTitle = new char[7]; sprintf(this->ZTitle, "%s", "Z-Axis"); this->ZUnits = NULL; this->ActualXLabel = 0; this->ActualYLabel = 0; this->ActualZLabel = 0; this->TickLocation = VTK_TICKS_INSIDE; this->XAxisVisibility = 1; this->YAxisVisibility = 1; this->ZAxisVisibility = 1; this->XAxisTickVisibility = 1; this->YAxisTickVisibility = 1; this->ZAxisTickVisibility = 1; this->XAxisMinorTickVisibility = 1; this->YAxisMinorTickVisibility = 1; this->ZAxisMinorTickVisibility = 1; this->XAxisLabelVisibility = 1; this->YAxisLabelVisibility = 1; this->ZAxisLabelVisibility = 1; this->DrawXGridlines = 0; this->DrawYGridlines = 0; this->DrawZGridlines = 0; this->DrawXInnerGridlines = 0; this->DrawYInnerGridlines = 0; this->DrawZInnerGridlines = 0; this->DrawXGridpolys = 0; this->DrawYGridpolys = 0; this->DrawZGridpolys = 0; this->XLabelFormat = NULL; this->YLabelFormat = NULL; this->ZLabelFormat = NULL; this->XLabelInternalFormat = NULL; this->YLabelInternalFormat = NULL; this->ZLabelInternalFormat = NULL; SetXLabelInternalFormat("%-#6.3g"); SetYLabelInternalFormat("%-#6.3g"); SetZLabelInternalFormat("%-#6.3g"); this->CornerOffset = 0.0; this->Inertia = 1; this->RenderCount = 0; this->InertiaLocs[0] = this->InertiaLocs[1] = this->InertiaLocs[2] = -1; this->RenderSomething = 0; this->LastUseOrientedBounds = 0; this->LastXPow = 0; this->LastYPow = 0; this->LastZPow = 0; this->UserXPow = 0; this->UserYPow = 0; this->UserZPow = 0; this->AutoLabelScaling = true; this->LastXAxisDigits = 3; this->LastYAxisDigits = 3; this->LastZAxisDigits = 3; this->LastXRange[0] = VTK_FLOAT_MAX; this->LastXRange[1] = VTK_FLOAT_MAX; this->LastYRange[0] = VTK_FLOAT_MAX; this->LastYRange[1] = VTK_FLOAT_MAX; this->LastZRange[0] = VTK_FLOAT_MAX; this->LastZRange[1] = VTK_FLOAT_MAX; this->LastBounds[0] = VTK_DOUBLE_MAX; this->LastBounds[1] = VTK_DOUBLE_MAX; this->LastBounds[2] = VTK_DOUBLE_MAX; this->LastBounds[3] = VTK_DOUBLE_MAX; this->LastBounds[4] = VTK_DOUBLE_MAX; this->LastBounds[5] = VTK_DOUBLE_MAX; this->LastFlyMode = -1; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->RenderAxesX[i] = i; this->RenderAxesY[i] = i; this->RenderAxesZ[i] = i; } this->NumberOfAxesX = this->NumberOfAxesY = this->NumberOfAxesZ = 1; this->MustAdjustXValue = false; this->MustAdjustYValue = false; this->MustAdjustZValue = false; this->ForceXLabelReset = false; this->ForceYLabelReset = false; this->ForceZLabelReset = false; this->XAxisRange[0] = VTK_DOUBLE_MAX; this->XAxisRange[1] = VTK_DOUBLE_MAX; this->YAxisRange[0] = VTK_DOUBLE_MAX; this->YAxisRange[1] = VTK_DOUBLE_MAX; this->ZAxisRange[0] = VTK_DOUBLE_MAX; this->ZAxisRange[1] = VTK_DOUBLE_MAX; for (int i = 0; i < 3; ++i) { this->AxisLabels[i] = NULL; } this->LabelScale = -1.0; this->TitleScale = -1.0; } // ************************************************************************* void vtkCubeAxesActor::SetUseTextActor3D( int val ) { for( int i = 0 ; i < NUMBER_OF_ALIGNED_AXIS ; ++ i ) { this->XAxes[i]->SetUseTextActor3D( val ); this->YAxes[i]->SetUseTextActor3D( val ); this->ZAxes[i]->SetUseTextActor3D( val ); } } // ************************************************************************* int vtkCubeAxesActor::GetUseTextActor3D() { // It is assumed that all axes have the same value return this->XAxes[0]->GetUseTextActor3D(); } void vtkCubeAxesActor::SetUse2DMode( int val ) { for( int i = 0 ; i < NUMBER_OF_ALIGNED_AXIS ; ++ i ) { this->XAxes[i]->SetUse2DMode( val ); this->YAxes[i]->SetUse2DMode( val ); this->ZAxes[i]->SetUse2DMode( val ); } if( ! val ) { this->SetZAxisVisibility( 1 ); } else { this->SetZAxisVisibility( 0 ); } } int vtkCubeAxesActor::GetUse2DMode() { // It is assumed that all axes have the same value return this->XAxes[0]->GetUse2DMode(); } void vtkCubeAxesActor::SetSaveTitlePosition( int val ) { // For 2D mode only : // val = 0: no need to save position (3D axis) // val = 1: positions have to be saved during the next render pass // val = 2: positions are saved -> use them for( int i = 0 ; i < NUMBER_OF_ALIGNED_AXIS ; ++ i ) { this->XAxes[i]->SetSaveTitlePosition( val ); this->YAxes[i]->SetSaveTitlePosition( val ); } } // **************************************************************************** vtkCubeAxesActor::~vtkCubeAxesActor() { this->SetCamera(NULL); for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { if (this->XAxes[i]) { this->XAxes[i]->Delete(); this->XAxes[i] = NULL; } if (this->YAxes[i]) { this->YAxes[i]->Delete(); this->YAxes[i] = NULL; } if (this->ZAxes[i]) { this->ZAxes[i]->Delete(); this->ZAxes[i] = NULL; } } if (this->XAxesLinesProperty) { this->XAxesLinesProperty->Delete(); } if (this->XAxesGridlinesProperty) { this->XAxesGridlinesProperty->Delete(); } if (this->XAxesInnerGridlinesProperty) { this->XAxesInnerGridlinesProperty->Delete(); } if (this->XAxesGridpolysProperty) { this->XAxesGridpolysProperty->Delete(); } if (this->YAxesLinesProperty) { this->YAxesLinesProperty->Delete(); } if (this->YAxesGridlinesProperty) { this->YAxesGridlinesProperty->Delete(); } if (this->YAxesInnerGridlinesProperty) { this->YAxesInnerGridlinesProperty->Delete(); } if (this->YAxesGridpolysProperty) { this->YAxesGridpolysProperty->Delete(); } if (this->ZAxesLinesProperty) { this->ZAxesLinesProperty->Delete(); } if (this->ZAxesGridlinesProperty) { this->ZAxesGridlinesProperty->Delete(); } if (this->ZAxesInnerGridlinesProperty) { this->ZAxesInnerGridlinesProperty->Delete(); } if (this->ZAxesGridpolysProperty) { this->ZAxesGridpolysProperty->Delete(); } for (int i = 0; i < 3; i++) { if(this->TitleTextProperty[i] != NULL) { this->TitleTextProperty[i]->Delete(); } this->TitleTextProperty[i] = NULL; if(this->LabelTextProperty[i] != NULL) { this->LabelTextProperty[i]->Delete(); } this->LabelTextProperty[i] = NULL; } delete [] this->XLabelFormat; this->XLabelFormat = NULL; delete [] this->YLabelFormat; this->YLabelFormat = NULL; delete [] this->ZLabelFormat; this->ZLabelFormat = NULL; delete [] this->XLabelInternalFormat; this->XLabelInternalFormat = NULL; delete [] this->YLabelInternalFormat; this->YLabelInternalFormat = NULL; delete [] this->ZLabelInternalFormat; this->ZLabelInternalFormat = NULL; delete [] this->XTitle; this->XTitle = NULL; delete [] this->YTitle; this->YTitle = NULL; delete [] this->ZTitle; this->ZTitle = NULL; delete [] this->XUnits; this->XUnits = NULL; delete [] this->YUnits; this->YUnits = NULL; delete [] this->ZUnits; this->ZUnits = NULL; delete [] this->ActualXLabel; this->ActualXLabel = NULL; delete [] this->ActualYLabel; this->ActualYLabel = NULL; delete [] this->ActualZLabel; this->ActualZLabel = NULL; } // ************************************************************************* // Project the bounding box and compute edges on the border of the bounding // cube. Determine which parts of the edges are visible via intersection // with the boundary of the viewport (minus borders). // ************************************************************************* int vtkCubeAxesActor::RenderOpaqueGeometry(vtkViewport *viewport) { static bool initialRender = true; return this->RenderGeometry( initialRender, viewport, true, &vtkAxisActor::RenderOpaqueGeometry); } // ************************************************************************* // Project the bounding box and compute edges on the border of the bounding // cube. Determine which parts of the edges are visible via intersection // with the boundary of the viewport (minus borders). // ************************************************************************* int vtkCubeAxesActor::RenderTranslucentGeometry(vtkViewport *viewport) { static bool initialRender = true; return this->RenderGeometry( initialRender, viewport, true, &vtkAxisActor::RenderTranslucentGeometry); } // ************************************************************************* // Project the bounding box and compute edges on the border of the bounding // cube. Determine which parts of the edges are visible via intersection // with the boundary of the viewport (minus borders). // ************************************************************************* int vtkCubeAxesActor::RenderTranslucentPolygonalGeometry(vtkViewport *viewport) { static bool initialRender = true; return this->RenderGeometry( initialRender, viewport, true, &vtkAxisActor::RenderTranslucentPolygonalGeometry); } // ************************************************************************* // RenderOverlay : render 2D annotations. // ************************************************************************* int vtkCubeAxesActor::RenderOverlay(vtkViewport *viewport) { static bool initialRender = true; return this->RenderGeometry( initialRender, viewport, false, &vtkAxisActor::RenderOverlay); } // -------------------------------------------------------------------------- int vtkCubeAxesActor::HasTranslucentPolygonalGeometry() { if ((this->NumberOfAxesX > 0 && this->XAxes[0]->HasTranslucentPolygonalGeometry()) || (this->NumberOfAxesY > 0 && this->YAxes[0]->HasTranslucentPolygonalGeometry()) || (this->NumberOfAxesZ > 0 && this->ZAxes[0]->HasTranslucentPolygonalGeometry())) { return 1; } return 0; } // -------------------------------------------------------------------------- // Do final adjustment of axes to control offset, etc. void vtkCubeAxesActor::AdjustAxes(double bounds[6], double xCoords[NUMBER_OF_ALIGNED_AXIS][6], double yCoords[NUMBER_OF_ALIGNED_AXIS][6], double zCoords[NUMBER_OF_ALIGNED_AXIS][6], double xRange[2], double yRange[2], double zRange[2]) { xRange[0] = (this->XAxisRange[0] == VTK_DOUBLE_MAX ? bounds[0] : this->XAxisRange[0]); xRange[1] = (this->XAxisRange[1] == VTK_DOUBLE_MAX ? bounds[1] : this->XAxisRange[1]); yRange[0] = (this->YAxisRange[0] == VTK_DOUBLE_MAX ? bounds[2] : this->YAxisRange[0]); yRange[1] = (this->YAxisRange[1] == VTK_DOUBLE_MAX ? bounds[3] : this->YAxisRange[1]); zRange[0] = (this->ZAxisRange[0] == VTK_DOUBLE_MAX ? bounds[4] : this->ZAxisRange[0]); zRange[1] = (this->ZAxisRange[1] == VTK_DOUBLE_MAX ? bounds[5] : this->ZAxisRange[1]); const double xScale = (xRange[1] - xRange[0])/(bounds[1] - bounds[0]); const double yScale = (yRange[1] - yRange[0])/(bounds[3] - bounds[2]); const double zScale = (zRange[1] - zRange[0])/(bounds[5] - bounds[4]); // Pull back the corners if specified if (this->CornerOffset > 0.0) { for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { double ave; // x-axis ave = (xCoords[i][0] + xCoords[i][2]) / 2.0; xCoords[i][0] = xCoords[i][0] - this->CornerOffset * (xCoords[i][0] - ave); xCoords[i][2] = xCoords[i][2] - this->CornerOffset * (xCoords[i][2] - ave); ave = (xCoords[i][1] + xCoords[i][3]) / 2.0; xCoords[i][1] = xCoords[i][1] - this->CornerOffset * (xCoords[i][1] - ave); xCoords[i][3] = xCoords[i][3] - this->CornerOffset * (xCoords[i][3] - ave); ave = (xRange[1] + xRange[0]) / 2.0; xRange[0] = xRange[0] - this->CornerOffset * xScale * (xRange[0] - ave); xRange[1] = xRange[1] - this->CornerOffset * xScale * (xRange[1] - ave); // y-axis ave = (yCoords[i][0] + yCoords[i][2]) / 2.0; yCoords[i][0] = yCoords[i][0] - this->CornerOffset * (yCoords[i][0] - ave); yCoords[i][2] = yCoords[i][2] - this->CornerOffset * (yCoords[i][2] - ave); ave = (yCoords[i][1] + yCoords[i][3]) / 2.0; yCoords[i][1] = yCoords[i][1] - this->CornerOffset * (yCoords[i][1] - ave); yCoords[i][3] = yCoords[i][3] - this->CornerOffset * (yCoords[i][3] - ave); ave = (yRange[1] + yRange[0]) / 2.0; yRange[0] = yRange[0] - this->CornerOffset * yScale * (yRange[0] - ave); yRange[1] = yRange[1] - this->CornerOffset * yScale * (yRange[1] - ave); // z-axis ave = (zCoords[i][0] + zCoords[i][2]) / 2.0; zCoords[i][0] = zCoords[i][0] - this->CornerOffset * (zCoords[i][0] - ave); zCoords[i][2] = zCoords[i][2] - this->CornerOffset * (zCoords[i][2] - ave); ave = (zCoords[i][1] + zCoords[i][3]) / 2.0; zCoords[i][1] = zCoords[i][1] - this->CornerOffset * (zCoords[i][1] - ave); zCoords[i][3] = zCoords[i][3] - this->CornerOffset * (zCoords[i][3] - ave); ave = (zRange[1] + zRange[0]) / 2.0; zRange[0] = zRange[0] - this->CornerOffset * zScale * (zRange[0] - ave); zRange[1] = zRange[1] - this->CornerOffset * zScale * (zRange[1] - ave); } } } // ************************************************************************* // Screen size affects the screen offset as well. // ************************************************************************* void vtkCubeAxesActor::SetScreenSize(double screenSize) { this->ScreenSize = screenSize; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetScreenSize(screenSize); this->YAxes[i]->SetScreenSize(screenSize); this->ZAxes[i]->SetScreenSize(screenSize); } this->Modified(); } // ************************************************************************* // Offset between labels and axis. // ************************************************************************* void vtkCubeAxesActor::SetLabelOffset(double offset) { this->LabelOffset = offset; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetLabelOffset(offset); this->YAxes[i]->SetLabelOffset(offset); this->ZAxes[i]->SetLabelOffset(offset); } this->Modified(); } // ************************************************************************* // Offset between title and labels. // ************************************************************************* void vtkCubeAxesActor::SetTitleOffset(double offset) { this->TitleOffset = offset; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetTitleOffset(offset); this->YAxes[i]->SetTitleOffset(offset); this->ZAxes[i]->SetTitleOffset(offset); } this->Modified(); } // ************************************************************************* // Release any graphics resources that are being consumed by this actor. // The parameter window could be used to determine which graphic // resources to release. // ************************************************************************* void vtkCubeAxesActor::ReleaseGraphicsResources(vtkWindow *win) { for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->ReleaseGraphicsResources(win); this->YAxes[i]->ReleaseGraphicsResources(win); this->ZAxes[i]->ReleaseGraphicsResources(win); } } // ****************************************************************** void vtkCubeAxesActor::PrintSelf(ostream& os, vtkIndent indent) { this->Superclass::PrintSelf(os,indent); os << indent << "Bounds: \n"; os << indent << " Xmin,Xmax: (" << this->Bounds[0] << ", " << this->Bounds[1] << ")\n"; os << indent << " Ymin,Ymax: (" << this->Bounds[2] << ", " << this->Bounds[3] << ")\n"; os << indent << " Zmin,Zmax: (" << this->Bounds[4] << ", " << this->Bounds[5] << ")\n"; os << indent << "XAxisRange: [" << this->XAxisRange[0] << ", " << this->XAxisRange[1] << "] " << endl; os << indent << "YAxisRange: [" << this->YAxisRange[0] << ", " << this->YAxisRange[1] << "] " << endl; os << indent << "ZAxisRange: [" << this->ZAxisRange[0] << ", " << this->ZAxisRange[1] << "] " << endl; os << indent << "ScreenSize: (" << this->ScreenSize << ")\n"; if (this->Camera) { os << indent << "Camera:\n"; this->Camera->PrintSelf(os,indent.GetNextIndent()); } else { os << indent << "Camera: (none)\n"; } os << indent << "RebuildAxes: " << this->RebuildAxes << endl; if (this->FlyMode == VTK_FLY_CLOSEST_TRIAD) { os << indent << "Fly Mode: CLOSEST_TRIAD\n"; } else if (this->FlyMode == VTK_FLY_FURTHEST_TRIAD) { os << indent << "Fly Mode: FURTHEST_TRIAD\n"; } else if (this->FlyMode == VTK_FLY_STATIC_TRIAD) { os << indent << "Fly Mode: STATIC_TRIAD\n"; } else if (this->FlyMode == VTK_FLY_STATIC_EDGES) { os << indent << "Fly Mode: STATIC_EDGES\n"; } else { os << indent << "Fly Mode: OUTER_EDGES\n"; } os << indent << "EnableDistanceLOD: " << ( this->EnableDistanceLOD ? "On" : "Off" ) << endl; os << indent << "DistanceLODThreshold: " << this->DistanceLODThreshold << "\n"; os << indent << "EnableViewAngleLOD: " << ( this->EnableViewAngleLOD ? "On" : "Off" ) << endl; os << indent << "ViewAngleLODThreshold: " << this->ViewAngleLODThreshold << "\n"; os << indent << "X Axis Title: " << this->XTitle << "\n"; os << indent << "Y Axis Title: " << this->YTitle << "\n"; os << indent << "Z Axis Title: " << this->ZTitle << "\n"; os << indent << "X Axis Visibility: " << (this->XAxisVisibility ? "On\n" : "Off\n"); os << indent << "Y Axis Visibility: " << (this->YAxisVisibility ? "On\n" : "Off\n"); os << indent << "Z Axis Visibility: " << (this->ZAxisVisibility ? "On\n" : "Off\n"); os << indent << "X Axis Label Format: " << (this->XLabelFormat != NULL ? this->XLabelFormat : "") << "\n"; os << indent << "Y Axis Label Format: " << (this->YLabelFormat != NULL ? this->YLabelFormat : "") << "\n"; os << indent << "Z Axis Label Format: " << (this->ZLabelFormat != NULL ? this->ZLabelFormat : "") << "\n"; os << indent << "X Axis Label Internal Format: " << this->XLabelInternalFormat << "\n"; os << indent << "Y Axis Label Internal Format: " << this->YLabelInternalFormat << "\n"; os << indent << "Z Axis Label Internal Format: " << this->ZLabelInternalFormat << "\n"; os << indent << "Inertia: " << this->Inertia << "\n"; os << indent << "Corner Offset: " << this->CornerOffset << "\n"; os << indent << "XAxisTickVisibility: " << (this->XAxisTickVisibility ? "On" : "Off") << endl; os << indent << "YAxisTickVisibility: " << (this->YAxisTickVisibility ? "On" : "Off") << endl; os << indent << "ZAxisTickVisibility: " << (this->ZAxisTickVisibility ? "On" : "Off") << endl; os << indent << "XAxisMinorTickVisibility: " << (this->XAxisMinorTickVisibility ? "On" : "Off") << endl; os << indent << "YAxisMinorTickVisibility: " << (this->YAxisMinorTickVisibility ? "On" : "Off") << endl; os << indent << "ZAxisMinorTickVisibility: " << (this->ZAxisMinorTickVisibility ? "On" : "Off") << endl; os << indent << "XAxisLabelVisibility: " << (this->XAxisLabelVisibility ? "On" : "Off") << endl; os << indent << "YAxisLabelVisibility: " << (this->YAxisLabelVisibility ? "On" : "Off") << endl; os << indent << "ZAxisLabelVisibility: " << (this->ZAxisLabelVisibility ? "On" : "Off") << endl; os << indent << "XUnits: " << (this->XUnits ? this->XUnits : "(none)") << endl; os << indent << "YUnits: " << (this->YUnits ? this->YUnits : "(none)") << endl; os << indent << "ZUnits: " << (this->ZUnits ? this->ZUnits : "(none)") << endl; os << indent << "TickLocation: " << this->TickLocation << endl; os << indent << "DrawXGridlines: " << this->DrawXGridlines << endl; os << indent << "DrawYGridlines: " << this->DrawYGridlines << endl; os << indent << "DrawZGridlines: " << this->DrawZGridlines << endl; switch(this->GridLineLocation) { case VTK_GRID_LINES_ALL: os << indent << "GridLineLocation: VTK_GRID_LINES_ALL (0)" << endl; break; case VTK_GRID_LINES_CLOSEST: os << indent << "GridLineLocation: VTK_GRID_LINES_CLOSEST (1)" << endl; break; case VTK_GRID_LINES_FURTHEST: os << indent << "GridLineLocation: VTK_GRID_LINES_FURTHEST (2)" << endl; break; } os << indent << "DrawXInnerGridlines: " << this->DrawXInnerGridlines << endl; os << indent << "DrawYInnerGridlines: " << this->DrawYInnerGridlines << endl; os << indent << "DrawZInnerGridlines: " << this->DrawZInnerGridlines << endl; os << indent << "DrawXGridpolys: " << this->DrawXGridpolys << endl; os << indent << "DrawYGridpolys: " << this->DrawYGridpolys << endl; os << indent << "DrawZGridpolys: " << this->DrawZGridpolys << endl; os << indent << "UseOrientedBounds: " << this->UseOrientedBounds << endl; if(this->UseOrientedBounds) { os << indent << "OrientedBounds: \n"; os << indent << " Xmin,Xmax: (" << this->OrientedBounds[0] << ", " << this->OrientedBounds[1] << ")\n"; os << indent << " Ymin,Ymax: (" << this->OrientedBounds[2] << ", " << this->OrientedBounds[3] << ")\n"; os << indent << " Zmin,Zmax: (" << this->OrientedBounds[4] << ", " << this->OrientedBounds[5] << ")\n"; } os << indent << "Base: \n"; os << indent << " For X: (" << this->AxisBaseForX[0] << ", " << this->AxisBaseForX[1] << ", " << this->AxisBaseForX[2] << ") \n"; os << indent << " For Y: (" << this->AxisBaseForY[0] << ", " << this->AxisBaseForY[1] << ", " << this->AxisBaseForY[2] << ") \n"; os << indent << " For Z: (" << this->AxisBaseForZ[0] << ", " << this->AxisBaseForZ[1] << ", " << this->AxisBaseForZ[2] << ") \n"; os << indent << "UseAxisOrigin: " << this->UseAxisOrigin << endl; if(this->UseAxisOrigin) { os << indent << "AxisOrigin: (" << this->AxisOrigin[0] << ", " << this->AxisOrigin[1] << ", " << this->AxisOrigin[2] << ")" << endl; } } // -------------------------------------------------------------------------- void vtkCubeAxesActor::TransformBounds(vtkViewport *viewport, const double bounds[6], double pts[8][3]) { double x[3]; //loop over verts of bounding box for ( int k = 0; k < 2; ++ k ) { x[2] = bounds[4 + k]; for ( int j = 0; j < 2; ++ j ) { x[1] = bounds[2 + j]; for ( int i = 0; i < 2; ++ i ) { int idx = i + 2 * j + 4 * k; x[0] = bounds[i]; viewport->SetWorldPoint( x[0], x[1], x[2], 1. ); viewport->WorldToDisplay(); viewport->GetDisplayPoint( pts[idx] ); } } } } // *********************************************************************** // Calculate the size (length) of major and minor ticks, // based on an average of the coordinate direction ranges. // Set the necessary Axes methods with the calculated information. // // Returns: false if tick size not recomputed, true otherwise. // *********************************************************************** bool vtkCubeAxesActor::ComputeTickSize(double bounds[6]) { bool xPropsChanged = this->LabelTextProperty[0]->GetMTime() > this->BuildTime.GetMTime(); bool yPropsChanged = this->LabelTextProperty[1]->GetMTime() > this->BuildTime.GetMTime(); bool zPropsChanged = this->LabelTextProperty[2]->GetMTime() > this->BuildTime.GetMTime(); bool xRangeChanged = this->LastXRange[0] != this->XAxisRange[0] || this->LastXRange[1] != this->XAxisRange[1]; bool yRangeChanged = this->LastYRange[0] != this->YAxisRange[0] || this->LastYRange[1] != this->YAxisRange[1]; bool zRangeChanged = this->LastZRange[0] != this->ZAxisRange[0] || this->LastZRange[1] != this->ZAxisRange[1]; bool boundsChanged = this->LastBounds[0] != bounds[0] || this->LastBounds[1] != bounds[1] || this->LastBounds[2] != bounds[2] || this->LastBounds[3] != bounds[3] || this->LastBounds[4] != bounds[4] || this->LastBounds[5] != bounds[5]; if (!(xRangeChanged || yRangeChanged || zRangeChanged) && !(xPropsChanged || yPropsChanged || zPropsChanged || boundsChanged)) { // no need to re-compute ticksize. return false; } double xExt = bounds[1] - bounds[0]; double yExt = bounds[3] - bounds[2]; double zExt = bounds[5] - bounds[4]; if (xRangeChanged || boundsChanged) { this->AdjustTicksComputeRange(this->XAxes, bounds[0], bounds[1]); this->BuildLabels(this->XAxes); this->UpdateLabels(this->XAxes, 0); } if (yRangeChanged || boundsChanged) { this->AdjustTicksComputeRange(this->YAxes, bounds[2], bounds[3]); this->BuildLabels(this->YAxes); this->UpdateLabels(this->YAxes, 1); } if (zRangeChanged || boundsChanged) { this->AdjustTicksComputeRange(this->ZAxes, bounds[4], bounds[5]); this->BuildLabels(this->ZAxes); this->UpdateLabels(this->ZAxes, 2); } // We give information on deltas for the inner grid lines generation for(int i = 0 ; i < NUMBER_OF_ALIGNED_AXIS ; i++) { for(int j = 0 ; j < 3 ; j++) { this->XAxes[i]->SetMajorStart(j,this->MajorStart[j]); this->XAxes[i]->SetDeltaMajor(j,this->DeltaMajor[j]); this->YAxes[i]->SetMajorStart(j,this->MajorStart[j]); this->YAxes[i]->SetDeltaMajor(j,this->DeltaMajor[j]); this->ZAxes[i]->SetMajorStart(j,this->MajorStart[j]); this->ZAxes[i]->SetDeltaMajor(j,this->DeltaMajor[j]); } } this->LastXRange[0] = (this->XAxisRange[0] == VTK_DOUBLE_MAX ? bounds[0] : this->XAxisRange[0]); this->LastXRange[1] = (this->XAxisRange[1] == VTK_DOUBLE_MAX ? bounds[1] : this->XAxisRange[1]); this->LastYRange[0] = (this->YAxisRange[0] == VTK_DOUBLE_MAX ? bounds[2] : this->YAxisRange[0]); this->LastYRange[1] = (this->YAxisRange[1] == VTK_DOUBLE_MAX ? bounds[3] : this->YAxisRange[1]); this->LastZRange[0] = (this->ZAxisRange[0] == VTK_DOUBLE_MAX ? bounds[4] : this->ZAxisRange[0]); this->LastZRange[1] = (this->ZAxisRange[1] == VTK_DOUBLE_MAX ? bounds[5] : this->ZAxisRange[1]); for(int i=0; i < 6; i++) { this->LastBounds[i] = bounds[i]; } double major = 0.02 * (xExt + yExt + zExt) / 3.; double minor = 0.5 * major; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetMajorTickSize(major); this->XAxes[i]->SetMinorTickSize(minor); this->YAxes[i]->SetMajorTickSize(major); this->YAxes[i]->SetMinorTickSize(minor); this->ZAxes[i]->SetMajorTickSize(major); this->ZAxes[i]->SetMinorTickSize(minor); this->XAxes[i]->SetGridlineXLength(xExt); this->XAxes[i]->SetGridlineYLength(yExt); this->XAxes[i]->SetGridlineZLength(zExt); this->YAxes[i]->SetGridlineXLength(xExt); this->YAxes[i]->SetGridlineYLength(yExt); this->YAxes[i]->SetGridlineZLength(zExt); this->ZAxes[i]->SetGridlineXLength(xExt); this->ZAxes[i]->SetGridlineYLength(yExt); this->ZAxes[i]->SetGridlineZLength(zExt); } return true; } // **************************************************************************** // Method: vtkCubeAxesActor::AdjustValues // // Purpose: // If the range of values is too big or too small, put them in scientific // notation and changes the labels. // // Arguments: // bnds The min/max values in each coordinate direction: // (min_x, max_x, min_y, max_y, min_z, max_x). // // Note: This code is partially stolen from old MeshTV code, // /meshtvx/toolkit/plotgrid.c, axlab[x|y]. // // **************************************************************************** void vtkCubeAxesActor::AdjustValues(const double xRange[2], const double yRange[2], const double zRange[2]) { char xTitle[64]; int xPow, yPow, zPow; if (AutoLabelScaling) { if (this->AxisLabels[0] == NULL) { xPow = this->LabelExponent(xRange[0], xRange[1]); } else { xPow = 0; } if (this->AxisLabels[1] == NULL) { yPow = this->LabelExponent(yRange[0], yRange[1]); } else { yPow = 0; } if (this->AxisLabels[2] == NULL) { zPow = this->LabelExponent(zRange[0], zRange[1]); } else { zPow = 0; } } else { xPow = UserXPow; yPow = UserYPow; zPow = UserZPow; } if (xPow != 0) { if (!this->MustAdjustXValue || this->LastXPow != xPow) { this->ForceXLabelReset = true; } else { this->ForceXLabelReset = false; } this->MustAdjustXValue = true; if (XUnits == NULL || XUnits[0] == '\0') { sprintf(xTitle, "%s (x10^%d)", this->XTitle, xPow); } else { sprintf(xTitle, "%s (x10^%d %s)", this->XTitle, xPow, XUnits); } } else { if (this->MustAdjustXValue) { this->Modified(); this->ForceXLabelReset = true; } else { this->ForceXLabelReset = false; } this->MustAdjustXValue = false; if (XUnits == NULL || XUnits[0] == '\0') { sprintf(xTitle,"%s",this->XTitle); } else { sprintf(xTitle, "%s (%s)", this->XTitle, XUnits); } } char yTitle[64]; if (yPow != 0) { if (!this->MustAdjustYValue || this->LastYPow != yPow) { this->ForceYLabelReset = true; } else { this->ForceYLabelReset = false; } this->MustAdjustYValue = true; if (YUnits == NULL || YUnits[0] == '\0') { sprintf(yTitle, "%s (x10^%d)", this->YTitle, yPow); } else { sprintf(yTitle, "%s (x10^%d %s)", this->YTitle, yPow, YUnits); } } else { if (this->MustAdjustYValue) { this->Modified(); this->ForceYLabelReset = true; } else { this->ForceYLabelReset = false; } this->MustAdjustYValue = false; if (YUnits == NULL || YUnits[0] == '\0') { sprintf(yTitle,"%s",this->YTitle); } else { sprintf(yTitle, "%s (%s)", this->YTitle, YUnits); } } char zTitle[64]; if (zPow != 0) { if (!this->MustAdjustZValue || this->LastZPow != zPow) { this->ForceZLabelReset = true; } else { this->ForceZLabelReset = false; } this->MustAdjustZValue = true; if (ZUnits == NULL || ZUnits[0] == '\0') { sprintf(zTitle, "%s (x10^%d)", this->ZTitle, zPow); } else { sprintf(zTitle, "%s (x10^%d %s)", this->ZTitle, zPow, ZUnits); } } else { if (this->MustAdjustZValue) { this->Modified(); this->ForceZLabelReset = true; } else { this->ForceZLabelReset = false; } this->MustAdjustZValue = false; if (ZUnits == NULL || ZUnits[0] == '\0') { sprintf(zTitle,"%s",this->ZTitle); } else { sprintf(zTitle, "%s (%s)", this->ZTitle, ZUnits); } } this->LastXPow = xPow; this->LastYPow = yPow; this->LastZPow = zPow; this->SetActualXLabel(xTitle); this->SetActualYLabel(yTitle); this->SetActualZLabel(zTitle); } // **************************************************************************** // Method: vtkCubeAxesActor::AdjustRange // // Purpose: // If the range is small, adjust the precision of the values displayed. // // Arguments: // bnds The minimum and maximum values in each coordinate direction // (min_x, max_x, min_y, max_y, min_z, max_z). // **************************************************************************** void vtkCubeAxesActor::AdjustRange(const double bnds[6]) { double xrange[2], yrange[2], zrange[2]; xrange[0] = (this->XAxisRange[0] == VTK_DOUBLE_MAX ? bnds[0] : this->XAxisRange[0]); xrange[1] = (this->XAxisRange[1] == VTK_DOUBLE_MAX ? bnds[1] : this->XAxisRange[1]); yrange[0] = (this->YAxisRange[0] == VTK_DOUBLE_MAX ? bnds[2] : this->YAxisRange[0]); yrange[1] = (this->YAxisRange[1] == VTK_DOUBLE_MAX ? bnds[3] : this->YAxisRange[1]); zrange[0] = (this->ZAxisRange[0] == VTK_DOUBLE_MAX ? bnds[4] : this->ZAxisRange[0]); zrange[1] = (this->ZAxisRange[1] == VTK_DOUBLE_MAX ? bnds[5] : this->ZAxisRange[1]); if (this->LastXPow != 0) { xrange[0] /= pow(10., this->LastXPow); xrange[1] /= pow(10., this->LastXPow); } if (this->LastYPow != 0) { yrange[0] /= pow(10., this->LastYPow); yrange[1] /= pow(10., this->LastYPow); } if (this->LastZPow != 0) { zrange[0] /= pow(10., this->LastZPow); zrange[1] /= pow(10., this->LastZPow); } int xAxisDigits = this->Digits(xrange[0], xrange[1]); if (xAxisDigits != this->LastXAxisDigits) { char format[16]; sprintf(format, "%%.%df", xAxisDigits); this->SetXLabelInternalFormat(format); this->LastXAxisDigits = xAxisDigits; } int yAxisDigits = this->Digits(yrange[0], yrange[1]); if (yAxisDigits != this->LastYAxisDigits) { char format[16]; sprintf(format, "%%.%df", yAxisDigits); this->SetYLabelInternalFormat(format); this->LastYAxisDigits = yAxisDigits; } int zAxisDigits = this->Digits(zrange[0], zrange[1]); if (zAxisDigits != this->LastZAxisDigits) { char format[16]; sprintf(format, "%%.%df", zAxisDigits); this->SetZLabelInternalFormat(format); this->LastZAxisDigits = zAxisDigits; } } // **************************************************************************** // Method: Digits // // Purpose: // Determines the appropriate number of digits for a given range. // // Arguments: // min The minimum value in the range. // max The maximum value in the range. // // Returns: The appropriate number of digits. // **************************************************************************** int vtkCubeAxesActor::Digits(double min, double max ) { long digitsPastDecimal; double range = max - min; double pow10 = log10(range); if (!vtkMath::IsFinite(pow10)) { digitsPastDecimal = 0; } else { long ipow10 = static_cast(floor(pow10)); digitsPastDecimal = -ipow10; if (digitsPastDecimal < 0) { // // The range is more than 10, but not so big we need scientific // notation, we don't need to worry about decimals. // digitsPastDecimal = 0; } else { // // We want one more than the range since there is more than one // tick per decade. // digitsPastDecimal++; // // Anything more than 5 is just noise. (and probably 5 is noise with // doubling point if the part before the decimal is big). // if (digitsPastDecimal > 5) { digitsPastDecimal = 5; } } } return (int)digitsPastDecimal; } // **************************************************************************** // Method: LabelExponent // // Purpose: // Determines the proper exponent for the min and max values. // // Arguments: // min The minimum value along a certain axis. // max The maximum value along a certain axis. // // Note: This code is mostly stolen from old MeshTV code, // /meshtvx/toolkit/plotgrid.c, axlab_format. // **************************************************************************** int vtkCubeAxesActor::LabelExponent(double min, double max) { if (min == max) { return 0; } // // Determine power of 10 to scale axis labels to. // double range = (fabs(min) > fabs(max) ? fabs(min) : fabs(max)); double pow10 = log10(range); // // Cutoffs for using scientific notation. The following 4 variables // should all be static for maximum performance but were made non-static // to get around a compiler bug with the MIPSpro 7.2.1.3 compiler. // double eformat_cut_min = -1.5; double eformat_cut_max = 3.0; double cut_min = pow(10., eformat_cut_min); double cut_max = pow(10., eformat_cut_max); double ipow10; if (range < cut_min || range > cut_max) { // // We are going to use scientific notation and round the exponents to // the nearest multiple of three. // ipow10 = (floor(floor(pow10)/3.))*3; } else { ipow10 = 0; } return static_cast(ipow10); } // ************************************************************************* // Build the axes. Determine coordinates, position, etc. // ************************************************************************* void vtkCubeAxesActor::BuildAxes(vtkViewport *viewport) { if ((this->GetMTime() < this->BuildTime.GetMTime())) { this->AutoScale(viewport); return; } this->SetNonDependentAttributes(); // Reset range in case of bounds type changed if(this->LastUseOrientedBounds != this->UseOrientedBounds) { this->XAxisRange[0] = this->XAxisRange[1] = VTK_DOUBLE_MAX; this->YAxisRange[0] = this->YAxisRange[1] = VTK_DOUBLE_MAX; this->ZAxisRange[0] = this->ZAxisRange[1] = VTK_DOUBLE_MAX; this->LastUseOrientedBounds = this->UseOrientedBounds; } // determine the bounds to use (input, prop, or user-defined) double bounds[6]; if(this->UseOrientedBounds != 0) { this->GetOrientedBounds(bounds); } else { this->GetBounds(bounds); } // Setup the axes for plotting double xCoords[NUMBER_OF_ALIGNED_AXIS][6]; double yCoords[NUMBER_OF_ALIGNED_AXIS][6]; double zCoords[NUMBER_OF_ALIGNED_AXIS][6]; // these arrays are accessed by 'location': mm, mX, XX, or Xm. int mm1[4] = { 0, 0, 1, 1 }; int mm2[4] = { 0, 1, 1, 0 }; // Compute axes end-points int i; for (i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { if(this->UseAxisOrigin == 0) { xCoords[i][0] = bounds[0]*this->AxisBaseForX[0] + bounds[2+mm1[i]]*this->AxisBaseForY[0] + bounds[4+mm2[i]]*this->AxisBaseForZ[0]; xCoords[i][1] = bounds[0]*this->AxisBaseForX[1] + bounds[2+mm1[i]]*this->AxisBaseForY[1] + bounds[4+mm2[i]]*this->AxisBaseForZ[1]; xCoords[i][2] = bounds[0]*this->AxisBaseForX[2] + bounds[2+mm1[i]]*this->AxisBaseForY[2] + bounds[4+mm2[i]]*this->AxisBaseForZ[2]; xCoords[i][3] = bounds[1]*this->AxisBaseForX[0] + bounds[2+mm1[i]]*this->AxisBaseForY[0] + bounds[4+mm2[i]]*this->AxisBaseForZ[0]; xCoords[i][4] = bounds[1]*this->AxisBaseForX[1] + bounds[2+mm1[i]]*this->AxisBaseForY[1] + bounds[4+mm2[i]]*this->AxisBaseForZ[1]; xCoords[i][5] = bounds[1]*this->AxisBaseForX[2] + bounds[2+mm1[i]]*this->AxisBaseForY[2] + bounds[4+mm2[i]]*this->AxisBaseForZ[2]; } else { xCoords[i][0] = bounds[0]*this->AxisBaseForX[0] + this->AxisOrigin[1]*this->AxisBaseForY[0] + this->AxisOrigin[2]*this->AxisBaseForZ[0]; xCoords[i][1] = bounds[0]*this->AxisBaseForX[1] + this->AxisOrigin[1]*this->AxisBaseForY[1] + this->AxisOrigin[2]*this->AxisBaseForZ[1]; xCoords[i][2] = bounds[0]*this->AxisBaseForX[2] + this->AxisOrigin[1]*this->AxisBaseForY[2] + this->AxisOrigin[2]*this->AxisBaseForZ[2]; xCoords[i][3] = bounds[1]*this->AxisBaseForX[0] + this->AxisOrigin[1]*this->AxisBaseForY[0] + this->AxisOrigin[2]*this->AxisBaseForZ[0]; xCoords[i][4] = bounds[1]*this->AxisBaseForX[1] + this->AxisOrigin[1]*this->AxisBaseForY[1] + this->AxisOrigin[2]*this->AxisBaseForZ[1]; xCoords[i][5] = bounds[1]*this->AxisBaseForX[2] + this->AxisOrigin[1]*this->AxisBaseForY[2] + this->AxisOrigin[2]*this->AxisBaseForZ[2]; } if(this->UseAxisOrigin == 0) { yCoords[i][0] = bounds[2]*this->AxisBaseForY[0] + bounds[0+mm1[i]]*this->AxisBaseForX[0] + bounds[4+mm2[i]]*this->AxisBaseForZ[0]; yCoords[i][1] = bounds[2]*this->AxisBaseForY[1] + bounds[0+mm1[i]]*this->AxisBaseForX[1] + bounds[4+mm2[i]]*this->AxisBaseForZ[1]; yCoords[i][2] = bounds[2]*this->AxisBaseForY[2] + bounds[0+mm1[i]]*this->AxisBaseForX[2] + bounds[4+mm2[i]]*this->AxisBaseForZ[2]; yCoords[i][3] = bounds[3]*this->AxisBaseForY[0] + bounds[0+mm1[i]]*this->AxisBaseForX[0] + bounds[4+mm2[i]]*this->AxisBaseForZ[0]; yCoords[i][4] = bounds[3]*this->AxisBaseForY[1] + bounds[0+mm1[i]]*this->AxisBaseForX[1] + bounds[4+mm2[i]]*this->AxisBaseForZ[1]; yCoords[i][5] = bounds[3]*this->AxisBaseForY[2] + bounds[0+mm1[i]]*this->AxisBaseForX[2] + bounds[4+mm2[i]]*this->AxisBaseForZ[2]; } else { yCoords[i][0] = bounds[2]*this->AxisBaseForY[0] + this->AxisOrigin[0]*this->AxisBaseForX[0] + this->AxisOrigin[2]*this->AxisBaseForZ[0]; yCoords[i][1] = bounds[2]*this->AxisBaseForY[1] + this->AxisOrigin[0]*this->AxisBaseForX[1] + this->AxisOrigin[2]*this->AxisBaseForZ[1]; yCoords[i][2] = bounds[2]*this->AxisBaseForY[2] + this->AxisOrigin[0]*this->AxisBaseForX[2] + this->AxisOrigin[2]*this->AxisBaseForZ[2]; yCoords[i][3] = bounds[3]*this->AxisBaseForY[0] + this->AxisOrigin[0]*this->AxisBaseForX[0] + this->AxisOrigin[2]*this->AxisBaseForZ[0]; yCoords[i][4] = bounds[3]*this->AxisBaseForY[1] + this->AxisOrigin[0]*this->AxisBaseForX[1] + this->AxisOrigin[2]*this->AxisBaseForZ[1]; yCoords[i][5] = bounds[3]*this->AxisBaseForY[2] + this->AxisOrigin[0]*this->AxisBaseForX[2] + this->AxisOrigin[2]*this->AxisBaseForZ[2]; } if(this->UseAxisOrigin == 0) { zCoords[i][0] = bounds[4]*this->AxisBaseForZ[0] + bounds[0+mm1[i]]*this->AxisBaseForX[0] + bounds[2+mm2[i]]*this->AxisBaseForY[0]; zCoords[i][1] = bounds[4]*this->AxisBaseForZ[1] + bounds[0+mm1[i]]*this->AxisBaseForX[1] + bounds[2+mm2[i]]*this->AxisBaseForY[1]; zCoords[i][2] = bounds[4]*this->AxisBaseForZ[2] + bounds[0+mm1[i]]*this->AxisBaseForX[2] + bounds[2+mm2[i]]*this->AxisBaseForY[2]; zCoords[i][3] = bounds[5]*this->AxisBaseForZ[0] + bounds[0+mm1[i]]*this->AxisBaseForX[0] + bounds[2+mm2[i]]*this->AxisBaseForY[0]; zCoords[i][4] = bounds[5]*this->AxisBaseForZ[1] + bounds[0+mm1[i]]*this->AxisBaseForX[1] + bounds[2+mm2[i]]*this->AxisBaseForY[1]; zCoords[i][5] = bounds[5]*this->AxisBaseForZ[2] + bounds[0+mm1[i]]*this->AxisBaseForX[2] + bounds[2+mm2[i]]*this->AxisBaseForY[2]; } else { zCoords[i][0] = bounds[4]*this->AxisBaseForZ[0] + this->AxisOrigin[0]*this->AxisBaseForX[0] + this->AxisOrigin[1]*this->AxisBaseForY[0]; zCoords[i][1] = bounds[4]*this->AxisBaseForZ[1] + this->AxisOrigin[0]*this->AxisBaseForX[1] + this->AxisOrigin[1]*this->AxisBaseForY[1]; zCoords[i][2] = bounds[4]*this->AxisBaseForZ[2] + this->AxisOrigin[0]*this->AxisBaseForX[2] + this->AxisOrigin[1]*this->AxisBaseForY[2]; zCoords[i][3] = bounds[5]*this->AxisBaseForZ[0] + this->AxisOrigin[0]*this->AxisBaseForX[0] + this->AxisOrigin[1]*this->AxisBaseForY[0]; zCoords[i][4] = bounds[5]*this->AxisBaseForZ[1] + this->AxisOrigin[0]*this->AxisBaseForX[1] + this->AxisOrigin[1]*this->AxisBaseForY[1]; zCoords[i][5] = bounds[5]*this->AxisBaseForZ[2] + this->AxisOrigin[0]*this->AxisBaseForX[2] + this->AxisOrigin[1]*this->AxisBaseForY[2]; } } double xRange[2], yRange[2], zRange[2]; // this method sets the Coords, and offsets if necessary. this->AdjustAxes(bounds, xCoords, yCoords, zCoords, xRange, yRange, zRange); // adjust for sci. notation if necessary // May set a flag for each axis specifying that label values should // be scaled, may change title of each axis, may change label format. this->AdjustValues(xRange, yRange, zRange); this->AdjustRange(bounds); // Prepare axes for rendering with user-definable options for (i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetAxisOnOrigin(this->UseAxisOrigin); this->XAxes[i]->GetPoint1Coordinate()->SetValue(xCoords[i][0], xCoords[i][1], xCoords[i][2]); this->XAxes[i]->GetPoint2Coordinate()->SetValue(xCoords[i][3], xCoords[i][4], xCoords[i][5]); this->YAxes[i]->SetAxisOnOrigin(this->UseAxisOrigin); this->YAxes[i]->GetPoint1Coordinate()->SetValue(yCoords[i][0], yCoords[i][1], yCoords[i][2]); this->YAxes[i]->GetPoint2Coordinate()->SetValue(yCoords[i][3], yCoords[i][4], yCoords[i][5]); this->ZAxes[i]->SetAxisOnOrigin(this->UseAxisOrigin); this->ZAxes[i]->GetPoint1Coordinate()->SetValue(zCoords[i][0], zCoords[i][1], zCoords[i][2]); this->ZAxes[i]->GetPoint2Coordinate()->SetValue(zCoords[i][3], zCoords[i][4], zCoords[i][5]); this->XAxes[i]->SetRange(xRange[0], xRange[1]); this->YAxes[i]->SetRange(yRange[0], yRange[1]); this->ZAxes[i]->SetRange(zRange[0], zRange[1]); this->XAxes[i]->SetTitle(this->ActualXLabel); this->YAxes[i]->SetTitle(this->ActualYLabel); this->ZAxes[i]->SetTitle(this->ActualZLabel); } bool ticksRecomputed = this->ComputeTickSize(bounds); // // Labels are built during ComputeTickSize. if // ticks were not recomputed, but we need a label // reset, then build the labels here. // if (!ticksRecomputed) { if (this->ForceXLabelReset) { this->BuildLabels(this->XAxes); this->UpdateLabels(this->XAxes, 0); } if (this->ForceYLabelReset) { this->BuildLabels(this->YAxes); this->UpdateLabels(this->YAxes, 1); } if (this->ForceZLabelReset) { this->BuildLabels(this->ZAxes); this->UpdateLabels(this->ZAxes, 2); } } if (ticksRecomputed || this->ForceXLabelReset || this->ForceYLabelReset || this->ForceZLabelReset) { // labels were re-built, need to recompute the scale. double center[3]; center[0] = (this->Bounds[1] - this->Bounds[0]) * 0.5; center[1] = (this->Bounds[3] - this->Bounds[2]) * 0.5; center[2] = (this->Bounds[5] - this->Bounds[4]) * 0.5; double lenX = this->XAxes[0]->ComputeMaxLabelLength(center); double lenY = this->YAxes[0]->ComputeMaxLabelLength(center); double lenZ = this->ZAxes[0]->ComputeMaxLabelLength(center); double lenTitleX = this->XAxes[0]->ComputeTitleLength(center); double lenTitleY = this->YAxes[0]->ComputeTitleLength(center); double lenTitleZ = this->ZAxes[0]->ComputeTitleLength(center); double maxLabelLength = this->MaxOf(lenX, lenY, lenZ, 0.); double maxTitleLength = this->MaxOf(lenTitleX, lenTitleY, lenTitleZ, 0.); double bWidth = this->Bounds[1] - this->Bounds[0]; double bHeight = this->Bounds[3] - this->Bounds[2]; double bLength = sqrt(bWidth*bWidth + bHeight*bHeight); double target = bLength *0.04; this->LabelScale = 1.; if (maxLabelLength != 0.) { this->LabelScale = target / maxLabelLength; } target = bLength *0.10; this->TitleScale = 1.; if (maxTitleLength != 0.) { this->TitleScale = target / maxTitleLength; } // // Allow a bit bigger title if we have units, otherwise // the title may be too small to read. // if (XUnits != NULL && XUnits[0] != '\0') { this->TitleScale *= 2; } for (i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetLabelScale(this->LabelScale); this->YAxes[i]->SetLabelScale(this->LabelScale); this->ZAxes[i]->SetLabelScale(this->LabelScale); this->XAxes[i]->SetTitleScale(this->TitleScale); this->YAxes[i]->SetTitleScale(this->TitleScale); this->ZAxes[i]->SetTitleScale(this->TitleScale); } } // Scale appropriately. this->AutoScale(viewport); this->RenderSomething = 1; this->BuildTime.Modified(); this->LastFlyMode = this->FlyMode; } // ************************************************************************* // Sends attributes to each vtkAxisActor. Only sets those that are // not dependent upon viewport changes, and thus do not need to be set // very often. // ************************************************************************* void vtkCubeAxesActor::SetNonDependentAttributes() { vtkProperty *prop = this->GetProperty(); prop->SetAmbient(1.0); prop->SetDiffuse(0.0); // Make sure our Axis Base is normalized vtkMath::Normalize(this->AxisBaseForX); vtkMath::Normalize(this->AxisBaseForY); vtkMath::Normalize(this->AxisBaseForZ); // Manage custome grid visibility location if FLY and STATIC axis int gridLocationBasedOnAxis = (this->GridLineLocation == VTK_GRID_LINES_ALL) ? VTK_GRID_LINES_ALL : VTK_GRID_LINES_CLOSEST; for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->SetAxisPosition(i); this->XAxes[i]->SetAxisBaseForX(this->AxisBaseForX); this->XAxes[i]->SetAxisBaseForY(this->AxisBaseForY); this->XAxes[i]->SetAxisBaseForZ(this->AxisBaseForZ); this->XAxes[i]->SetCamera(this->Camera); this->XAxes[i]->SetProperty(prop); this->XAxes[i]->SetTitleTextProperty(this->TitleTextProperty[0]); this->XAxes[i]->SetLabelTextProperty(this->LabelTextProperty[0]); this->XAxes[i]->SetAxisLinesProperty(this->XAxesLinesProperty); this->XAxes[i]->SetGridlinesProperty(this->XAxesGridlinesProperty); this->XAxes[i]->SetGridpolysProperty(this->XAxesGridpolysProperty); this->XAxes[i]->SetTickLocation(this->TickLocation); this->XAxes[i]->SetDrawGridlines(this->DrawXGridlines); this->XAxes[i]->SetDrawGridlinesLocation(gridLocationBasedOnAxis); this->XAxes[i]->SetDrawInnerGridlines(this->DrawXInnerGridlines); this->XAxes[i]->SetDrawGridpolys(this->DrawXGridpolys); this->XAxes[i]->SetBounds(this->Bounds); this->XAxes[i]->SetAxisVisibility(this->XAxisVisibility); this->XAxes[i]->SetLabelVisibility(this->XAxisLabelVisibility); this->XAxes[i]->SetTitleVisibility(this->XAxisLabelVisibility); this->XAxes[i]->SetTickVisibility(this->XAxisTickVisibility); this->XAxes[i]->SetMinorTicksVisible(this->XAxisMinorTickVisibility); this->YAxes[i]->SetAxisPosition(i); this->YAxes[i]->SetAxisBaseForX(this->AxisBaseForX); this->YAxes[i]->SetAxisBaseForY(this->AxisBaseForY); this->YAxes[i]->SetAxisBaseForZ(this->AxisBaseForZ); this->YAxes[i]->SetCamera(this->Camera); this->YAxes[i]->SetProperty(prop); this->YAxes[i]->SetTitleTextProperty(this->TitleTextProperty[1]); this->YAxes[i]->SetLabelTextProperty(this->LabelTextProperty[1]); this->YAxes[i]->SetAxisLinesProperty(this->YAxesLinesProperty); this->YAxes[i]->SetGridlinesProperty(this->YAxesGridlinesProperty); this->YAxes[i]->SetGridpolysProperty(this->YAxesGridpolysProperty); this->YAxes[i]->SetTickLocation(this->TickLocation); this->YAxes[i]->SetDrawGridlines(this->DrawYGridlines); this->YAxes[i]->SetDrawGridlinesLocation(gridLocationBasedOnAxis); this->YAxes[i]->SetDrawInnerGridlines(this->DrawYInnerGridlines); this->YAxes[i]->SetDrawGridpolys(this->DrawYGridpolys); this->YAxes[i]->SetBounds(this->Bounds); this->YAxes[i]->SetAxisVisibility(this->YAxisVisibility); this->YAxes[i]->SetLabelVisibility(this->YAxisLabelVisibility); this->YAxes[i]->SetTitleVisibility(this->YAxisLabelVisibility); this->YAxes[i]->SetTickVisibility(this->YAxisTickVisibility); this->YAxes[i]->SetMinorTicksVisible(this->YAxisMinorTickVisibility); this->ZAxes[i]->SetAxisPosition(i); this->ZAxes[i]->SetAxisBaseForX(this->AxisBaseForX); this->ZAxes[i]->SetAxisBaseForY(this->AxisBaseForY); this->ZAxes[i]->SetAxisBaseForZ(this->AxisBaseForZ); this->ZAxes[i]->SetCamera(this->Camera); this->ZAxes[i]->SetProperty(prop); this->ZAxes[i]->SetTitleTextProperty(this->TitleTextProperty[2]); this->ZAxes[i]->SetLabelTextProperty(this->LabelTextProperty[2]); this->ZAxes[i]->SetAxisLinesProperty(this->ZAxesLinesProperty); this->ZAxes[i]->SetGridlinesProperty(this->ZAxesGridlinesProperty); this->ZAxes[i]->SetGridpolysProperty(this->ZAxesGridpolysProperty); this->ZAxes[i]->SetTickLocation(this->TickLocation); this->ZAxes[i]->SetDrawGridlines(this->DrawZGridlines); this->ZAxes[i]->SetDrawGridlinesLocation(gridLocationBasedOnAxis); this->ZAxes[i]->SetDrawInnerGridlines(this->DrawZInnerGridlines); this->ZAxes[i]->SetDrawGridpolys(this->DrawZGridpolys); this->ZAxes[i]->SetBounds(this->Bounds); this->ZAxes[i]->SetAxisVisibility(this->ZAxisVisibility); this->ZAxes[i]->SetLabelVisibility(this->ZAxisLabelVisibility); this->ZAxes[i]->SetTitleVisibility(this->ZAxisLabelVisibility); this->ZAxes[i]->SetTickVisibility(this->ZAxisTickVisibility); this->ZAxes[i]->SetMinorTicksVisible(this->ZAxisMinorTickVisibility); } } // Static variable describes locations in cube, relative to the type // of axis: mm for an X-axis means the x-edge at min-y and min-z. // mX for a Y-axis means the y-edge at min-x and max-z, and so on. enum {mm = 0, mX, XX, Xm }; // // For CLOSEST_TRIAD, and FURTHEST_TRIAD, this variable determines // which locations in the cube each 'Major' axis should take. // static int vtkCubeAxesActorTriads[8][3] = { {mm,mm,mm}, {mm,Xm,Xm}, {Xm,mm,mX}, {Xm,Xm,XX}, {mX,mX,mm}, {mX,XX,Xm}, {XX,mX,mX}, {XX,XX,XX}}; static int vtkCubeAxesActorConn[8][3] = {{1,2,4}, {0,3,5}, {3,0,6}, {2,1,7}, {5,6,0}, {4,7,1}, {7,4,2}, {6,5,3}}; // ************************************************************************* // Determine which of the axes in each coordinate direction actually should // be rendered. For STATIC FlyMode, all axes are rendered. For other // FlyModes, either 1 or 2 per coordinate direction are rendered. // ************************************************************************* void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport) { double bounds[6]; double pts[8][3]; int i = 0, closestIdx = -1, furtherstIdx = -1; int xloc = 0, yloc = 0, zloc = 0; // Make sure we start with only one axis by default, then we might extend it this->NumberOfAxesX = this->NumberOfAxesY = this->NumberOfAxesZ = 1; // Compute relevant axis points only if a axis/grid visibility change based // on the viewpoint if( !( this->GridLineLocation == VTK_GRID_LINES_ALL && ( this->FlyMode == VTK_FLY_STATIC_EDGES || this->FlyMode == VTK_FLY_STATIC_TRIAD))) { // determine the bounds to use (input, prop, or user-defined) this->GetBounds(bounds); this->TransformBounds(viewport, bounds, pts); } // Check closest point if needed if( this->GridLineLocation == VTK_GRID_LINES_CLOSEST || this->FlyMode == VTK_FLY_CLOSEST_TRIAD ) { closestIdx = this->FindClosestAxisIndex(pts); } // Check furtherst point if needed if( this->GridLineLocation == VTK_GRID_LINES_FURTHEST || this->FlyMode == VTK_FLY_FURTHEST_TRIAD ) { furtherstIdx = this->FindFurtherstAxisIndex(pts); } // Manage fast static axis visibility if (this->FlyMode == VTK_FLY_STATIC_EDGES || this->FlyMode == VTK_FLY_STATIC_TRIAD) { if(this->FlyMode == VTK_FLY_STATIC_EDGES) { this->NumberOfAxesX = this->NumberOfAxesY = this->NumberOfAxesZ = NUMBER_OF_ALIGNED_AXIS; } for (i = 0; i < this->NumberOfAxesX; i++) { this->RenderAxesX[i] = this->RenderAxesY[i] = this->RenderAxesZ[i] = i; } this->UpdateGridLineVisibility( (this->GridLineLocation == VTK_GRID_LINES_CLOSEST) ? closestIdx : furtherstIdx); return; } // Take into account the inertia. Process only so often. if (this->RenderCount++ == 0 || !(this->RenderCount % this->Inertia)) { if (this->FlyMode == VTK_FLY_CLOSEST_TRIAD) { xloc = vtkCubeAxesActorTriads[closestIdx][0]; yloc = vtkCubeAxesActorTriads[closestIdx][1]; zloc = vtkCubeAxesActorTriads[closestIdx][2]; } else if (this->FlyMode == VTK_FLY_FURTHEST_TRIAD) { xloc = vtkCubeAxesActorTriads[furtherstIdx][0]; yloc = vtkCubeAxesActorTriads[furtherstIdx][1]; zloc = vtkCubeAxesActorTriads[furtherstIdx][2]; } else // else boundary edges fly mode { this->FindBoundaryEdge(xloc, yloc, zloc, pts); } this->InertiaLocs[0] = xloc; this->InertiaLocs[1] = yloc; this->InertiaLocs[2] = zloc; } // inertia else { // Do not change anything, use locations from last render xloc = this->InertiaLocs[0]; yloc = this->InertiaLocs[1]; zloc = this->InertiaLocs[2]; } // Set axes to be rendered this->RenderAxesX[0] = xloc % NUMBER_OF_ALIGNED_AXIS; this->RenderAxesY[0] = yloc % NUMBER_OF_ALIGNED_AXIS; this->RenderAxesZ[0] = zloc % NUMBER_OF_ALIGNED_AXIS; // Manage grid visibility (can increase the number of axis to render) this->UpdateGridLineVisibility( (this->GridLineLocation == VTK_GRID_LINES_CLOSEST) ? closestIdx : furtherstIdx); } // -------------------------------------------------------------------------- double vtkCubeAxesActor::MaxOf(double a, double b) { return (a > b ? a : b); } // -------------------------------------------------------------------------- double vtkCubeAxesActor::MaxOf(double a, double b, double c, double d) { return this->MaxOf(this->MaxOf(a, b), this->MaxOf(c, d)); } // -------------------------------------------------------------------------- inline double vtkCubeAxesActor::FFix(double value) { int ivalue = static_cast(value); return ivalue; } inline int vtkCubeAxesActor::FRound(double value) { return value <= 0.5 ? static_cast(this->FFix(value)) : static_cast(this->FFix(value) + 1); } inline int vtkCubeAxesActor::GetNumTicks(double range, double fxt) { // Find the number of integral points in the interval. double fnt = range/fxt; fnt = this->FFix(fnt); return this->FRound(fnt); } // -------------------------------------------------------------------------- inline double vtkCubeAxesActor::FSign(double value, double sign) { value = fabs(value); if (sign < 0.) { value *= -1.; } return value; } // ******************************************************************* // Method: vtkCubeAxesActor::AdjustTicksComputeRange // // Purpose: Sets private members controlling the number and position // of ticks. // // Arguments: // inRange The range for this axis. // ******************************************************************* void vtkCubeAxesActor::AdjustTicksComputeRange(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS], double boundsMin, double boundsMax) { double sortedRange[2], range; double fxt; double div, major, minor; double majorStart, minorStart; int numTicks; double *inRange = axes[0]->GetRange(); vtkStringArray* customizedLabels = NULL; sortedRange[0] = inRange[0] < inRange[1] ? inRange[0] : inRange[1]; sortedRange[1] = inRange[0] > inRange[1] ? inRange[0] : inRange[1]; range = sortedRange[1] - sortedRange[0]; // Find the integral points. double pow10 = log10(range); // Build in numerical tolerance if (pow10 != 0.) { double eps = 10.0e-10; pow10 = this->FSign((fabs(pow10) + eps), pow10); } // FFix move you in the wrong direction if pow10 is negative. if (pow10 < 0.) { pow10 = pow10 - 1.; } fxt = pow(10., this->FFix(pow10)); numTicks = this->GetNumTicks(range, fxt); div = 1.; if (numTicks < 5) { div = 2.; } if (numTicks <= 2) { div = 5.; } // If there aren't enough major tick points in this decade, use the next // decade. major = fxt; if (div != 1.) { major /= div; } int axis = 0; switch(axes[0]->GetAxisType()) { case VTK_AXIS_TYPE_X: axis = 0; break; case VTK_AXIS_TYPE_Y: axis = 1; break; case VTK_AXIS_TYPE_Z: axis = 2; break; } customizedLabels = this->AxisLabels[axis]; if (customizedLabels == NULL) { // Figure out the first major tick locations, relative to the // start of the axis. if (sortedRange[0] <= 0.) { majorStart = major*(this->FFix(sortedRange[0]*(1./major)) + 0.); } else { majorStart = major*(this->FFix(sortedRange[0]*(1./major)) + 1.); } } else { // If we have custom labels, they are supposed to be uniformly distributed // inside the values range. majorStart = sortedRange[0]; numTicks = this->GetNumTicks(range, major); int labelsCount = customizedLabels->GetNumberOfValues(); if (numTicks > labelsCount) { major = range / (labelsCount - 1.); } } minor = major / 10.; // Figure out the first minor tick locations, relative to the // start of the axis. if (sortedRange[0] <= 0.) { minorStart = minor*(this->FFix(sortedRange[0]*(1./minor)) + 0.); } else { minorStart = minor*(this->FFix(sortedRange[0]*(1./minor)) + 1.); } for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { axes[i]->SetMinorRangeStart(minorStart); axes[i]->SetMajorRangeStart(majorStart); axes[i]->SetDeltaRangeMinor(minor); axes[i]->SetDeltaRangeMajor(major); } double t; t = (minorStart - sortedRange[0])/range; minorStart = t * boundsMax + (1-t) * boundsMin; t = (majorStart - sortedRange[0])/range; majorStart = t * boundsMax + (1-t) * boundsMin; const double scale = (boundsMax - boundsMin) / range; minor *= scale; major *= scale; // Set major start and delta for the corresponding cube axis switch(axes[0]->GetAxisType()) { case VTK_AXIS_TYPE_X: this->MajorStart[0] = majorStart; this->DeltaMajor[0] = major; break; case VTK_AXIS_TYPE_Y: this->MajorStart[1] = majorStart; this->DeltaMajor[1] = major; break; case VTK_AXIS_TYPE_Z: this->MajorStart[2] = majorStart; this->DeltaMajor[2] = major; break; } // Set major and minor starts and deltas for all underlying axes for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { axes[i]->SetMinorStart(minorStart); axes[i]->SetMajorStart(axes[0]->GetAxisType(), majorStart); axes[i]->SetDeltaMinor(minor); axes[i]->SetDeltaMajor(axes[0]->GetAxisType(), major); } } // **************************************************************** void vtkCubeAxesActor::AutoScale(vtkViewport *viewport) { // Current implementation only for perspective projections. this->AutoScale(viewport, this->XAxes); this->AutoScale(viewport, this->YAxes); this->AutoScale(viewport, this->ZAxes); } // **************************************************************** void vtkCubeAxesActor::AutoScale(vtkViewport *viewport, vtkAxisActor *axis[NUMBER_OF_ALIGNED_AXIS]) { for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; ++i) { double newTitleScale = this->AutoScale(viewport, this->ScreenSize, axis[i]->GetTitleActor()->GetPosition()); axis[i]->SetTitleScale(newTitleScale); // Now labels. vtkAxisFollower** labelActors = axis[i]->GetLabelActors(); for(int j = 0; j < axis[i]->GetNumberOfLabelsBuilt(); ++j) { double newLabelScale = this->AutoScale(viewport, this->ScreenSize, labelActors[j]->GetPosition()); axis[i]->SetLabelScale(j, newLabelScale); } } } // **************************************************************** double vtkCubeAxesActor::AutoScale(vtkViewport *viewport, double screenSize, double position[3]) { double factor = 1; if (viewport->GetSize()[1] > 0) { factor = 2.0 * screenSize * tan(vtkMath::RadiansFromDegrees(this->Camera->GetViewAngle()/2.0)) / viewport->GetSize()[1]; } double dist = sqrt( vtkMath::Distance2BetweenPoints(position, this->Camera->GetPosition())); double newScale = factor * dist; return newScale; } // **************************************************************** // Determine what the labels should be and set them in each axis. // **************************************************************** void vtkCubeAxesActor::BuildLabels(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS]) { char label[64]; int labelCount = 0; double deltaMajor = axes[0]->GetDeltaMajor(axes[0]->GetAxisType()); double val = axes[0]->GetMajorRangeStart(); double p2[3], p1[3]; axes[0]->GetPoint1Coordinate()->GetValue(p1); axes[0]->GetPoint2Coordinate()->GetValue(p2); double *range = axes[0]->GetRange(); double axis[3] = { p2[0]-p1[0], p2[1]-p1[1], p2[2]-p1[2] }; double axisLength = vtkMath::Norm(axis); double extents = range[1] - range[0]; double tol = extents*1e-6; // Calculate a relative tolerance based on the extent to compare to 0. double rangeScale = axisLength / extents; double labelCountAsDouble = (axisLength - (val-range[0])*rangeScale) / deltaMajor; bool mustAdjustValue = 0; int lastPow = 0; int axisIndex = 0; vtkStringArray* customizedLabels = NULL; vtkStringArray *labels = vtkStringArray::New(); const char *format = "%s"; switch (axes[0]->GetAxisType()) { case VTK_AXIS_TYPE_X: axisIndex = 0; format = this->XLabelFormat != NULL ? this->XLabelFormat : this->XLabelInternalFormat; mustAdjustValue = this->MustAdjustXValue; lastPow = this->LastXPow; break; case VTK_AXIS_TYPE_Y: axisIndex = 1; format = this->YLabelFormat != NULL ? this->YLabelFormat : this->YLabelInternalFormat; mustAdjustValue = this->MustAdjustYValue; lastPow = this->LastYPow; break; case VTK_AXIS_TYPE_Z: axisIndex = 2; format = this->ZLabelFormat != NULL ? this->ZLabelFormat : this->ZLabelInternalFormat; mustAdjustValue = this->MustAdjustZValue; lastPow = this->LastZPow; break; } customizedLabels = this->AxisLabels[axisIndex]; // figure out how many labels we need: if(extents == 0 || vtkMath::IsNan(labelCountAsDouble)) { labelCount = 0; } else { labelCount = vtkMath::Floor(labelCountAsDouble+2*FLT_EPSILON) + 1; } labels->SetNumberOfValues(labelCount); if (customizedLabels == NULL) { // Convert deltaMajor from world coord to range scale deltaMajor = extents * deltaMajor/axisLength; double scaleFactor = 1.; if (lastPow != 0) { scaleFactor = 1.0/pow(10., lastPow); } for (int i = 0; i < labelCount; i++) { if (fabs(val) < tol) { // We just happened to fall at something near zero and the range is // large, so set it to zero to avoid ugliness. val = 0.; } if (mustAdjustValue) { sprintf(label, format, val*scaleFactor); } else { sprintf(label, format, val); } if (fabs(val) <= tol) { // // Ensure that -0.0 is never a label // The maximum number of digits that we allow past the decimal is 5. // if (strcmp(label, "-0") == 0) { sprintf(label, "0"); } else if (strcmp(label, "-0.0") == 0) { sprintf(label, "0.0"); } else if (strcmp(label, "-0.00") == 0) { sprintf(label, "0.00"); } else if (strcmp(label, "-0.000") == 0) { sprintf(label, "0.000"); } else if (strcmp(label, "-0.0000") == 0) { sprintf(label, "0.0000"); } else if (strcmp(label, "-0.00000") == 0) { sprintf(label, "0.00000"); } } labels->SetValue(i, label); val += deltaMajor; } } else { if (labelCount > 0) { double delta = customizedLabels->GetNumberOfValues() / labelCount; for (int i = 0; i < labelCount; ++i) { labels->SetValue(i, customizedLabels->GetValue(i * delta)); } } } for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { axes[i]->SetLabels(labels); } labels->Delete(); } vtkStringArray* vtkCubeAxesActor::GetAxisLabels(int axis) { return (axis >= 0 && axis < 3) ? this->AxisLabels[axis] : NULL; } void vtkCubeAxesActor::SetAxisLabels(int axis, vtkStringArray* value) { if (axis >= 0 && axis < 3 && value != this->AxisLabels[axis]) { vtkStringArray* previous = this->AxisLabels[axis]; if (value != NULL) { value->Register(this); } this->AxisLabels[axis] = value; if (previous != NULL) { previous->UnRegister(this); } this->Modified(); } } // **************************************************************************** // Set automatic label scaling mode, set exponents for each axis type. // **************************************************************************** void vtkCubeAxesActor::SetLabelScaling(bool autoscale, int upowX, int upowY, int upowZ) { if (autoscale != this->AutoLabelScaling || upowX != this->UserXPow || upowY != this->UserYPow || upowZ != this->UserZPow) { this->AutoLabelScaling = autoscale; this->UserXPow = upowX; this->UserYPow = upowY; this->UserZPow = upowZ; this->Modified(); } } // **************************************************************************** // Set the i-th title text property. // **************************************************************************** vtkTextProperty* vtkCubeAxesActor::GetTitleTextProperty(int axis) { return (axis >= 0 && axis < 3) ? this->TitleTextProperty[axis] : NULL; } // **************************************************************************** // Get the i-th label text property. // **************************************************************************** vtkTextProperty* vtkCubeAxesActor::GetLabelTextProperty(int axis) { return (axis >= 0 && axis < 3) ? this->LabelTextProperty[axis] : NULL; } // **************************************************************************** // Set axes and screen size of the labels. // **************************************************************************** void vtkCubeAxesActor::UpdateLabels(vtkAxisActor **axis, int vtkNotUsed(index)) { for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { int numberOfLabelsBuild = axis[i]->GetNumberOfLabelsBuilt(); vtkAxisFollower **labelActors = axis[i]->GetLabelActors(); vtkProp3DAxisFollower **labelProps = axis[i]->GetLabelProps3D(); for(int k=0; k < numberOfLabelsBuild; ++k) { labelActors[k]->SetEnableDistanceLOD( this->EnableDistanceLOD ); labelActors[k]->SetDistanceLODThreshold( this->DistanceLODThreshold ); labelActors[k]->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); labelActors[k]->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); labelProps[k]->SetEnableDistanceLOD( this->EnableDistanceLOD ); labelProps[k]->SetDistanceLODThreshold( this->DistanceLODThreshold ); labelProps[k]->SetEnableViewAngleLOD( this->EnableViewAngleLOD ); labelProps[k]->SetViewAngleLODThreshold( this->ViewAngleLODThreshold ); } } } // **************************************************************************** void vtkCubeAxesActor::SetXAxesLinesProperty(vtkProperty *prop) { this->XAxesLinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetYAxesLinesProperty(vtkProperty *prop) { this->YAxesLinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetZAxesLinesProperty(vtkProperty *prop) { this->ZAxesLinesProperty->DeepCopy(prop); this->Modified(); } // **************************************************************************** vtkProperty* vtkCubeAxesActor::GetXAxesLinesProperty() { return this->XAxesLinesProperty; } vtkProperty* vtkCubeAxesActor::GetYAxesLinesProperty() { return this->YAxesLinesProperty; } vtkProperty* vtkCubeAxesActor::GetZAxesLinesProperty() { return this->ZAxesLinesProperty; } // **************************************************************************** void vtkCubeAxesActor::SetXAxesGridlinesProperty(vtkProperty *prop) { this->XAxesGridlinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetYAxesGridlinesProperty(vtkProperty *prop) { this->YAxesGridlinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetZAxesGridlinesProperty(vtkProperty *prop) { this->ZAxesGridlinesProperty->DeepCopy(prop); this->Modified(); } // **************************************************************************** vtkProperty* vtkCubeAxesActor::GetXAxesGridlinesProperty() { return this->XAxesGridlinesProperty; } vtkProperty* vtkCubeAxesActor::GetYAxesGridlinesProperty() { return this->YAxesGridlinesProperty; } vtkProperty* vtkCubeAxesActor::GetZAxesGridlinesProperty() { return this->ZAxesGridlinesProperty; } // **************************************************************************** void vtkCubeAxesActor::SetXAxesInnerGridlinesProperty(vtkProperty *prop) { this->XAxesInnerGridlinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetYAxesInnerGridlinesProperty(vtkProperty *prop) { this->YAxesInnerGridlinesProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetZAxesInnerGridlinesProperty(vtkProperty *prop) { this->ZAxesInnerGridlinesProperty->DeepCopy(prop); this->Modified(); } // **************************************************************************** vtkProperty* vtkCubeAxesActor::GetXAxesInnerGridlinesProperty() { return this->XAxesInnerGridlinesProperty; } vtkProperty* vtkCubeAxesActor::GetYAxesInnerGridlinesProperty() { return this->YAxesInnerGridlinesProperty; } vtkProperty* vtkCubeAxesActor::GetZAxesInnerGridlinesProperty() { return this->ZAxesInnerGridlinesProperty; } // **************************************************************************** void vtkCubeAxesActor::SetXAxesGridpolysProperty(vtkProperty *prop) { this->XAxesGridpolysProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetYAxesGridpolysProperty(vtkProperty *prop) { this->YAxesGridpolysProperty->DeepCopy(prop); this->Modified(); } void vtkCubeAxesActor::SetZAxesGridpolysProperty(vtkProperty *prop) { this->ZAxesGridpolysProperty->DeepCopy(prop); this->Modified(); } // **************************************************************************** vtkProperty* vtkCubeAxesActor::GetXAxesGridpolysProperty() { return this->XAxesGridpolysProperty; } vtkProperty* vtkCubeAxesActor::GetYAxesGridpolysProperty() { return this->YAxesGridpolysProperty; } vtkProperty* vtkCubeAxesActor::GetZAxesGridpolysProperty() { return this->ZAxesGridpolysProperty; } // -------------------------------------------------------------------------- void vtkCubeAxesActor::UpdateGridLineVisibility(int idx) { if( this->GridLineLocation != VTK_GRID_LINES_ALL && (this->DrawXGridlines || this->DrawYGridlines || this->DrawZGridlines) ) { for(int i=0; i < NUMBER_OF_ALIGNED_AXIS; ++i) { this->XAxes[i]->SetDrawGridlines(0); this->YAxes[i]->SetDrawGridlines(0); this->ZAxes[i]->SetDrawGridlines(0); this->XAxes[i]->SetDrawGridlinesOnly(0); this->YAxes[i]->SetDrawGridlinesOnly(0); this->ZAxes[i]->SetDrawGridlinesOnly(0); } this->XAxes[vtkCubeAxesActorTriads[idx][0]]->SetDrawGridlines(this->DrawXGridlines); this->YAxes[vtkCubeAxesActorTriads[idx][1]]->SetDrawGridlines(this->DrawYGridlines); this->ZAxes[vtkCubeAxesActorTriads[idx][2]]->SetDrawGridlines(this->DrawZGridlines); // Update axis render list int id = 0; if(this->NumberOfAxesX == 1) { id = this->RenderAxesX[this->NumberOfAxesX] = vtkCubeAxesActorTriads[idx][0]; this->XAxes[id]->SetDrawGridlinesOnly((this->RenderAxesX[0] != id) ? 1 : 0); this->NumberOfAxesX += (this->RenderAxesX[0] != id) ? 1 : 0; } if(this->NumberOfAxesY == 1) { id = this->RenderAxesY[this->NumberOfAxesY] = vtkCubeAxesActorTriads[idx][1]; this->YAxes[id]->SetDrawGridlinesOnly((this->RenderAxesY[0] != id) ? 1 : 0); this->NumberOfAxesY += (this->RenderAxesY[0] != id) ? 1 : 0; } if(this->NumberOfAxesZ == 1) { id = this->RenderAxesZ[this->NumberOfAxesZ] = vtkCubeAxesActorTriads[idx][2]; this->ZAxes[id]->SetDrawGridlinesOnly((this->RenderAxesZ[0] != id) ? 1 : 0); this->NumberOfAxesZ += (this->RenderAxesZ[0] != id) ? 1 : 0; } } } // -------------------------------------------------------------------------- int vtkCubeAxesActor::FindClosestAxisIndex(double pts[8][3]) { // Loop over points and find the closest point to the camera double min = VTK_FLOAT_MAX; int idx = 0; for (int i=0; i < 8; i++) { if (pts[i][2] < min) { idx = i; min = pts[i][2]; } } return idx; } // -------------------------------------------------------------------------- int vtkCubeAxesActor::FindFurtherstAxisIndex(double pts[8][3]) { // Loop over points and find the furthest point from the camera double max = -VTK_FLOAT_MAX; int idx = 0; for (int i=0; i < 8; i++) { if (pts[i][2] > max) { idx = i; max = pts[i][2]; } } return idx; } // -------------------------------------------------------------------------- void vtkCubeAxesActor::FindBoundaryEdge( int &xloc, int &yloc, int &zloc, double pts[8][3]) { // boundary edges fly mode xloc = yloc = zloc = 1; int i, xIdx = 0, yIdx = 0, zIdx = 0, zIdx2 = 0; int xAxes = 0, yAxes = 0, zAxes = 0; double slope = 0.0, minSlope, num, den, d2; double e1[3], e2[3], e3[3]; int idx = 0; // Find distance to origin double d2Min = VTK_FLOAT_MAX; for (i=0; i < 8; i++) { d2 = pts[i][0]*pts[i][0] + pts[i][1]*pts[i][1]; if (d2 < d2Min) { d2Min = d2; idx = i; } } // find minimum slope point connected to closest point and on // right side (in projected coordinates). This is the first edge. minSlope = VTK_FLOAT_MAX; for (xIdx=0, i=0; i<3; i++) { num = (pts[vtkCubeAxesActorConn[idx][i]][1] - pts[idx][1]); den = (pts[vtkCubeAxesActorConn[idx][i]][0] - pts[idx][0]); if (den != 0.0) { slope = num / den; } if (slope < minSlope && den > 0) { xIdx = vtkCubeAxesActorConn[idx][i]; yIdx = vtkCubeAxesActorConn[idx][(i+1)%3]; zIdx = vtkCubeAxesActorConn[idx][(i+2)%3]; xAxes = i; minSlope = slope; } } // find edge (connected to closest point) on opposite side for ( i=0; i<3; i++) { e1[i] = (pts[xIdx][i] - pts[idx][i]); e2[i] = (pts[yIdx][i] - pts[idx][i]); e3[i] = (pts[zIdx][i] - pts[idx][i]); } vtkMath::Normalize(e1); vtkMath::Normalize(e2); vtkMath::Normalize(e3); if (vtkMath::Dot(e1,e2) < vtkMath::Dot(e1,e3)) { yAxes = (xAxes + 1) % 3; } else { yIdx = zIdx; yAxes = (xAxes + 2) % 3; } // Find the final point by determining which global x-y-z axes have not // been represented, and then determine the point closest to the viewer. zAxes = (xAxes != 0 && yAxes != 0 ? 0 : (xAxes != 1 && yAxes != 1 ? 1 : 2)); if (pts[vtkCubeAxesActorConn[xIdx][zAxes]][2] < pts[vtkCubeAxesActorConn[yIdx][zAxes]][2]) { zIdx = xIdx; zIdx2 = vtkCubeAxesActorConn[xIdx][zAxes]; } else { zIdx = yIdx; zIdx2 = vtkCubeAxesActorConn[yIdx][zAxes]; } int mini = (idx < xIdx ? idx : xIdx); switch (xAxes) { case 0: xloc = vtkCubeAxesActorTriads[mini][0]; break; case 1: yloc = vtkCubeAxesActorTriads[mini][1]; break; case 2: zloc = vtkCubeAxesActorTriads[mini][2]; break; } mini = (idx < yIdx ? idx : yIdx); switch (yAxes) { case 0: xloc = vtkCubeAxesActorTriads[mini][0]; break; case 1: yloc =vtkCubeAxesActorTriads[mini][1]; break; case 2: zloc = vtkCubeAxesActorTriads[mini][2]; break; } mini = (zIdx < zIdx2 ? zIdx : zIdx2); switch (zAxes) { case 0: xloc = vtkCubeAxesActorTriads[mini][0]; break; case 1: yloc = vtkCubeAxesActorTriads[mini][1]; break; case 2: zloc = vtkCubeAxesActorTriads[mini][2]; break; } } // -------------------------------------------------------------------------- int vtkCubeAxesActor::RenderGeometry( bool &initialRender, vtkViewport *viewport, bool checkAxisVisibility, int (vtkAxisActor::*renderMethod)(vtkViewport*)) { int i, renderedSomething = 0; // Make sure axes are initialized and visibility is properly set if(checkAxisVisibility) { // Initialization if (!this->Camera) { vtkErrorMacro(<<"No camera!"); this->RenderSomething = 0; return 0; } this->BuildAxes(viewport); if (initialRender) { for (i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) { this->XAxes[i]->BuildAxis(viewport, true); this->YAxes[i]->BuildAxis(viewport, true); this->ZAxes[i]->BuildAxis(viewport, true); } } initialRender = false; this->DetermineRenderAxes(viewport); } // Render the axes for (i = 0; i < this->NumberOfAxesX; i++) { renderedSomething += (this->XAxes[this->RenderAxesX[i]]->*renderMethod)(viewport); } for (i = 0; i < this->NumberOfAxesY; i++) { renderedSomething += (this->YAxes[this->RenderAxesY[i]]->*renderMethod)(viewport); } for (i = 0; i < this->NumberOfAxesZ; i++) { renderedSomething += (this->ZAxes[this->RenderAxesZ[i]]->*renderMethod)(viewport); } return renderedSomething; } // -------------------------------------------------------------------------- void vtkCubeAxesActor::GetRenderedBounds(double *b) { vtkBoundingBox bbox(this->GetBounds()); // Data bounds // Make a heuristic on the final bounds that embed test labels // Just inflate the box based on its max length bbox.Inflate(bbox.GetMaxLength()); bbox.GetBounds(b); } // -------------------------------------------------------------------------- double* vtkCubeAxesActor::GetRenderedBounds() { this->GetRenderedBounds(this->RenderedBounds); // Return our data holder return this->RenderedBounds; } -------------- next part -------------- /*========================================================================= Program: Visualization Toolkit Module: vtkCubeAxesActor.h Language: C++ Date: $Date$ Version: $Revision$ Thanks: Kathleen Bonnell, B Division, Lawrence Livermore Nat'l Laboratory Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserve See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ // .NAME vtkCubeAxesActor - create a plot of a bounding box edges - // used for navigation // .SECTION Description // vtkCubeAxesActor is a composite actor that draws axes of the // bounding box of an input dataset. The axes include labels and titles // for the x-y-z axes. The algorithm selects which axes to draw based // on the user-defined 'fly' mode. (STATIC is default). // 'STATIC' constructs axes from all edges of the bounding box. // 'CLOSEST_TRIAD' consists of the three axes x-y-z forming a triad that // lies closest to the specified camera. // 'FURTHEST_TRIAD' consists of the three axes x-y-z forming a triad that // lies furthest from the specified camera. // 'OUTER_EDGES' is constructed from edges that are on the "exterior" of the // bounding box, exterior as determined from examining outer edges of the // bounding box in projection (display) space. // // To use this object you must define a bounding box and the camera used // to render the vtkCubeAxesActor. You can optionally turn on/off labels, // ticks, gridlines, and set tick location, number of labels, and text to // use for axis-titles. A 'corner offset' can also be set. This allows // the axes to be set partially away from the actual bounding box to perhaps // prevent overlap of labels between the various axes. // // The Bounds instance variable (an array of six doubles) is used to determine // the bounding box. // // .SECTION Thanks // This class was written by: // Hank Childs, Kathleen Bonnell, Amy Squillacote, Brad Whitlock, Will Schroeder, // Eric Brugger, Daniel Aguilera, Claire Guilbaud, Nicolas Dolegieviez, // Aashish Chaudhary, Philippe Pebay, David Gobbi, David Partyka, Utkarsh Ayachit // David Cole, Francois Bertel, and Mark Olesen // Part of this work was supported by CEA/DIF - Commissariat a l'Energie Atomique, // Centre DAM Ile-De-France, BP12, F-91297 Arpajon, France. // // .section See Also // vtkActor vtkAxisActor vtkCubeAxesActor2D #ifndef __vtkCubeAxesActor_h #define __vtkCubeAxesActor_h #define VTK_FLY_OUTER_EDGES 0 #define VTK_FLY_CLOSEST_TRIAD 1 #define VTK_FLY_FURTHEST_TRIAD 2 #define VTK_FLY_STATIC_TRIAD 3 #define VTK_FLY_STATIC_EDGES 4 #define VTK_TICKS_INSIDE 0 #define VTK_TICKS_OUTSIDE 1 #define VTK_TICKS_BOTH 2 #define VTK_GRID_LINES_ALL 0 #define VTK_GRID_LINES_CLOSEST 1 #define VTK_GRID_LINES_FURTHEST 2 #define NUMBER_OF_ALIGNED_AXIS 4 #include "vtkRenderingAnnotationModule.h" // For export macro #include "vtkActor.h" class vtkAxisActor; class vtkCamera; class vtkTextProperty; class vtkStringArray; class VTKRENDERINGANNOTATION_EXPORT vtkCubeAxesActor : public vtkActor { public: vtkTypeMacro(vtkCubeAxesActor,vtkActor); void PrintSelf(ostream& os, vtkIndent indent); // Description: // Instantiate object with label format "6.3g" and the number of labels // per axis set to 3. static vtkCubeAxesActor *New(); // Description: // Draw the axes as per the vtkProp superclass' API. virtual int RenderOpaqueGeometry(vtkViewport*); virtual int RenderTranslucentGeometry(vtkViewport*); virtual int RenderTranslucentPolygonalGeometry(vtkViewport*); virtual int RenderOverlay(vtkViewport*); int HasTranslucentPolygonalGeometry(); // Description: // Gets/Sets the RebuildAxes flag vtkSetMacro( RebuildAxes, bool ); vtkGetMacro( RebuildAxes, bool ); // Description: // Explicitly specify the region in space around which to draw the bounds. // The bounds is used only when no Input or Prop is specified. The bounds // are specified according to (xmin,xmax, ymin,ymax, zmin,zmax), making // sure that the min's are less than the max's. vtkSetVector6Macro(Bounds,double); vtkGetVector6Macro(Bounds,double); // Description: // Method used to properly return the bounds of the cube axis itself with all // its labels. virtual void GetRenderedBounds(double rBounds[6]); virtual double* GetRenderedBounds(); // Description: // Explicitly specify the range of each axes that's used to define the prop. // The default, (if you do not use these methods) is to use the bounds // specified, or use the bounds of the Input Prop if one is specified. This // method allows you to separate the notion of extent of the axes in physical // space (bounds) and the extent of the values it represents. In other words, // you can have the ticks and labels show a different range. vtkSetVector2Macro( XAxisRange, double ); vtkSetVector2Macro( YAxisRange, double ); vtkSetVector2Macro( ZAxisRange, double ); vtkGetVector2Macro( XAxisRange, double ); vtkGetVector2Macro( YAxisRange, double ); // Description // Explicitly specify the axis labels along an axis as an array of strings // instead of using the values. vtkStringArray* GetAxisLabels(int axis); void SetAxisLabels(int axis, vtkStringArray* value); vtkGetVector2Macro( ZAxisRange, double ); // Description: // Explicitly specify the screen size of title and label text. // ScreenSize determines the size of the text in terms of screen // pixels. Default is 10.0. void SetScreenSize(double screenSize); vtkGetMacro(ScreenSize, double); // Description: // Explicitly specify the distance between labels and the axis. // Default is 20.0. void SetLabelOffset(double offset); vtkGetMacro(LabelOffset, double); // Description: // Explicitly specify the distance between title and labels. // Default is 20.0. void SetTitleOffset(double offset); vtkGetMacro(TitleOffset, double); // Description: // Set/Get the camera to perform scaling and translation of the // vtkCubeAxesActor. virtual void SetCamera(vtkCamera*); vtkGetObjectMacro(Camera,vtkCamera); // Description: // Specify a mode to control how the axes are drawn: either static, // closest triad, furthest triad or outer edges in relation to the // camera position. vtkSetClampMacro(FlyMode, int, VTK_FLY_OUTER_EDGES, VTK_FLY_STATIC_EDGES); vtkGetMacro(FlyMode, int); void SetFlyModeToOuterEdges() {this->SetFlyMode(VTK_FLY_OUTER_EDGES);}; void SetFlyModeToClosestTriad() {this->SetFlyMode(VTK_FLY_CLOSEST_TRIAD);}; void SetFlyModeToFurthestTriad() {this->SetFlyMode(VTK_FLY_FURTHEST_TRIAD);}; void SetFlyModeToStaticTriad() {this->SetFlyMode(VTK_FLY_STATIC_TRIAD);}; void SetFlyModeToStaticEdges() {this->SetFlyMode(VTK_FLY_STATIC_EDGES);}; // Description: // Set/Get the labels for the x, y, and z axes. By default, // use "X-Axis", "Y-Axis" and "Z-Axis". vtkSetStringMacro(XTitle); vtkGetStringMacro(XTitle); vtkSetStringMacro(XUnits); vtkGetStringMacro(XUnits); vtkSetStringMacro(YTitle); vtkGetStringMacro(YTitle); vtkSetStringMacro(YUnits); vtkGetStringMacro(YUnits); vtkSetStringMacro(ZTitle); vtkGetStringMacro(ZTitle); vtkSetStringMacro(ZUnits); vtkGetStringMacro(ZUnits); // Description: // Set/Get the format with which to print the labels on each of the // x-y-z axes. Overrides the internal format. vtkSetStringMacro(XLabelFormat); vtkGetStringMacro(XLabelFormat); vtkSetStringMacro(YLabelFormat); vtkGetStringMacro(YLabelFormat); vtkSetStringMacro(ZLabelFormat); vtkGetStringMacro(ZLabelFormat); // Description: // Set/Get the inertial factor that controls how often (i.e, how // many renders) the axes can switch position (jump from one axes // to another). vtkSetClampMacro(Inertia, int, 1, VTK_INT_MAX); vtkGetMacro(Inertia, int); // Description: // Specify an offset value to "pull back" the axes from the corner at // which they are joined to avoid overlap of axes labels. The // "CornerOffset" is the fraction of the axis length to pull back. vtkSetMacro(CornerOffset, double); vtkGetMacro(CornerOffset, double); // Description: // Release any graphics resources that are being consumed by this actor. // The parameter window could be used to determine which graphic // resources to release. void ReleaseGraphicsResources(vtkWindow *); // Description: // Enable and disable the use of distance based LOD for titles and labels. vtkSetMacro( EnableDistanceLOD, int ); vtkGetMacro( EnableDistanceLOD, int ); // Description:a // Set distance LOD threshold [0.0 - 1.0] for titles and labels. vtkSetClampMacro( DistanceLODThreshold, double, 0.0, 1.0 ); vtkGetMacro( DistanceLODThreshold, double); // Description: // Enable and disable the use of view angle based LOD for titles and labels. vtkSetMacro( EnableViewAngleLOD, int ); vtkGetMacro( EnableViewAngleLOD, int ); // Description: // Set view angle LOD threshold [0.0 - 1.0] for titles and labels. vtkSetClampMacro( ViewAngleLODThreshold, double, 0., 1. ); vtkGetMacro( ViewAngleLODThreshold, double ); // Description: // Turn on and off the visibility of each axis. vtkSetMacro(XAxisVisibility,int); vtkGetMacro(XAxisVisibility,int); vtkBooleanMacro(XAxisVisibility,int); vtkSetMacro(YAxisVisibility,int); vtkGetMacro(YAxisVisibility,int); vtkBooleanMacro(YAxisVisibility,int); vtkSetMacro(ZAxisVisibility,int); vtkGetMacro(ZAxisVisibility,int); vtkBooleanMacro(ZAxisVisibility,int); // Description: // Turn on and off the visibility of labels for each axis. vtkSetMacro(XAxisLabelVisibility,int); vtkGetMacro(XAxisLabelVisibility,int); vtkBooleanMacro(XAxisLabelVisibility,int); vtkSetMacro(YAxisLabelVisibility,int); vtkGetMacro(YAxisLabelVisibility,int); vtkBooleanMacro(YAxisLabelVisibility,int); vtkSetMacro(ZAxisLabelVisibility,int); vtkGetMacro(ZAxisLabelVisibility,int); vtkBooleanMacro(ZAxisLabelVisibility,int); // Description: // Turn on and off the visibility of ticks for each axis. vtkSetMacro(XAxisTickVisibility,int); vtkGetMacro(XAxisTickVisibility,int); vtkBooleanMacro(XAxisTickVisibility,int); vtkSetMacro(YAxisTickVisibility,int); vtkGetMacro(YAxisTickVisibility,int); vtkBooleanMacro(YAxisTickVisibility,int); vtkSetMacro(ZAxisTickVisibility,int); vtkGetMacro(ZAxisTickVisibility,int); vtkBooleanMacro(ZAxisTickVisibility,int); // Description: // Turn on and off the visibility of minor ticks for each axis. vtkSetMacro(XAxisMinorTickVisibility,int); vtkGetMacro(XAxisMinorTickVisibility,int); vtkBooleanMacro(XAxisMinorTickVisibility,int); vtkSetMacro(YAxisMinorTickVisibility,int); vtkGetMacro(YAxisMinorTickVisibility,int); vtkBooleanMacro(YAxisMinorTickVisibility,int); vtkSetMacro(ZAxisMinorTickVisibility,int); vtkGetMacro(ZAxisMinorTickVisibility,int); vtkBooleanMacro(ZAxisMinorTickVisibility,int); vtkSetMacro(DrawXGridlines,int); vtkGetMacro(DrawXGridlines,int); vtkBooleanMacro(DrawXGridlines,int); vtkSetMacro(DrawYGridlines,int); vtkGetMacro(DrawYGridlines,int); vtkBooleanMacro(DrawYGridlines,int); vtkSetMacro(DrawZGridlines,int); vtkGetMacro(DrawZGridlines,int); vtkBooleanMacro(DrawZGridlines,int); vtkSetMacro(DrawXInnerGridlines,int); vtkGetMacro(DrawXInnerGridlines,int); vtkBooleanMacro(DrawXInnerGridlines,int); vtkSetMacro(DrawYInnerGridlines,int); vtkGetMacro(DrawYInnerGridlines,int); vtkBooleanMacro(DrawYInnerGridlines,int); vtkSetMacro(DrawZInnerGridlines,int); vtkGetMacro(DrawZInnerGridlines,int); vtkBooleanMacro(DrawZInnerGridlines,int); vtkSetMacro(DrawXGridpolys,int); vtkGetMacro(DrawXGridpolys,int); vtkBooleanMacro(DrawXGridpolys,int); vtkSetMacro(DrawYGridpolys,int); vtkGetMacro(DrawYGridpolys,int); vtkBooleanMacro(DrawYGridpolys,int); vtkSetMacro(DrawZGridpolys,int); vtkGetMacro(DrawZGridpolys,int); vtkBooleanMacro(DrawZGridpolys,int); // Description: // Returns the text property for the title on an axis. vtkTextProperty *GetTitleTextProperty(int); // Description: // Returns the text property for the labels on an axis. vtkTextProperty *GetLabelTextProperty(int); // Description: // Get/Set axes actors properties. void SetXAxesLinesProperty(vtkProperty *); vtkProperty* GetXAxesLinesProperty(); void SetYAxesLinesProperty(vtkProperty *); vtkProperty* GetYAxesLinesProperty(); void SetZAxesLinesProperty(vtkProperty *); vtkProperty* GetZAxesLinesProperty(); // Description: // Get/Set axes (outer) gridlines actors properties. void SetXAxesGridlinesProperty(vtkProperty *); vtkProperty* GetXAxesGridlinesProperty(); void SetYAxesGridlinesProperty(vtkProperty *); vtkProperty* GetYAxesGridlinesProperty(); void SetZAxesGridlinesProperty(vtkProperty *); vtkProperty* GetZAxesGridlinesProperty(); // Description: // Get/Set axes inner gridlines actors properties. void SetXAxesInnerGridlinesProperty(vtkProperty *); vtkProperty* GetXAxesInnerGridlinesProperty(); void SetYAxesInnerGridlinesProperty(vtkProperty *); vtkProperty* GetYAxesInnerGridlinesProperty(); void SetZAxesInnerGridlinesProperty(vtkProperty *); vtkProperty* GetZAxesInnerGridlinesProperty(); // Description: // Get/Set axes gridPolys actors properties. void SetXAxesGridpolysProperty(vtkProperty *); vtkProperty* GetXAxesGridpolysProperty(); void SetYAxesGridpolysProperty(vtkProperty *); vtkProperty* GetYAxesGridpolysProperty(); void SetZAxesGridpolysProperty(vtkProperty *); vtkProperty* GetZAxesGridpolysProperty(); // Description: // Set/Get the location of ticks marks. vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH); vtkGetMacro(TickLocation, int); void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }; void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }; void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }; void SetLabelScaling(bool, int, int, int); // Description: // Use or not vtkTextActor3D for titles and labels. // See Also: // vtkAxisActor::SetUseTextActor3D(), vtkAxisActor::GetUseTextActor3D() void SetUseTextActor3D( int val ); int GetUseTextActor3D(); // Description: // Get/Set 2D mode // NB: Use vtkTextActor for titles in 2D instead of vtkAxisFollower void SetUse2DMode( int val ); int GetUse2DMode(); // Description: // For 2D mode only: save axis title positions for later use void SetSaveTitlePosition( int val ); // Description: // Provide an oriented bounded box when using AxisBaseFor. vtkSetVector6Macro(OrientedBounds,double); vtkGetVector6Macro(OrientedBounds, double); // Description: // Enable/Disable the usage of the OrientedBounds vtkSetMacro(UseOrientedBounds, int); vtkGetMacro(UseOrientedBounds, int); // Description: // Vector that should be use as the base for X vtkSetVector3Macro(AxisBaseForX,double); vtkGetVector3Macro(AxisBaseForX, double); // Description: // Vector that should be use as the base for Y vtkSetVector3Macro(AxisBaseForY,double); vtkGetVector3Macro(AxisBaseForY, double); // Description: // Vector that should be use as the base for Z vtkSetVector3Macro(AxisBaseForZ,double); vtkGetVector3Macro(AxisBaseForZ, double); // Description: // Provide a custom AxisOrigin. This point must be inside the bouding box and // will represent the point where the 3 axes will interesect vtkSetVector3Macro(AxisOrigin,double); vtkGetVector3Macro(AxisOrigin, double); // Description: // Enable/Disable the usage of the AxisOrigin vtkSetMacro(UseAxisOrigin, int); vtkGetMacro(UseAxisOrigin, int); // Description: // Specify the mode in which the cube axes should render its gridLines vtkSetMacro(GridLineLocation,int); vtkGetMacro(GridLineLocation,int); protected: vtkCubeAxesActor(); ~vtkCubeAxesActor(); int LabelExponent(double min, double max); int Digits(double min, double max); double MaxOf(double, double); double MaxOf(double, double, double, double); double FFix(double); double FSign(double, double); int FRound( double fnt ); int GetNumTicks( double range, double fxt); void UpdateLabels(vtkAxisActor **axis, int index); // Description: // Set/Get the internal format with which to print the labels on each of the // x-y-z axes. vtkSetStringMacro(XLabelInternalFormat); vtkGetStringMacro(XLabelInternalFormat); vtkSetStringMacro(YLabelInternalFormat); vtkGetStringMacro(YLabelInternalFormat); vtkSetStringMacro(ZLabelInternalFormat); vtkGetStringMacro(ZLabelInternalFormat); double Bounds[6]; //Define bounds explicitly vtkCamera *Camera; int FlyMode; // Expose internally closest axis index computation int FindClosestAxisIndex(double pts[8][3]); // Expose internally furthest axis index computation int FindFurtherstAxisIndex(double pts[8][3]); // Expose internally the boundary edge fly mode axis index computation void FindBoundaryEdge(int &indexOfAxisX, int &indexOfAxisY, int &indexOfAxisZ, double pts[8][3]); // Description: // This will Update AxisActors with GridVisibility when those should be // dynamaic regarding the viewport. // GridLineLocation = [VTK_CLOSEST_GRID_LINES, VTK_FURTHEST_GRID_LINES] void UpdateGridLineVisibility(int axisIndex); // VTK_ALL_GRID_LINES 0 // VTK_CLOSEST_GRID_LINES 1 // VTK_FURTHEST_GRID_LINES 2 int GridLineLocation; // Description: // If enabled the actor will not be visible at a certain distance from the camera. // Default is true int EnableDistanceLOD; // Description: // Default is 0.80 // This determines at what fraction of camera far clip range, actor is not visible. double DistanceLODThreshold; // Description: // If enabled the actor will not be visible at a certain view angle. // Default is true. int EnableViewAngleLOD; // Description: // This determines at what view angle to geometry will make the geometry not visibile. // Default is 0.3. double ViewAngleLODThreshold; // Description: // Control variables for all axes // NB: [0] always for 'Major' axis during non-static fly modes. vtkAxisActor *XAxes[NUMBER_OF_ALIGNED_AXIS]; vtkAxisActor *YAxes[NUMBER_OF_ALIGNED_AXIS]; vtkAxisActor *ZAxes[NUMBER_OF_ALIGNED_AXIS]; bool RebuildAxes; char *XTitle; char *XUnits; char *YTitle; char *YUnits; char *ZTitle; char *ZUnits; char *ActualXLabel; char *ActualYLabel; char *ActualZLabel; int TickLocation; int XAxisVisibility; int YAxisVisibility; int ZAxisVisibility; int XAxisTickVisibility; int YAxisTickVisibility; int ZAxisTickVisibility; int XAxisMinorTickVisibility; int YAxisMinorTickVisibility; int ZAxisMinorTickVisibility; int XAxisLabelVisibility; int YAxisLabelVisibility; int ZAxisLabelVisibility; int DrawXGridlines; int DrawYGridlines; int DrawZGridlines; int DrawXInnerGridlines; int DrawYInnerGridlines; int DrawZInnerGridlines; int DrawXGridpolys; int DrawYGridpolys; int DrawZGridpolys; char *XLabelInternalFormat; char *YLabelInternalFormat; char *ZLabelInternalFormat; char *XLabelFormat; char *YLabelFormat; char *ZLabelFormat; double CornerOffset; int Inertia; int RenderCount; int InertiaLocs[3]; int RenderSomething; vtkTextProperty* TitleTextProperty[3]; vtkStringArray* AxisLabels[3]; vtkTextProperty* LabelTextProperty[3]; vtkProperty *XAxesLinesProperty; vtkProperty *YAxesLinesProperty; vtkProperty *ZAxesLinesProperty; vtkProperty *XAxesGridlinesProperty; vtkProperty *YAxesGridlinesProperty; vtkProperty *ZAxesGridlinesProperty; vtkProperty *XAxesInnerGridlinesProperty; vtkProperty *YAxesInnerGridlinesProperty; vtkProperty *ZAxesInnerGridlinesProperty; vtkProperty *XAxesGridpolysProperty; vtkProperty *YAxesGridpolysProperty; vtkProperty *ZAxesGridpolysProperty; double RenderedBounds[6]; double OrientedBounds[6]; int UseOrientedBounds; double AxisOrigin[3]; int UseAxisOrigin; double AxisBaseForX[3]; double AxisBaseForY[3]; double AxisBaseForZ[3]; private: vtkCubeAxesActor(const vtkCubeAxesActor&); // Not implemented void operator=(const vtkCubeAxesActor&); // Not implemented vtkSetStringMacro(ActualXLabel); vtkSetStringMacro(ActualYLabel); vtkSetStringMacro(ActualZLabel); vtkTimeStamp BuildTime; int LastUseOrientedBounds; int LastXPow; int LastYPow; int LastZPow; int UserXPow; int UserYPow; int UserZPow; bool AutoLabelScaling; int LastXAxisDigits; int LastYAxisDigits; int LastZAxisDigits; double LastXRange[2]; double LastYRange[2]; double LastZRange[2]; double LastBounds[6]; int LastFlyMode; int RenderAxesX[NUMBER_OF_ALIGNED_AXIS]; int RenderAxesY[NUMBER_OF_ALIGNED_AXIS]; int RenderAxesZ[NUMBER_OF_ALIGNED_AXIS]; int NumberOfAxesX; int NumberOfAxesY; int NumberOfAxesZ; bool MustAdjustXValue; bool MustAdjustYValue; bool MustAdjustZValue; bool ForceXLabelReset; bool ForceYLabelReset; bool ForceZLabelReset; double XAxisRange[2]; double YAxisRange[2]; double ZAxisRange[2]; double LabelScale; double TitleScale; double ScreenSize; double LabelOffset; double TitleOffset; // Description: // Major start and delta values, in each direction. // These values are needed for inner grid lines generation double MajorStart[3]; double DeltaMajor[3]; int RenderGeometry(bool &initialRender, vtkViewport *viewport, bool checkAxisVisibility,int (vtkAxisActor::*renderMethod)(vtkViewport*)); void TransformBounds(vtkViewport *viewport, const double bounds[6], double pts[8][3]); void AdjustAxes(double bounds[6], double xCoords[NUMBER_OF_ALIGNED_AXIS][6], double yCoords[NUMBER_OF_ALIGNED_AXIS][6], double zCoords[NUMBER_OF_ALIGNED_AXIS][6], double xRange[2], double yRange[2], double zRange[2]); bool ComputeTickSize(double bounds[6]); void AdjustValues(const double xRange[2], const double yRange[2], const double zRange[2]); void AdjustRange(const double bounds[6]); void BuildAxes(vtkViewport *); void DetermineRenderAxes(vtkViewport *); void SetNonDependentAttributes(void); void BuildLabels(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS]); void AdjustTicksComputeRange(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS], double rangeMin, double rangeMax); void AutoScale(vtkViewport *viewport); void AutoScale(vtkViewport *viewport, vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS]); double AutoScale(vtkViewport *viewport, double screenSize, double position[3]); }; #endif From malyushytsky at gmail.com Wed Mar 18 18:38:19 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Wed, 18 Mar 2015 15:38:19 -0700 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: Message-ID: You may try to use boolean operations for computing the "stub". http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter If for example you have sphere and you slice it with a plan. Boolean intersection of such 2 objects will be a polygon you can display ( you probably can use vtkFillHolesFilterto triangulate it ) to restore the look of solid after slicing. Hope this helps, Alex On Tue, Mar 17, 2015 at 10:46 PM, Muhammad Nour wrote: > Dear Alex, > > Thank you very much for your reply. > > I can make presentation look like solid (e.x. by using opacity property). > > But I want to slice an object, and result must be filled as if the object > is solid. > > Suppose my object is a torus, so I have slice as two circles (one inside > other). > > I want to fill space between these circles. > > I have tried using vtkDelaunay3D class but it distorts objects. > > Also I tried using vtkFillHolesFilter filter but it fills all empty space. > > I hope I explaine my point. > > Thank you again. > > ------------------------------ > Date: Tue, 17 Mar 2015 18:34:00 -0700 > Subject: Re: [vtkusers] Fill interior 3D object > From: malyushytsky at gmail.com > To: mnour.ai at hotmail.com > CC: vtkusers at vtk.org > > > AFAI understand there is no solid objects there are presentations of > solids. > Such presentation may look like solid unless you are inside the object. > If that not what you want you are on your own. > > Similar to 2d , 3d objects exist for a solely purpose of presentation. > You may 'subdivide' your sphere for example and construct it from the > number of hexahedrons ( like circle from quadrilaterals), > but even if you do so you will see those elements when you move your > camera too close not like solids. > > But if it what you want , you may look at Delaunay3D. > > Regards, > Alex > > > On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour > wrote: > > Hi all, > > I am using MS visual studio 2008 and vtk 5.10 > > I want to fill interior of some objects (like sphere), so they must be > solid. > > I've tried vtkFillHolesFilter class but it fills holes of surface not > inside object. > > Is there any other filter or class can do it? > > Thank you very much > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Mar 18 21:40:17 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 18 Mar 2015 18:40:17 -0700 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: Message-ID: Do you want it filled, or do you want it to look filled? On Wed, Mar 18, 2015 at 3:38 PM, Alex Malyushytsky wrote: > You may try to use boolean operations for computing the "stub". > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter > > If for example you have sphere and you slice it with a plan. > Boolean intersection of such 2 objects will be a polygon you can display ( > you probably can use vtkFillHolesFilterto triangulate it ) > to restore the look of solid after slicing. > > Hope this helps, > Alex > > > > On Tue, Mar 17, 2015 at 10:46 PM, Muhammad Nour > wrote: >> >> Dear Alex, >> >> Thank you very much for your reply. >> >> I can make presentation look like solid (e.x. by using opacity property). >> >> But I want to slice an object, and result must be filled as if the object >> is solid. >> >> Suppose my object is a torus, so I have slice as two circles (one inside >> other). >> >> I want to fill space between these circles. >> >> I have tried using vtkDelaunay3D class but it distorts objects. >> >> Also I tried using vtkFillHolesFilter filter but it fills all empty space. >> >> I hope I explaine my point. >> >> Thank you again. >> >> ________________________________ >> Date: Tue, 17 Mar 2015 18:34:00 -0700 >> Subject: Re: [vtkusers] Fill interior 3D object >> From: malyushytsky at gmail.com >> To: mnour.ai at hotmail.com >> CC: vtkusers at vtk.org >> >> >> AFAI understand there is no solid objects there are presentations of >> solids. >> Such presentation may look like solid unless you are inside the object. >> If that not what you want you are on your own. >> >> Similar to 2d , 3d objects exist for a solely purpose of presentation. >> You may 'subdivide' your sphere for example and construct it from the >> number of hexahedrons ( like circle from quadrilaterals), >> but even if you do so you will see those elements when you move your >> camera too close not like solids. >> >> But if it what you want , you may look at Delaunay3D. >> >> Regards, >> Alex >> >> >> On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour >> wrote: >> >> Hi all, >> >> I am using MS visual studio 2008 and vtk 5.10 >> >> I want to fill interior of some objects (like sphere), so they must be >> solid. >> >> I've tried vtkFillHolesFilter class but it fills holes of surface not >> inside object. >> >> Is there any other filter or class can do it? >> >> Thank you very much >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From sur.chiranjib at gmail.com Thu Mar 19 07:54:28 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 19 Mar 2015 17:24:28 +0530 Subject: [vtkusers] Get/Set values Vector Data In-Reply-To: References: <7DC1B368-E8DA-4889-8BF4-BBBAB48E4F38@sci.utah.edu> <9FB17C1A-6BD0-40E8-B6A7-8544E5A5DC8A@sci.utah.edu> Message-ID: Hi Allen, I restructured the point data part of my algorithm and thins are working as expected. Thanks for your suggestions. Thanks, Chiranjib On Wed, Mar 18, 2015 at 11:07 PM, Chiranjib Sur wrote: > Hi Allen, > Thanks for your reply. I now understand the philosophy behind the insert > tuple thing. > One the other hand, to reply your questions (if I understood it > correctly), I can do the get/set operation with scalars (single component) > easily and correctly, which means my polydata points are created properly. > What exactly you mean by "down stream". > > I am new to this field and may be I am missing the terminologies. To > reiterate, my problem is to assign same vector properties to my poly points > but with different values (separated by offset). > > Thanks again in advance for your help. > > Chiranjib > > On Wed, Mar 18, 2015 at 9:49 PM, Allen Sanderson > wrote: > >> You do not need to do an insert next tuple as memory has already been >> allocated with the call to SetNumberOfTuples. >> >> Right off I do see anything wrong with your approach. I would check the >> obvious does your polydata have points?? What happens to it down stream?? >> >> >> Cheers, >> >> Allen >> >> >> >> >> On Mar 18, 2015, at 12:55 PM, Chiranjib Sur >> wrote: >> >> HI Allen, >> Thanks for the pointer. I am having some issues with this. before >> explaining the issues let me state the problem I am trying to solve in bit >> more dtails. >> >> I have a poly data which corresponds to to different set, i.e. the >> combined poly data I am dealing with correspond to two different section of >> the geometrical object. And I know the offset of the data set which >> differentiates object A from Object B from the polydata. >> >> Now when I am trying to set value like velocity with 3 component, I am >> facing the issues. Although I do the following, the properties are getting >> assigned randomly. Here is the snippet of my code : >> >> >> vtkSmartPointer velocity = >> vtkSmartPointer::New(); >> velocity->SetName ("Velocity"); >> velocity->SetNumberOfComponents(3); >> >> velocity->SetNumberOfTuples( polydata->GetNumberOfPoints()); >> >> polydata->GetPointData()->AddArray( velocity ); >> >> for (long long i = offset; i < polydata->GetNumberOfPoints(); ++i) >> // offset determines the position of the polydata I want to start with >> instead of starting at == 0) >> { >> velocity->SetTuple3( i, _Vx, _Vy, _Vz ); //_Vx,_Vy,_Vz are >> double and declared elsewhere >> // velocity->InsertNextTuple3( _Vx, _Vy, _Vz ); // Instead >> of using SetTuple3, I can use InsertNextTuple3 or InsertTuple3 too. >> } >> >> >> Am I doing anything wrong here ? >> >> Thanks much, >> Chiranjib >> >> On Tue, Mar 17, 2015 at 6:55 PM, Allen Sanderson >> wrote: >> >>> Here is some sample code: >>> >>> vtkDoubleArray *velocityArray = vtkDoubleArray::New(); >>> velocityArray->SetName(var.c_str()); >>> // NOTE: you want to set the number of components BEFORE setting the >>> number of Tuples so memory is correctly allocated. >>> >>> velocityArray->SetNumberOfComponents(3); >>> velocityArray->SetNumberOfTuples(nTuples); >>> >>> polydata->GetPointData()->AddArray(velocityArray); >>> >>> double dx, dy, dz; >>> >>> Loop: velocityArray->SetTuple3(index, dx, dy, dz); >>> Where : 0<= index < nTuples >>> >>> velocityArray->Delete(); >>> >>> >>> The get would be: >>> >>> double *velocity = velocityArray->GetTuple3(l); >>> >>> >>> Cheers, >>> >>> Allen >>> >>> >>> Allen Sanderson >>> SCI Institute >>> University of Utah >>> www.sci.utah.edu >>> >>> >>> >>> On Mar 17, 2015, at 1:03 PM, Chiranjib Sur >>> wrote: >>> >>> Hi All, >>> I want to assign values (3 component vector) to all in a polydata set. >>> I found the email thread where the solution for a one component scalar >>> data is explained ( >>> http://vtk.1045678.n5.nabble.com/Get-Set-values-in-scalar-data-td3259506.html >>> ) >>> >>> Anybody can help explaining how to do this for a 3-component vector data >>> type. >>> >>> Thanks in advance. >>> >>> Chiranjib Sur >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Angel_gele_pp at hotmail.com Thu Mar 19 08:21:00 2015 From: Angel_gele_pp at hotmail.com (gele) Date: Thu, 19 Mar 2015 05:21:00 -0700 (MST) Subject: [vtkusers] Share WindowLeve,Zoom,Pan between widgets Message-ID: <1426767660176-5730986.post@n5.nabble.com> Hello guys i need help about how can i share the same pan/windowlevel/zoom on more widgets like on the image bellow I have loaded one serie in 3 of the widgets i show the axial coronal and sagittal orientation of the images i use vtkResliceImageViewer for them and on the 4th widget i got MPR with vtkImagePlaneWidget. how can i make all the widgets share the same windowlevel/pan/zoom so when windowlevel is changed on one widget all others are afected, when one widget is zommed it affect on all others. Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Share-WindowLeve-Zoom-Pan-between-widgets-tp5730986.html Sent from the VTK - Users mailing list archive at Nabble.com. From ale.nonis at libero.it Thu Mar 19 09:13:52 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Thu, 19 Mar 2015 14:13:52 +0100 (CET) Subject: [vtkusers] Help Me!! vtk compile error!! Message-ID: <217404141.5561561426770832790.JavaMail.httpd@webmail-55.iol.local> Hi,i'm Alessandro.I have a vtk compiling error.When i compile the result is: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall vtkBoundingBox::vtkBoundingBox(double const * const)" (__imp_??0vtkBoundingBox@@QAE at QBN@Z) in function _main and error LNK1120: 1 unsolved externals. Thanks Ale -------------- next part -------------- An HTML attachment was scrubbed... URL: From beekmaarten at yahoo.com Thu Mar 19 09:38:12 2015 From: beekmaarten at yahoo.com (Maarten Beek) Date: Thu, 19 Mar 2015 13:38:12 +0000 (UTC) Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() In-Reply-To: References: <1191371333.1350434.1426705126139.JavaMail.yahoo@mail.yahoo.com> Message-ID: <225087920.448491.1426772292851.JavaMail.yahoo@mail.yahoo.com> But voxels of a CT (MRI) image cannot be considered infinitesimal thin, can they? Maarten On Wednesday, March 18, 2015 3:16 PM, David Gobbi wrote: You can define "outside" to be whatever you want, but VTK defines "outside the bounds" to mean "beyond the data points that form the edge of the data set." ?:) If, for example, I wanted to intersect a line with the first and last slice of the volume, I would _not_ add 0.5*spacing.? But that's because I consider my "slice" to be an infinitesimally thin object.? So according to my definition of "slice", the distance between one end of the volume and the other is 99 times the spacing. Really, how you define things will depend partly on the requirements of your application.? I'm just saying what my own definitions are. ?- David On Wed, Mar 18, 2015 at 12:58 PM, Maarten Beek wrote: Hi David, To clarify.Since "the bounds of avolume start and end in the center of the corner voxels.", I would have to expand the bbox in all directions by 0.5*spacing to get the intersections with the 'outside' planes of the image? And the distance between one 'outside' and its opposite 'outside' would be 100 times the spacing? Maarten On Wednesday, March 18, 2015 9:42 AM, David Gobbi wrote: Hi Maarten, If you used (0, 13, ...) then you'd get the wrong answer.? The bounds of avolume start and end in the center of the corner voxels.? If the first voxelis 0 and the last voxel is 99, then the real-world dimension of the volume is99 times the spacing. A voxel is a data point.? Emphasis on "point".? If you have a series of datapoints, anything before the first point or after the last point is outside of thebounds of the data points. ?- David ? On Wed, Mar 18, 2015 at 7:23 AM, Maarten Beek via vtkusers wrote: Hi all, For an image with dims = (100, 100, 100) and spacing = (0.13, 0.13, 0.13), vtkImageData::GetBounds() returns(0, 12.87, 0, 12.87, 0, 12.87) If I use these bounds as argument in vtkBox::IntersectWithLine, do I get the correct intersections?Or should I use (0, 13, 0, 13, 0, 13) for the bounds? Thanks - Maarten -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhlegarreta at vicomtech.org Thu Mar 19 09:43:41 2015 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Thu, 19 Mar 2015 14:43:41 +0100 Subject: [vtkusers] Help Me!! vtk compile error!! In-Reply-To: <217404141.5561561426770832790.JavaMail.httpd@webmail-55.iol.local> References: <217404141.5561561426770832790.JavaMail.httpd@webmail-55.iol.local> Message-ID: Hi Alessandro, are you using CMake? Are you linking your project against VTK? You may want to have a look at the following example [1] in order to link agains VTK using CMake. HTH, JON HAITZ [1] http://www.vtk.org/Wiki/VTK/Tutorials/CMakeListsFile On 19 March 2015 at 14:13, ale.nonis at libero.it wrote: > Hi, > i'm Alessandro. > I have a vtk compiling error. > When i compile the result is: error LNK2019: unresolved external > symbol "__declspec(dllimport) public: __thiscall > vtkBoundingBox::vtkBoundingBox(double const * const)" > (__imp_??0vtkBoundingBox@@QAE at QBN@Z) in function _main and error LNK1120: > 1 unsolved externals. > > Thanks > Ale > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zarko at kg.ac.rs Thu Mar 19 09:58:41 2015 From: zarko at kg.ac.rs (zarko.milosevic) Date: Thu, 19 Mar 2015 06:58:41 -0700 (MST) Subject: [vtkusers] VTK 6.2.0 CMake Not working Message-ID: <1426773521821-5730996.post@n5.nabble.com> I`ve downloaded VTK 6.2.0 source and buit it in CMake with default settings for Visual Studio 2013 x86. When tried to run Sphere test vtkPolyDataMapper::New() return NULL and i get following error message: "Error: no orverride found for 'vtkPolyDataMapper'. " Have anyone experienced this kind of problem and is there any solution for this ? Zarko -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-0-CMake-Not-working-tp5730996.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Thu Mar 19 10:06:33 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 19 Mar 2015 19:36:33 +0530 Subject: [vtkusers] Writing other XML properties in paraview Message-ID: Hello Experts, When I generate my polydata and write the information in a .vtp file, I want to write few addition information like the following in the same file along with the polydata information: Integer Value Double Value String Value Is there any vtk class that will help me doing this ? Thanks in advance, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.krotkiewski at gmail.com Thu Mar 19 10:22:31 2015 From: marcin.krotkiewski at gmail.com (marcin.krotkiewski) Date: Thu, 19 Mar 2015 15:22:31 +0100 Subject: [vtkusers] segfault/hang in vtkRenderer.RemoveActor Message-ID: <550ADBA7.1090404@gmail.com> Hello everyone, I've encountered a problem with Java wrappers and vtkRenderer.RemoveActor that results in a segfault or a hang on Windows, while all works fine on Linux. The renderer is obtained from a vtkCanvas instance, which is embedded in JFrame: JFrame frame = new JFrame("crash"); [... initialize frame ...] vtkCanvas canvas = new vtkCanvas(); vtkRenderer ren = canvas.GetRenderer(); [... create cone actor ...] ren.AddActor(actor); canvas.repaint(); // all works nicely, with model rendered and interactive [sleep 1s] // segfault/hangs in RemoveActor on windows, // Sometimes output VTK window with error message from vtk shown: // ERROR in [partial path] // vtkWin32OpenGLRendererWindow([address]):wgIM [missing text] // // The rendered scene is still interactive, i.e., cone can be rotated etc. ren.RemoveActor(actor); As I said, the code works on Linux and the actor is correctly removed. I have verified the problem on two Winows 7 systems with java version "1.7.0_11" and "1.8.0_31". VTK-6.1.0 is built using Visual Studio 2012 Professional. One other problem is rendering of the scene. The canvas.repaint() line works, but if I substitute it with canvas.lock(); ren.Render(); canvas.unlock(); then I also get a crash on both Windows and Linux. I am not sure - do I do this correctly, or should I call Render differently? I would appreciate any help - I will gladly do local debugging. The entire compilable Java code is attached. Thanks Marcin Krotkiewski -------------- next part -------------- A non-text attachment was scrubbed... Name: bugtest.java Type: text/x-java Size: 2367 bytes Desc: not available URL: From david.gobbi at gmail.com Thu Mar 19 10:39:39 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 19 Mar 2015 08:39:39 -0600 Subject: [vtkusers] bounds argument in vtkBox::IntersectWithLine() In-Reply-To: <225087920.448491.1426772292851.JavaMail.yahoo@mail.yahoo.com> References: <1191371333.1350434.1426705126139.JavaMail.yahoo@mail.yahoo.com> <225087920.448491.1426772292851.JavaMail.yahoo@mail.yahoo.com> Message-ID: On Thu, Mar 19, 2015 at 7:38 AM, Maarten Beek wrote: > But voxels of a CT (MRI) image cannot be considered infinitesimal thin, > can they? > Er.. well, yes, they can be. The data that makes up a CT image can be considered to be a set of point samples of a continuous function. The "continuous function" is generally the underlying "true image" convolved with the detector response. The detector response might have some "natural width", though it's always more of a distribution (e.g. the slice profile). But after the image has been discretized, a single slice in isolation really does not have any thickness. You could look at the full-width half-maximum of the slice profile and say that the "real" slice (as opposed to its discrete representation) has a certain thickness. But even then, that thickness unlikely to be exactly equal to the slice spacing. Here is another way that I look at it, again considering the digital image to be a discrete sampling of a continuous function. If you want to estimate the continuous function (i.e. the "real" image) from your discrete samples, you do so by interpolating between the samples. By definition, you cannot interpolate in the region beyond the samples (that would be extrapolation, which is another name for "wandering off into the unknown"). The one time where I find it useful to break this rule is when the image is displayed with nearest-neighbor interpolation (otherwise known as "draw each sample point as a solid-colored rectangle"). But even then, it should be understood that only the inside half of each border pixel is being interpolated. The outside half is actually an extrapolation. I'm rambling a bit here. In summary, I generally consider individual slices to be infinitesimally thin, unless the problem that I'm working on requires me to consider the slice profile of the image acquisition system. But the slice profile rarely figures into the visualization of the data. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.nonis at libero.it Thu Mar 19 10:44:39 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Thu, 19 Mar 2015 15:44:39 +0100 (CET) Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! Message-ID: <468276359.5595181426776279275.JavaMail.httpd@webmail-55.iol.local> Hi Jon,yes i'm using CMake.In the attached you can see my project. ThanksAle ----Messaggio originale---- Da: jhlegarreta at vicomtech.org Data: 19/03/2015 14.43 A: "ale.nonis at libero.it" Cc: "vtkusers at vtk.org" Ogg: Re: [vtkusers] Help Me!! vtk compile error!! Hi Alessandro,are you using CMake? Are you linking your project against VTK? You may want to have a look at the following example [1] in order to link agains VTK using CMake. HTH,JON HAITZ [1] http://www.vtk.org/Wiki/VTK/Tutorials/CMakeListsFile On 19 March 2015 at 14:13, ale.nonis at libero.it wrote: Hi,i'm Alessandro.I have a vtk compiling error.When i compile the result is: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall vtkBoundingBox::vtkBoundingBox(double const * const)" (__imp_??0vtkBoundingBox@@QAE at QBN@Z) in function _main and error LNK1120: 1 unsolved externals. Thanks Ale _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CMakeLists.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cleaner.cxx Type: application/octet-stream Size: 9657 bytes Desc: not available URL: From drescherjm at gmail.com Thu Mar 19 10:46:34 2015 From: drescherjm at gmail.com (John Drescher) Date: Thu, 19 Mar 2015 10:46:34 -0400 Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! In-Reply-To: <468276359.5595181426776279275.JavaMail.httpd@webmail-55.iol.local> References: <468276359.5595181426776279275.JavaMail.httpd@webmail-55.iol.local> Message-ID: On Thu, Mar 19, 2015 at 10:44 AM, ale.nonis at libero.it wrote: > Hi Jon, > yes i'm using CMake. > In the attached you can see my project. > I would use ${VTK_LIBRARIES} in your TARGET_LINK_LIBRARIES John From jhlegarreta at vicomtech.org Thu Mar 19 10:58:01 2015 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Thu, 19 Mar 2015 15:58:01 +0100 Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! In-Reply-To: References: <468276359.5595181426776279275.JavaMail.httpd@webmail-55.iol.local> Message-ID: Hi Alessandro, I cannot see in your CMake where you look for VTK. Configuring and building your project gives no errors, but you do not include VTK and set the VTK binaries' path. You'd better have a look at the link I mentioned, and change your CMakeLists accordingly. That includes following John's piece of advice. HTH, JON HAITZ On 19 March 2015 at 15:46, John Drescher wrote: > On Thu, Mar 19, 2015 at 10:44 AM, ale.nonis at libero.it > wrote: > > Hi Jon, > > yes i'm using CMake. > > In the attached you can see my project. > > > > I would use ${VTK_LIBRARIES} in your TARGET_LINK_LIBRARIES > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Thu Mar 19 11:03:54 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Thu, 19 Mar 2015 15:03:54 +0000 Subject: [vtkusers] Line intersection with an actor Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2F1DE@exchange3.microbrightfield.com> Hi all, I was wondering what the best way to do this. I have a vtkactor in my scene. In this case, I have a point(Point 1) inside of the vtkactor and a point (Point 2) outside of the actor. Is there a class that will get me the intersection position on the surface of the actor if I draw a line from point 1 to point 2? Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Mar 19 11:13:08 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 19 Mar 2015 09:13:08 -0600 Subject: [vtkusers] Writing other XML properties in paraview In-Reply-To: References: Message-ID: You can use fields data to store any random information regarding your dataset. I'm not sure that's what you ask, but at least that's what it seems. Seb On Thu, Mar 19, 2015 at 8:06 AM, Chiranjib Sur wrote: > Hello Experts, > When I generate my polydata and write the information in a .vtp file, I > want to write few addition information like the following in the same file > along with the polydata information: > > > Integer Value > Double Value > String Value > > > Is there any vtk class that will help me doing this ? > > Thanks in advance, > Chiranjib > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Thu Mar 19 11:19:15 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 19 Mar 2015 20:49:15 +0530 Subject: [vtkusers] Writing other XML properties in paraview In-Reply-To: References: Message-ID: HI Seb, Thanks for your answer. My issue is to write the data into the vtp file along with other information like pointdata etc. I am able to generate the data but i have no clue how to write in the format I want to. I am using vtkPolyDataWeiter class to write the .vtp file but in between how can I insert few XML tags with some values ? If you can point towards some examples which you are referring to as the fields data, that might help. Thanks, Chiranjib On Thu, Mar 19, 2015 at 8:43 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > You can use fields data to store any random information regarding your > dataset. > > I'm not sure that's what you ask, but at least that's what it seems. > > Seb > > On Thu, Mar 19, 2015 at 8:06 AM, Chiranjib Sur > wrote: > >> Hello Experts, >> When I generate my polydata and write the information in a .vtp file, I >> want to write few addition information like the following in the same file >> along with the polydata information: >> >> >> Integer Value >> Double Value >> String Value >> >> >> Is there any vtk class that will help me doing this ? >> >> Thanks in advance, >> Chiranjib >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Mar 19 11:21:49 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 19 Mar 2015 09:21:49 -0600 Subject: [vtkusers] Line intersection with an actor In-Reply-To: <46CB11F12B9DC24D860D4082451B318A14F2F1DE@exchange3.microbrightfield.com> References: <46CB11F12B9DC24D860D4082451B318A14F2F1DE@exchange3.microbrightfield.com> Message-ID: The vtkCellLocator does this, but it operates on a vtkDataSet rather than on an actor: actor->GetMapper()->GetInput() The cell locator works in data coords rather than world coords (use the actor's matrix to do the coord conversion, if needed). On Thu, Mar 19, 2015 at 9:03 AM, Doug Hoppes wrote: > Hi all, > > > > I was wondering what the best way to do this. I have a > vtkactor in my scene. In this case, I have a point(Point 1) inside of the > vtkactor and a point (Point 2) outside of the actor. Is there a class > that will get me the intersection position on the surface of the actor if I > draw a line from point 1 to point 2? > > > > Doug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Mar 19 11:29:26 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 19 Mar 2015 09:29:26 -0600 Subject: [vtkusers] Writing other XML properties in paraview In-Reply-To: References: Message-ID: polydata->GetFieldData()->AddArray( anyArrayYouWant ) anyArrayYouWant can be a String array with only one value that contain your XML text. On Thu, Mar 19, 2015 at 9:19 AM, Chiranjib Sur wrote: > HI Seb, > Thanks for your answer. My issue is to write the data into the vtp file > along with other information like pointdata etc. I am able to generate the > data but i have no clue how to write in the format I want to. I am using > vtkPolyDataWeiter class to write the .vtp file but in between how can I > insert few XML tags with some values ? > > If you can point towards some examples which you are referring to as the > fields data, that might help. > > Thanks, > Chiranjib > > On Thu, Mar 19, 2015 at 8:43 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> You can use fields data to store any random information regarding your >> dataset. >> >> I'm not sure that's what you ask, but at least that's what it seems. >> >> Seb >> >> On Thu, Mar 19, 2015 at 8:06 AM, Chiranjib Sur >> wrote: >> >>> Hello Experts, >>> When I generate my polydata and write the information in a .vtp file, I >>> want to write few addition information like the following in the same file >>> along with the polydata information: >>> >>> >>> Integer Value >>> Double Value >>> String Value >>> >>> >>> Is there any vtk class that will help me doing this ? >>> >>> Thanks in advance, >>> Chiranjib >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnour.ai at hotmail.com Thu Mar 19 13:52:38 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Thu, 19 Mar 2015 17:52:38 +0000 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: , , , Message-ID: Dear Alex, Thank you again. I'll try it. Date: Wed, 18 Mar 2015 15:38:19 -0700 Subject: Re: [vtkusers] Fill interior 3D object From: malyushytsky at gmail.com To: mnour.ai at hotmail.com CC: vtkusers at vtk.org You may try to use boolean operations for computing the "stub". http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter If for example you have sphere and you slice it with a plan.Boolean intersection of such 2 objects will be a polygon you can display ( you probably can use vtkFillHolesFilterto triangulate it )to restore the look of solid after slicing. Hope this helps, Alex On Tue, Mar 17, 2015 at 10:46 PM, Muhammad Nour wrote: Dear Alex, Thank you very much for your reply. I can make presentation look like solid (e.x. by using opacity property). But I want to slice an object, and result must be filled as if the object is solid. Suppose my object is a torus, so I have slice as two circles (one inside other). I want to fill space between these circles. I have tried using vtkDelaunay3D class but it distorts objects. Also I tried using vtkFillHolesFilter filter but it fills all empty space. I hope I explaine my point. Thank you again. Date: Tue, 17 Mar 2015 18:34:00 -0700 Subject: Re: [vtkusers] Fill interior 3D object From: malyushytsky at gmail.com To: mnour.ai at hotmail.com CC: vtkusers at vtk.org AFAI understand there is no solid objects there are presentations of solids.Such presentation may look like solid unless you are inside the object. If that not what you want you are on your own. Similar to 2d , 3d objects exist for a solely purpose of presentation.You may 'subdivide' your sphere for example and construct it from the number of hexahedrons ( like circle from quadrilaterals),but even if you do so you will see those elements when you move your camera too close not like solids. But if it what you want , you may look at Delaunay3D. Regards, Alex On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour wrote: Hi all,I am using MS visual studio 2008 and vtk 5.10I want to fill interior of some objects (like sphere), so they must be solid. I've tried vtkFillHolesFilter class but it fills holes of surface not inside object.Is there any other filter or class can do it?Thank you very much _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhoppes at mbfbioscience.com Thu Mar 19 14:00:43 2015 From: dhoppes at mbfbioscience.com (Doug Hoppes) Date: Thu, 19 Mar 2015 18:00:43 +0000 Subject: [vtkusers] Line intersection with an actor In-Reply-To: References: <46CB11F12B9DC24D860D4082451B318A14F2F1DE@exchange3.microbrightfield.com> Message-ID: <46CB11F12B9DC24D860D4082451B318A14F2F262@exchange3.microbrightfield.com> Thanks, David! I couldn't get the vtkCellLocator to work but the vtkOBBTree worked beautifully. From: David Gobbi [mailto:david.gobbi at gmail.com] Sent: Thursday, March 19, 2015 11:22 AM To: Doug Hoppes Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Line intersection with an actor The vtkCellLocator does this, but it operates on a vtkDataSet rather than on an actor: actor->GetMapper()->GetInput() The cell locator works in data coords rather than world coords (use the actor's matrix to do the coord conversion, if needed). On Thu, Mar 19, 2015 at 9:03 AM, Doug Hoppes > wrote: Hi all, I was wondering what the best way to do this. I have a vtkactor in my scene. In this case, I have a point(Point 1) inside of the vtkactor and a point (Point 2) outside of the actor. Is there a class that will get me the intersection position on the surface of the actor if I draw a line from point 1 to point 2? Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnour.ai at hotmail.com Thu Mar 19 14:01:48 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Thu, 19 Mar 2015 18:01:48 +0000 Subject: [vtkusers] Fill interior 3D object In-Reply-To: References: , , , , Message-ID: Dear Bill, Thank you very much. Actually, I want slice to be filled, not looked fill (e.x. by changing opacity value). > Date: Wed, 18 Mar 2015 18:40:17 -0700 > Subject: Re: [vtkusers] Fill interior 3D object > From: bill.lorensen at gmail.com > To: malyushytsky at gmail.com > CC: mnour.ai at hotmail.com; vtkusers at vtk.org > > Do you want it filled, or do you want it to look filled? > > > On Wed, Mar 18, 2015 at 3:38 PM, Alex Malyushytsky > wrote: > > You may try to use boolean operations for computing the "stub". > > > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter > > > > If for example you have sphere and you slice it with a plan. > > Boolean intersection of such 2 objects will be a polygon you can display ( > > you probably can use vtkFillHolesFilterto triangulate it ) > > to restore the look of solid after slicing. > > > > Hope this helps, > > Alex > > > > > > > > On Tue, Mar 17, 2015 at 10:46 PM, Muhammad Nour > > wrote: > >> > >> Dear Alex, > >> > >> Thank you very much for your reply. > >> > >> I can make presentation look like solid (e.x. by using opacity property). > >> > >> But I want to slice an object, and result must be filled as if the object > >> is solid. > >> > >> Suppose my object is a torus, so I have slice as two circles (one inside > >> other). > >> > >> I want to fill space between these circles. > >> > >> I have tried using vtkDelaunay3D class but it distorts objects. > >> > >> Also I tried using vtkFillHolesFilter filter but it fills all empty space. > >> > >> I hope I explaine my point. > >> > >> Thank you again. > >> > >> ________________________________ > >> Date: Tue, 17 Mar 2015 18:34:00 -0700 > >> Subject: Re: [vtkusers] Fill interior 3D object > >> From: malyushytsky at gmail.com > >> To: mnour.ai at hotmail.com > >> CC: vtkusers at vtk.org > >> > >> > >> AFAI understand there is no solid objects there are presentations of > >> solids. > >> Such presentation may look like solid unless you are inside the object. > >> If that not what you want you are on your own. > >> > >> Similar to 2d , 3d objects exist for a solely purpose of presentation. > >> You may 'subdivide' your sphere for example and construct it from the > >> number of hexahedrons ( like circle from quadrilaterals), > >> but even if you do so you will see those elements when you move your > >> camera too close not like solids. > >> > >> But if it what you want , you may look at Delaunay3D. > >> > >> Regards, > >> Alex > >> > >> > >> On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour > >> wrote: > >> > >> Hi all, > >> > >> I am using MS visual studio 2008 and vtk 5.10 > >> > >> I want to fill interior of some objects (like sphere), so they must be > >> solid. > >> > >> I've tried vtkFillHolesFilter class but it fills holes of surface not > >> inside object. > >> > >> Is there any other filter or class can do it? > >> > >> Thank you very much > >> > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the VTK FAQ at: > >> http://www.vtk.org/Wiki/VTK_FAQ > >> > >> Search the list archives at: http://markmail.org/search/?q=vtkusers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtkusers > >> > >> > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > Unpaid intern in BillsBasement at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Mar 19 15:39:09 2015 From: sean at rogue-research.com (Sean McBride) Date: Thu, 19 Mar 2015 15:39:09 -0400 Subject: [vtkusers] [vtk-developers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> References: <20150316180926.1146005295@mail.rogue-research.com> <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> Message-ID: <20150319193909.1656031800@mail.rogue-research.com> Thanks for these comments. There is only one hack for gcc 4.0, I'll go ahead and yank it too. Anyone know if there is a dashboard running gcc 4.1? (My oldest buildbot, Rogue3, is running gcc 4.2, specifically Apple's fork.) Sean On Wed, 18 Mar 2015 18:46:04 +0000, Scott, W Alan said: >Ditto for us. 4.1.2 is the oldest we seem to have. > >Alan > >From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf >Of Chuck Atkins >Sent: Wednesday, March 18, 2015 12:13 PM >To: Sean McBride >Cc: VTK Developers; vtkusers at vtk.org >Subject: [EXTERNAL] Re: [vtk-developers] RFC: Compiler support, removing >hacks for old compilers > >I'd be interested to know from the community what are the oldest >compilers you care about? Anyone out there using a compiler older than >5 years or so? > > I'd say for gcc, 4.1.x is likely the oldest you'd need to bother with. >That's the system compiler for RHEL5 and SLES10, both of which are EOL'd >but still actively deployed. That being said, chances are pretty high >that even on those systems, you'd have a newer compiler available via >system packages. RHEL5.5 and up has /usr/bin/gcc44 and SLES 10 has /usr/ >bin/gcc-4.3, both available as system packages and an alternative to the >older /usr/bin/gcc used to compiler their respective kernels. From dave.demarle at kitware.com Thu Mar 19 15:47:46 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 19 Mar 2015 15:47:46 -0400 Subject: [vtkusers] [vtk-developers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: <20150319193909.1656031800@mail.rogue-research.com> References: <20150316180926.1146005295@mail.rogue-research.com> <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> <20150319193909.1656031800@mail.rogue-research.com> Message-ID: This from $VTKSRC/Utilities/Maintainance/vtk_submitter_summary.py run a while back. These are maybe. CMAKE_CXX_COMPILER;/usr/bin/c++;1.71428571429;['karego-at.kitware Ubuntu-NoRender', 'londinium.kitware Arch-GCC-4.8-x86_64-debug', 'kamino.kitware Mac10.7.5-gcc-release-x86_64-nightly_master', 'kargad.kitware MacLion-Continuous', 'karego-at.kitware Ubuntu-Continuous', 'sonne.domibel.de Debian_Testing_gcc-4.8.2_c++11', 'dejagore.kitware Ubuntu-13.10-x86_64-Ninja-Clang3.4-Accel', 'kargad.kitware MacLion-VTKAcceleratorsOMP', 'karego-at.kitware Ubuntu-Valgrind', 'dashlin1.kitware Ubuntu-Release', 'kargad.kitware MacLion-VTKRelease', 'dashlin1.kitware Ubuntu-master', 'karego-at.kitware Ubuntu-Coverage', 'kamino.kitware Mac10.7.5-gcc-release-x86_64-nightly_release', 'karego-at.kitware Ubuntu-NoData', 'kargad.kitware MacLion-VTKAccelerators'] CMAKE_CXX_COMPILER;/usr/bin/c++.exe;10.0;['dash14.kitware Win32-cygwin344'] CMAKE_CXX_COMPILER;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++;1.0;['RogueResearch6 Mac10.9-clang-rel-x86_64', 'RogueResearch11 Mac10.7-clang-dbg-x86_64', 'RogueResearch11 Mac10.7-clang-rel-x86_64', 'RogueResearch6 Mac10.9-clang-dbg-x86_64'] CMAKE_CXX_COMPILER;/Developer/usr/bin/c++;1.0;['RogueResearch9 Mac10.6-gcc-dbg-i386', 'RogueResearch9 Mac10.6-gcc-rel-x86_64'] CMAKE_CXX_COMPILER;/Developer/usr/bin/c++;1.0;['RogueResearch9 Mac10.6-gcc-dbg-i386', 'RogueResearch9 Mac10.6-gcc-rel-x86_64'] CMAKE_CXX_COMPILER;/bin/g++;14.0;['rocky.lbl.gov Fedora19-gcc4.8.2-ATI-RadeonHD-7870'] CMAKE_CXX_COMPILER;/usr/bin/g++;1.0;['hythloth.kitware Linux-gcc'] CMAKE_CXX_COMPILER;/usr/lib/ccache/bin/c++;2.0;['londinium.kitware Arch-GCC-4.8-x86_64-release-branch-debug', 'londinium.kitware Arch-GCC-4.8-x86_64-release'] CMAKE_CXX_COMPILER;/usr/lib64/ccache/c++;10.75;['bubbles.hooperlab Fedora-19_OSMesaDevel-x86_64', 'bubbles.hooperlab Fedora-19-MesaDevel_DRI-x86_64', 'bubbles.hooperlab Fedora-19-Mesa-10.0.1_DRI-x86_64', 'bubbles.hooperlab Fedora-19_OSMesa-10.0.1-x86_64'] CMAKE_CXX_COMPILER;C:/MinGW/bin/g++.exe;1.0;['amber12.kitware Win32-mingw-gcc-4.5'] These are no. CMAKE_CXX_COMPILER;/Users/builder/llvm/llvm-rel-install/bin/clang++;4.66666666667;['RogueResearch7 Mac10.8-torture-clang-dbg-x86_64', 'RogueResearch7 Mac10.8-clang-rel-x86_64', 'RogueResearch7 Mac10.8-clang-dbg-x86_64'] CMAKE_CXX_COMPILER;/usr/bin/clang++;1.5;['kamino.kitware Mac10.7.5-clang-release-x86_64-nightly_master', 'londinium.kitware Arch-Clang-3.2-x86_64-debug'] CMAKE_CXX_COMPILER;/usr/bin/g++-4.2;0.5;['RogueResearch3 Mac10.5-gcc-dbg-ppc-shared', 'RogueResearch3 Mac10.5-gcc-dbg-ppc64-static'] CMAKE_CXX_COMPILER;/usr/vacpp/bin/xlC;2.0;['p90n03.pbm.ihost.com AIX00F614-xlC'] CMAKE_CXX_COMPILER;C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/x86_amd64/cl.exe;2.5;['amber10.kitware Win64-VS10', 'amber10.kitware VTK-REL-Win64-VS10'] CMAKE_CXX_COMPILER;C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe;12.1666666667;['mug.neocisinc Win32-ninja-cl11-Release', 'dash1win7.kitware Win32-release-vs11-Shared', 'dash1win7.kitware Win32-vs11-Static', 'mug.neocisinc Win32-ninja-cl11-Debug', 'dash1win7.kitware Win32-vs11-Cont', 'dash1win7.kitware Win32-vs11-Shared'] CMAKE_CXX_COMPILER;C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe;0.0;['DASH11.kitware Win32-vs71-static'] CMAKE_CXX_COMPILER;c:/Program Files/Microsoft Visual Studio/VC98/Bin/CL.EXE;0.0;['DASH3.kitware Win32-vs9-Static', 'DASH3.kitware Win32-vs9-Shared', 'DASH3.kitware Win32-vs9'] David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Mar 19, 2015 at 3:39 PM, Sean McBride wrote: > Thanks for these comments. > > There is only one hack for gcc 4.0, I'll go ahead and yank it too. > > Anyone know if there is a dashboard running gcc 4.1? (My oldest buildbot, > Rogue3, is running gcc 4.2, specifically Apple's fork.) > > Sean > > > > On Wed, 18 Mar 2015 18:46:04 +0000, Scott, W Alan said: > > >Ditto for us. 4.1.2 is the oldest we seem to have. > > > >Alan > > > >From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf > >Of Chuck Atkins > >Sent: Wednesday, March 18, 2015 12:13 PM > >To: Sean McBride > >Cc: VTK Developers; vtkusers at vtk.org > >Subject: [EXTERNAL] Re: [vtk-developers] RFC: Compiler support, removing > >hacks for old compilers > > > >I'd be interested to know from the community what are the oldest > >compilers you care about? Anyone out there using a compiler older than > >5 years or so? > > > > I'd say for gcc, 4.1.x is likely the oldest you'd need to bother with. > >That's the system compiler for RHEL5 and SLES10, both of which are EOL'd > >but still actively deployed. That being said, chances are pretty high > >that even on those systems, you'd have a newer compiler available via > >system packages. RHEL5.5 and up has /usr/bin/gcc44 and SLES 10 has /usr/ > >bin/gcc-4.3, both available as system packages and an alternative to the > >older /usr/bin/gcc used to compiler their respective kernels. > > > _______________________________________________ > 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 Thu Mar 19 16:01:05 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Thu, 19 Mar 2015 16:01:05 -0400 Subject: [vtkusers] [vtk-developers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: References: <20150316180926.1146005295@mail.rogue-research.com> <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> <20150319193909.1656031800@mail.rogue-research.com> Message-ID: FWIW, ParaView has a superbuild nightly binaries machine that runs debian 4 (gcc 4.1.2). We may be updating to a more recent debian soon though. Shawn On Thu, Mar 19, 2015 at 3:47 PM, David E DeMarle wrote: > This from $VTKSRC/Utilities/Maintainance/vtk_submitter_summary.py run a > while back. > > These are maybe. > CMAKE_CXX_COMPILER;/usr/bin/c++;1.71428571429;['karego-at.kitware > Ubuntu-NoRender', 'londinium.kitware Arch-GCC-4.8-x86_64-debug', > 'kamino.kitware Mac10.7.5-gcc-release-x86_64-nightly_master', > 'kargad.kitware MacLion-Continuous', 'karego-at.kitware Ubuntu-Continuous', > 'sonne.domibel.de Debian_Testing_gcc-4.8.2_c++11', 'dejagore.kitware > Ubuntu-13.10-x86_64-Ninja-Clang3.4-Accel', 'kargad.kitware > MacLion-VTKAcceleratorsOMP', 'karego-at.kitware Ubuntu-Valgrind', > 'dashlin1.kitware Ubuntu-Release', 'kargad.kitware MacLion-VTKRelease', > 'dashlin1.kitware Ubuntu-master', 'karego-at.kitware Ubuntu-Coverage', > 'kamino.kitware Mac10.7.5-gcc-release-x86_64-nightly_release', > 'karego-at.kitware Ubuntu-NoData', 'kargad.kitware MacLion-VTKAccelerators'] > CMAKE_CXX_COMPILER;/usr/bin/c++.exe;10.0;['dash14.kitware Win32-cygwin344'] > CMAKE_CXX_COMPILER;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++;1.0;['RogueResearch6 > Mac10.9-clang-rel-x86_64', 'RogueResearch11 Mac10.7-clang-dbg-x86_64', > 'RogueResearch11 Mac10.7-clang-rel-x86_64', 'RogueResearch6 > Mac10.9-clang-dbg-x86_64'] > CMAKE_CXX_COMPILER;/Developer/usr/bin/c++;1.0;['RogueResearch9 > Mac10.6-gcc-dbg-i386', 'RogueResearch9 Mac10.6-gcc-rel-x86_64'] > CMAKE_CXX_COMPILER;/Developer/usr/bin/c++;1.0;['RogueResearch9 > Mac10.6-gcc-dbg-i386', 'RogueResearch9 Mac10.6-gcc-rel-x86_64'] > CMAKE_CXX_COMPILER;/bin/g++;14.0;['rocky.lbl.gov > Fedora19-gcc4.8.2-ATI-RadeonHD-7870'] > CMAKE_CXX_COMPILER;/usr/bin/g++;1.0;['hythloth.kitware Linux-gcc'] > CMAKE_CXX_COMPILER;/usr/lib/ccache/bin/c++;2.0;['londinium.kitware > Arch-GCC-4.8-x86_64-release-branch-debug', 'londinium.kitware > Arch-GCC-4.8-x86_64-release'] > CMAKE_CXX_COMPILER;/usr/lib64/ccache/c++;10.75;['bubbles.hooperlab > Fedora-19_OSMesaDevel-x86_64', 'bubbles.hooperlab > Fedora-19-MesaDevel_DRI-x86_64', 'bubbles.hooperlab > Fedora-19-Mesa-10.0.1_DRI-x86_64', 'bubbles.hooperlab > Fedora-19_OSMesa-10.0.1-x86_64'] > CMAKE_CXX_COMPILER;C:/MinGW/bin/g++.exe;1.0;['amber12.kitware > Win32-mingw-gcc-4.5'] > > These are no. > CMAKE_CXX_COMPILER;/Users/builder/llvm/llvm-rel-install/bin/clang++;4.66666666667;['RogueResearch7 > Mac10.8-torture-clang-dbg-x86_64', 'RogueResearch7 > Mac10.8-clang-rel-x86_64', 'RogueResearch7 Mac10.8-clang-dbg-x86_64'] > CMAKE_CXX_COMPILER;/usr/bin/clang++;1.5;['kamino.kitware > Mac10.7.5-clang-release-x86_64-nightly_master', 'londinium.kitware > Arch-Clang-3.2-x86_64-debug'] > CMAKE_CXX_COMPILER;/usr/bin/g++-4.2;0.5;['RogueResearch3 > Mac10.5-gcc-dbg-ppc-shared', 'RogueResearch3 Mac10.5-gcc-dbg-ppc64-static'] > CMAKE_CXX_COMPILER;/usr/vacpp/bin/xlC;2.0;['p90n03.pbm.ihost.com > AIX00F614-xlC'] > CMAKE_CXX_COMPILER;C:/Program Files (x86)/Microsoft Visual Studio > 10.0/VC/bin/x86_amd64/cl.exe;2.5;['amber10.kitware Win64-VS10', > 'amber10.kitware VTK-REL-Win64-VS10'] > CMAKE_CXX_COMPILER;C:/Program Files (x86)/Microsoft Visual Studio > 11.0/VC/bin/cl.exe;12.1666666667;['mug.neocisinc Win32-ninja-cl11-Release', > 'dash1win7.kitware Win32-release-vs11-Shared', 'dash1win7.kitware > Win32-vs11-Static', 'mug.neocisinc Win32-ninja-cl11-Debug', > 'dash1win7.kitware Win32-vs11-Cont', 'dash1win7.kitware Win32-vs11-Shared'] > CMAKE_CXX_COMPILER;C:/Program Files/Microsoft Visual Studio .NET > 2003/Vc7/bin/cl.exe;0.0;['DASH11.kitware Win32-vs71-static'] > CMAKE_CXX_COMPILER;c:/Program Files/Microsoft Visual > Studio/VC98/Bin/CL.EXE;0.0;['DASH3.kitware Win32-vs9-Static', > 'DASH3.kitware Win32-vs9-Shared', 'DASH3.kitware Win32-vs9'] > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Mar 19, 2015 at 3:39 PM, Sean McBride > wrote: > >> Thanks for these comments. >> >> There is only one hack for gcc 4.0, I'll go ahead and yank it too. >> >> Anyone know if there is a dashboard running gcc 4.1? (My oldest >> buildbot, Rogue3, is running gcc 4.2, specifically Apple's fork.) >> >> Sean >> >> >> >> On Wed, 18 Mar 2015 18:46:04 +0000, Scott, W Alan said: >> >> >Ditto for us. 4.1.2 is the oldest we seem to have. >> > >> >Alan >> > >> >From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf >> >Of Chuck Atkins >> >Sent: Wednesday, March 18, 2015 12:13 PM >> >To: Sean McBride >> >Cc: VTK Developers; vtkusers at vtk.org >> >Subject: [EXTERNAL] Re: [vtk-developers] RFC: Compiler support, removing >> >hacks for old compilers >> > >> >I'd be interested to know from the community what are the oldest >> >compilers you care about? Anyone out there using a compiler older than >> >5 years or so? >> > >> > I'd say for gcc, 4.1.x is likely the oldest you'd need to bother with. >> >That's the system compiler for RHEL5 and SLES10, both of which are EOL'd >> >but still actively deployed. That being said, chances are pretty high >> >that even on those systems, you'd have a newer compiler available via >> >system packages. RHEL5.5 and up has /usr/bin/gcc44 and SLES 10 has /usr/ >> >bin/gcc-4.3, both available as system packages and an alternative to the >> >older /usr/bin/gcc used to compiler their respective kernels. >> >> >> _______________________________________________ >> 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 > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Thu Mar 19 16:27:31 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Thu, 19 Mar 2015 16:27:31 -0400 Subject: [vtkusers] [vtk-developers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: References: <20150316180926.1146005295@mail.rogue-research.com> <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> <20150319193909.1656031800@mail.rogue-research.com> Message-ID: <20150319202731.GA26366@megas.kitwarein.com> On Thu, Mar 19, 2015 at 16:01:05 -0400, Shawn Waldon wrote: > FWIW, ParaView has a superbuild nightly binaries machine that runs debian 4 > (gcc 4.1.2). We may be updating to a more recent debian soon though. That's a pretty loose "soon". We need to see if Debian 5 (Lenny) can build Qt5. If so, that will be the new binary builder. Installing a Debian image once its packages have migrated to archive.debian.org is not trivial though. Tips welcome :) . --Ben From malyushytsky at gmail.com Thu Mar 19 21:02:27 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Thu, 19 Mar 2015 18:02:27 -0700 Subject: [vtkusers] vtkLegendScaleActor label fitting In-Reply-To: References: Message-ID: To my mind current implementation of vtkLegendScaleActor is useless due to inability to scale axis value labels so they are visible on the screen (displayed in viewport). This is sad cause in all other areas it does a good job. The problem seems related to the usage of vtkAxisActor2D which does not provide sufficient control to be set up properly. I was able to achieve desired effects overriding both classes and making vtkAxisActor2D to display fixed size text using pre-defined ( by vtkLegendScaleActor subclass) offsets calling vtkTextMapper::SetMultipleConstrainedFontSize( viewport, xOffset, yOffset5, this->LabelMappers, this->AdjustedNumberOfLabels, this->LastMaxLabelSize ); instead of TextMapper::SetMultipleRelativeFontSize(viewport, this->LabelMappers,this->AdjustedNumberOfLabels,size,this->LastMaxLabelSize,0.015*this->FontFactor*this->LabelFactor); in vtkAxisActor2D subclass. My solution is not perfect, I would prefer to restrict scaling of the labels to make sure they fir viewport instead and it does not fix axis title positioning ( I simply do not show them ). But if anybody is interested I may provide the mock up of the class to demonstrate the fix. Regards, Alex On Tue, Mar 17, 2015 at 5:25 PM, Alex Malyushytsky wrote: > *I am trying to use *vtkLegendScaleActor in distance mode. > Everything works fine, but depending on the zoom and viewport size labels > (on vertical axes) may be drawn outside of the viewport. > > I am looking for solution which probably can be either dynamic adjusting > of the offsets or automatic scaling of the labels. > > Anybody can point how to do it? > > Best regards, > Alex > -------------- next part -------------- An HTML attachment was scrubbed... URL: From madaramh at gmail.com Fri Mar 20 02:54:22 2015 From: madaramh at gmail.com (madz) Date: Thu, 19 Mar 2015 23:54:22 -0700 (MST) Subject: [vtkusers] Get interpolated scalar values from Polydata Message-ID: <1426834462887-5731033.post@n5.nabble.com> I have a polydata and a set of points. What I need to do is find the interpolated scalar value for each point from the polydata. I tried using vtkProbeFilter but it wouldn't five me any results. I browsed older questions but could not find a suitable solution either. What method should I use to accomplish this? Any help would be appreciated. -- View this message in context: http://vtk.1045678.n5.nabble.com/Get-interpolated-scalar-values-from-Polydata-tp5731033.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Fri Mar 20 05:31:16 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Fri, 20 Mar 2015 15:01:16 +0530 Subject: [vtkusers] Writing other XML properties in paraview In-Reply-To: References: Message-ID: Hi Seb, I tried the method you suggested. The typical vtp structure is something like the following : ..... When I use the method you suggested, I can generate field data under which looks like the following ; I understand how I get this since, my polydata writer is set as the following : vtkSmartPointer w = vtkSmartPointer::New(); vtkSmartPointer p = vtkSmartPointer::New(); vtkSmartPointer s = vtkSmartPointer::New(); s->SetName ("MyString"); ... p->GetFieldData()->AddArray(s); ... w-> SetInputData(p); w->Write(); But what is want is the following (new lines marked in Red) and not related to the polydata at all. Integer Value Double Value String Value ...... What would be your suggestion about doing this ? I need to write my own writer class or can I use something which exists ? Thanks in advance, Chiranjib On Thu, Mar 19, 2015 at 8:59 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > polydata->GetFieldData()->AddArray( anyArrayYouWant ) > > anyArrayYouWant can be a String array with only one value that contain > your XML text. > > On Thu, Mar 19, 2015 at 9:19 AM, Chiranjib Sur > wrote: > >> HI Seb, >> Thanks for your answer. My issue is to write the data into the vtp file >> along with other information like pointdata etc. I am able to generate the >> data but i have no clue how to write in the format I want to. I am using >> vtkPolyDataWeiter class to write the .vtp file but in between how can I >> insert few XML tags with some values ? >> >> If you can point towards some examples which you are referring to as the >> fields data, that might help. >> >> Thanks, >> Chiranjib >> >> On Thu, Mar 19, 2015 at 8:43 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> You can use fields data to store any random information regarding your >>> dataset. >>> >>> I'm not sure that's what you ask, but at least that's what it seems. >>> >>> Seb >>> >>> On Thu, Mar 19, 2015 at 8:06 AM, Chiranjib Sur >>> wrote: >>> >>>> Hello Experts, >>>> When I generate my polydata and write the information in a .vtp file, I >>>> want to write few addition information like the following in the same file >>>> along with the polydata information: >>>> >>>> >>>> Integer Value >>>> Double Value >>>> String Value >>>> >>>> >>>> Is there any vtk class that will help me doing this ? >>>> >>>> Thanks in advance, >>>> Chiranjib >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.nonis at libero.it Fri Mar 20 08:02:17 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Fri, 20 Mar 2015 13:02:17 +0100 (CET) Subject: [vtkusers] R: Re: R: Re: Help Me!! vtk compile error!! Message-ID: <818276390.6033131426852937503.JavaMail.httpd@webmail-43.iol.local> Hi,Ok thanks i try later.However with VTK5.6 the project works but with my VTK6 there are this problems. RegardsAle ----Messaggio originale---- Da: jhlegarreta at vicomtech.org Data: 19/03/2015 15.58 A: "ale.nonis at libero.it" Cc: "vtkusers at vtk.org", "John Drescher" Ogg: Re: [vtkusers] R: Re: Help Me!! vtk compile error!! Hi Alessandro, I cannot see in your CMake where you look for VTK. Configuring and building your project gives no errors, but you do not include VTK and set the VTK binaries' path. You'd better have a look at the link I mentioned, and change your CMakeLists accordingly. That includes following John's piece of advice. HTH,JON HAITZ On 19 March 2015 at 15:46, John Drescher wrote: On Thu, Mar 19, 2015 at 10:44 AM, ale.nonis at libero.it wrote: > Hi Jon, > yes i'm using CMake. > In the attached you can see my project. > I would use ${VTK_LIBRARIES} in your TARGET_LINK_LIBRARIES John -------------- next part -------------- An HTML attachment was scrubbed... URL: From drescherjm at gmail.com Fri Mar 20 08:04:32 2015 From: drescherjm at gmail.com (John Drescher) Date: Fri, 20 Mar 2015 08:04:32 -0400 Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! In-Reply-To: <818276390.6033131426852937503.JavaMail.httpd@webmail-43.iol.local> References: <818276390.6033131426852937503.JavaMail.httpd@webmail-43.iol.local> Message-ID: > Ok thanks i try later. > However with VTK5.6 the project works but with my VTK6 there are this > problems. > That is expected since their are more libraries with vtk6. John From dave.demarle at kitware.com Fri Mar 20 08:14:07 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 20 Mar 2015 08:14:07 -0400 Subject: [vtkusers] Help Me!! vtk compile error!! In-Reply-To: References: <818276390.6033131426852937503.JavaMail.httpd@webmail-43.iol.local> Message-ID: Adding to John and Jon's good advice, also read: http://www.vtk.org/Wiki/VTK/Build_System_Migration For some of the details of using 6.x as compared to 5.x. On Friday, March 20, 2015, John Drescher wrote: > > Ok thanks i try later. > > However with VTK5.6 the project works but with my VTK6 there are this > > problems. > > > > That is expected since their are more libraries with vtk6. > > John > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- 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 ich_daniel at habmalnefrage.de Fri Mar 20 09:04:27 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 20 Mar 2015 06:04:27 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> Message-ID: <1426856667072-5731043.post@n5.nabble.com> Hello, if I import DICOM objects I always get this warning: Warning: In ..\..\vtk-dicom-master\Source\vtkDICOMSliceSorter.cxx, line 906 vtkDICOMSliceSorter (00000000194B0C70): Multidimensional series appears to be missing slices, representation will be inaccurate. And my imported object looks stretched. What I need to change or set yet? To set "Spacing" has no influence on the result. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5731043.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Fri Mar 20 09:16:36 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 20 Mar 2015 07:16:36 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426856667072-5731043.post@n5.nabble.com> References: <1426198976088-5730788.post@n5.nabble.com> <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> Message-ID: On Fri, Mar 20, 2015 at 7:04 AM, -Daniel- wrote: > Hello, > > if I import DICOM objects I always get this warning: > Warning: In ..\..\vtk-dicom-master\Source\vtkDICOMSliceSorter.cxx, line 906 > vtkDICOMSliceSorter (00000000194B0C70): Multidimensional series appears to > be missing slices, representation will be inaccurate. > > And my imported object looks stretched. What I need to change or set yet? > To set "Spacing" has no influence on the result. > The warning means that the reader can't figure out how to sort your data. You can call SortingOff() on the reader to eliminate the warning, but that won't fix the spacing issue. I suppose that you can add a vtkImageChangeInformation filter after the reader to change the spacing. Can you briefly describe what kind of data set you are trying to read? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Fri Mar 20 10:22:32 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 20 Mar 2015 07:22:32 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> Message-ID: <1426861352316-5731049.post@n5.nabble.com> Thank you, David!! The vtkImageChangeInformation filter solved my issue. I read compressed and uncompressed dcm-files. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5731049.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Fri Mar 20 10:30:16 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 20 Mar 2015 08:30:16 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426861352316-5731049.post@n5.nabble.com> References: <1426241093401-5730800.post@n5.nabble.com> <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> <1426861352316-5731049.post@n5.nabble.com> Message-ID: On Fri, Mar 20, 2015 at 8:22 AM, -Daniel- wrote: > Thank you, David!! > The vtkImageChangeInformation filter solved my issue. > I read compressed and uncompressed dcm-files. > That's good to hear, Daniel. But can you provide me with a brief description of your data set? What modality is it? Is it a 3D data set? A 4D data set? How are the data arranged? I've given you some help to read your data, so give me a little bit of help so that I can make vtkDICOMReader handle more kinds of input data. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Fri Mar 20 11:22:53 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 20 Mar 2015 08:22:53 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> <1426861352316-5731049.post@n5.nabble.com> Message-ID: <1426864973085-5731051.post@n5.nabble.com> I used for example the CT dataset of the visible human projects. You can download the head-example: https://mri.radiology.uiowa.edu/VHDicom/VHMCT1mm/VHMCT1mm_Head.tar.gz -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5731051.html Sent from the VTK - Users mailing list archive at Nabble.com. From zeinsalah at gmail.com Fri Mar 20 11:47:09 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Fri, 20 Mar 2015 16:47:09 +0100 Subject: [vtkusers] How itk and vtk images are stored Message-ID: Hi, I am wandering about the way itk and vtk images are stored in memory. Is actually a contiguous block allocated for the image and the data is simply stored in slice order? In other words, if I have an itk and a vtk images of the same attributes (dimensions, spacings, pixel type, etc.), would a memcpy safely copy the contents of one to the other? Much thanks, Zeno From david.gobbi at gmail.com Fri Mar 20 11:49:10 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 20 Mar 2015 09:49:10 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: <1426864973085-5731051.post@n5.nabble.com> References: <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> <1426861352316-5731049.post@n5.nabble.com> <1426864973085-5731051.post@n5.nabble.com> Message-ID: Thanks, I vaguely remember that the visible human had some spacing issues (different spacings for different parts of the head, etc.). It's been years since I've looked at that data. I'll take another peek. On Fri, Mar 20, 2015 at 9:22 AM, -Daniel- wrote: > > I used for example the CT dataset of the visible human projects. > You can download the head-example: > https://mri.radiology.uiowa.edu/VHDicom/VHMCT1mm/VHMCT1mm_Head.tar.gz > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Mar 20 12:00:28 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 20 Mar 2015 10:00:28 -0600 Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426440237529-5730828.post@n5.nabble.com> <1426590999726-5730872.post@n5.nabble.com> <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> <1426861352316-5731049.post@n5.nabble.com> <1426864973085-5731051.post@n5.nabble.com> Message-ID: Hmm... I downloaded that head data set, and for me it displayed just fine. There were no complaints from vtkDICOMReader at all. Are you sure that was the data set that was causing warnings in vtkDICOMReader? On Fri, Mar 20, 2015 at 9:49 AM, David Gobbi wrote: > Thanks, I vaguely remember that the visible human had some spacing > issues (different spacings for different parts of the head, etc.). It's > been > years since I've looked at that data. I'll take another peek. > > On Fri, Mar 20, 2015 at 9:22 AM, -Daniel- > wrote: > >> >> I used for example the CT dataset of the visible human projects. >> You can download the head-example: >> https://mri.radiology.uiowa.edu/VHDicom/VHMCT1mm/VHMCT1mm_Head.tar.gz >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerrick.Bivins at halliburton.com Fri Mar 20 12:03:40 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Fri, 20 Mar 2015 16:03:40 +0000 Subject: [vtkusers] vtkClipDataSet inconsistency Message-ID: Hi all, I'm trying to allow my user to define an ROI of an unstructured grid to display the cells. One thing to note here is that is that my datasets don't have point data just cell data. Not sure that matters but I see a lot of checking for point data in the "clip" classes. Anyway... Previously, I was using vtkExtractGeometry with a vtkBox and it worked fine. Now the request is to "cut" the cells instead of extracting entire cells. I've tried vtkClipPolyData, vtkBoxClipDataSet and vtkClipDataSet. These all gave various results from no output to something "crimped". vtkClipDataSet gave the closest to what I want but I can't get it to cut the cells in my dataset. Instead it looks like it attempts to smooth them out. This is the behavior using vtkBox and vtkPlanes as the implicit function. :( [cid:image002.jpg at 01D062FD.8689A540] The behavior that I really want I can replicate using a single vtkPlane as my implicit function. [cid:image006.jpg at 01D062FD.8689A540] All of this I've replicated in paraview so 2 questions 1. Is there some more details on the differences in functionality of vtkClipPolyData,vtkBoxClipDataSet and vtkClipDataSet? I get that vtkClipPolyData is for vtkPolyData input so I'm not looking for that. I'm wondering why I couldn't get this to work for my dataset. 2. Why does the output vary based on defining multiple planes via a box (vtkBox,vtkPlanes) or a single vtkPlane as the implicit function? Thanks for any input here. Gerrick ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 29137 bytes Desc: image002.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.jpg Type: image/jpeg Size: 32539 bytes Desc: image006.jpg URL: From ich_daniel at habmalnefrage.de Fri Mar 20 12:04:46 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Fri, 20 Mar 2015 09:04:46 -0700 (MST) Subject: [vtkusers] VTK+GDCM+JAVA error in CMake In-Reply-To: References: <1426686321646-5730940.post@n5.nabble.com> <1426856667072-5731043.post@n5.nabble.com> <1426861352316-5731049.post@n5.nabble.com> <1426864973085-5731051.post@n5.nabble.com> Message-ID: <1426867486246-5731056.post@n5.nabble.com> No I'm not sure. Then must be in an other class of me. Thanks again. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-GDCM-JAVA-error-in-CMake-tp5729490p5731056.html Sent from the VTK - Users mailing list archive at Nabble.com. From jimmigoo at gmail.com Fri Mar 20 12:38:18 2015 From: jimmigoo at gmail.com (jimmigoo) Date: Fri, 20 Mar 2015 09:38:18 -0700 (MST) Subject: [vtkusers] New pipeline in VTK 6.1.0 Message-ID: <1426869498717-5731057.post@n5.nabble.com> Hi everyone. I need your help to solve a problem I'm figuring out. I have a set of VTK classes written using 5.X version, with old pipeline (in details, I extracted this subset from Paraview VTKExtension code). I've upgraded VTK version from 5.x.x to 6.1.0. I've read the migration page, I tried to insert proper changes (in terms of SetInputData(), Update() and so on), but I still haven't reached my result. Could you help me explaining exactly how the new pipeline works (in terms of vtkDataSet and filters)? I'm looking for your reply Kind regards -- View this message in context: http://vtk.1045678.n5.nabble.com/New-pipeline-in-VTK-6-1-0-tp5731057.html Sent from the VTK - Users mailing list archive at Nabble.com. From siling1992 at gmail.com Sat Mar 21 02:11:40 2015 From: siling1992 at gmail.com (siling tan) Date: Sat, 21 Mar 2015 14:11:40 +0800 Subject: [vtkusers] vtkImageData deepCopy - memory Message-ID: Hi, Does vtkImageData deepCopy release previous memory before cloning again? Thank you. Si Ling -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.bogle at auckland.ac.nz Sat Mar 21 05:14:46 2015 From: g.bogle at auckland.ac.nz (Gib Bogle) Date: Sat, 21 Mar 2015 09:14:46 +0000 Subject: [vtkusers] [ITK] How itk and vtk images are stored In-Reply-To: References: Message-ID: An ITK image is stored in a contiguous block. I'm not sure about VTK - why not just try it? Gib ________________________________________ From: Community [community-bounces at itk.org] on behalf of Zein Salah [zeinsalah at gmail.com] Sent: Saturday, 21 March 2015 4:47 a.m. To: VTK Users; community at itk.org Subject: [ITK] How itk and vtk images are stored Hi, I am wandering about the way itk and vtk images are stored in memory. Is actually a contiguous block allocated for the image and the data is simply stored in slice order? In other words, if I have an itk and a vtk images of the same attributes (dimensions, spacings, pixel type, etc.), would a memcpy safely copy the contents of one to the other? Much thanks, Zeno _______________________________________________ Community mailing list Community at itk.org http://public.kitware.com/mailman/listinfo/community From mnour.ai at hotmail.com Sat Mar 21 09:49:34 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Sat, 21 Mar 2015 13:49:34 +0000 Subject: [vtkusers] vtkInteractorStyleTrackballActor behavior Message-ID: Hi all,I am using MS visual studio 2008 and vtk 5.10I have rendering window and set its InteractorStyle to vtkInteractorStyleTrackballActor:vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();iren->SetRenderWindow(renWin);vtkInteractorStyleTrackballActor* style = vtkInteractorStyleTrackballActor::New();iren->SetInteractorStyle(style);iren->Initialize();ren->ResetCamera();renWin->Render(); If my render window initialized with some actors, mouse interaction act like expected.If I add other actors, old actors mouse interaction still act as expected but added actors mouse interaction look like vtkInteractorStyleTrackballCamera (maybe by default):vtkActor* actorCopy = vtkActor::New();actorCopy->SetMapper(mapperCopy);actorCopy->SetPosition(newPos[0], newPos[1], newPos[2]);actorCopy->SetUserTransform(trn);ren->AddActor(actorCopy);renWin->Render();What should I do to make new actors mouse interaction look like vtkInteractorStyleTrackballActor?Thank you very much -------------- next part -------------- An HTML attachment was scrubbed... URL: From grosenkj at eos.ubc.ca Sat Mar 21 15:23:07 2015 From: grosenkj at eos.ubc.ca (=?UTF-8?Q?Gu=C3=B0ni_Karl_Rosenkj=C3=A6r?=) Date: Sat, 21 Mar 2015 12:23:07 -0700 Subject: [vtkusers] How to set number of labels in CubeAxesActor Message-ID: Hi all, I am using the CubeAxesActor with good results. But I want to be able to change the number of labels on each of the axis in the actor. In the detailed description in the docs this is a feature that can be set but I can for the life of me find how to do this. Does anybody know how to set the number of labels for the CubeAxesActor? I am using vtk 6.1.0 in python 2.7 on Ubuntu 14.02. Thanks, Gudni Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiva at sewingwitch.com Sun Mar 22 12:51:21 2015 From: shiva at sewingwitch.com (Kenneth Porter) Date: Sun, 22 Mar 2015 09:51:21 -0700 Subject: [vtkusers] Windows build script for multiple library options Message-ID: I need to build VTK as a statically-linked library for lots of different options: VC10/VC11/VC12 compilers, static/dynamic runtime linking, 32/64 bit, and debug/release. I've come up with the attached script to build all 24 variations. It takes quite awhile (ie. many hours). What can I do to optimize it? I'm not super-familiar with cmake so I expect I can fold some of the operations into a single command. The script assumes that the VTK environment variable points to the root of a tree where the source has been unpacked and where output binaries will be placed. I'm using \devel\VTK\6.2.0 for the current release. -------------- next part -------------- @rem create the VTK project files for vc10/vc11/vc12, static/dynamic CRT, 32/64 architecture @rem cmake isn't necessarily in the path so pass its location on the command line as 1st arg set cmake=%1 @if "%cmake%"=="" exit /B 1 @if "%vtk%"=="" exit /B 1 @echo cmake at %cmake% @echo vtk at %vtk% mkdir %vtk%\output\vs10 mkdir %vtk%\output\vs11 mkdir %vtk%\output\vs12 mkdir %vtk%\output\vs10_x64 mkdir %vtk%\output\vs11_x64 mkdir %vtk%\output\vs12_x64 mkdir %vtk%\output\vs10_static mkdir %vtk%\output\vs11_static mkdir %vtk%\output\vs12_static mkdir %vtk%\output\vs10_static_x64 mkdir %vtk%\output\vs11_static_x64 mkdir %vtk%\output\vs12_static_x64 cd %vtk%\output\vs12_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs12_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 12 Win64" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs11_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs11_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 11 Win64" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs10_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs10_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 10 Win64" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs12 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs12 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 12" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs11 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs11 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 11" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs10 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs10 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 10" ..\..\vtk-6.2.0 %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install @rem for static variations, replace /MD with /MT on CMakeCache.txt and re-run CMake to update project files cd %vtk%\output\vs12_static_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs12_static_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 12 Win64" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs11_static_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs11_static_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 11 Win64" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs10_static_x64 %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs10_static_x64 -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 10 Win64" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs12_static %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs12_static -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 12" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs11_static %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs11_static -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 11" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install cd %vtk%\output\vs10_static %cmake% -D CMAKE_DEBUG_POSTFIX="_d" -D CMAKE_INSTALL_PREFIX=%vtk%/vs10_static -D BUILD_SHARED_LIBS=OFF -D VTK_DEBUG_LEAKS=ON -G "Visual Studio 10" ..\..\vtk-6.2.0 perl -pi.bak -e "s|/MD|/MT|g" CMakeCache.txt %cmake% . %cmake% --build . --config Debug --target install %cmake% --build . --config Release --target install From mnour.ai at hotmail.com Mon Mar 23 03:39:56 2015 From: mnour.ai at hotmail.com (Muhammad Nour) Date: Mon, 23 Mar 2015 07:39:56 +0000 Subject: [vtkusers] vtkInteractorStyleTrackballActor behavior In-Reply-To: References: Message-ID: Dear all, I'm very sorry. There is no problem with vtkInteractorStyleTrackballActor class. My problem was caused by applying vtkTransform to new actors. It was resolved. Sorry again. From: mnour.ai at hotmail.com To: vtkusers at vtk.org Date: Sat, 21 Mar 2015 13:49:34 +0000 Subject: [vtkusers] vtkInteractorStyleTrackballActor behavior Hi all,I am using MS visual studio 2008 and vtk 5.10I have rendering window and set its InteractorStyle to vtkInteractorStyleTrackballActor:vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();iren->SetRenderWindow(renWin);vtkInteractorStyleTrackballActor* style = vtkInteractorStyleTrackballActor::New();iren->SetInteractorStyle(style);iren->Initialize();ren->ResetCamera();renWin->Render(); If my render window initialized with some actors, mouse interaction act like expected.If I add other actors, old actors mouse interaction still act as expected but added actors mouse interaction look like vtkInteractorStyleTrackballCamera (maybe by default):vtkActor* actorCopy = vtkActor::New();actorCopy->SetMapper(mapperCopy);actorCopy->SetPosition(newPos[0], newPos[1], newPos[2]);actorCopy->SetUserTransform(trn);ren->AddActor(actorCopy);renWin->Render();What should I do to make new actors mouse interaction look like vtkInteractorStyleTrackballActor?Thank you very much _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From godimarcovr at gmail.com Mon Mar 23 12:57:26 2015 From: godimarcovr at gmail.com (WeltMarco) Date: Mon, 23 Mar 2015 09:57:26 -0700 (MST) Subject: [vtkusers] Render pass problem with multi vtkRenderers on a window Message-ID: <1427129846431-5731111.post@n5.nabble.com> Hello everyone, i'm working on a project in which i will have a vtkWindow with the surface separated in 2 vtkRenderer. I am applying a vtkRenderPass to both vtkRenderers (a post processing pass) and, while i have no problem with the left vtkRenderer, i have problem drawing the right one. I would assume that in the case of multi renderers, the drawing would start on the vtkRenderer in which i applied the pass (meaning that (0,0) point would be bottom left of the right renderer for example). Instead, when i draw the right renderer i overwrite the left one! I already tried to render in another position (for example RenderQuad(width,2*width-1,0,height-1) for the right one, with the left one being RenderQuad(0,width-1,0,height-1)) Is there a solution for this? I based the code on the vtkGaussianBlurPass code, so my setup is very similar to that. Thank you and goodbye Marco Godi -- View this message in context: http://vtk.1045678.n5.nabble.com/Render-pass-problem-with-multi-vtkRenderers-on-a-window-tp5731111.html Sent from the VTK - Users mailing list archive at Nabble.com. From xpelaox at gmail.com Mon Mar 23 13:50:52 2015 From: xpelaox at gmail.com (ferluduena) Date: Mon, 23 Mar 2015 10:50:52 -0700 (MST) Subject: [vtkusers] How to change Points color Message-ID: <1427133052705-5731114.post@n5.nabble.com> Hi All, Hope you can help me, i'm sure there is a very simple and straightforward way of changing the color of a point cloud. First of all, this is my code: vtkPolyData pointsPolydata = new vtkPolyData(); pointsPolydata.SetPoints(Ptos); vtkVertexGlyphFilter vertexFilter = new vtkVertexGlyphFilter(); vertexFilter.SetInputConnection(pointsPolydata.GetProducerPort()); vertexFilter.Update(); vtkPolyData polydata = new vtkPolyData(); polydata.ShallowCopy(vertexFilter.GetOutput()); vtkPolyDataMapper mapper = vtkPolyDataMapper.New(); mapper.SetInput(polydata); vtkActor actor = new vtkActor(); actor.SetMapper(mapper); vtkRenderWindow RenderWindow = renderWindowControl2.RenderWindow; // get a reference to the renderer vtkRenderer renderer = RenderWindow.GetRenderers().GetFirstRenderer(); // set background color renderer.SetBackground(0.2, 0.3, 0.4); // add actor to the renderer renderer.AddActor(actor); // ensure all actors are visible (in this example not necessarely needed, // but in case more than one actor needs to be shown it might be a good idea) renderer.ResetCamera(); Ptos is a vtkPoints where i have a stored a cloud of points. This code draws what i've generated, in white. My idea is to insert several times different objects on a same Render Window, so i need it to be able of using a different color for each set of points. How can i achieve this? Thanks a lot in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-change-Points-color-tp5731114.html Sent from the VTK - Users mailing list archive at Nabble.com. From malyushytsky at gmail.com Mon Mar 23 19:16:57 2015 From: malyushytsky at gmail.com (Alex Malyushytsky) Date: Mon, 23 Mar 2015 16:16:57 -0700 Subject: [vtkusers] How to change Points color In-Reply-To: <1427133052705-5731114.post@n5.nabble.com> References: <1427133052705-5731114.post@n5.nabble.com> Message-ID: There are multiple ways to specify color. I suggest you to check examplex at: http://vtk.org/Wiki/VTK/Examples Just search for color on the page. You can for example to specify 1 color for your actor as below: actor->GetProperty()->SetColor(1,0,0); On Mon, Mar 23, 2015 at 10:50 AM, ferluduena wrote: > Hi All, > > Hope you can help me, i'm sure there is a very simple and straightforward > way of changing the color of a point cloud. First of all, this is my code: > > vtkPolyData pointsPolydata = new vtkPolyData(); > pointsPolydata.SetPoints(Ptos); > vtkVertexGlyphFilter vertexFilter = new vtkVertexGlyphFilter(); > > vertexFilter.SetInputConnection(pointsPolydata.GetProducerPort()); > vertexFilter.Update(); > vtkPolyData polydata = new vtkPolyData(); > polydata.ShallowCopy(vertexFilter.GetOutput()); > vtkPolyDataMapper mapper = vtkPolyDataMapper.New(); > mapper.SetInput(polydata); > vtkActor actor = new vtkActor(); > actor.SetMapper(mapper); > vtkRenderWindow RenderWindow = > renderWindowControl2.RenderWindow; > // get a reference to the renderer > vtkRenderer renderer = > RenderWindow.GetRenderers().GetFirstRenderer(); > // set background color > renderer.SetBackground(0.2, 0.3, 0.4); > // add actor to the renderer > renderer.AddActor(actor); > > // ensure all actors are visible (in this example not > necessarely needed, > // but in case more than one actor needs to be shown it might > be > a good idea) > > renderer.ResetCamera(); > > Ptos is a vtkPoints where i have a stored a cloud of points. > > This code draws what i've generated, in white. My idea is to insert several > times different objects on a same Render Window, so i need it to be able of > using a different color for each set of points. > > How can i achieve this? > > Thanks a lot in advance. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-change-Points-color-tp5731114.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xpelaox at gmail.com Mon Mar 23 20:20:07 2015 From: xpelaox at gmail.com (ferluduena) Date: Mon, 23 Mar 2015 17:20:07 -0700 (MST) Subject: [vtkusers] How to change Points color In-Reply-To: References: <1427133052705-5731114.post@n5.nabble.com> Message-ID: <1427156407883-5731127.post@n5.nabble.com> Thanks a lot! That was the answer that i was looking for. Al examples i found were too complex and i didn't manage to get the clue i needed! Regards! -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-change-Points-color-tp5731114p5731127.html Sent from the VTK - Users mailing list archive at Nabble.com. From ak at plaxis.com Tue Mar 24 04:10:11 2015 From: ak at plaxis.com (Ahmed Khaled) Date: Tue, 24 Mar 2015 09:10:11 +0100 Subject: [vtkusers] Fwd: Re: Extract Closed Polygons from vtkPolydata In-Reply-To: References: Message-ID: Hi, I have a 2D mesh as the grey one in the photo(the photo is attached) as an stl i used vtkFeatureEdges to extract and draw the green borders but i am wondering how can I extract the inner and the outer green rectangles in 2 different vtkPolydata instances. Is there any other way better than using vtkFeatureEdges? the vtp file from the output of the vtkFeatureEdges here is the code I wrote void renderPoint(double* point, double[3] color, float opacity, float point size) { //Rendering code ... } void main() { vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName("window.stl"); reader->Update(); auto polyData = reader->GetOutput(); vtkSmartPointer featureEdges = vtkSmartPointer::New(); featureEdges->SetInput(mFinitePolyData); featureEdges->BoundaryEdgesOn(); featureEdges->FeatureEdgesOff(); featureEdges->ManifoldEdgesOff(); featureEdges->NonManifoldEdgesOff(); featureEdges->ColoringOff(); featureEdges->Update(); mBoundaryPolyData = featureEdges->GetOutput(); for (int i = 0; i < 10; ++i) { renderPoint(mBoundaryPolyData->GetPoint(i), blue, 1.0, 5.0); } } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mesh.PNG Type: image/png Size: 6489 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: edges.vtp Type: application/octet-stream Size: 16316 bytes Desc: not available URL: From zeinsalah at gmail.com Tue Mar 24 05:04:10 2015 From: zeinsalah at gmail.com (Zein Salah) Date: Tue, 24 Mar 2015 10:04:10 +0100 Subject: [vtkusers] distance field of a contour Message-ID: Hi everybody, I am wondering if vtk has a filter for computing the distsnce field of a contour or a binary image? Something like the itk::DanielssonDistanceMapImageFilter? Much thanks, Zeno From ich_daniel at habmalnefrage.de Tue Mar 24 07:35:44 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Tue, 24 Mar 2015 04:35:44 -0700 (MST) Subject: [vtkusers] add more libs to vtkNativeLibrary? Message-ID: <1427196944911-5731135.post@n5.nabble.com> Hello, I have an issue with using of different libs: To load all the necessary libs, I used on the one hand a "vtkNativeLibrary.LoadAllNativeLibraries ()" and on the other hand "Runtime.getRuntime ().load(absolutePathOfMySeparateDLL)". This separate lib is required for a function (F). So that everything is working fine in my development environment. If I create an executable from my code, so everything is well loaded. But when testing the function F so crashes my program. I get a java.lang.UnsatisfiedLinkError, it seems as if the separate library not loaded. What happened here? Can I add more DLLs to the list of vtkNativeLibrary? -- View this message in context: http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Tue Mar 24 10:28:46 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 24 Mar 2015 07:28:46 -0700 Subject: [vtkusers] distance field of a contour In-Reply-To: References: Message-ID: There is: vtkImageEuclideanDistance and vtkImageCityBlockDistance for images and vtkDistancePolyDataFilter for PolyData. On Tue, Mar 24, 2015 at 2:04 AM, Zein Salah wrote: > Hi everybody, > > I am wondering if vtk has a filter for computing the distsnce field of > a contour or a binary image? Something like the > itk::DanielssonDistanceMapImageFilter? > > Much thanks, > Zeno > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From sebastien.jourdain at kitware.com Tue Mar 24 15:16:11 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 24 Mar 2015 14:16:11 -0500 Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: <1427196944911-5731135.post@n5.nabble.com> References: <1427196944911-5731135.post@n5.nabble.com> Message-ID: You can, but you need to make sure they are all in your path. Seb On Tue, Mar 24, 2015 at 6:35 AM, -Daniel- wrote: > Hello, > > I have an issue with using of different libs: > To load all the necessary libs, I used on the one hand a > "vtkNativeLibrary.LoadAllNativeLibraries ()" and on the other hand > "Runtime.getRuntime ().load(absolutePathOfMySeparateDLL)". This separate > lib > is required for a function (F). > So that everything is working fine in my development environment. > If I create an executable from my code, so everything is well loaded. But > when testing the function F so crashes my program. I get a > java.lang.UnsatisfiedLinkError, it seems as if the separate library not > loaded. > > What happened here? > Can I add more DLLs to the list of vtkNativeLibrary? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarcisio.fischer.cco at gmail.com Tue Mar 24 15:22:35 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Tue, 24 Mar 2015 16:22:35 -0300 Subject: [vtkusers] Polyhedrons and Algorithms Message-ID: I'm playing with vtk using unstructured grids composed with polyhedron elements. I used some algorithms such as vtkPolyDataNormals and vtkExtractUnstructuredGrid and they didn't seem to work with polyhedrons. (For example, take a look at http://www.paraview.org/Bug/bug_relationship_graph.php?bug_id=14594). Question is: How do I know which algorithms will work with polyhedrons? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tarcisio.fischer.cco at gmail.com Tue Mar 24 15:34:30 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Tue, 24 Mar 2015 16:34:30 -0300 Subject: [vtkusers] Polyhedrons and Algorithms In-Reply-To: References: Message-ID: Example code: http://pastebin.com/WELbtBSb 2015-03-24 16:22 GMT-03:00 Tarc?sio Fischer : > I'm playing with vtk using unstructured grids composed with polyhedron > elements. I used some algorithms such as vtkPolyDataNormals > and vtkExtractUnstructuredGrid and they didn't seem to work with > polyhedrons. (For example, take a look at > http://www.paraview.org/Bug/bug_relationship_graph.php?bug_id=14594). > > Question is: How do I know which algorithms will work with polyhedrons? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Mar 24 15:48:59 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 24 Mar 2015 15:48:59 -0400 Subject: [vtkusers] announce: VTK and ParaView training - April 21, Clifton Park NY Message-ID: Kitware is hosting a VTK-ParaView training course in Clifton Park, NY. The course will be held on April 21, 2015. Attendees will gain practical experience in both ParaView, a scalable application for general purpose scientific visualization, and The Visualization Toolkit (VTK), the underlying open-source library from which ParaView is built. The training mixes theory and application to guide attendees through a set of exercises, which are all given in the python programming language. Upon completion of this course, attendees will not only know how to use ParaView and VTK, but they will also know how to extend ParaView at run time, use it in concert with other Python capable applications, and run it in batch processing HPC contexts. Additional details and registration information are available on the Kitware website . The price of the course via early registration is $650. Early registration is available through April 15, 2015. The price of the course via regular registration is $815. In addition, Kitware will be hosting a ?Project Lifecycle Management with the CMake Family of Tools? training course on April 22, 2015. This course will also be hosted in Clifton Park. For more information, please visit http://www.kitware.com/products/protraining.php. 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 cory.quammen at kitware.com Tue Mar 24 18:24:31 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 24 Mar 2015 18:24:31 -0400 Subject: [vtkusers] Fixes for vtkCubeAxesActor In-Reply-To: <5509E66B.3080001@infolytica.com> References: <5509E66B.3080001@infolytica.com> Message-ID: Hi Serge, Thank you for your patch. I wonder if you might have better luck submitting your patch to the new GitLab review site for VTK. https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/README.md Thanks, Cory On Wed, Mar 18, 2015 at 4:56 PM, Serge Lalonde wrote: > Hello VTK Users, > > Attached is a modified version of vtkCubeAxesActor (based on the VTK 6.1 > source) that fixes 2 problems that I ran into: > > 1. There's an incorrect tolerance check for 0 in BuildLabels() that > would cause ugly numbers such as "8.173e-018" to be displayed instead of 0. > The new check properly uses a relative tolerance based on the extents of > the axis values. > 2. Implemented code to always respect the format specified by the user > that's set with Set*LabelFormat(). Previously, the user's format would get > overwritten in AdjustRange(). There's now an internal format (what was > there before) and a user format. The user format is NULL by default to > allow the internal format to be used but has precedence if set. This should > preserve previous functionality and there are no code changes required from > anyone using the class. > > I'd love to put it into the main Git repository, but the last time I > tried, I had tons of problems checking in. David DeMarle and I are still > working on it. > If anyone would like to check it in, please be my guest. > In the meantime, I hope that this will help others. > -- > www.infolytica.com > 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3 > (514) 849-8752 x236, Fax: (514) 849-4239 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From qinyang_1980 at qq.com Tue Mar 24 22:59:32 2015 From: qinyang_1980 at qq.com (qinyang_1980) Date: Tue, 24 Mar 2015 19:59:32 -0700 (MST) Subject: [vtkusers] The cross/coplane issue when draw polyline with mesh surface. Message-ID: <1427252372098-5731146.post@n5.nabble.com> Hello All, I'm a fresh member of vtk users. I meet an strange issue when draw polyline over the mesh surface. The polyline will be blocked somewhere by the mesh surface because they are coplanar. Please see the picture below: But if I open this file by using ParaView, it do not have this cross issue. But it will have some shift effect. Please see the below picture : Somebody can tell me how to resovle this cross issue ? My target is let the user see the polyline and mesh both clearly. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/The-cross-coplane-issue-when-draw-polyline-with-mesh-surface-tp5731146.html Sent from the VTK - Users mailing list archive at Nabble.com. From madaramh at gmail.com Wed Mar 25 04:05:51 2015 From: madaramh at gmail.com (madz) Date: Wed, 25 Mar 2015 01:05:51 -0700 (MST) Subject: [vtkusers] Get interpolated scalar values from Polydata In-Reply-To: <1426834462887-5731033.post@n5.nabble.com> References: <1426834462887-5731033.post@n5.nabble.com> Message-ID: <1427270751899-5731148.post@n5.nabble.com> This is what I have tried so far, int main( ) { vtkSmartPointer reader3 = vtkSmartPointer::New(); reader3->SetCaseFileName("C:\\Users\\Sutra03\\Desktop\\Ensight Files\\mycase\\CFX_001_ensight.case"); reader3->Update(); vtkSmartPointer compositeFilter = vtkSmartPointer::New(); compositeFilter->SetInputConnection(reader3->GetOutputPort()); compositeFilter->Update(); vtkSmartPointer cleanFilter = vtkSmartPointer::New(); cleanFilter->SetInput(compositeFilter->GetOutput()); cleanFilter->Update(); vtkSmartPointer source = cleanFilter->GetOutput(); vtkSmartPointer readerVTP = vtkSmartPointer::New(); readerVTP->SetFileName("C:\\Program Files (x86)\\Concepts\\CTAADS 8.2.0.194\\Files\\test.vtp");//test34567 readerVTP->Update(); vtkSmartPointer cleanFilter2 = vtkSmartPointer::New(); cleanFilter2->SetInput(readerVTP->GetOutput()); cleanFilter2->Update(); vtkSmartPointer tri= vtkSmartPointer::New(); tri->SetInput(cleanFilter2->GetOutput()); vtkSmartPointer input = tri->GetOutput(); vtkSmartPointer probe = vtkSmartPointer::New(); probe->SetInput(input); probe->SetSource(source); probe->Update(); vtkSmartPointer output = probe->GetPolyDataOutput(); vtkSmartPointer arr = output->GetPointData()->GetArray("Pressure"); output->GetPointData()->SetScalars(arr); vtkSmartPointer colorLookupTable = vtkSmartPointer::New(); colorLookupTable->SetTableRange(8969.34, 10595.8); double vmin,vmax; colorLookupTable->GetHueRange(vmin,vmax); if(vmin!=vmax) { colorLookupTable->SetHueRange(0.6667,0.0); } colorLookupTable->Build(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInput(output); mapper->SetScalarModeToUsePointData(); mapper->SetScalarRange(8969.34, 10595.8); mapper->SetLookupTable(colorLookupTable); mapper->Update(); vtkSmartPointer actor = vtkSmartPointer::New(); actor->GetProperty()->SetRepresentationToWireframe(); actor->GetProperty()->SetColor(1,1,1); actor->SetMapper(mapper); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); renderer->AddActor(actor); renderer->SetBackground(.3, .6, .3); // Background color green renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } It gives an output like the following image; The source looks like the following; It seems like most points of the output does not get an interpolated scalar value, How can I fix this? (The two polydata overlaps each other) -- View this message in context: http://vtk.1045678.n5.nabble.com/Get-interpolated-scalar-values-from-Polydata-tp5731033p5731148.html Sent from the VTK - Users mailing list archive at Nabble.com. From ich_daniel at habmalnefrage.de Wed Mar 25 04:40:40 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Wed, 25 Mar 2015 01:40:40 -0700 (MST) Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: References: <1427196944911-5731135.post@n5.nabble.com> Message-ID: <1427272840173-5731149.post@n5.nabble.com> Hello Sebastien, all my dlls are located in one path. However, only 129 dlls be loaded by "LoadAllNativeLibraries" . In the vtkNativeLibrary class to be loaded libraries are listed. How or where can I add additional dlls (in sourcecode) now? -- View this message in context: http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135p5731149.html Sent from the VTK - Users mailing list archive at Nabble.com. From odre_89 at hotmail.com Wed Mar 25 08:23:48 2015 From: odre_89 at hotmail.com (AI) Date: Wed, 25 Mar 2015 05:23:48 -0700 (MST) Subject: [vtkusers] =?utf-8?q?Problem_with_python_wrapping=E2=80=8F?= Message-ID: <1427286228659-5731150.post@n5.nabble.com> Hello, I need to wrap a vtk filter in python. I compiled VTK with the option pyhon_wrapping ON. I also set the variable PYTHON_PATH in my .bashrc : export PYTHONPATH=~/software/vtk/VTK-6.1.0/Wrapping/Python:$VTK_DIR/lib When I try to run cmake for my project, I get the following error : Unknown CMake command "VTK_WRAP_PYTHON3" What do I miss ? Thank you, Audrey -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-python-wrapping-tp5731150.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Wed Mar 25 08:46:05 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 25 Mar 2015 06:46:05 -0600 Subject: [vtkusers] Problem with python wrapping Message-ID: On Wed, Mar 25, 2015 at 6:23 AM, AI wrote: > Hello, > > I need to wrap a vtk filter in python. > > I compiled VTK with the option pyhon_wrapping ON. I also set the variable > PYTHON_PATH in my .bashrc : > export PYTHONPATH=~/software/vtk/VTK-6.1.0/Wrapping/Python:$VTK_DIR/lib > > When I try to run cmake for my project, I get the following error : > Unknown CMake command "VTK_WRAP_PYTHON3" > Add this to your cmake file before you call vtk_wrap_python3: set(VTK_WRAP_PYTHON_FIND_LIBS ON) include(${VTK_CMAKE_DIR}/vtkWrapPython.cmake) - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From odre_89 at hotmail.com Wed Mar 25 09:12:17 2015 From: odre_89 at hotmail.com (AI) Date: Wed, 25 Mar 2015 06:12:17 -0700 (MST) Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: Message-ID: <1427289137146-5731152.post@n5.nabble.com> Hi David, Thank you very much for your answer. Now I was able to run cmake, but there is no .so file in the build/bin of my project. I must miss something else in my CMakeLists.txt... Where can I find an exemple of this king of CMakeLists ? Audrey -- View this message in context: http://vtk.1045678.n5.nabble.com/Re-Problem-with-python-wrapping-tp5731151p5731152.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Wed Mar 25 09:38:30 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 25 Mar 2015 07:38:30 -0600 Subject: [vtkusers] Problem with python wrapping In-Reply-To: <1427289137146-5731152.post@n5.nabble.com> References: <1427289137146-5731152.post@n5.nabble.com> Message-ID: On Wed, Mar 25, 2015 at 7:12 AM, AI wrote: > Hi David, > > Thank you very much for your answer. > Now I was able to run cmake, but there is no .so file in the build/bin of > my > project. I must miss something else in my CMakeLists.txt... > You are probably missing the add_library() commands, e.g.: add_library(${LIB_PYTHON_NAME} ${LIB_PYTHON_SRCS} ${LIB_PYTHON_EXTRA_SRCS}) add_library(${MODULE_PYTHON_NAME} MODULE ${MODULE_PYTHON_NAME}Init.cxx) There are a lot of other things that are needed as well, for example here is one of my own CMakeLists files that generates python wrappers: https://github.com/dgobbi/vtk-dicom/blob/master/Source/CMakeLists.txt#L163 Perhaps someone else has found an easier way to do this... - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Wed Mar 25 10:14:57 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 25 Mar 2015 08:14:57 -0600 Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: <1427272840173-5731149.post@n5.nabble.com> References: <1427196944911-5731135.post@n5.nabble.com> <1427272840173-5731149.post@n5.nabble.com> Message-ID: Hi Daniel, Sorry but I don't understand the question. If you try to register new library inside vtkNativeLibrary, that will be impossible. That class is actually an Enum that get automatically populated by CMake base on the list of module found at build time. Seb On Wed, Mar 25, 2015 at 2:40 AM, -Daniel- wrote: > Hello Sebastien, > > all my dlls are located in one path. However, only 129 dlls be loaded by > "LoadAllNativeLibraries" . > In the vtkNativeLibrary class to be loaded libraries are listed. How or > where can I add additional dlls (in sourcecode) now? > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135p5731149.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Wed Mar 25 11:31:54 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Wed, 25 Mar 2015 08:31:54 -0700 (MST) Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: References: <1427196944911-5731135.post@n5.nabble.com> <1427272840173-5731149.post@n5.nabble.com> Message-ID: <1427297514729-5731156.post@n5.nabble.com> Yes that's it. I've seen it that the class is an enum. But where finds cmake the list of module or rather how can I add something to the list? -- View this message in context: http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135p5731156.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Wed Mar 25 11:38:16 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 25 Mar 2015 09:38:16 -0600 Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: <1427297514729-5731156.post@n5.nabble.com> References: <1427196944911-5731135.post@n5.nabble.com> <1427272840173-5731149.post@n5.nabble.com> <1427297514729-5731156.post@n5.nabble.com> Message-ID: By adding a module to VTK, and building it with vtk. CMake should automatically at it within that list. Seb On Wed, Mar 25, 2015 at 9:31 AM, -Daniel- wrote: > Yes that's it. > I've seen it that the class is an enum. But where finds cmake the list of > module or rather how can I add something to the list? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135p5731156.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.hutton at gmail.com Wed Mar 25 12:41:10 2015 From: tim.hutton at gmail.com (Tim Hutton) Date: Wed, 25 Mar 2015 16:41:10 +0000 Subject: [vtkusers] downloads page links broken? Message-ID: Hello, All the download links at http://www.vtk.org/download/ are returning 404 for me. e.g. http://www.vtk.org/files/release/6.2/VTK-6.2.0.zip Temporary problem or something to be fixed? Tim -- Tim Hutton - http://www.sq3.org.uk - http://profiles.google.com/tim.hutton/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Wed Mar 25 12:46:46 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 25 Mar 2015 12:46:46 -0400 Subject: [vtkusers] downloads page links broken? In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 12:41 PM, Tim Hutton wrote: > > Hello, > > All the download links at http://www.vtk.org/download/ are returning 404 for me. e.g. http://www.vtk.org/files/release/6.2/VTK-6.2.0.zip > > Temporary problem or something to be fixed? > I see that too, we are looking into it. It should hopefully be resolved soon. Marcus From marcus.hanwell at kitware.com Wed Mar 25 12:50:36 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 25 Mar 2015 12:50:36 -0400 Subject: [vtkusers] downloads page links broken? In-Reply-To: References: Message-ID: On Wed, Mar 25, 2015 at 12:46 PM, Marcus D. Hanwell wrote: > On Wed, Mar 25, 2015 at 12:41 PM, Tim Hutton wrote: >> >> Hello, >> >> All the download links at http://www.vtk.org/download/ are returning 404 for me. e.g. http://www.vtk.org/files/release/6.2/VTK-6.2.0.zip >> >> Temporary problem or something to be fixed? >> > I see that too, we are looking into it. It should hopefully be resolved soon. > It should be working again now, please let us know if you are still having problems accessing links. Thanks, Marcus From sean at rogue-research.com Wed Mar 25 16:25:56 2015 From: sean at rogue-research.com (Sean McBride) Date: Wed, 25 Mar 2015 16:25:56 -0400 Subject: [vtkusers] [vtk-developers] RFC: Compiler support, removing hacks for old compilers In-Reply-To: References: <20150316180926.1146005295@mail.rogue-research.com> <89947a5813a84dc5842498245df50dd6@ES05AMSNLNT.srn.sandia.gov> <20150319193909.1656031800@mail.rogue-research.com> Message-ID: <20150325202556.1274353100@mail.rogue-research.com> On Thu, 19 Mar 2015 16:01:05 -0400, Shawn Waldon said: >FWIW, ParaView has a superbuild nightly binaries machine that runs debian 4 >(gcc 4.1.2). We may be updating to a more recent debian soon though. Hi all, So here's my patch that removes support for gcc 4.0 and older and MSVC++ 8.0 / Visual Studio 2005 and older: Would be great if any of you with old compilers could try it... 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 tarcisio.fischer.cco at gmail.com Thu Mar 26 00:19:19 2015 From: tarcisio.fischer.cco at gmail.com (=?UTF-8?Q?Tarc=C3=ADsio_Fischer?=) Date: Thu, 26 Mar 2015 01:19:19 -0300 Subject: [vtkusers] Odd vtk normals calculation behavior In-Reply-To: References: Message-ID: I think I found my mistake. tl;dr: Avoid passing vtkPolyhedrons polydatas directly to algorithms. Copy the data before instead. The problem was in this part of the code: 1. cell = unstructured_grid.GetCell(0) 2. normals = vtk.vtkPolyDataNormals() 3. normals.SetInputData(cell.GetPolyData()) The cell variable here is not a vtkCell, but a vtkPolyhedron. The problem is that by doing this downcast it loses information when trying to copy the vtkPolyData with a DeepCopy(polys) (this is done inside the normals algorithm), I think this is because by construction all vtkPolyhedron uses the first element of the ID as the number of elements to come, and the last element has not been correctly allocated. It is easy to reproduce the DeepCopy bug. But lesson learned: Never get the PolyData directly from an vtkPolyhedron. 2015-03-05 18:20 GMT-03:00 Tarc?sio Fischer : > Hello. > > I'm trying to get the normals of my 3D cube (a VTK_POLYHEDRON cell) with > vtk6.1 in python. > I know that there is many questions about the normals orientation, but > this is not the case. The problem is that it seems one of the normals is > completely wrong, as I will show in my example code. > To try to keep it simple, I'll separate the code in three parts: > > 1- Only the part where I think the problem is: > http://pastebin.com/2SW5q4n2 > > 2- The full code so that everyone can run: > http://pastebin.com/DH3ei1XD > > 3- Extended code with some internals exposed (with odd results!): > (Take a look at Trying to view data internals) > http://pastebin.com/BYEkhiqc > > Can someone help me? What am I missing here? > Thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From safna.royal10 at gmail.com Thu Mar 26 04:13:48 2015 From: safna.royal10 at gmail.com (safna) Date: Thu, 26 Mar 2015 01:13:48 -0700 (MST) Subject: [vtkusers] 2d slice of 3d array In-Reply-To: <8d24c3e01003160915j5df8f935j2fa90272e3f11a9@mail.gmail.com> References: <8d24c3e01003160915j5df8f935j2fa90272e3f11a9@mail.gmail.com> Message-ID: <1427357628712-5731172.post@n5.nabble.com> Can someone tell me how to do 3-D reconstruction with mutiple slices of image -- View this message in context: http://vtk.1045678.n5.nabble.com/2d-slice-of-3d-array-tp1247654p5731172.html Sent from the VTK - Users mailing list archive at Nabble.com. From matimontg at gmail.com Thu Mar 26 09:50:47 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 26 Mar 2015 10:50:47 -0300 Subject: [vtkusers] 2d slice of 3d array In-Reply-To: <1427357628712-5731172.post@n5.nabble.com> References: <8d24c3e01003160915j5df8f935j2fa90272e3f11a9@mail.gmail.com> <1427357628712-5731172.post@n5.nabble.com> Message-ID: Hi Safna, what are you using? VTK in C#? On Thu, Mar 26, 2015 at 5:13 AM, safna wrote: > Can someone tell me how to do 3-D reconstruction with mutiple slices of > image > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/2d-slice-of-3d-array-tp1247654p5731172.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Mar 26 11:00:21 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 26 Mar 2015 11:00:21 -0400 Subject: [vtkusers] Crash in vtkImageMapToColors when upgrading 6.1->6.2 In-Reply-To: References: Message-ID: Christian, A fix for this has been merged in VTK master. http://www.vtk.org/gitweb?p=VTK.git;a=commit;h=dac748aedd7ffdc5aca6d555e74c668451ef4772 Thanks, Cory On Mon, Mar 16, 2015 at 3:23 AM, Christian Askeland < christian.askeland at gmail.com> wrote: > Hi David and Cory, > > Thank you for looking into this. I'll use the workaround until the next > release. > > -Christian > > On Sun, Mar 15, 2015 at 5:40 AM, Cory Quammen > wrote: > >> David and Christian, >> >> I have posted a proposed fix for this at >> http://review.source.kitware.com/#/t/5576/ >> >> Your reviews and testing are appreciated. >> >> Thanks, >> Cory >> >> On Fri, Mar 13, 2015 at 8:37 AM, David Gobbi >> wrote: >> > Hi Christian, >> > >> > I noticed this same issue a few days ago and filed a bug report: >> > http://www.vtk.org/Bug/view.php?id=15365 >> > >> > Until this bug is fixed, here is a workaround: >> > >> > lut->SetNumberOfTableValues(numberOfTableValues); >> > lut->GetTable()->Resize(numberOfTableValues + 3); >> > >> > Basically, the crash occurs because Resize() is being called by >> > multiple threads inside vtkImageMapToColors, so the workaround >> > is to call Resize() beforehand. >> > >> > - David >> > >> > >> > On Fri, Mar 13, 2015 at 6:11 AM, Christian Askeland >> > wrote: >> >> >> >> Hi all, >> >> >> >> I recently upgraded from vtk 6.1.0 to 6.2.0. Most of my rather large >> >> vtk-based application runs as before, but I get a crash in >> >> vtkImageMapToColors. I am testing on OSX10.8, but my jenkins indicates >> that >> >> this also happens on Ubuntu 14.04. >> >> >> >> The vtkLookupTable that is input to the mapper has a custom >> >> NumberOfTableValues, and a little digging has shown that setting this >> value >> >> > 256 (the default) causes the crash. >> >> >> >> Here is a distilled version of the problem: >> >> >> >> typedef vtkSmartPointer vtkImageDataPtr; >> >> typedef vtkSmartPointer vtkLookupTablePtr; >> >> typedef vtkSmartPointer vtkImageMapToColorsPtr; >> >> >> >> // create simple image data >> >> vtkImageDataPtr image = vtkImageDataPtr::New(); >> >> image->SetExtent(0, 2, 0, 2, 0, 2); // 3x3x3 image >> >> image->AllocateScalars(VTK_UNSIGNED_CHAR, 1); >> >> >> >> // create simple lut data with a custom table size >> >> int numberOfTableValues = 257; // anything above 256 (default) fails >> >> vtkLookupTablePtr lut = vtkLookupTablePtr::New(); >> >> lut->SetNumberOfTableValues(numberOfTableValues); >> >> lut->SetTableRange(0, numberOfTableValues - 1); >> >> lut->Build(); >> >> >> >> // send through a vtkImageMapToColors >> >> vtkImageMapToColorsPtr mapper = vtkImageMapToColorsPtr::New(); >> >> mapper->SetOutputFormatToRGBA(); >> >> mapper->SetInputData(image); >> >> mapper->SetLookupTable(lut); >> >> mapper->Update(); // crashes deep inside >> >> vtkLookupTable::MapScalarsThroughTable2 >> >> >> >> The call stack in the crashing thread is >> >> >> >> abort >> >> free >> >> vtkDataArrayTemplate::ResizeAndExtend(long long) >> >> vtkDataArrayTemplate::Resize(long long) >> >> void (anonymous namespace)::vtkLookupTableMapData(...) >> >> vtkLookupTable::MapScalarsThroughTable2(void*, unsigned char*, int, >> int, >> >> int, int) >> >> vtkImageMapToColors::ThreadedRequestData(...) >> >> vtkThreadedImageAlgorithmThreadedExecute(...) >> >> >> >> Even more digging shows that calling >> >> vtkLookupTable::MapScalarsThroughTable explicitly after creating the >> lut >> >> removes the crash: >> >> >> >> unsigned char input = 0; >> >> lut->MapScalarsThroughTable2(&input, &input, VTK_UNSIGNED_CHAR, 1, 1, >> 1); >> >> >> >> I have not started digging into the vtk code itself yet. >> >> >> >> I would appreciate if anyone have an idea of what is wrong here. I can >> >> file a bug report if noone have a solution. >> >> >> > >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Thu Mar 26 11:02:34 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Thu, 26 Mar 2015 11:02:34 -0400 Subject: [vtkusers] 32 bit compiling Message-ID: <55141F8A.7080601@jslengineeringsoftware.com> Hello all, I have successfully been using VTK in 64 bit mode. Now, I need to compile a Java program in 32 bit. I started with changing options in CMake, but must be doing something wrong. Visual studio is set to 32 bit release mode, but gives lots of errors. Does anyone have a a list of the CMake settings for 32 bit or suggestions? Attached are images of my current settings. Thanks in advance, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cagifcfc.png Type: image/png Size: 57354 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: baeigcie.png Type: image/png Size: 51769 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fgdjaaag.png Type: image/png Size: 45699 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: eehciehi.png Type: image/png Size: 21026 bytes Desc: not available URL: From dkxls23 at gmail.com Thu Mar 26 11:25:36 2015 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Thu, 26 Mar 2015 17:25:36 +0200 Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: <1427289137146-5731152.post@n5.nabble.com> Message-ID: <551424F0.1050202@gmail.com> Hi, I have also tried to get the python wrapping working, but failed at various levels. A good starting point is the VTK wiki: http://www.vtk.org/Wiki/index.php?title=VTK/Python_Wrapping_FAQ But the wiki is missing already the information to add > SET(VTK_WRAP_PYTHON_FIND_LIBS ON) > INCLUDE("${VTK_CMAKE_DIR}/vtkWrapPython.cmake") Anyway, I figured that one out eventually by grepping the source code, and I also find my *.so files, but when I try to load the module I get an "undefined symbol" error: > import vtkMyFilterPython > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > in () > ----> 1 import vtkMyFilterPython > > ImportError: ./vtkMyFilterPython.so: : real_initvtkMyFilterPython If somebody has any hint, I would be happy to learn more, though it's not a pressing matter for me. Thanks David for the link to the CMakeLists.txt in the vtk-dicom repo. Apparently the python wrapping is a bit more involved. I will have to take a closer look at that one. Best regards, Armin On 03/25/2015 03:38 PM, David Gobbi wrote: > On Wed, Mar 25, 2015 at 7:12 AM, AI > wrote: > > Hi David, > > Thank you very much for your answer. > Now I was able to run cmake, but there is no .so file in the > build/bin of my > project. I must miss something else in my CMakeLists.txt... > > > You are probably missing the add_library() commands, e.g.: > add_library(${LIB_PYTHON_NAME} ${LIB_PYTHON_SRCS} > ${LIB_PYTHON_EXTRA_SRCS}) > add_library(${MODULE_PYTHON_NAME} MODULE ${MODULE_PYTHON_NAME}Init.cxx) > > There are a lot of other things that are needed as well, for example > here is one of my own CMakeLists files that generates python wrappers: > https://github.com/dgobbi/vtk-dicom/blob/master/Source/CMakeLists.txt#L163 > > Perhaps someone else has found an easier way to do this... > > - David > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From karsten.tausche at student.hpi.de Thu Mar 26 11:37:28 2015 From: karsten.tausche at student.hpi.de (Karsten Tausche) Date: Thu, 26 Mar 2015 16:37:28 +0100 Subject: [vtkusers] 32 bit compiling In-Reply-To: <55141F8A.7080601@jslengineeringsoftware.com> References: <55141F8A.7080601@jslengineeringsoftware.com> Message-ID: <551427B8.20808@student.hpi.de> Hi, instead of changing the platform in Visual Studio, you need to setup your CMake build with a generator for a 64bit compiler. You can see your current generator next to the Configure and Generate buttons in the CMake gui. To change it, you need to rebuild the whole project (delete cache, configure, build; or use a second build tree instead). When configuring a clean build tree, you should get a dialog like in the attached image. Make sure to select a 64 compiler there. Hope that helps, Karsten On 2015-03-26 4:02 PM, James Labiak wrote: > Hello all, > I have successfully been using VTK in 64 bit mode. Now, I need to compile a Java > program in 32 bit. I started with changing options in CMake, but must be doing > something wrong. Visual studio is set to 32 bit release mode, but gives lots of > errors. Does anyone have a a list of the CMake settings for 32 bit or > suggestions? Attached are images of my current settings. > Thanks in advance, > Jim > > > > > > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- A non-text attachment was scrubbed... Name: cmake generator.png Type: image/png Size: 34126 bytes Desc: not available URL: From david.gobbi at gmail.com Thu Mar 26 11:57:51 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 26 Mar 2015 09:57:51 -0600 Subject: [vtkusers] Problem with python wrapping In-Reply-To: <551424F0.1050202@gmail.com> References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> Message-ID: On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz wrote: > Hi, > > I have also tried to get the python wrapping working, but failed at > various levels. > A good starting point is the VTK wiki: > http://www.vtk.org/Wiki/index.php?title=VTK/Python_Wrapping_FAQ > > But the wiki is missing already the information to add > >> SET(VTK_WRAP_PYTHON_FIND_LIBS ON) >> INCLUDE("${VTK_CMAKE_DIR}/vtkWrapPython.cmake") >> > That wiki page was written for VTK developers, so it doesn't give much useful info for people who are building their own libraries, unfortunately. Anyway, I figured that one out eventually by grepping the source code, and > I also find my *.so files, but when I try to load the module I get an > "undefined symbol" error: > >> import vtkMyFilterPython >> ------------------------------------------------------------ >> --------------- >> ImportError Traceback (most recent call >> last) >> in () >> ----> 1 import vtkMyFilterPython >> >> ImportError: ./vtkMyFilterPython.so: : real_initvtkMyFilterPython >> > > > If somebody has any hint, I would be happy to learn more, though it's not > a pressing matter for me. The undefined symbol error probably means that your python module doesn't include vtkMyFilterPythonInit.cxx, which is one of the files generated by vtk_wrap_python3(). Your cmake should include the Init.cxx as a source file when it builds the module, e.g.: add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx) Or, if that still doesn't fix the problem, then there might be an error in your add_library call for vtkMyFilterPythonD. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Mar 26 12:07:24 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 26 Mar 2015 10:07:24 -0600 Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> Message-ID: On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi wrote: > On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz > wrote: > >> >>> ImportError: ./vtkMyFilterPython.so: : real_initvtkMyFilterPython >> >> > The undefined symbol error probably means that your python module doesn't > include vtkMyFilterPythonInit.cxx, which is one of the files generated by > vtk_wrap_python3(). > > Your cmake should include the Init.cxx as a source file when it builds the > module, e.g.: > > add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx) > > Or, if that still doesn't fix the problem, then there might be an error in > your add_library call for vtkMyFilterPythonD. > Oh, and the following lines are also necessary, but only if you build a static library: set_target_properties(vtkMyFilter PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(vtkMyFilterPythonD PROPERTIES POSITION_INDEPENDENT_CODE ON) - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Thu Mar 26 12:29:44 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Thu, 26 Mar 2015 09:29:44 -0700 (MST) Subject: [vtkusers] add more libs to vtkNativeLibrary? In-Reply-To: References: <1427196944911-5731135.post@n5.nabble.com> <1427272840173-5731149.post@n5.nabble.com> <1427297514729-5731156.post@n5.nabble.com> Message-ID: <1427387384127-5731183.post@n5.nabble.com> Finally it is solved! Now it works outside the development environment! The above dll's were all in the correct path. However, in the MANIFEST.MF were missing JAR files for the dll's. That's all. -- View this message in context: http://vtk.1045678.n5.nabble.com/add-more-libs-to-vtkNativeLibrary-tp5731135p5731183.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Mar 26 12:44:26 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 26 Mar 2015 10:44:26 -0600 Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> Message-ID: On Thu, Mar 26, 2015 at 10:07 AM, David Gobbi wrote: > > > On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi > wrote: > >> On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz >> wrote: >> >>> >>>> ImportError: ./vtkMyFilterPython.so: : real_initvtkMyFilterPython >>> >>> >> The undefined symbol error probably means that your python module doesn't >> include vtkMyFilterPythonInit.cxx, which is one of the files generated by >> vtk_wrap_python3(). >> >> Your cmake should include the Init.cxx as a source file when it builds >> the module, e.g.: >> >> add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx) >> >> Or, if that still doesn't fix the problem, then there might be an error >> in your add_library call for vtkMyFilterPythonD. >> > > Oh, and the following lines are also necessary, but only if you build a > static library: > > set_target_properties(vtkMyFilter PROPERTIES POSITION_INDEPENDENT_CODE ON) > set_target_properties(vtkMyFilterPythonD PROPERTIES > POSITION_INDEPENDENT_CODE ON) > I forgot the the line that is probably the most likely to fix the real_initvtkMyFilterPython symbol error: target_link_libraries(vtkMyFilterPython vtkMyFilterPythonD) In summary, a lot of cmake code is needed to get stuff wrapped. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From JMelnyk at pile.com Thu Mar 26 13:17:03 2015 From: JMelnyk at pile.com (Joseph Melnyk) Date: Thu, 26 Mar 2015 17:17:03 +0000 Subject: [vtkusers] Bug Tracking Broken? Message-ID: <8841579C9694CA4196BE4138B6E2B4BF183422D1@pdi-mail1.pdi.local> I was checking out an issue a couple days ago in the VTK Bug Tracker and now it appears to be unavailable, or moved perhaps. The issue was previously found at http://www.vtk.org/Bug/view.php?id=15384 but that gets redirected to a CMake issue now, instead of a VTK one. And now when I go to http://www.vtk.org/Bug/view_all_bug_page.php all I see are CMake and CDash issues. I'm not logged in, so it's not a settings issue with me I don't think. Any thoughts? Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Mar 26 13:33:11 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 26 Mar 2015 13:33:11 -0400 Subject: [vtkusers] Bug Tracking Broken? In-Reply-To: <8841579C9694CA4196BE4138B6E2B4BF183422D1@pdi-mail1.pdi.local> References: <8841579C9694CA4196BE4138B6E2B4BF183422D1@pdi-mail1.pdi.local> Message-ID: This was caused by of the VTK web page switchover that happened yesterday. I'll get it fixed. Thanks for the report. FYI: We are thinking about moving all bug reports into to gitlab. This will bring them closer to the developers' regular work flow and help ensure that bugs are considered in a more timely fashion. It also brings contributed patches closer to the regular work flow and thus makes them easier to take up. Thanks for your patience while we make these transitions. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Mar 26, 2015 at 1:17 PM, Joseph Melnyk wrote: > I was checking out an issue a couple days ago in the VTK Bug Tracker and > now it appears to be unavailable, or moved perhaps. The issue was > previously found at http://www.vtk.org/Bug/view.php?id=15384 but that > gets redirected to a CMake issue now, instead of a VTK one. And now when I > go to http://www.vtk.org/Bug/view_all_bug_page.php all I see are CMake > and CDash issues. I?m not logged in, so it?s not a settings issue with me > I don?t think. Any thoughts? > > > > Joe > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Thu Mar 26 13:54:48 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Thu, 26 Mar 2015 13:54:48 -0400 Subject: [vtkusers] 32 bit compiling In-Reply-To: <55141F8A.7080601@jslengineeringsoftware.com> References: <55141F8A.7080601@jslengineeringsoftware.com> Message-ID: <551447E8.6020206@jslengineeringsoftware.com> Hi, Based on the message below, I tried running CMake with all default settings except that I use Java wrapper. Then tried to build in VS 2013 64 bit except that it is set for 32 bit in the configuration manager since I need a 32 bit Java program at the end of the day. This also caused a lot of errors in VS. Separately, would the VTK dlls be 32 or 64 bit? They are in the 64 bit Win7 Program Files folder (C:\Program Files\VTK\natives-Windows-AMD64) when compiling the normal way of 64 bit. Thanks, Jim ------------------------------ Message: 2 Date: Thu, 26 Mar 2015 16:37:28 +0100 From: Karsten Tausche To: Subject: Re: [vtkusers] 32 bit compiling Message-ID:<551427B8.20808 at student.hpi.de> Content-Type: text/plain; charset="windows-1252" Hi, instead of changing the platform in Visual Studio, you need to setup your CMake build with a generator for a 64bit compiler. You can see your current generator next to the Configure and Generate buttons in the CMake gui. To change it, you need to rebuild the whole project (delete cache, configure, build; or use a second build tree instead). When configuring a clean build tree, you should get a dialog like in the attached image. Make sure to select a 64 compiler there. Hope that helps, Karsten On 3/26/2015 11:02 AM, James Labiak wrote: > Hello all, > I have successfully been using VTK in 64 bit mode. Now, I need to > compile a Java program in 32 bit. I started with changing options in > CMake, but must be doing something wrong. Visual studio is set to 32 > bit release mode, but gives lots of errors. Does anyone have a a list > of the CMake settings for 32 bit or suggestions? Attached are images > of my current settings. > Thanks in advance, > Jim > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten.tausche at student.hpi.de Thu Mar 26 15:31:37 2015 From: karsten.tausche at student.hpi.de (Karsten Tausche) Date: Thu, 26 Mar 2015 20:31:37 +0100 Subject: [vtkusers] 32 bit compiling In-Reply-To: <551447E8.6020206@jslengineeringsoftware.com> References: <55141F8A.7080601@jslengineeringsoftware.com> <551447E8.6020206@jslengineeringsoftware.com> Message-ID: <55145E99.3010602@student.hpi.de> Hi, I just realized that I selected the 64bit compiler in the screenshot. You have to select the 32bit version there (e.g., "Visual Studio 12 2013", without the "Win64" suffix). Switching to 32bit in the configuration manager always leads to build errors, as this somehow breaks the configuration done by CMake. (At least i didn't find a working way to switch between 32/64 in VS, for solutions that are generated by CMake). Karsten On 2015-03-26 6:54 PM, James Labiak wrote: > Hi, > Based on the message below, I tried running CMake with all default > settings except that I use Java wrapper. Then tried to build in VS 2013 > 64 bit except that it is set for 32 bit in the configuration manager > since I need a 32 bit Java program at the end of the day. This also > caused a lot of errors in VS. Separately, would the VTK dlls be 32 or 64 > bit? They are in the 64 bit Win7 Program Files folder (C:\Program > Files\VTK\natives-Windows-AMD64) when compiling the normal way of 64 bit. > Thanks, > Jim > > ------------------------------ > > Message: 2 > Date: Thu, 26 Mar 2015 16:37:28 +0100 > From: Karsten Tausche > To: > Subject: Re: [vtkusers] 32 bit compiling > Message-ID:<551427B8.20808 at student.hpi.de> > Content-Type: text/plain; charset="windows-1252" > > Hi, > > instead of changing the platform in Visual Studio, you need to setup > your CMake build with a generator for a 64bit compiler. You can see your > current generator next to the Configure and Generate buttons in the > CMake gui. To change it, you need to rebuild the whole project (delete > cache, configure, build; or use a second build tree instead). > When configuring a clean build tree, you should get a dialog like in the > attached image. Make sure to select a 64 compiler there. > > Hope that helps, > Karsten > > > > On 3/26/2015 11:02 AM, James Labiak wrote: >> Hello all, >> I have successfully been using VTK in 64 bit mode. Now, I need to >> compile a Java program in 32 bit. I started with changing options in >> CMake, but must be doing something wrong. Visual studio is set to 32 >> bit release mode, but gives lots of errors. Does anyone have a a list >> of the CMake settings for 32 bit or suggestions? Attached are images >> of my current settings. >> Thanks in advance, >> Jim >> >> >> >> >> >> >> >> > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From ben.boeckel at kitware.com Thu Mar 26 16:42:27 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Thu, 26 Mar 2015 16:42:27 -0400 Subject: [vtkusers] 32 bit compiling In-Reply-To: <55145E99.3010602@student.hpi.de> References: <55141F8A.7080601@jslengineeringsoftware.com> <551447E8.6020206@jslengineeringsoftware.com> <55145E99.3010602@student.hpi.de> Message-ID: <20150326204227.GA3939@megas.kitwarein.com> On Thu, Mar 26, 2015 at 20:31:37 +0100, Karsten Tausche wrote: > I just realized that I selected the 64bit compiler in the screenshot. > You have to select the 32bit version there (e.g., "Visual Studio 12 > 2013", without the "Win64" suffix). > Switching to 32bit in the configuration manager always leads to build > errors, as this somehow breaks the configuration done by CMake. (At > least i didn't find a working way to switch between 32/64 in VS, for > solutions that are generated by CMake). Some of the cache variables probably stick around and aren't cleared out when doing this (like CMAKE_SIZE_OF_VOIDP). Since any number of cache variables might need to be invalidated, it is best to just use a clean build tree. --Ben From greenb3ret at gmail.com Thu Mar 26 23:52:28 2015 From: greenb3ret at gmail.com (Benjamin Hopfer) Date: Fri, 27 Mar 2015 11:52:28 +0800 Subject: [vtkusers] 32 bit compiling In-Reply-To: <20150326204227.GA3939@megas.kitwarein.com> References: <55141F8A.7080601@jslengineeringsoftware.com> <551447E8.6020206@jslengineeringsoftware.com> <55145E99.3010602@student.hpi.de> <20150326204227.GA3939@megas.kitwarein.com> Message-ID: I run CMake into two different output folders, one for 32bit with the 32bit generator and one for 64bit with the 64bit generator. Works fine for me. It also allows for much easier 32/64bit-specific configuration, because you don't need to mess with Visual Studio configuration files. No idea if links to private blogs are allowed in here (Tell me otherwise). I wrote a blog entry on this: http://benjaminhopfer.com/2014/08/24/qt-5-vtk-6-and-visual-studio-development-environment/ Kind Regards, Benjamin On Fri, Mar 27, 2015 at 4:42 AM, Ben Boeckel wrote: > On Thu, Mar 26, 2015 at 20:31:37 +0100, Karsten Tausche wrote: > > I just realized that I selected the 64bit compiler in the screenshot. > > You have to select the 32bit version there (e.g., "Visual Studio 12 > > 2013", without the "Win64" suffix). > > Switching to 32bit in the configuration manager always leads to build > > errors, as this somehow breaks the configuration done by CMake. (At > > least i didn't find a working way to switch between 32/64 in VS, for > > solutions that are generated by CMake). > > Some of the cache variables probably stick around and aren't cleared out > when doing this (like CMAKE_SIZE_OF_VOIDP). Since any number of cache > variables might need to be invalidated, it is best to just use a clean > build tree. > > --Ben > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From madaramh at gmail.com Fri Mar 27 08:20:36 2015 From: madaramh at gmail.com (madz) Date: Fri, 27 Mar 2015 05:20:36 -0700 (MST) Subject: [vtkusers] Replicate paraview cutter Message-ID: <1427458836097-5731200.post@n5.nabble.com> I have a polydata as shown in the below image The points of the polydata is concentrated towards the boundary. Using paraview I have sliced the polydata in the middle. The cut section is shown as below; As you can see, the slicing has generated additional points (parallel to points in surface above and below?) in the cut surface. However when I use the vtkCutter myself I only get boundary points as shown below, What is the process to get an output similar to the paraview one. I would appreciate any input. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Replicate-paraview-cutter-tp5731200.html Sent from the VTK - Users mailing list archive at Nabble.com. From wumengda at gmail.com Fri Mar 27 09:07:36 2015 From: wumengda at gmail.com (Wei Xiong) Date: Fri, 27 Mar 2015 14:07:36 +0100 Subject: [vtkusers] from: Wei Xiong Message-ID: Good evening vtkusers http://beta.unitsstorage.com/mode.php?wife=g6m8n7vr7nkuyzd wumengda at gmail.com Sent from my iPhone From dkxls23 at gmail.com Fri Mar 27 11:37:53 2015 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Fri, 27 Mar 2015 17:37:53 +0200 Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> Message-ID: <55157951.30509@gmail.com> Thanks a lot for for your help David! I added some of the missing statements in a quick-and-dirty trial and eventually got rid of the real_initvtkMyFilterPython symbol error. However, I immediately ran into a new symbol error. So I'm still missing some linking targets... I will have a closer look at how it's done in VTK-dicom and see if I can figure out what I'm missing. I should probably also mention that these were my first steps compiling a VTK filter and I could be missing some things on that end. So far I always used boost for my C++/python coding directly. Initially I hope the python wrapping in VTK would be as easy as with boost, but there really seems to be much more CMAKE code required than I thought. -Armin On 03/26/2015 06:44 PM, David Gobbi wrote: > On Thu, Mar 26, 2015 at 10:07 AM, David Gobbi > wrote: > > > > On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi > wrote: > > On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz > > wrote: > > > ImportError: ./vtkMyFilterPython.so: : > real_initvtkMyFilterPython > > > The undefined symbol error probably means that your python > module doesn't include vtkMyFilterPythonInit.cxx, which is one > of the files generated by vtk_wrap_python3(). > > Your cmake should include the Init.cxx as a source file when it > builds the module, e.g.: > > add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx) > > Or, if that still doesn't fix the problem, then there might be > an error in your add_library call for vtkMyFilterPythonD. > > > Oh, and the following lines are also necessary, but only if you > build a static library: > > set_target_properties(vtkMyFilter PROPERTIES > POSITION_INDEPENDENT_CODE ON) > set_target_properties(vtkMyFilterPythonD PROPERTIES > POSITION_INDEPENDENT_CODE ON) > > > I forgot the the line that is probably the most likely to fix the > real_initvtkMyFilterPython symbol error: > > target_link_libraries(vtkMyFilterPython vtkMyFilterPythonD) > > In summary, a lot of cmake code is needed to get stuff wrapped. > > - David > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From david.gobbi at gmail.com Fri Mar 27 12:05:16 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 27 Mar 2015 10:05:16 -0600 Subject: [vtkusers] Problem with python wrapping In-Reply-To: <55157951.30509@gmail.com> References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> <55157951.30509@gmail.com> Message-ID: Hi Armin, Wrapping classes within the VTK source tree itself is pretty trivial. Someone should write some cmake macros to make it equally trivial for users to wrap their own classes (I'd do it myself, but I've already got way too many projects on my plate). - David On Fri, Mar 27, 2015 at 9:37 AM, Armin Wehrfritz wrote: > Thanks a lot for for your help David! > > I added some of the missing statements in a quick-and-dirty trial and > eventually got rid of the real_initvtkMyFilterPython symbol error. > > However, I immediately ran into a new symbol error. So I'm still missing > some linking targets... > > I will have a closer look at how it's done in VTK-dicom and see if I can > figure out what I'm missing. > > I should probably also mention that these were my first steps compiling a > VTK filter and I could be missing some things on that end. So far I always > used boost for my C++/python coding directly. > > Initially I hope the python wrapping in VTK would be as easy as with > boost, but there really seems to be much more CMAKE code required than I > thought. > > -Armin > > > > > > > On 03/26/2015 06:44 PM, David Gobbi wrote: > >> On Thu, Mar 26, 2015 at 10:07 AM, David Gobbi > > wrote: >> >> >> >> On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi > > wrote: >> >> On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz >> > wrote: >> >> >> ImportError: ./vtkMyFilterPython.so: : >> real_initvtkMyFilterPython >> >> >> The undefined symbol error probably means that your python >> module doesn't include vtkMyFilterPythonInit.cxx, which is one >> of the files generated by vtk_wrap_python3(). >> >> Your cmake should include the Init.cxx as a source file when it >> builds the module, e.g.: >> >> add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx) >> >> Or, if that still doesn't fix the problem, then there might be >> an error in your add_library call for vtkMyFilterPythonD. >> >> >> Oh, and the following lines are also necessary, but only if you >> build a static library: >> >> set_target_properties(vtkMyFilter PROPERTIES >> POSITION_INDEPENDENT_CODE ON) >> set_target_properties(vtkMyFilterPythonD PROPERTIES >> POSITION_INDEPENDENT_CODE ON) >> >> >> I forgot the the line that is probably the most likely to fix the >> real_initvtkMyFilterPython symbol error: >> >> target_link_libraries(vtkMyFilterPython vtkMyFilterPythonD) >> >> In summary, a lot of cmake code is needed to get stuff wrapped. >> >> - David >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/ >> opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Sat Mar 28 14:03:56 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sat, 28 Mar 2015 11:03:56 -0700 (MST) Subject: [vtkusers] scalar values for each point of a vtkPolyData Message-ID: <1427565836427-5731212.post@n5.nabble.com> Hi all, I have the scalar range of a polydata object. Now, I need the scalar values for each point of the polydata. How can I do? Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/scalar-values-for-each-point-of-a-vtkPolyData-tp5731212.html Sent from the VTK - Users mailing list archive at Nabble.com. From julien.aubert.mail at gmail.com Sun Mar 29 04:15:14 2015 From: julien.aubert.mail at gmail.com (Julien Aubert) Date: Sun, 29 Mar 2015 10:15:14 +0200 Subject: [vtkusers] What options to set to build vtkRenderingVolumeAMR? Message-ID: <535E9007-8E65-4147-9DDA-F03060F83966@gmail.com> I'm on OS X 10.10, used homebrew to install vtk 6.2. After trying that, also downloaded the 6.2 tar file and compiled it myself. I tried searching VTK docs and build code but I am unable to figure out how to make vtkRenderingVolumeAMR being built. What option need to be set? or is it some optional dependency that needs to be available? (It was not too clear to me which group options would enable which libraries). Julien From josp.jorge at gmail.com Sun Mar 29 12:10:23 2015 From: josp.jorge at gmail.com (Jorge Perez) Date: Sun, 29 Mar 2015 18:10:23 +0200 Subject: [vtkusers] scalar values for each point of a vtkPolyData In-Reply-To: <1427565836427-5731212.post@n5.nabble.com> References: <1427565836427-5731212.post@n5.nabble.com> Message-ID: Hi, this example shows what you need http://www.paraview.org/Wiki/VTK/Examples/Cxx/PolyData/GetMiscPointData HTH 2015-03-28 19:03 GMT+01:00 -Daniel- : > Hi all, > > I have the scalar range of a polydata object. Now, I need the scalar values > for each point of the polydata. How can I do? > > Thanks in advance. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/scalar-values-for-each-point-of-a-vtkPolyData-tp5731212.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qinyang_1980 at qq.com Sun Mar 29 21:15:49 2015 From: qinyang_1980 at qq.com (qinyang_1980) Date: Sun, 29 Mar 2015 18:15:49 -0700 (MST) Subject: [vtkusers] The cross/coplane issue when draw polyline with mesh surface. In-Reply-To: <1427252372098-5731146.post@n5.nabble.com> References: <1427252372098-5731146.post@n5.nabble.com> Message-ID: <1427678149640-5731218.post@n5.nabble.com> Who know how to fix this issue ? -- View this message in context: http://vtk.1045678.n5.nabble.com/The-cross-coplane-issue-when-draw-polyline-with-mesh-surface-tp5731146p5731218.html Sent from the VTK - Users mailing list archive at Nabble.com. From madaramh at gmail.com Mon Mar 30 04:44:06 2015 From: madaramh at gmail.com (madz) Date: Mon, 30 Mar 2015 01:44:06 -0700 (MST) Subject: [vtkusers] Replicate paraview cutter In-Reply-To: <1427458836097-5731200.post@n5.nabble.com> References: <1427458836097-5731200.post@n5.nabble.com> Message-ID: <1427705046969-5731220.post@n5.nabble.com> Does anyone know the class in Paraview which contains the code for this? So I can look it up in Github? -- View this message in context: http://vtk.1045678.n5.nabble.com/Replicate-paraview-cutter-tp5731200p5731220.html Sent from the VTK - Users mailing list archive at Nabble.com. From ale.nonis at libero.it Mon Mar 30 10:29:56 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Mon, 30 Mar 2015 16:29:56 +0200 (CEST) Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! Message-ID: <2030527347.8696391427725796559.JavaMail.httpd@webmail-49.iol.local> Hi,i modified my CMakeList, and now is: cmake_minimum_required(VERSION 2.8)project(Cleaner)# Include the directory itself as a path to include directoriesset(CMAKE_INCLUDE_CURRENT_DIR ON)include_directories (${beauty_SOURCE_DIR}/cgvgvtklib ${beauty_SOURCE_DIR}/facelib)link_directories ( ${beauty_BINARY_DIR}/cgvgvtklib ${beauty_BINARY_DIRS}/facelib) # For a large number of source files you can create it in a simpler way# using file() function:#file(GLOB ptsetter_SOURCES *.cxx) # Create an executable file called helloworld from sources:add_executable(Cleaner cleaner.cxx) TARGET_LINK_LIBRARIES(Cleaner ${VTK_LIBRARIES}) TARGET_LINK_LIBRARIES(Cleaner vtkHybrid cgvgvtklib) But the results it's always the same. Thank you.Alessandro ----Messaggio originale---- Da: dave.demarle at kitware.com Data: 20/03/2015 13.14 A: "John Drescher" Cc: "ale.nonis at libero.it", "vtkusers at vtk.org" Ogg: Re: [vtkusers] Help Me!! vtk compile error!! Adding to John and Jon's good advice, also read:http://www.vtk.org/Wiki/VTK/Build_System_MigrationFor some of the details of using 6.x as compared to 5.x. On Friday, March 20, 2015, John Drescher wrote: > Ok thanks i try later. > However with VTK5.6 the project works but with my VTK6 there are this > problems. > That is expected since their are more libraries with vtk6. John _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- 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 juanprietob at gmail.com Mon Mar 30 12:50:37 2015 From: juanprietob at gmail.com (Juan Carlos Prieto) Date: Mon, 30 Mar 2015 12:50:37 -0400 Subject: [vtkusers] Fwd: Compiling v6.2.0 In-Reply-To: References: Message-ID: Dear all, I updated VTK to the release version 6.2.0. I am on OS X 10.9.5 Mavericks I have an error when compiling VTK: *./VTK/Common/Core/vtkSMPThreadLocal.h:43:7: **error: **redefinition of 'vtkSMPThreadLocal'* class vtkSMPThreadLocal * ^* *./VTK/bin/Common/Core/vtkSMPThreadLocal.h:44:7: **note: *previous definition is here class vtkSMPThreadLocal 1 error generated. make[2]: *** [Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedCompositeDataPipeline.cxx.o] Error 1 make[1]: *** [Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all] Error 2 make: *** [all] Error 2 The definition on the pre compiler clause Souce file: vtkSMPThreadLocal.h:36 "#ifndef __vtkSMPThreadLocal_h #define __vtkSMPThreadLocal_h" Is different from the one in the binary folder Binary directory file: vtkSMPThreadLocal.h:36 #ifndef vtkSMPThreadLocal_h #define vtkSMPThreadLocal_h This is probably due to a wrong CMAKE macro conversion? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Mon Mar 30 12:54:37 2015 From: sean at rogue-research.com (Sean McBride) Date: Mon, 30 Mar 2015 12:54:37 -0400 Subject: [vtkusers] Fwd: Compiling v6.2.0 In-Reply-To: References: Message-ID: <20150330165437.1050933588@mail.rogue-research.com> On Mon, 30 Mar 2015 12:50:37 -0400, Juan Carlos Prieto said: >The definition on the pre compiler clause > >Souce file: vtkSMPThreadLocal.h:36 > >"#ifndef __vtkSMPThreadLocal_h > >#define __vtkSMPThreadLocal_h" > > >Is different from the one in the binary folder > >Binary directory file: vtkSMPThreadLocal.h:36 > >#ifndef vtkSMPThreadLocal_h > >#define vtkSMPThreadLocal_h There was a change between 6.1 and 6.2 where the header guards were renamed to not start with double underscore. But I've just grep'ed the entire codebase and "__vtkSMPThreadLocal_h" no longer appears... you must have an old file lying around somewhere. Try a clean build... 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 bill.lorensen at gmail.com Mon Mar 30 13:35:16 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 30 Mar 2015 10:35:16 -0700 Subject: [vtkusers] R: Re: Help Me!! vtk compile error!! In-Reply-To: <2030527347.8696391427725796559.JavaMail.httpd@webmail-49.iol.local> References: <2030527347.8696391427725796559.JavaMail.httpd@webmail-49.iol.local> Message-ID: Remove this line: TARGET_LINK_LIBRARIES(Cleaner vtkHybrid cgvgvtklib) On Mon, Mar 30, 2015 at 7:29 AM, ale.nonis--- via vtkusers wrote: > Hi, > i modified my CMakeList, and now is: > > cmake_minimum_required(VERSION 2.8) > project(Cleaner) > # Include the directory itself as a path to include directories > set(CMAKE_INCLUDE_CURRENT_DIR ON) > include_directories (${beauty_SOURCE_DIR}/cgvgvtklib > ${beauty_SOURCE_DIR}/facelib) > link_directories ( ${beauty_BINARY_DIR}/cgvgvtklib > ${beauty_BINARY_DIRS}/facelib) > > # For a large number of source files you can create it in a simpler way > # using file() function: > #file(GLOB ptsetter_SOURCES *.cxx) > > # Create an executable file called helloworld from sources: > add_executable(Cleaner cleaner.cxx) > > TARGET_LINK_LIBRARIES(Cleaner ${VTK_LIBRARIES}) > > > TARGET_LINK_LIBRARIES(Cleaner vtkHybrid cgvgvtklib) > > But the results it's always the same. > > Thank you. > Alessandro > > ----Messaggio originale---- > Da: dave.demarle at kitware.com > Data: 20/03/2015 13.14 > A: "John Drescher" > Cc: "ale.nonis at libero.it", > "vtkusers at vtk.org" > Ogg: Re: [vtkusers] Help Me!! vtk compile error!! > > > Adding to John and Jon's good advice, also read: > http://www.vtk.org/Wiki/VTK/Build_System_Migration > For some of the details of using 6.x as compared to 5.x. > > On Friday, March 20, 2015, John Drescher wrote: >> >> > Ok thanks i try later. >> > However with VTK5.6 the project works but with my VTK6 there are this >> > problems. >> > >> >> That is expected since their are more libraries with vtk6. >> >> John >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > > > -- > 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 > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From pbouttefroy at nvidia.com Mon Mar 30 15:08:01 2015 From: pbouttefroy at nvidia.com (phiphou) Date: Mon, 30 Mar 2015 12:08:01 -0700 (MST) Subject: [vtkusers] VTK-6.1 and Visual Studio 2013 on VirtualBox Message-ID: <1427742481277-5731233.post@n5.nabble.com> Hi everyone, I have an issue building VTK-6.1 with Visual Studio 2013 on my VirtualBox (Win7 64 bits). I have had no issues with building VTK-6.1 with VS2013 on a non-virtualized machine. It looks to me that the CMake configuration provides an invalid state for the .sln. CMake configures and generates a solution without any problem (see below). However, VS2013 will complain about not finding iostream.h (for example), which does not exist since the VC folder contains the new ANSI format (iostream). Digging a little, I find that #vtksys_IOS_USE_ANSI is set to 0 in the Configure.hxx file. On a non-virtualized machine it is set to 1 (which is the value that I expected). Below are: (i) the cmake output; (ii) the first few compilation errors from VS 2013 (formatted). Any help or pointers to a solution would be greatly appreciated. Thanks, Philippe //-----------------------------------CMake output------------------------------------------------ The C compiler identification is MSVC 18.0.31101.0 The CXX compiler identification is MSVC 18.0.31101.0 Check for working C compiler using: Visual Studio 12 2013 Check for working C compiler using: Visual Studio 12 2013 -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler using: Visual Studio 12 2013 Check for working CXX compiler using: Visual Studio 12 2013 -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Performing Test Support for 64 bit file systems Performing Test Support for 64 bit file systems - Failed Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON - Success Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian Looking for include file pthread.h Looking for include file pthread.h - not found Found Threads: TRUE Looking for C++ include iostream Looking for C++ include iostream - found Check for STD namespace Check for STD namespace - found Check for ANSI scope Check for ANSI scope - found Check for sstream Check for sstream - found Check size of int Check size of int - done Check size of long Check size of long - done Check size of char Check size of char - done Check size of short Check size of short - done Check size of float Check size of float - done Check size of double Check size of double - done Check size of long long Check size of long long - done Check size of __int64 Check size of __int64 - done Check size of uintptr_t Check size of uintptr_t - done Checking whether long and __int64 are the same type Checking whether long and __int64 are the same type -- no Checking whether long long and __int64 are the same type Checking whether long long and __int64 are the same type -- yes Checking signedness of char Checking signedness of char -- signed Checking support for full template specialization syntax Checking support for full template specialization syntax -- yes Checking support for C++ explicit template instantiation Checking support for C++ explicit template instantiation -- yes Checking ANSI streams end-of-file bug level Checking ANSI streams end-of-file bug level - 1 Checking if ostream supports long long Checking if ostream supports long long -- yes Checking if istream supports long long Checking if istream supports long long -- yes Looking for getsockname in socket Looking for getsockname in socket - not found Checking for getsockname with socklen_t Checking for getsockname with socklen_t -- no Looking for SO_REUSEADDR Looking for SO_REUSEADDR - not found CMake Warning (dev) at IO/Movie/module.cmake:1 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/vtkModuleMacros.cmake:764 (include) CMake/vtkModuleMacros.cmake:789 (vtk_add_module) CMake/vtkModuleMacros.cmake:798 (vtk_module_glob) CMake/vtkModuleTop.cmake:28 (vtk_module_search) CMakeLists.txt:362 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at ThirdParty/oggtheora/module.cmake:1 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/vtkModuleMacros.cmake:764 (include) CMake/vtkModuleMacros.cmake:789 (vtk_add_module) CMake/vtkModuleMacros.cmake:798 (vtk_module_glob) CMake/vtkModuleTop.cmake:28 (vtk_module_search) CMakeLists.txt:362 (include) This warning is for project developers. Use -Wno-dev to suppress it. Group StandAlone modules: vtkChartsCore;vtkCommonComputationalGeometry;vtkCommonCore;vtkCommonExecutionModel;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkDomainsChemistry;vtkFiltersAMR;vtkFiltersCore;vtkFiltersExtraction;vtkFiltersFlowPaths;vtkFiltersGeneral;vtkFiltersGeneric;vtkFiltersGeometry;vtkFiltersHybrid;vtkFiltersHyperTree;vtkFiltersImaging;vtkFiltersModeling;vtkFiltersParallel;vtkFiltersParallelImaging;vtkFiltersProgrammable;vtkFiltersSelection;vtkFiltersSMP;vtkFiltersSources;vtkFiltersStatistics;vtkFiltersTexture;vtkFiltersVerdict;vtkImagingColor;vtkImagingCore;vtkImagingFourier;vtkImagingGeneral;vtkImagingHybrid;vtkImagingMath;vtkImagingMorphological;vtkImagingSources;vtkImagingStatistics;vtkImagingStencil;vtkInfovisCore;vtkInfovisLayout;vtkIOAMR;vtkIOCore;vtkIOEnSight;vtkIOExodus;vtkIOExport;vtkIOGeometry;vtkIOImage;vtkIOImport;vtkIOInfovis;vtkIOLegacy;vtkIOLSDyna;vtkIOMINC;vtkIOMovie;vtkIONetCDF;vtkIOParallel;vtkIOPLY;vtkIOSQL;vtkIOVideo;vtkIOXML;vtkIOXMLParser;vtkParallelCore Group Imaging modules: vtkFiltersImaging;vtkImagingColor;vtkImagingFourier;vtkImagingGeneral;vtkImagingHybrid;vtkImagingMath;vtkImagingMorphological;vtkImagingSources;vtkImagingStatistics;vtkImagingStencil;vtkInteractionImage;vtkRenderingImage Group MPI modules: vtkFiltersParallelGeometry;vtkFiltersParallelMPI;vtkIOMPIImage;vtkIOMPIParallel;vtkIOParallelNetCDF;vtkParallelMPI Group Rendering modules: vtkGeovisCore;vtkInteractionImage;vtkInteractionStyle;vtkInteractionWidgets;vtkRenderingAnnotation;vtkRenderingContext2D;vtkRenderingCore;vtkRenderingFreeType;vtkRenderingFreeTypeOpenGL;vtkRenderingImage;vtkRenderingLabel;vtkRenderingLIC;vtkRenderingLOD;vtkRenderingOpenGL;vtkRenderingVolume;vtkRenderingVolumeAMR;vtkRenderingVolumeOpenGL;vtkViewsContext2D;vtkViewsCore;vtkViewsGeovis;vtkViewsInfovis Group Qt modules: vtkGUISupportQt;vtkGUISupportQtOpenGL;vtkGUISupportQtSQL;vtkGUISupportQtWebkit;vtkRenderingQt;vtkViewsQt Group Tk modules: vtkRenderingTk Group Views modules: vtkViewsContext2D;vtkViewsGeovis Group Web modules: vtkWebApplications;vtkWebCore;vtkWebInstall;vtkWebJavaScript;vtkWebPython;vtkWebGLExporter Enabled 110 modules: * vtkChartsCore, needed by 2 modules: VTK_Group_StandAlone vtkViewsInfovis * vtkCommonColor, needed by 2 modules: vtkChartsCore vtkViewsInfovis * vtkCommonComputationalGeometry, needed by 5 modules: VTK_Group_StandAlone vtkFiltersGeneral vtkFiltersSelection vtkFiltersSources vtkImagingStencil * vtkCommonCore, needed by 7 modules: VTK_Group_StandAlone vtkCommonMath vtkCommonSystem vtkCommonTransforms vtkIOExport vtkIOImport vtkParallelCore * vtkCommonDataModel, needed by 15 modules: vtkCommonColor vtkCommonComputationalGeometry vtkCommonExecutionModel vtkDomainsChemistry vtkIOCore vtkIOGeometry vtkIOImage vtkIOInfovis vtkIOLegacy vtkIOMovie vtkIONetCDF vtkIOXMLParser vtkImagingMath vtkInfovisCore vtkRenderingContext2D * vtkCommonExecutionModel, needed by 19 modules: VTK_Group_StandAlone vtkFiltersCore vtkFiltersExtraction vtkFiltersFlowPaths vtkFiltersProgrammable vtkFiltersStatistics vtkFiltersVerdict vtkIOCore vtkIOEnSight vtkIOImage vtkIOLSDyna vtkIOMINC vtkIOMovie vtkIOPLY vtkIOVideo vtkImagingCore vtkImagingMath vtkInfovisLayout vtkRenderingCore * vtkCommonMath, needed by 9 modules: vtkCommonComputationalGeometry vtkCommonDataModel vtkCommonMisc vtkCommonTransforms vtkFiltersCore vtkFiltersStatistics vtkIOImage vtkImagingCore vtkRenderingContext2D * vtkCommonMisc, needed by 12 modules: VTK_Group_StandAlone vtkCommonDataModel vtkCommonExecutionModel vtkFiltersCore vtkFiltersStatistics vtkIOCore vtkIOGeometry vtkIOImage vtkIOInfovis vtkIOLegacy vtkIOPLY vtkIOXMLParser * vtkCommonSystem, needed by 13 modules: VTK_Group_StandAlone vtkCommonComputationalGeometry vtkCommonDataModel vtkFiltersCore vtkIOGeometry vtkIOImage vtkIOInfovis vtkIOLegacy vtkIOMovie vtkIONetCDF vtkIOXMLParser vtkImagingCore vtkInfovisCore * vtkCommonTransforms, needed by 8 modules: VTK_Group_StandAlone vtkCommonDataModel vtkFiltersCore vtkFiltersStatistics vtkIOImage vtkImagingCore vtkRenderingContext2D vtkRenderingCore * vtkDICOMParser, needed by vtkIOImage. * vtkDomainsChemistry, needed by VTK_Group_StandAlone. * vtkFiltersAMR, needed by 3 modules: VTK_Group_StandAlone vtkIOAMR vtkRenderingVolumeAMR * vtkFiltersCore, needed by 7 modules: VTK_Group_StandAlone vtkFiltersExtraction vtkFiltersGeneral vtkFiltersGeneric vtkFiltersGeometry vtkFiltersSMP vtkFiltersSelection * vtkFiltersExtraction, needed by 6 modules: VTK_Group_StandAlone vtkFiltersParallel vtkInfovisCore vtkInteractionStyle vtkRenderingCore vtkRenderingLabel * vtkFiltersFlowPaths, needed by VTK_Group_StandAlone. * vtkFiltersGeneral, needed by 13 modules: VTK_Group_StandAlone vtkFiltersAMR vtkFiltersExtraction vtkFiltersFlowPaths vtkFiltersHybrid vtkFiltersHyperTree vtkFiltersModeling vtkFiltersSMP vtkFiltersSources vtkFiltersTexture vtkIOExodus vtkInfovisCore vtkRenderingVolumeOpenGL * vtkFiltersGeneric, needed by VTK_Group_StandAlone. * vtkFiltersGeometry, needed by 5 modules: VTK_Group_StandAlone vtkFiltersParallel vtkIOExport vtkRenderingCore vtkViewsInfovis * vtkFiltersHybrid, needed by 3 modules: VTK_Group_StandAlone vtkIOMINC vtkInteractionWidgets * vtkFiltersHyperTree, needed by VTK_Group_StandAlone. * vtkFiltersImaging, needed by 3 modules: VTK_Group_StandAlone vtkFiltersParallelImaging vtkViewsInfovis * vtkFiltersModeling, needed by 6 modules: VTK_Group_StandAlone vtkFiltersParallel vtkInfovisLayout vtkInteractionWidgets vtkRenderingLOD vtkViewsInfovis * vtkFiltersParallel, needed by 3 modules: VTK_Group_StandAlone vtkFiltersParallelImaging vtkIOParallel * vtkFiltersParallelImaging, needed by VTK_Group_StandAlone. * vtkFiltersProgrammable, needed by VTK_Group_StandAlone. * vtkFiltersSMP, needed by VTK_Group_StandAlone. * vtkFiltersSelection, needed by VTK_Group_StandAlone. * vtkFiltersSources, needed by 10 modules: VTK_Group_StandAlone vtkDomainsChemistry vtkFiltersFlowPaths vtkFiltersGeneric vtkFiltersModeling vtkIOImport vtkInteractionStyle vtkRenderingAnnotation vtkRenderingCore vtkRenderingVolumeOpenGL * vtkFiltersStatistics, needed by 3 modules: VTK_Group_StandAlone vtkFiltersExtraction vtkFiltersImaging * vtkFiltersTexture, needed by VTK_Group_StandAlone. * vtkFiltersVerdict, needed by VTK_Group_StandAlone. * vtkGeovisCore, needed by 2 modules: VTK_Group_Rendering vtkViewsGeovis * vtkIOAMR, needed by VTK_Group_StandAlone. * vtkIOCore, needed by 10 modules: VTK_Group_StandAlone vtkFiltersFlowPaths vtkIOGeometry vtkIOImage vtkIOInfovis vtkIOLegacy vtkIOMovie vtkIONetCDF vtkIOSQL vtkIOXMLParser * vtkIOEnSight, needed by VTK_Group_StandAlone. * vtkIOExodus, needed by VTK_Group_StandAlone. * vtkIOExport, needed by VTK_Group_StandAlone. * vtkIOGeometry, needed by 4 modules: VTK_Group_StandAlone vtkIOMINC vtkIOPLY vtkIOXML * vtkIOImage, needed by 5 modules: VTK_Group_StandAlone vtkIOExport vtkIOMINC vtkIOParallel vtkImagingHybrid * vtkIOImport, needed by VTK_Group_StandAlone. * vtkIOInfovis, needed by VTK_Group_StandAlone. * vtkIOLSDyna, needed by VTK_Group_StandAlone. * vtkIOLegacy, needed by 5 modules: VTK_Group_StandAlone vtkFiltersParallelImaging vtkIOInfovis vtkParallelCore vtkRenderingLIC * vtkIOMINC, needed by VTK_Group_StandAlone. * vtkIOMovie, needed by VTK_Group_StandAlone. * vtkIONetCDF, needed by 2 modules: VTK_Group_StandAlone vtkIOParallel * vtkIOPLY, needed by VTK_Group_StandAlone. * vtkIOParallel, needed by VTK_Group_StandAlone. * vtkIOSQL, needed by VTK_Group_StandAlone. * vtkIOVideo, needed by VTK_Group_StandAlone. * vtkIOXML, needed by 7 modules: VTK_Group_StandAlone vtkDomainsChemistry vtkGeovisCore vtkIOExodus vtkIOLSDyna vtkIOParallel vtkRenderingLIC * vtkIOXMLParser, needed by 2 modules: VTK_Group_StandAlone vtkIOXML * vtkImagingColor, needed by 3 modules: VTK_Group_StandAlone vtkInteractionImage vtkRenderingAnnotation * vtkImagingCore, needed by 12 modules: VTK_Group_StandAlone vtkFiltersParallelImaging vtkIOExport vtkImagingColor vtkImagingFourier vtkImagingHybrid vtkImagingMorphological vtkImagingSources vtkImagingStatistics vtkImagingStencil vtkRenderingImage vtkRenderingVolume * vtkImagingFourier, needed by 2 modules: VTK_Group_StandAlone vtkFiltersStatistics * vtkImagingGeneral, needed by 4 modules: VTK_Group_StandAlone vtkFiltersImaging vtkImagingMorphological vtkInteractionWidgets * vtkImagingHybrid, needed by 4 modules: VTK_Group_StandAlone vtkInfovisLayout vtkInteractionWidgets vtkRenderingOpenGL * vtkImagingMath, needed by VTK_Group_StandAlone. * vtkImagingMorphological, needed by VTK_Group_StandAlone. * vtkImagingSources, needed by 5 modules: VTK_Group_StandAlone vtkFiltersHybrid vtkFiltersImaging vtkImagingGeneral vtkRenderingLIC * vtkImagingStatistics, needed by VTK_Group_StandAlone. * vtkImagingStencil, needed by VTK_Group_StandAlone. * vtkInfovisCore, needed by 4 modules: VTK_Group_StandAlone vtkChartsCore vtkIOInfovis vtkInfovisLayout * vtkInfovisLayout, needed by 3 modules: VTK_Group_StandAlone vtkGeovisCore vtkViewsInfovis * vtkInteractionImage, needed by VTK_Group_Rendering. * vtkInteractionStyle, needed by 5 modules: VTK_Group_Rendering vtkGeovisCore vtkInteractionImage vtkInteractionWidgets vtkViewsInfovis * vtkInteractionWidgets, needed by 4 modules: VTK_Group_Rendering vtkGeovisCore vtkInteractionImage vtkViewsCore * vtkMetaIO, needed by vtkIOImage. * vtkParallelCore, needed by 7 modules: VTK_Group_StandAlone vtkFiltersAMR vtkFiltersParallel vtkFiltersParallelImaging vtkIOAMR vtkIOParallel vtkRenderingVolumeAMR * vtkParseOGLExt, needed by vtkRenderingOpenGL. * vtkRenderingAnnotation, needed by 3 modules: VTK_Group_Rendering vtkIOExport vtkInteractionWidgets * vtkRenderingContext2D, needed by 6 modules: VTK_Group_Rendering vtkChartsCore vtkIOExport vtkRenderingGL2PS vtkViewsContext2D vtkViewsInfovis * vtkRenderingCore, needed by 18 modules: VTK_Group_Rendering vtkDomainsChemistry vtkFiltersHybrid vtkFiltersParallel vtkIOExport vtkIOImport vtkIOMINC vtkInteractionImage vtkInteractionStyle vtkRenderingContext2D vtkRenderingFreeType vtkRenderingFreeType vtkRenderingFreeTypeOpenGL vtkRenderingImage vtkRenderingLOD vtkRenderingOpenGL vtkRenderingVolume vtkViewsCore * vtkRenderingFreeType, needed by 9 modules: VTK_Group_Rendering vtkIOExport vtkInteractionImage vtkInteractionWidgets vtkRenderingAnnotation vtkRenderingContext2D vtkRenderingFreeTypeOpenGL vtkRenderingGL2PS vtkRenderingLabel * vtkRenderingFreeTypeOpenGL, needed by VTK_Group_Rendering. * vtkRenderingGL2PS, needed by vtkIOExport. * vtkRenderingImage, needed by VTK_Group_Rendering. * vtkRenderingLIC, needed by VTK_Group_Rendering. * vtkRenderingLOD, needed by VTK_Group_Rendering. * vtkRenderingLabel, needed by 3 modules: VTK_Group_Rendering vtkIOExport vtkViewsInfovis * vtkRenderingOpenGL, needed by 8 modules: VTK_Group_Rendering vtkGeovisCore vtkIOExport vtkRenderingContext2D vtkRenderingFreeTypeOpenGL vtkRenderingGL2PS vtkRenderingLIC vtkRenderingVolumeOpenGL * vtkRenderingVolume, needed by 4 modules: VTK_Group_Rendering vtkInteractionWidgets vtkRenderingVolumeAMR vtkRenderingVolumeOpenGL * vtkRenderingVolumeAMR, needed by VTK_Group_Rendering. * vtkRenderingVolumeOpenGL, needed by VTK_Group_Rendering. * vtkUtilitiesEncodeString, needed by vtkRenderingOpenGL. * vtkUtilitiesHashSource, needed by vtkParallelCore. * vtkViewsContext2D, needed by VTK_Group_Rendering. * vtkViewsCore, needed by 4 modules: VTK_Group_Rendering vtkGeovisCore vtkViewsContext2D vtkViewsInfovis * vtkViewsGeovis, needed by VTK_Group_Rendering. * vtkViewsInfovis, needed by 2 modules: VTK_Group_Rendering vtkViewsGeovis * vtkalglib, needed by vtkFiltersStatistics. * vtkexodusII, needed by 2 modules: vtkIOExodus vtkIOParallel * vtkexpat, needed by vtkIOXMLParser. * vtkfreetype, needed by 2 modules: vtkRenderingFreeType vtkftgl * vtkftgl, needed by vtkRenderingFreeType. * vtkgl2ps, needed by 2 modules: vtkIOExport vtkRenderingGL2PS * vtkhdf5, needed by 2 modules: vtkIOAMR vtknetcdf * vtkjpeg, needed by 2 modules: vtkIOImage vtktiff * vtkjsoncpp, needed by vtkIOGeometry. * vtklibproj4, needed by vtkGeovisCore. * vtklibxml2, needed by vtkIOInfovis. * vtknetcdf, needed by 4 modules: vtkIOMINC vtkIONetCDF vtkIOParallel vtkexodusII * vtkoggtheora, needed by vtkIOMovie. * vtkpng, needed by 2 modules: vtkIOImage vtkgl2ps * vtksqlite, needed by vtkIOSQL. * vtksys, needed by 25 modules: vtkCommonCore vtkCommonDataModel vtkCommonSystem vtkDICOMParser vtkIOAMR vtkIOCore vtkIOExodus vtkIOGeometry vtkIOImage vtkIOInfovis vtkIOLSDyna vtkIOLegacy vtkIOMINC vtkIONetCDF vtkIOSQL vtkIOVideo vtkIOXML vtkImagingFourier vtkParallelCore vtkRenderingCore vtkRenderingLIC vtkRenderingOpenGL vtkRenderingVolumeOpenGL vtkUtilitiesEncodeString vtkUtilitiesHashSource * vtktiff, needed by vtkIOImage. * vtkverdict, needed by vtkFiltersVerdict. * vtkzlib, needed by 9 modules: vtkIOCore vtkIOGeometry vtkMetaIO vtkfreetype vtkgl2ps vtkhdf5 vtklibxml2 vtkpng vtktiff CMake Warning (dev) at Utilities/KWSys/vtksys/CMakeLists.txt:264 (CONFIGURE_FILE): configure_file called with unknown argument(s): COPY_ONLY This warning is for project developers. Use -Wno-dev to suppress it. Checking whether header cstdio is available Checking whether header cstdio is available - no Checking for Large File Support Checking for Large File Support - failed to compile Checking whether STL classes are in std namespace Checking whether STL classes are in std namespace - no Checking whether ANSI stream headers are available Checking whether ANSI stream headers are available - no Checking whether strstream.h is available Checking whether strstream.h is available - no Checking whether strstrea.h is available Checking whether strstrea.h is available - no Checking whether header cstddef is available Checking whether header cstddef is available - no Checking whether stl string has operator!= for char* Checking whether stl string has operator!= for char* - no Checking whether stl has iterator_traits Checking whether stl has iterator_traits - no Checking whether stl has old iterator_category Checking whether stl has old iterator_category - no Checking whether stl has internal __iterator_category Checking whether stl has internal __iterator_category - no Checking whether stl has standard template allocator Checking whether stl has standard template allocator - no Checking whether stl has old non-template allocator Checking whether stl has old non-template allocator - no Checking whether stl containers support allocator objects. Checking whether stl containers support allocator objects. - no Checking whether stl string has ostream operator<< Checking whether stl string has ostream operator<< - no Checking whether stl string has istream operator>> Checking whether stl string has istream operator>> - no Checking whether ios has binary openmode Checking whether ios has binary openmode - no Checking whether "<>" is needed for template friends Checking whether "<>" is needed for template friends - yes Checking for member template support Checking for member template support - no Checking for standard template specialization syntax Checking for standard template specialization syntax - yes Checking whether argument dependent lookup is supported Checking whether argument dependent lookup is supported - no Checking whether C++ compiler has 'long long' Checking whether C++ compiler has 'long long' - yes Checking whether C++ compiler has '__int64' Checking whether C++ compiler has '__int64' - no Checking for C type size macros Checking for C type size macros - compiled Check size of char Check size of char - failed Check size of short Check size of short - done Check size of int Check size of int - done Check size of long Check size of long - done Check size of long long Check size of long long - done Check size of __int64 Check size of __int64 - done Checking whether char is signed Checking whether char is signed - failed to compile Checking whether wstring is available Checking whether wstring is available - no Checking whether C compiler has ptrdiff_t in stddef.h Checking whether C compiler has ptrdiff_t in stddef.h - no Checking whether C compiler has ssize_t in unistd.h Checking whether C compiler has ssize_t in unistd.h - no Checking whether CXX compiler has setenv Checking whether CXX compiler has setenv - no Checking whether CXX compiler has unsetenv Checking whether CXX compiler has unsetenv - no Checking whether CXX compiler has environ in stdlib.h Checking whether CXX compiler has environ in stdlib.h - no Checking whether CXX compiler has utimes Checking whether CXX compiler has utimes - no Checking whether CXX compiler has utimensat Checking whether CXX compiler has utimensat - no Looking for include files sys/types.h, ifaddrs.h Looking for include files sys/types.h, ifaddrs.h - not found Looking for GetProcessMemoryInfo Looking for GetProcessMemoryInfo - found Checking whether CXX compiler has rlimit64 Checking whether CXX compiler has rlimit64 - no Checking whether CXX compiler has atol Checking whether CXX compiler has atol - no Checking whether CXX compiler has atoll Checking whether CXX compiler has atoll - no Checking whether CXX compiler has _atoi64 Checking whether CXX compiler has _atoi64 - yes CMake Warning (dev) at Utilities/KWSys/vtksys/CMakeLists.txt:1067 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at Common/Core/CMakeLists.txt:70 (configure_file): configure_file called with unknown argument(s): COPY_ONLY This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at Common/Core/CMakeLists.txt:73 (configure_file): configure_file called with unknown argument(s): COPY_ONLY This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at Common/Core/CMakeLists.txt:76 (configure_file): configure_file called with unknown argument(s): COPY_ONLY This warning is for project developers. Use -Wno-dev to suppress it. Looking for InterlockedAdd Looking for InterlockedAdd - found Performing Test VTK_HAS_STD_ISNAN Performing Test VTK_HAS_STD_ISNAN - Success Performing Test VTK_HAS_STD_ISINF Performing Test VTK_HAS_STD_ISINF - Success Performing Test VTK_HAS_STD_ISFINITE Performing Test VTK_HAS_STD_ISFINITE - Success Looking for isnan Looking for isnan - found Looking for isinf Looking for isinf - found Looking for isfinite Looking for isfinite - found Looking for finite Looking for finite - not found Looking for fenv.h Looking for fenv.h - found Looking for feenableexcept Looking for feenableexcept - not found CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Core/CMakeLists.txt:594 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Core/CMakeLists.txt:594 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Performing Test COMPILER_HAS_DEPRECATED_ATTR Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed Performing Test COMPILER_HAS_DEPRECATED Performing Test COMPILER_HAS_DEPRECATED - Success CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Math/CMakeLists.txt:52 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Math/CMakeLists.txt:52 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Misc/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Misc/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/System/CMakeLists.txt:26 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/System/CMakeLists.txt:26 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Transforms/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Transforms/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/DataModel/CMakeLists.txt:289 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/DataModel/CMakeLists.txt:289 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Color/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/Color/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/ExecutionModel/CMakeLists.txt:83 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/ExecutionModel/CMakeLists.txt:83 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Core/CMakeLists.txt:93 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Core/CMakeLists.txt:93 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/ComputationalGeometry/CMakeLists.txt:27 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Common/ComputationalGeometry/CMakeLists.txt:27 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/General/CMakeLists.txt:119 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/General/CMakeLists.txt:119 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Core/CMakeLists.txt:62 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Core/CMakeLists.txt:62 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Fourier/CMakeLists.txt:18 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Fourier/CMakeLists.txt:18 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Statistics/CMakeLists.txt:25 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Statistics/CMakeLists.txt:25 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Extraction/CMakeLists.txt:38 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Extraction/CMakeLists.txt:38 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Infovis/Core/CMakeLists.txt:45 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Infovis/Core/CMakeLists.txt:45 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Geometry/CMakeLists.txt:39 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Geometry/CMakeLists.txt:39 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Sources/CMakeLists.txt:43 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Sources/CMakeLists.txt:43 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Core/CMakeLists.txt:189 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Core/CMakeLists.txt:189 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Found OpenGL: opengl32 CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/FreeType/CMakeLists.txt:72 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/FreeType/CMakeLists.txt:72 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Core/CMakeLists.txt:36 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Core/CMakeLists.txt:36 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Looking for include file assert.h Looking for include file assert.h - found Looking for include file dlfcn.h Looking for include file dlfcn.h - not found Looking for include file fcntl.h Looking for include file fcntl.h - found Looking for include file inttypes.h Looking for include file inttypes.h - found Looking for include file limits.h Looking for include file limits.h - found Looking for include file malloc.h Looking for include file malloc.h - found Looking for include file memory.h Looking for include file memory.h - found Looking for include file stdlib.h Looking for include file stdlib.h - found Looking for include file string.h Looking for include file string.h - found Looking for include file strings.h Looking for include file strings.h - not found Looking for include file sys/stat.h Looking for include file sys/stat.h - found Looking for include file sys/time.h Looking for include file sys/time.h - not found Looking for include file unistd.h Looking for include file unistd.h - not found Looking for include file windows.h Looking for include file windows.h - found Looking for include file ieeefp.h Looking for include file ieeefp.h - not found Looking for floor Looking for floor - found Looking for getopt Looking for getopt - not found Looking for isascii Looking for isascii - not found Looking for memmove Looking for memmove - found Looking for memset Looking for memset - found Looking for mmap Looking for mmap - not found Looking for pow Looking for pow - found Looking for sqrt Looking for sqrt - found Looking for strcasecmp Looking for strcasecmp - not found Looking for strchr Looking for strchr - found Looking for strrchr Looking for strrchr - found Looking for strstr Looking for strstr - found Looking for strtol Looking for strtol - found Looking for strtoul Looking for strtoul - found Check size of int Check size of int - done Check size of long Check size of long - done CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Image/CMakeLists.txt:39 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Image/CMakeLists.txt:39 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Hybrid/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Hybrid/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/OpenGL/CMakeLists.txt:451 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/OpenGL/CMakeLists.txt:451 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Context2D/CMakeLists.txt:52 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Context2D/CMakeLists.txt:52 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Charts/Core/CMakeLists.txt:62 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Charts/Core/CMakeLists.txt:62 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Geometry/CMakeLists.txt:42 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Geometry/CMakeLists.txt:42 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/XMLParser/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/XMLParser/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/XML/CMakeLists.txt:80 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/XML/CMakeLists.txt:80 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Domains/Chemistry/CMakeLists.txt:32 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Domains/Chemistry/CMakeLists.txt:32 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Legacy/CMakeLists.txt:38 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Legacy/CMakeLists.txt:38 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Parallel/Core/CMakeLists.txt:43 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Parallel/Core/CMakeLists.txt:43 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/AMR/CMakeLists.txt:22 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/AMR/CMakeLists.txt:22 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/FlowPaths/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/FlowPaths/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Generic/CMakeLists.txt:13 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Generic/CMakeLists.txt:13 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Sources/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Sources/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Hybrid/CMakeLists.txt:27 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Hybrid/CMakeLists.txt:27 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/HyperTree/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/HyperTree/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/General/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/General/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Imaging/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Imaging/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Modeling/CMakeLists.txt:33 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Modeling/CMakeLists.txt:33 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Parallel/CMakeLists.txt:47 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Parallel/CMakeLists.txt:47 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/ParallelImaging/CMakeLists.txt:10 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/ParallelImaging/CMakeLists.txt:10 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Programmable/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Programmable/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/SMP/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/SMP/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Selection/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Selection/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Texture/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Texture/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Verdict/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Filters/Verdict/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Infovis/Layout/CMakeLists.txt:57 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Infovis/Layout/CMakeLists.txt:57 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Style/CMakeLists.txt:54 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Style/CMakeLists.txt:54 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Color/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Color/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Annotation/CMakeLists.txt:34 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Annotation/CMakeLists.txt:34 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Volume/CMakeLists.txt:60 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Volume/CMakeLists.txt:60 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Widgets/CMakeLists.txt:157 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Widgets/CMakeLists.txt:157 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Core/CMakeLists.txt:10 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Core/CMakeLists.txt:10 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Looking for csin Looking for csin - not found Looking for atanh Looking for atanh - not found CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Geovis/Core/CMakeLists.txt:37 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Geovis/Core/CMakeLists.txt:37 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Looking for printf in ws2_32; Looking for printf in ws2_32; - found Looking for printf in wsock32;ws2_32 Looking for printf in wsock32;ws2_32 - found Looking for gethostname in ucb;ws2_32;wsock32 Looking for gethostname in ucb;ws2_32;wsock32 - not found Looking for connect in socket;ws2_32;wsock32 Looking for connect in socket;ws2_32;wsock32 - not found Looking for gethostbyname in c Looking for gethostbyname in c - not found Looking for gethostbyname in nsl;ws2_32;wsock32 Looking for gethostbyname in nsl;ws2_32;wsock32 - not found Looking for include file globus/common.h Looking for include file globus/common.h - not found Looking for include files io.h, mfhdf.h Looking for include files io.h, mfhdf.h - not found Looking for include files io.h, pdb.h Looking for include files io.h, pdb.h - not found Looking for include files io.h, pthread.h Looking for include files io.h, pthread.h - not found Looking for 3 include files io.h, ..., srbclient.h Looking for 3 include files io.h, ..., srbclient.h - not found Looking for 4 include files io.h, ..., stdint.h Looking for 4 include files io.h, ..., stdint.h - found Looking for 5 include files io.h, ..., string.h Looking for 5 include files io.h, ..., string.h - found Looking for 6 include files io.h, ..., strings.h Looking for 6 include files io.h, ..., strings.h - not found Looking for 6 include files io.h, ..., sys/ioctl.h Looking for 6 include files io.h, ..., sys/ioctl.h - not found Looking for 6 include files io.h, ..., sys/proc.h Looking for 6 include files io.h, ..., sys/proc.h - not found Looking for 6 include files io.h, ..., sys/resource.h Looking for 6 include files io.h, ..., sys/resource.h - not found Looking for 6 include files io.h, ..., sys/socket.h Looking for 6 include files io.h, ..., sys/socket.h - not found Looking for 7 include files io.h, ..., sys/time.h Looking for 7 include files io.h, ..., sys/time.h - not found Looking for 7 include files io.h, ..., time.h Looking for 7 include files io.h, ..., time.h - found Looking for 10 include files io.h, ..., unistd.h Looking for 10 include files io.h, ..., unistd.h - not found Looking for 10 include files io.h, ..., stdlib.h Looking for 10 include files io.h, ..., stdlib.h - found Looking for 11 include files io.h, ..., memory.h Looking for 11 include files io.h, ..., memory.h - found Looking for 12 include files io.h, ..., dlfcn.h Looking for 12 include files io.h, ..., dlfcn.h - not found Looking for 12 include files io.h, ..., features.h Looking for 12 include files io.h, ..., features.h - not found Looking for 12 include files io.h, ..., inttypes.h Looking for 12 include files io.h, ..., inttypes.h - found Looking for 14 include files io.h, ..., netinet/in.h Looking for 14 include files io.h, ..., netinet/in.h - not found Looking for C++ include stdint.h Looking for C++ include stdint.h - found Check size of char Check size of char - done Check size of short Check size of short - done Check size of int Check size of int - done Check size of unsigned Check size of unsigned - done Check size of long Check size of long - done Check size of long long Check size of long long - done Check size of __int64 Check size of __int64 - done Check size of float Check size of float - done Check size of double Check size of double - done Check size of long double Check size of long double - done Check size of int8_t Check size of int8_t - done Check size of uint8_t Check size of uint8_t - done Check size of int_least8_t Check size of int_least8_t - done Check size of uint_least8_t Check size of uint_least8_t - done Check size of int_fast8_t Check size of int_fast8_t - done Check size of uint_fast8_t Check size of uint_fast8_t - done Check size of int16_t Check size of int16_t - done Check size of uint16_t Check size of uint16_t - done Check size of int_least16_t Check size of int_least16_t - done Check size of uint_least16_t Check size of uint_least16_t - done Check size of int_fast16_t Check size of int_fast16_t - done Check size of uint_fast16_t Check size of uint_fast16_t - done Check size of int32_t Check size of int32_t - done Check size of uint32_t Check size of uint32_t - done Check size of int_least32_t Check size of int_least32_t - done Check size of uint_least32_t Check size of uint_least32_t - done Check size of int_fast32_t Check size of int_fast32_t - done Check size of uint_fast32_t Check size of uint_fast32_t - done Check size of int64_t Check size of int64_t - done Check size of uint64_t Check size of uint64_t - done Check size of int_least64_t Check size of int_least64_t - done Check size of uint_least64_t Check size of uint_least64_t - done Check size of int_fast64_t Check size of int_fast64_t - done Check size of uint_fast64_t Check size of uint_fast64_t - done Check size of size_t Check size of size_t - done Check size of ssize_t Check size of ssize_t - failed Check size of off_t Check size of off_t - done Check size of off64_t Check size of off64_t - failed Looking for alarm Looking for alarm - not found Looking for fork Looking for fork - not found Looking for frexpf Looking for frexpf - not found Looking for frexpl Looking for frexpl - not found Looking for getpwuid Looking for getpwuid - not found Looking for getrusage Looking for getrusage - not found Looking for lstat Looking for lstat - not found Looking for rand_r Looking for rand_r - not found Looking for random Looking for random - not found Looking for setsysinfo Looking for setsysinfo - not found Looking for signal Looking for signal - found Looking for setjmp Looking for setjmp - not found Looking for siglongjmp Looking for siglongjmp - not found Looking for sigsetjmp Looking for sigsetjmp - not found Looking for sigaction Looking for sigaction - not found Looking for sigprocmask Looking for sigprocmask - not found Looking for snprintf Looking for snprintf - not found Looking for srandom Looking for srandom - not found Looking for symlink Looking for symlink - not found Looking for vasprintf Looking for vasprintf - not found Looking for waitpid Looking for waitpid - not found Looking for vsnprintf Looking for vsnprintf - found Looking for ioctl Looking for ioctl - not found Looking for fseeko Looking for fseeko - not found Looking for ftello Looking for ftello - not found Looking for fstat64 Looking for fstat64 - not found Looking for stat64 Looking for stat64 - not found Looking for tzname Looking for tzname - found CMake Warning (dev) at ThirdParty/hdf5/vtkhdf5/ConfigureChecks.cmake:450 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "H5_HAVE_SYS_TIME_H" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): ThirdParty/hdf5/vtkhdf5/ConfigureChecks.cmake:533 (HDF5_FUNCTION_TEST) ThirdParty/hdf5/vtkhdf5/CMakeLists.txt:182 (INCLUDE) This warning is for project developers. Use -Wno-dev to suppress it. Performing Other Test INLINE_TEST_inline - Failed Performing Other Test INLINE_TEST___inline__ - Failed Performing Other Test INLINE_TEST___inline - Success Checking for appropriate format for 64 bit long: Checking for apropriate format for 64 bit long: not found checking IF converting from long double to integers is accurate... yes Checking IF converting from long double to integers works... no checking IF accurately converting from integers to long double... yes Checking IF accurately converting unsigned long to float values... no Checking IF accurately converting unsigned long long to floating-point values... no Checking IF accurately roundup converting floating-point to unsigned long long values... no Checking IF right maximum converting floating-point to unsigned long long values... no Checking IF correctly converting long double to unsigned int values... no Checking IF compiling unsigned long long to floating-point typecasts work... yes Checking IF compiling long long to floating-point typecasts work... yes Checking IF converting unsigned long long to long double with precision... no Checking IF overflows normally converting floating-point to integer values... no Checking IF correctly converting long double to (unsigned) long long values... no Checking IF correctly converting (unsigned) long long to long double values... no Checking IF alignment restrictions are strictly enforced... no CMake Warning (dev) at ThirdParty/hdf5/vtkhdf5/CMakeLists.txt:283 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at ThirdParty/hdf5/vtkhdf5/src/CMakeLists.txt:607 (ADD_CUSTOM_COMMAND): Policy CMP0040 is not set: The target in the TARGET signature of add_custom_command() must exist. Run "cmake --help-policy CMP0040" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The target name "C:/Users/project-elbrus-win7/jenkins/jobs/elbrus-win32-ci-third-party/workspace/Elbrus/external/vtk/vtk-6.1.0/build/ThirdParty/hdf5/vtkhdf5/H5Edefin.h" is unknown in this context. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at ThirdParty/hdf5/vtkhdf5/src/CMakeLists.txt:614 (ADD_CUSTOM_COMMAND): Policy CMP0040 is not set: The target in the TARGET signature of add_custom_command() must exist. Run "cmake --help-policy CMP0040" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The target name "C:/Users/project-elbrus-win7/jenkins/jobs/elbrus-win32-ci-third-party/workspace/Elbrus/external/vtk/vtk-6.1.0/build/ThirdParty/hdf5/vtkhdf5/H5version.h" is unknown in this context. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at ThirdParty/hdf5/vtkhdf5/src/CMakeLists.txt:621 (ADD_CUSTOM_COMMAND): Policy CMP0040 is not set: The target in the TARGET signature of add_custom_command() must exist. Run "cmake --help-policy CMP0040" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The target name "C:/Users/project-elbrus-win7/jenkins/jobs/elbrus-win32-ci-third-party/workspace/Elbrus/external/vtk/vtk-6.1.0/build/ThirdParty/hdf5/vtkhdf5/H5overflow.h" is unknown in this context. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/AMR/CMakeLists.txt:25 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/AMR/CMakeLists.txt:25 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/EnSight/CMakeLists.txt:16 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/EnSight/CMakeLists.txt:16 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Looking for 4 include files stdlib.h, ..., float.h Looking for 4 include files stdlib.h, ..., float.h - found Looking for include file alloca.h Looking for include file alloca.h - not found Looking for 5 include files stdlib.h, ..., stdio.h Looking for 5 include files stdlib.h, ..., stdio.h - found Looking for 10 include files stdlib.h, ..., stdbool.h Looking for 10 include files stdlib.h, ..., stdbool.h - found Looking for alloca Looking for alloca - not found Looking for strerror Looking for strerror - found Check size of size_t Check size of size_t - done Check size of ssize_t Check size of ssize_t - failed Check size of ptrdiff_t Check size of ptrdiff_t - done Check size of off_t Check size of off_t - done Check size of double Check size of double - done Check size of float Check size of float - done Check size of short Check size of short - done Check size of uchar Check size of uchar - failed Check size of _Bool Check size of _Bool - done Performing NetCDF Test HAVE_ST_BLKSIZE Performing NetCDF Test HAVE_ST_BLKSIZE - Failed Performing NetCDF Test HAVE_FTRUNCATE Performing NetCDF Test HAVE_FTRUNCATE - Failed Looking for malloc.h Looking for malloc.h - found CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Exodus/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Exodus/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/GL2PS/CMakeLists.txt:8 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/GL2PS/CMakeLists.txt:8 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Label/CMakeLists.txt:24 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Label/CMakeLists.txt:24 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Export/CMakeLists.txt:33 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Export/CMakeLists.txt:33 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Import/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Import/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Looking for dlopen in dl; Looking for dlopen in dl; - not found Looking for shl_load in dld; Looking for shl_load in dld; - not found Looking for dlopen in Looking for dlopen in - not found Looking for 8 include files stdio.h, ..., netdb.h Looking for 8 include files stdio.h, ..., netdb.h - not found Looking for 9 include files stdio.h, ..., sys/socket.h Looking for 9 include files stdio.h, ..., sys/socket.h - not found Looking for 9 include files stdio.h, ..., netinet/in.h Looking for 9 include files stdio.h, ..., netinet/in.h - not found Looking for 9 include files stdio.h, ..., sys/select.h Looking for 9 include files stdio.h, ..., sys/select.h - not found Looking for 13 include files stdio.h, ..., time.h Looking for 13 include files stdio.h, ..., time.h - found Looking for 14 include files stdio.h, ..., signal.h Looking for 14 include files stdio.h, ..., signal.h - found Looking for 15 include files stdio.h, ..., errno.h Looking for 15 include files stdio.h, ..., errno.h - found Looking for 16 include files stdio.h, ..., ansidecl.h Looking for 16 include files stdio.h, ..., ansidecl.h - not found Looking for 16 include files stdio.h, ..., arpa/inet.h Looking for 16 include files stdio.h, ..., arpa/inet.h - not found Looking for 16 include files stdio.h, ..., arpa/nameser.h Looking for 16 include files stdio.h, ..., arpa/nameser.h - not found Looking for 16 include files stdio.h, ..., ctype.h Looking for 16 include files stdio.h, ..., ctype.h - found Looking for 17 include files stdio.h, ..., dirent.h Looking for 17 include files stdio.h, ..., dirent.h - not found Looking for 17 include files stdio.h, ..., dl.h Looking for 17 include files stdio.h, ..., dl.h - not found Looking for 17 include files stdio.h, ..., float.h Looking for 17 include files stdio.h, ..., float.h - found Looking for 18 include files stdio.h, ..., fp_class.h Looking for 18 include files stdio.h, ..., fp_class.h - not found Looking for 18 include files stdio.h, ..., math.h Looking for 18 include files stdio.h, ..., math.h - found Looking for 19 include files stdio.h, ..., nan.h Looking for 19 include files stdio.h, ..., nan.h - not found Looking for 19 include files stdio.h, ..., ndir.h Looking for 19 include files stdio.h, ..., ndir.h - not found Looking for 19 include files stdio.h, ..., pthread.h Looking for 19 include files stdio.h, ..., pthread.h - not found Looking for 19 include files stdio.h, ..., resolv.h Looking for 19 include files stdio.h, ..., resolv.h - not found Looking for 19 include files stdio.h, ..., stdarg.h Looking for 19 include files stdio.h, ..., stdarg.h - found Looking for 20 include files stdio.h, ..., sys/mman.h Looking for 20 include files stdio.h, ..., sys/mman.h - not found Looking for 20 include files stdio.h, ..., sys/timeb.h Looking for 20 include files stdio.h, ..., sys/timeb.h - found Looking for finite Looking for finite - not found Looking for fpclass Looking for fpclass - not found Looking for fp_class Looking for fp_class - not found Looking for fprintf Looking for fprintf - found Looking for ftime Looking for ftime - found Looking for gettimeofday Looking for gettimeofday - not found Looking for localtime Looking for localtime - found Looking for printf Looking for printf - found Looking for sscanf Looking for sscanf - found Looking for sprintf Looking for sprintf - found Looking for snprintf Looking for snprintf - not found Looking for signal Looking for signal - found Looking for strdup Looking for strdup - found Looking for strndup Looking for strndup - not found Looking for strftime Looking for strftime - found Looking for stat Looking for stat - found Looking for _stat Looking for _stat - found Looking for vfprintf Looking for vfprintf - found Looking for vsnprintf Looking for vsnprintf - found Looking for vsprintf Looking for vsprintf - found Checking for getaddrinfo. Checking for getaddrinfo. - no Checking for socklen_t Checking for socklen_t - no Checking for DIR in sys/dir.h Checking for DIR in sys/dir.h - no Checking for DIR in sys/ndir.h Checking for DIR in sys/ndir.h - no Checking for va_copy Checking for va_copy - no Checking for __va_copy Checking for __va_copy - no Checking for ipv6 support. Checking for ipv6 support. - no CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Infovis/CMakeLists.txt:18 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Infovis/CMakeLists.txt:18 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/LSDyna/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/LSDyna/CMakeLists.txt:28 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/MINC/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/MINC/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at ThirdParty/oggtheora/module.cmake:1 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/vtkModuleMacros.cmake:134 (include) CMake/vtkModuleMacros.cmake:744 (vtk_module_impl) ThirdParty/oggtheora/CMakeLists.txt:1 (vtk_module_third_party) This warning is for project developers. Use -Wno-dev to suppress it. Check size of int16_t Check size of int16_t - done Check size of int32_t Check size of int32_t - done Check size of uint32_t Check size of uint32_t - done Check size of uint16_t Check size of uint16_t - done Check size of u_int32_t Check size of u_int32_t - failed Check size of u_int16_t Check size of u_int16_t - failed Check size of int64_t Check size of int64_t - done Check size of short Check size of short - done Check size of int Check size of int - done Check size of long Check size of long - done Check size of long long Check size of long long - done Checking if vfw32 is available Checking if vfw32 is available -- yes Checking if vfw32 supports video capture Checking if vfw32 supports video capture -- yes CMake Warning (dev) at IO/Movie/module.cmake:1 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/vtkModuleMacros.cmake:134 (include) CMake/vtkModuleMacros.cmake:480 (vtk_module_impl) IO/Movie/CMakeLists.txt:37 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Movie/CMakeLists.txt:37 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Movie/CMakeLists.txt:37 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/NetCDF/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/NetCDF/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/PLY/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/PLY/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Parallel/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Parallel/CMakeLists.txt:15 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/SQL/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/SQL/CMakeLists.txt:30 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/vtkTestVideoForWindows.cmake:2 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "VTK_USE_VIDEO_FOR_WINDOWS" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): IO/Video/CMakeLists.txt:6 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/vtkTestVideoForWindows.cmake:29 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "VTK_VFW_SUPPORTS_CAPTURE" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): IO/Video/CMakeLists.txt:6 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Video/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) IO/Video/CMakeLists.txt:17 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Math/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Math/CMakeLists.txt:12 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Morphological/CMakeLists.txt:14 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Morphological/CMakeLists.txt:14 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Statistics/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Statistics/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Stencil/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Imaging/Stencil/CMakeLists.txt:11 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Image/CMakeLists.txt:8 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Interaction/Image/CMakeLists.txt:8 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/FreeTypeOpenGL/CMakeLists.txt:35 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/FreeTypeOpenGL/CMakeLists.txt:35 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Image/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/Image/CMakeLists.txt:7 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/LIC/CMakeLists.txt:64 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/LIC/CMakeLists.txt:64 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/LOD/CMakeLists.txt:5 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/LOD/CMakeLists.txt:5 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/VolumeAMR/CMakeLists.txt:5 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/VolumeAMR/CMakeLists.txt:5 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/VolumeOpenGL/CMakeLists.txt:120 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Rendering/VolumeOpenGL/CMakeLists.txt:120 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Context2D/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Context2D/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Infovis/CMakeLists.txt:31 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Infovis/CMakeLists.txt:31 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:199 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:354 (_test_compiler_hidden_visibility) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Geovis/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at CMake/GenerateExportHeader.cmake:216 (if): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like "MSVC" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): CMake/GenerateExportHeader.cmake:355 (_test_compiler_has_deprecated) CMake/vtkModuleMacros.cmake:590 (generate_export_header) Views/Geovis/CMakeLists.txt:6 (vtk_module_library) This warning is for project developers. Use -Wno-dev to suppress it. Configuring done Generating done //------------------------------------------------------------------------------------------------ //------------------------------------VS2013 Errors------------------------------------------- ------ Build started: Project: vtksys, Configuration: Debug Win32 ------ ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/ios/iostream(26): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory DynamicLoader.cxx EncodingCXX.cxx ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/ios/iostream(26): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory Glob.cxx ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/ios/iostream(26): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory vtkGarbageCollectorManager.cxx vtkGaussianRandomSequence.cxx vtkIdListCollection.cxx vtkIdList.cxx Generating Code... Compiling... vtkIdTypeArray.cxx vtkIndent.cxx vtkInformation.cxx ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/hashtable.hxx(341): error C2146: syntax error : missing ';' before identifier 'iterator_category' ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/hashtable.hxx(362) : see reference to class template instantiation 'vtksys::_Hashtable_iterator<_Val,_Key,_HashFcn,_ExtractKey,_EqualKey,_Alloc>' being compiled ...\vtk\vtk-6.1.0\build\Utilities\KWSys\vtksys/hashtable.hxx(341): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int //------------------------------------------------------------------------------------------------ -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-1-and-Visual-Studio-2013-on-VirtualBox-tp5731233.html Sent from the VTK - Users mailing list archive at Nabble.com. From dkxls23 at gmail.com Mon Mar 30 16:53:57 2015 From: dkxls23 at gmail.com (Armin Wehrfritz) Date: Mon, 30 Mar 2015 23:53:57 +0300 Subject: [vtkusers] Problem with python wrapping In-Reply-To: References: <1427289137146-5731152.post@n5.nabble.com> <551424F0.1050202@gmail.com> <55157951.30509@gmail.com> Message-ID: <5519B7E5.80204@gmail.com> Hi David, Indeed I saw from the VTK source tree that the wrapping is pretty straight forward using the higher level vtk macros. I also stumbled across this github repo: https://github.com/patmarion/PythonWrappedPluginExample Especially the CMakeLists.txt in Module/Filters looks promising! Unfortunately I don't have the time right now to look deeper into this, but maybe it's of help for somebody else. When I find time for this again, I will post my experience here on the list. -Armin On 03/27/2015 06:05 PM, David Gobbi wrote: > Hi Armin, > > Wrapping classes within the VTK source tree itself is pretty trivial. > Someone should write some cmake macros to make it equally > trivial for users to wrap their own classes (I'd do it myself, but I've > already got way too many projects on my plate). > > - David > > On Fri, Mar 27, 2015 at 9:37 AM, Armin Wehrfritz > wrote: > > Thanks a lot for for your help David! > > I added some of the missing statements in a quick-and-dirty trial > and eventually got rid of the real_initvtkMyFilterPython symbol error. > > However, I immediately ran into a new symbol error. So I'm still > missing some linking targets... > > I will have a closer look at how it's done in VTK-dicom and see if I > can figure out what I'm missing. > > I should probably also mention that these were my first steps > compiling a VTK filter and I could be missing some things on that > end. So far I always used boost for my C++/python coding directly. > > Initially I hope the python wrapping in VTK would be as easy as with > boost, but there really seems to be much more CMAKE code required > than I thought. > > -Armin > > > > > > > On 03/26/2015 06:44 PM, David Gobbi wrote: > > On Thu, Mar 26, 2015 at 10:07 AM, David Gobbi > > >__> > wrote: > > > > On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi > > >__> wrote: > > On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz > > >> wrote: > > > ImportError: ./vtkMyFilterPython.so: : > real_initvtkMyFilterPython > > > The undefined symbol error probably means that your python > module doesn't include vtkMyFilterPythonInit.cxx, which > is one > of the files generated by vtk_wrap_python3(). > > Your cmake should include the Init.cxx as a source file > when it > builds the module, e.g.: > > add_library(vtkMyFilterPython MODULE > vtkMyFilterPythonInit.cxx) > > Or, if that still doesn't fix the problem, then there > might be > an error in your add_library call for vtkMyFilterPythonD. > > > Oh, and the following lines are also necessary, but only if you > build a static library: > > set_target_properties(__vtkMyFilter PROPERTIES > POSITION_INDEPENDENT_CODE ON) > set_target_properties(__vtkMyFilterPythonD PROPERTIES > POSITION_INDEPENDENT_CODE ON) > > > I forgot the the line that is probably the most likely to fix the > real_initvtkMyFilterPython symbol error: > > target_link_libraries(__vtkMyFilterPython vtkMyFilterPythonD) > > In summary, a lot of cmake code is needed to get stuff wrapped. > > - David > > > > _________________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/__opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK___FAQ > > Search the list archives at: > http://markmail.org/search/?q=__vtkusers > > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/__mailman/listinfo/vtkusers > > > _________________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/__opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK___FAQ > > Search the list archives at: > http://markmail.org/search/?q=__vtkusers > > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/__mailman/listinfo/vtkusers > > > From cory.quammen at kitware.com Mon Mar 30 23:09:43 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 30 Mar 2015 23:09:43 -0400 Subject: [vtkusers] The cross/coplane issue when draw polyline with mesh surface. In-Reply-To: <1427252372098-5731146.post@n5.nabble.com> References: <1427252372098-5731146.post@n5.nabble.com> Message-ID: Take a look at these methods in vtkMapper: http://www.vtk.org/doc/nightly/html/classvtkMapper.html#aa2ea475413fed0b45566e33cc9f659e8 - Cory On Tue, Mar 24, 2015 at 10:59 PM, qinyang_1980 wrote: > Hello All, > > I'm a fresh member of vtk users. > > I meet an strange issue when draw polyline over the mesh surface. > > The polyline will be blocked somewhere by the mesh surface because they are > coplanar. > Please see the picture below: > > > > But if I open this file by using ParaView, it do not have this cross issue. > But it will have some shift effect. Please see the below picture : > > > > Somebody can tell me how to resovle this cross issue ? > My target is let the user see the polyline and mesh both clearly. > > Thanks. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/The-cross-coplane-issue-when-draw-polyline-with-mesh-surface-tp5731146.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at centroidpic.com Tue Mar 31 03:28:55 2015 From: ram at centroidpic.com (Ram Sampath) Date: Tue, 31 Mar 2015 16:28:55 +0900 Subject: [vtkusers] Mixing OpenGL and VTK In-Reply-To: References: Message-ID: Hello everyone, I tried the ExternalVTK calls as instructed by the blog page and I am doing the following but for some reason VTK doesn't seem to render. I am using Qt 5.4 as well. If someone could throw some light on how to mix native OpenGL calls with VTK renders I would really appreciate it. ?Thank you very much Ram.? VisWidget::VisWidget( QWidget* parent, const GLWidget* shareWidget, Qt::WindowFlags f ): NEGLWidget( parent, shareWidget, f ) { #if WIN32 this->m_externalVTKWidget = vtkSmartPointer::New(); this->m_renWin = ? ? vtkSmartPointer::New(); this->m_externalVTKWidget->SetRenderWindow( m_renWin.GetPointer() ); this->m_ren = vtkSmartPointer( this->m_externalVTKWidget->AddRenderer() ); this->m_cam = vtkSmartPointer::New(); m_ren->SetActiveCamera( this->m_cam ); #endif m_VTK = false; } > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.nonis at libero.it Tue Mar 31 05:28:32 2015 From: ale.nonis at libero.it (ale.nonis at libero.it) Date: Tue, 31 Mar 2015 11:28:32 +0200 (CEST) Subject: [vtkusers] R: Re: R: Re: Help Me!! vtk compile error!! Message-ID: <318843419.3987541427794112188.JavaMail.httpd@webmail-04.iol.local> Hi, I tried but the error it's always the same: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall vtkBoundingBox::vtkBoundingBox(double const * const)" (__imp_?? 0vtkBoundingBox@@QAE at QBN@Z) in function _main and error LNK1120: 1 unsolved externals. Alessandro >----Messaggio originale---- >Da: bill.lorensen at gmail.com >Data: 30/03/2015 19.35 >A: "ale.nonis at libero.it" >Cc: "Dave DeMarle", "John Drescher" , "vtkusers at vtk.org" >Ogg: Re: [vtkusers] R: Re: Help Me!! vtk compile error!! > >Remove this line: >TARGET_LINK_LIBRARIES(Cleaner vtkHybrid cgvgvtklib) > > >On Mon, Mar 30, 2015 at 7:29 AM, ale.nonis--- via vtkusers > wrote: >> Hi, >> i modified my CMakeList, and now is: >> >> cmake_minimum_required(VERSION 2.8) >> project(Cleaner) >> # Include the directory itself as a path to include directories >> set(CMAKE_INCLUDE_CURRENT_DIR ON) >> include_directories (${beauty_SOURCE_DIR}/cgvgvtklib >> ${beauty_SOURCE_DIR}/facelib) >> link_directories ( ${beauty_BINARY_DIR}/cgvgvtklib >> ${beauty_BINARY_DIRS}/facelib) >> >> # For a large number of source files you can create it in a simpler way >> # using file() function: >> #file(GLOB ptsetter_SOURCES *.cxx) >> >> # Create an executable file called helloworld from sources: >> add_executable(Cleaner cleaner.cxx) >> >> TARGET_LINK_LIBRARIES(Cleaner ${VTK_LIBRARIES}) >> >> >> TARGET_LINK_LIBRARIES(Cleaner vtkHybrid cgvgvtklib) >> >> But the results it's always the same. >> >> Thank you. >> Alessandro >> >> ----Messaggio originale---- >> Da: dave.demarle at kitware.com >> Data: 20/03/2015 13.14 >> A: "John Drescher" >> Cc: "ale.nonis at libero.it", >> "vtkusers at vtk.org" >> Ogg: Re: [vtkusers] Help Me!! vtk compile error!! >> >> >> Adding to John and Jon's good advice, also read: >> http://www.vtk.org/Wiki/VTK/Build_System_Migration >> For some of the details of using 6.x as compared to 5.x. >> >> On Friday, March 20, 2015, John Drescher wrote: >>> >>> > Ok thanks i try later. >>> > However with VTK5.6 the project works but with my VTK6 there are this >>> > problems. >>> > >>> >>> That is expected since their are more libraries with vtk6. >>> >>> John >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> -- >> 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 >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > >-- >Unpaid intern in BillsBasement at noware dot com > From shiva at sewingwitch.com Tue Mar 31 06:52:42 2015 From: shiva at sewingwitch.com (Kenneth Porter) Date: Tue, 31 Mar 2015 03:52:42 -0700 Subject: [vtkusers] 32 bit compiling In-Reply-To: References: <55141F8A.7080601@jslengineeringsoftware.com> <551447E8.6020206@jslengineeringsoftware.com> <55145E99.3010602@student.hpi.de> <20150326204227.GA3939@megas.kitwarein.com> Message-ID: <838252650B262EFB23C7817A@[10.170.7.34]> See my post from a few days ago with the script I'm using to build 32 and 64 bit variations on 3 compilers, both static and dynamic linking to the C++ runtime. From sergio.vera at alma3d.com Tue Mar 31 07:17:22 2015 From: sergio.vera at alma3d.com (Sergio Vera) Date: Tue, 31 Mar 2015 13:17:22 +0200 Subject: [vtkusers] Insert raw openGL calls in vtk Message-ID: Hello vtk Users I'm trying to insert opengl calls inside vtk. So far I have seen examples of the opposite, insert vtk into opengl. There is the suggestion somewhere on the list of using the render methods of vtkMapper or vtkprops but no definite example Where is the best way to do it? thanks in advance -- Sergio Vera Alma IT Systems C/ Vilana, 4B, 4? 1? 08022 Barcelona T. (+34) 932 380 592 www.alma3d.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Mar 31 09:49:45 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 31 Mar 2015 09:49:45 -0400 Subject: [vtkusers] announce: short vtk 6.2 webinar today Message-ID: VTK 6.2 Release Webinar 2:00 pm EST Description: The webinar will highlight new features in VTK 6.2 and what's coming in the next release. It will be presented by yours truly G+ link: https://plus.google.com/events/cplhhcksa3f8t7uosfevnpmeguo YouTube link: https://www.youtube.com/watch?v=pkAgUwaZBdU For more information, please visit http://www.kitware.com/blog/home/post/869 . Hope to see you there. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Mar 31 10:15:54 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 31 Mar 2015 10:15:54 -0400 Subject: [vtkusers] Insert raw openGL calls in vtk In-Reply-To: References: Message-ID: there is no easy way. You will have to write your own mapper. On Tue, Mar 31, 2015 at 7:17 AM, Sergio Vera wrote: > > Hello vtk Users > > I'm trying to insert opengl calls inside vtk. So far I have seen examples > of the opposite, insert vtk into opengl. > > There is the suggestion somewhere on the list of using the render methods > of vtkMapper or vtkprops but no definite example > > Where is the best way to do it? > > thanks in advance > -- > Sergio Vera > > Alma IT Systems > C/ Vilana, 4B, 4? 1? > 08022 Barcelona > T. (+34) 932 380 592 > www.alma3d.com > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From chacyi at hotmail.com Tue Mar 31 10:19:11 2015 From: chacyi at hotmail.com (Charles -) Date: Tue, 31 Mar 2015 14:19:11 +0000 Subject: [vtkusers] VTK6.2.0 error Message-ID: Hello,Dear user of VTK! I now finish installing VTK6.2.0 but when I run cmake to configure the first exercise to see if it is working, it pops out this error: CMake Error at CMakeLists.txt:7 (MESSAGE): exercise requires VTK_USE_RENDERING. And when I checked to VTK on Cmake I found that there is no this VTK_USE_RENDERING. How can I solve this problem? VTK6.2.0 doesn`t have the VTK_USE_RENDERING? If so which replaced it? Thank you very much. I appreciate your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Mar 31 10:29:31 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 31 Mar 2015 07:29:31 -0700 Subject: [vtkusers] VTK6.2.0 error In-Reply-To: References: Message-ID: What exercise are you trying to build? On Tue, Mar 31, 2015 at 7:19 AM, Charles - wrote: > > > Hello,Dear user of VTK! > > I now finish installing VTK6.2.0 but when I run cmake to configure the first > exercise to see if it is working, it pops out this error: > > CMake Error at CMakeLists.txt:7 (MESSAGE): > exercise requires VTK_USE_RENDERING. > > And when I checked to VTK on Cmake I found that there is no this > VTK_USE_RENDERING. > > How can I solve this problem? VTK6.2.0 doesn`t have the VTK_USE_RENDERING? > If so which replaced it? > > Thank you very much. > > I appreciate your help. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From sean at rogue-research.com Tue Mar 31 11:18:17 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 31 Mar 2015 11:18:17 -0400 Subject: [vtkusers] announce: short vtk 6.2 webinar today In-Reply-To: References: Message-ID: <20150331151817.742366949@mail.rogue-research.com> On Tue, 31 Mar 2015 09:49:45 -0400, David E DeMarle said: >VTK 6.2 Release Webinar >2:00 pm EST >Description: The webinar will highlight new features in VTK 6.2 and what's >coming in the next release. It will be presented by yours truly >G+ link: https://plus.google.com/events/cplhhcksa3f8t7uosfevnpmeguo >YouTube link: https://www.youtube.com/watch?v=pkAgUwaZBdU >For more information, please visit http://www.kitware.com/blog/home/post/869 14:00 EST today? The kitware blog post says March 5? 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 dave.demarle at kitware.com Tue Mar 31 11:49:48 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 31 Mar 2015 11:49:48 -0400 Subject: [vtkusers] announce: short vtk 6.2 webinar today In-Reply-To: <20150331151817.742366949@mail.rogue-research.com> References: <20150331151817.742366949@mail.rogue-research.com> Message-ID: Yes today. Sorry for the confusion. We need gitlab for blog posts I think. :( David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Mar 31, 2015 at 11:18 AM, Sean McBride wrote: > On Tue, 31 Mar 2015 09:49:45 -0400, David E DeMarle said: > > >VTK 6.2 Release Webinar > >2:00 pm EST > >Description: The webinar will highlight new features in VTK 6.2 and what's > >coming in the next release. It will be presented by yours truly > >G+ link: https://plus.google.com/events/cplhhcksa3f8t7uosfevnpmeguo > >YouTube link: https://www.youtube.com/watch?v=pkAgUwaZBdU > >For more information, please visit > http://www.kitware.com/blog/home/post/869 > > 14:00 EST today? The kitware blog post says March 5? > > Cheers, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergio.vera at alma3d.com Tue Mar 31 12:13:18 2015 From: sergio.vera at alma3d.com (Sergio Vera) Date: Tue, 31 Mar 2015 18:13:18 +0200 Subject: [vtkusers] Insert raw openGL calls in vtk In-Reply-To: References: Message-ID: Thanks, I've derived from vtkOpenGLPolyDataMapper, attached the mapper to an ordinary actor and added the actor to the renderer. It seems that neigher Draw() nor RenderPiece() methods of the mapper are being called and my simple gl code snipped is not being rendered. Any additional hints? Thanks in advance On Tue, Mar 31, 2015 at 4:15 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > there is no easy way. You will have to write your own > mapper. > > > > On Tue, Mar 31, 2015 at 7:17 AM, Sergio Vera > wrote: > >> >> Hello vtk Users >> >> I'm trying to insert opengl calls inside vtk. So far I have seen examples >> of the opposite, insert vtk into opengl. >> >> There is the suggestion somewhere on the list of using the render methods >> of vtkMapper or vtkprops but no definite example >> >> Where is the best way to do it? >> >> thanks in advance >> -- >> Sergio Vera >> >> Alma IT Systems >> C/ Vilana, 4B, 4? 1? >> 08022 Barcelona >> T. (+34) 932 380 592 >> www.alma3d.com >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- Sergio Vera Alma IT Systems C/ Vilana, 4B, 4? 1? 08022 Barcelona T. (+34) 932 380 592 www.alma3d.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Mar 31 12:38:18 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 31 Mar 2015 12:38:18 -0400 Subject: [vtkusers] Insert raw openGL calls in vtk In-Reply-To: References: Message-ID: Are using OpenGL2 or OpenGL backend? On Tue, Mar 31, 2015 at 12:13 PM, Sergio Vera wrote: > Thanks, > I've derived from vtkOpenGLPolyDataMapper, attached the mapper to an > ordinary actor and added the actor to the renderer. > It seems that neigher Draw() nor RenderPiece() methods of the mapper are > being called and my simple gl code snipped is not being rendered. > > Any additional hints? > > Thanks in advance > > On Tue, Mar 31, 2015 at 4:15 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> there is no easy way. You will have to write your own >> mapper. >> >> >> >> On Tue, Mar 31, 2015 at 7:17 AM, Sergio Vera >> wrote: >> >>> >>> Hello vtk Users >>> >>> I'm trying to insert opengl calls inside vtk. So far I have seen >>> examples of the opposite, insert vtk into opengl. >>> >>> There is the suggestion somewhere on the list of using the render >>> methods of vtkMapper or vtkprops but no definite example >>> >>> Where is the best way to do it? >>> >>> thanks in advance >>> -- >>> Sergio Vera >>> >>> Alma IT Systems >>> C/ Vilana, 4B, 4? 1? >>> 08022 Barcelona >>> T. (+34) 932 380 592 >>> www.alma3d.com >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> > > > > -- > Sergio Vera > > Alma IT Systems > C/ Vilana, 4B, 4? 1? > 08022 Barcelona > T. (+34) 932 380 592 > www.alma3d.com > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From shrus_2045 at yahoo.com Tue Mar 31 12:53:14 2015 From: shrus_2045 at yahoo.com (Shrushrita) Date: Tue, 31 Mar 2015 10:53:14 -0600 Subject: [vtkusers] announce: short vtk 6.2 webinar today In-Reply-To: References: <20150331151817.742366949@mail.rogue-research.com> Message-ID: V cxxxxxzzzz c Sent from my Sony Xperia? smartphone ---- David E DeMarle wrote ---- >_______________________________________________ >Powered by www.kitware.com > >Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > >Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >Search the list archives at: http://markmail.org/search/?q=vtkusers > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From ec_lamar at yahoo.com Tue Mar 31 19:57:34 2015 From: ec_lamar at yahoo.com (eric lamar) Date: Tue, 31 Mar 2015 23:57:34 +0000 (UTC) Subject: [vtkusers] using openGL 4.1 on mac os X under vtk 5.10 Message-ID: <855006850.2991298.1427846254249.JavaMail.yahoo@mail.yahoo.com> All:I am developing a VTK 5.10-based medical application under Mac OS X 10.10.I am extending VTK with a volume rendering engine that needs opengl 3.1 (specifically, glRestartPrimitive). When I do a glGetString(GL_VERSION), the system reports "2.1 NVIDIA-10.0.43 310.41.05f01". When I request OpenGL 3.2 (I've modified the routine "vtkCocoaRenderWindow::CreateGLContext" in vtkCocoaRenderWindow.mm; I've added "NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core" to the attributes list.), the system responds with "4.1 NVIDIA-10.0.43 310.41.05f01".That is fine; however, in a small demo app that works fine under Opengl 2.1 but I get a blank screen under Opengl 4.1. This small demo app is a distillation of the larger medial application.The small demo app follows:#include #include //#include #include #include #include #include "vtkRenderWindow.h" #include "vtkSmartPointer.h" #include "vtkSphereSource.h" #include "vtkRenderer.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static void CreateImageData(vtkImageData* im); int main(int argc, char * argv[]) { // app and window QApplication app(argc, argv); QMainWindow* wnd = new QMainWindow; wnd->setFixedSize(500, 500); // vtk widget QVTKWidget* w = new QVTKWidget(); wnd->setCentralWidget(w); // renderer with red background vtkRenderer* rend = vtkRenderer::New(); rend->SetBackground(0.8, 0.8, 0.8); // render-window to connect renderer -> widget vtkRenderWindow* window = vtkRenderWindow::New(); window->AddRenderer(rend); w->SetRenderWindow(window); vtkSmartPointer imageData = vtkSmartPointer::New(); CreateImageData(imageData); vtkSmartPointer volumeMapper = vtkSmartPointer::New(); volumeMapper->SetBlendModeToComposite(); // composite first volumeMapper->SetInput(imageData);//SetInputData(imageData); vtkSmartPointer volumeProperty = vtkSmartPointer::New(); volumeProperty->ShadeOff(); volumeProperty->SetInterpolationType(VTK_LINEAR_INTERPOLATION); vtkSmartPointer compositeOpacity = vtkSmartPointer::New(); compositeOpacity->AddPoint(0.0,0.0); compositeOpacity->AddPoint(80.0,1.0); compositeOpacity->AddPoint(80.1,1.0); compositeOpacity->AddPoint(255.0,0.0); volumeProperty->SetScalarOpacity(compositeOpacity); // composite first. vtkSmartPointer color = vtkSmartPointer::New(); color->AddRGBPoint(0.0 ,0.0,0.0,1.0); color->AddRGBPoint(40.0 ,1.0,0.0,0.0); color->AddRGBPoint(255.0,1.0,1.0,1.0); volumeProperty->SetColor(color); vtkSmartPointer volume = vtkSmartPointer::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); rend->AddViewProp(volume); rend->ResetCamera(); wnd->show(); cout << "OpenGL Version=" << glGetString(GL_VERSION) << endl; return app.exec(); } void CreateImageData(vtkImageData* imageData) { // Create a spherical implicit function. vtkSmartPointer sphere = vtkSmartPointer::New(); sphere->SetRadius(0.1); sphere->SetCenter(0.0,0.0,0.0); vtkSmartPointer sampleFunction = vtkSmartPointer::New(); sampleFunction->SetImplicitFunction(sphere); sampleFunction->SetOutputScalarTypeToDouble(); sampleFunction->SetSampleDimensions(127,127,127); // intentional NPOT dimensions. sampleFunction->SetModelBounds(-1.0,1.0,-1.0,1.0,-1.0,1.0); sampleFunction->SetCapping(false); sampleFunction->SetComputeNormals(false); sampleFunction->SetScalarArrayName("values"); sampleFunction->Update(); vtkDataArray* a = sampleFunction->GetOutput()->GetPointData()->GetScalars("values"); double range[2]; a->GetRange(range); vtkSmartPointer t = vtkSmartPointer::New(); t->SetInputConnection(sampleFunction->GetOutputPort()); t->SetShift(-range[0]); double magnitude=range[1]-range[0]; if(magnitude==0.0) { magnitude=1.0; } t->SetScale(255.0/magnitude); t->SetOutputScalarTypeToUnsignedChar(); t->Update(); imageData->ShallowCopy(t->GetOutput()); }My question is (1) why is the screen blank? (2) do I need to have vertex and fragment programs enabled (given I've received a OpenGL 4.1 context)? (3) does enabling OpenGL >2.1 break VTK? (4) What do I need to change to get output? Thank you,Eric. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chenshaoqiang at buaa.edu.cn Tue Mar 31 22:28:38 2015 From: chenshaoqiang at buaa.edu.cn (chensq) Date: Wed, 1 Apr 2015 10:28:38 +0800 Subject: [vtkusers] how to compile vtkdata for vtk6 Message-ID: <967776BD6D56415DAF33A1B8D5C716B2@LenovoPC> Hi,vtkusers It seems that the vtkdata for vtk6 need to be compiled. Please help me : how to set it, and when to invoke it. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: