https://public.kitware.com/Wiki/api.php?action=feedcontributions&user=Lorensen&feedformat=atomKitwarePublic - User contributions [en]2024-03-29T02:04:38ZUser contributionsMediaWiki 1.38.6https://public.kitware.com/Wiki/index.php?title=VTK&diff=62210VTK2018-02-22T15:33:29Z<p>Lorensen: Replace wiki examples with new VTKExamples.</p>
<hr />
<div>__NOTOC__ __NOEDITSECTION__<br />
<br />
<center>http://www.vtk.org/opensourcelogos/vtk75.png</center><br />
<br /><br />
<br />
<center>'''Welcome to the VTK Wiki, home of the latest VTK documentation and resources on the web.<br />
</center><br />
<br />
The Visualization ToolKit (VTK) is an open source, freely available software system for 3D computer graphics, image processing, and visualization used by thousands of researchers and developers around the world. VTK consists of a C++ class library, and several interpreted interface layers including Python, Tcl/Tk and Java. Professional support and products for VTK are provided by [http://www.kitware.com Kitware, Inc.] VTK supports a wide variety of visualization algorithms including scalar, vector, tensor, texture, and volumetric methods; and advanced modeling techniques such as implicit modelling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay triangulation. In addition, dozens of imaging algorithms have been directly integrated to allow the user to mix 2D imaging / 3D graphics algorithms and data.<br />
==Start Here==<br />
<br />
<div style="float: left; margin-right: 1%; width: 49%;"><br />
===Join===<br />
: [http://www.vtk.org/VTK/help/mailing.html Sign up] for the vtk mailing lists<br />
: [http://www.vtk.org/Bug/my_view_page.php Register] on the Mantis bug tracker<br />
===Read===<br />
: Browse the [https://docs.google.com/a/kitware.com/document/d/1nzinw-dR5JQRNi_gb8qwLL5PnkGMK2FETlQGLr10tZw/edit VTK Coding Standards]<br />
: Skim the [[VTK/FAQ | Developer's FAQ]]<br />
: Peruse a few of the [[VTK/Tutorials/External_Tutorials | External Tutorials]]<br />
<br />
===Learn===<br />
:Watch some of Kitware's [http://www.vtk.org/VTK/resources/webinars.html Webinars]<br />
:Build some of the [https://lorensen.github.io/VTKExamples/site/ VTK Examples]<br />
:Read the [[VTK/Tutorials | Advanced Tutorials]]<br />
:Study the [http://www.vtk.org/doc/release/7.1/html VTK 7.1] or [http://www.vtk.org/doc/nightly/html Nightly] doxygen documentation<br />
<br />
</div><br />
<br />
<div style="float: left; width: 50%;"><br />
===Source Code How-to===<br />
:[http://www.vtk.org/VTK/resources/software.html Get the VTK Source]<br />
:[[VTK/Git/Develop#Setup|Setup for Git development]]<br />
:[[VTK/Git/Develop#Create_a_Topic|Create, Commit, and Share Change Sets]]<br />
:[[VTK/Configure_and_Build | Configure and Build VTK]] {{new}}<br />
===Check the Status===<br />
:[http://www.ohloh.net/p/vtk Ohloh project page]<br />
:[https://gitlab.kitware.com/vtk/vtk/commits/master Recent commits]<br />
<br />
===View the Code===<br />
:[https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/README.md Git Landing page]<br />
:[http://vtk.org/gitweb?p=VTK.git VTK Gitweb]<br />
:[https://github.com/Kitware/VTK Github Mirror]<br />
</div><br />
<br />
<div style="clear: both;"></div><br />
<br />
==Resources==<br />
<br />
<div style="float: left; margin-right: 1%; width: 49%;"><br />
; [[VTK/Dashboard_how_to|Contribute a Dashboard]] {{new}}: Dashboards are an important tool we use to ensure quality.<br />
<br />
; [http://markmail.org/search/?q=vtk Communications]: Search the mailing list archives or use [http://www.google.com/advanced_search?as_sitesearch=www.vtk.org&as_epq=vtk-users Advanced Google search]<br />
<br />
; [http://www.vtk.org/Wiki/VTK_Datasets Data]: VTK is tested and released with datasets for visualization.<br />
</div><br />
<br />
<div style="float: left; width: 50%;"><br />
; [http://open.cdash.org/index.php?project=VTK CDash]: View the VTK Quality Dashboards<br />
<br />
; [[VTK/BuildingDoxygen|Documentation]]: Build the VTK Doxygen documentation<br />
<br />
; [[VTK/Roadmap | Roadmap]]: Read about what's in and coming soon to VTK.<br />
</div><br />
<br />
<div style="clear: both;"></div><br />
<br />
== Help ==<br />
* Kitware offers [http://www.kitware.com/products/support.html Support Contracts] and [http://www.kitware.com/products/consulting.html Expert Consulting] <br />
* [[VTK/Deprecated_frontpage|Deprecated Frontpage]]</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:Replace&diff=61924Template:Replace2017-08-11T18:23:01Z<p>Lorensen: Created page with "{{#invoke:String|replace|source={{{1}}}|{{{2}}}|{{{3}}}|count={{{count|}}}}}<noinclude> {{documentation}} </noinclude>"</p>
<hr />
<div>{{#invoke:String|replace|source={{{1}}}|{{{2}}}|{{{3}}}|count={{{count|}}}}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61923Template:VTKCMakeLists2017-08-11T17:58:06Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61922Template:VTKCMakeLists2017-08-11T17:54:11Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
{{replace |{{PAGENAME}} |VTK/Examples|VTKExamples/site/}}<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61921Template:VTKCMakeLists2017-08-11T17:51:50Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
[https://lorensen.github.io/{{replace|{{PAGENAME}}|VTK/Examples|VTKExamples/site/}} new VTKExamples version]<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61920Template:VTKCMakeLists2017-08-11T17:46:47Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
[https://lorensen.github.io/{{replace|VTK/Examples/Cxx/Modelling/MarchingSquares|VTK/Examples|VTKExamples/site/}} new VTKExamples version]<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61919Template:VTKCMakeLists2017-08-11T16:54:59Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
[https://lorensen.github.io/{{replace|{{{{PAGENAME}}}}|VTK/Examples|VTKExamples/site/}} new VTKExamples version]<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61918Template:VTKCMakeLists2017-08-11T16:53:42Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
[https://lorensen.github.io/{{replace|{{PAGENAME}}|VTK/Examples|VTKExamples/site/}} new VTKExamples version]<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61917Template:VTKCMakeLists2017-08-11T16:43:50Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
{{PAGENAME}}<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61916Template:VTKCMakeLists2017-08-11T16:26:31Z<p>Lorensen: </p>
<hr />
<div>= '''Please try the new [https://lorensen.github.io/VTKExamples VTKExamples website].''' =<br />
<br />
==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestSeedWidgetImage.png&diff=61826File:VTK Examples Baseline Widgets TestSeedWidgetImage.png2017-05-30T00:20:09Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_PolyData_TestDeleteCells.png&diff=61805File:VTK Examples Baseline PolyData TestDeleteCells.png2017-04-29T14:52:40Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_TestAmbientSpheres.png&diff=61803File:VTK Examples Baseline Rendering TestAmbientSpheres.png2017-04-29T00:27:03Z<p>Lorensen: Lorensen uploaded a new version of &quot;File:VTK Examples Baseline Rendering TestAmbientSpheres.png&quot;</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_TestDiffuseSpheres.png&diff=61798File:VTK Examples Baseline Rendering TestDiffuseSpheres.png2017-04-28T00:31:47Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_TestSpecularSpheres.png&diff=61797File:VTK Examples Baseline Rendering TestSpecularSpheres.png2017-04-28T00:31:42Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_TestAmbientSpheres.png&diff=61796File:VTK Examples Baseline Rendering TestAmbientSpheres.png2017-04-28T00:31:38Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_TestCylinderRenderingProperties.png&diff=61795File:VTK Examples Baseline Rendering TestCylinderRenderingProperties.png2017-04-28T00:31:35Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_CompositeData_TestOverlappingAMR.png&diff=61794File:VTK Examples Baseline CompositeData TestOverlappingAMR.png2017-04-28T00:20:37Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_CompositeData_TestCompositePolyDataMapper.png&diff=61793File:VTK Examples Baseline CompositeData TestCompositePolyDataMapper.png2017-04-27T23:45:28Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_CompositeData_TestMultiBlockDataSet.png&diff=61792File:VTK Examples Baseline CompositeData TestMultiBlockDataSet.png2017-04-27T23:44:32Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_AmbientSpheres.png&diff=61783File:VTK Examples Baseline Rendering AmbientSpheres.png2017-04-27T18:50:00Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:VTKCMakeLists&diff=61773Template:VTKCMakeLists2017-04-27T18:17:03Z<p>Lorensen: </p>
<hr />
<div>==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
PROJECT({{{1}}})<br />
<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
<br />
if(VTK_LIBRARIES)<br />
target_link_libraries({{{1}}} ${VTK_LIBRARIES})<br />
else()<br />
target_link_libraries({{{1}}} vtkHybrid vtkWidgets)<br />
endif()<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download {{{1}}}]. and its ''CMakeLists.txt'' file.<br />
<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If VTK is installed:<br />
cmake ..<br />
* If VTK is not installed but compiled on your system, you will need to specify the path to your VTK build:<br />
cmake -DVTK_DIR:PATH=/home/me/vtk_build ..<br />
Build the project:<br />
make<br />
and run it:<br />
./{{{1}}}<br />
<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_SpecularSpheres.png&diff=61770File:VTK Examples Baseline Rendering SpecularSpheres.png2017-04-27T18:12:51Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_CompositeData_OverlappingAMR.png&diff=61753File:VTK Examples Baseline CompositeData OverlappingAMR.png2017-04-27T17:37:47Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Rendering_CylinderRenderProperties.png&diff=61746File:VTK Examples Baseline Rendering CylinderRenderProperties.png2017-04-27T17:10:31Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Lighting_TestDiffuseSpheres.png&diff=61741File:VTK Examples Baseline Lighting TestDiffuseSpheres.png2017-04-27T17:02:16Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_PolyData_TestLinearExtrusion.png&diff=61718File:VTK Examples Baseline PolyData TestLinearExtrusion.png2017-04-20T15:04:05Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Modelling_TestContourTriangulator.png&diff=61684File:VTK Examples Baseline Modelling TestContourTriangulator.png2017-04-16T19:04:36Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Modelling_TestMarchingSquares.png&diff=61681File:VTK Examples Baseline Modelling TestMarchingSquares.png2017-04-16T18:46:10Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Remote_TestFrenetSerretFrameDemo.png&diff=61605File:VTK Examples Baseline Remote TestFrenetSerretFrameDemo.png2017-04-06T16:06:18Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Remote_TestFrenetSerretFrame.png&diff=61599File:VTK Examples Baseline Remote TestFrenetSerretFrame.png2017-04-05T14:54:04Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestDataSetGradient.png&diff=61558File:VTK Examples Baseline Visualization TestDataSetGradient.png2017-03-25T00:29:22Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestBoxClipStructuredPoints.png&diff=61546File:VTK Examples Baseline Visualization TestBoxClipStructuredPoints.png2017-03-23T15:18:24Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestBoxClipUnstructuredGrid.png&diff=61544File:VTK Examples Baseline Visualization TestBoxClipUnstructuredGrid.png2017-03-23T15:17:13Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=Template:ITKVTKCMakeLists&diff=61516Template:ITKVTKCMakeLists2017-03-03T14:25:08Z<p>Lorensen: Reverted to previous because the revision removed the capability to build against a standalone glue library.</p>
<hr />
<div>==CMakeLists.txt==<br />
{{#tag:syntaxhighlight<br />
|<br />
cmake_minimum_required(VERSION 2.8)<br />
<br />
project({{{1}}})<br />
<br />
find_package(ITK REQUIRED)<br />
include(${ITK_USE_FILE})<br />
if (ITKVtkGlue_LOADED)<br />
find_package(VTK REQUIRED)<br />
include(${VTK_USE_FILE})<br />
else()<br />
find_package(ItkVtkGlue REQUIRED)<br />
include(${ItkVtkGlue_USE_FILE})<br />
set(Glue ItkVtkGlue)<br />
endif()<br />
<br />
add_executable({{{1}}} MACOSX_BUNDLE {{{1}}}.cxx)<br />
target_link_libraries({{{1}}}<br />
${Glue} ${VTK_LIBRARIES} ${ITK_LIBRARIES})<br />
|lang=cmake}}<br />
<br />
==Download and Build {{{1}}}==<br />
Click [https://github.com/lorensen/ITKWikiExamplesTarballs/raw/master/{{{1}}}.tar here to download ''{{{1}}}'']. and its ''CMakeLists.txt'' file.<br />
Once the tarball ''{{{1}}}.tar'' has been downloaded and extracted,<br />
cd {{{1}}}/build <br />
* If ITK is installed:<br />
cmake ..<br />
* If ITK is not installed but compiled on your system, you will need to specify '''the path to your ITK build''':<br />
cmake -DITK_DIR:PATH='''/home/me/itk_build''' ..<br />
Build the project,<br />
make<br />
and run it:<br />
./{{{1}}}<br />
'''WINDOWS USERS PLEASE NOTE:''' Be sure to add the VTK and ITK bin directories to your path. This will resolve the VTK and ITK dll's at run time.<br />
<br />
==Building All of the Examples==<br />
Many of the examples in the ITK Wiki Examples Collection require VTK. You can build all of the the examples by following [[ITK/Examples/Instructions/ForUsers#Build_all_of_the_examples|these instructions]]. If you are a new VTK user, you may want to try the [[ITK/Examples/Instructions/ForUsers#Use_the_Superbuild_to_build_a_proper_VTK_and_ITK|Superbuild]] which will build a proper ITK and VTK.<br />
==ItkVtkGlue==<br />
===ITK >= 4===<br />
For examples that use QuickView (which depends on VTK), you must have built ITK with Module_ITKVtkGlue=ON.<br />
<br />
===ITK < 4===<br />
Some of the ITK Examples require VTK to display the images. If you download the entire ITK Wiki Examples Collection, the ItkVtkGlue directory will be included and configured. If you wish to just build a few examples, then you will need to [https://github.com/InsightSoftwareConsortium/ITKWikiExamples/raw/master/ItkVtkGlue.tar.gz download ItkVtkGlue] and build it. When you run cmake it will ask you to specify the location of the ItkVtkGlue binary directory.</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestElevationBandsWithGlyphs.png&diff=61502File:VTK Examples Baseline Visualization TestElevationBandsWithGlyphs.png2017-02-25T01:29:40Z<p>Lorensen: Lorensen uploaded a new version of &quot;File:VTK Examples Baseline Visualization TestElevationBandsWithGlyphs.png&quot;</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestBillboardTextActor3D.png&diff=61501File:VTK Examples Baseline Visualization TestBillboardTextActor3D.png2017-02-24T17:05:56Z<p>Lorensen: Lorensen uploaded a new version of &quot;File:VTK Examples Baseline Visualization TestBillboardTextActor3D.png&quot;</p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Visualization_TestBillboardTextActor3D.png&diff=61493File:VTK Examples Baseline Visualization TestBillboardTextActor3D.png2017-02-21T18:42:57Z<p>Lorensen: </p>
<hr />
<div></div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestTextWidget_2.png&diff=61478File:VTK Examples Baseline Widgets TestTextWidget 2.png2017-02-11T20:07:38Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestSlider2D_2.png&diff=61477File:VTK Examples Baseline Widgets TestSlider2D 2.png2017-02-11T20:07:30Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestRectilinearWipeWidget_1.png&diff=61476File:VTK Examples Baseline Widgets TestRectilinearWipeWidget 1.png2017-02-11T20:07:24Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestImplicitPlaneWidget2_4.png&diff=61475File:VTK Examples Baseline Widgets TestImplicitPlaneWidget2 4.png2017-02-11T20:07:14Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestImplicitPlaneWidget2_3.png&diff=61474File:VTK Examples Baseline Widgets TestImplicitPlaneWidget2 3.png2017-02-11T20:07:12Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestImplicitPlaneWidget2_2.png&diff=61473File:VTK Examples Baseline Widgets TestImplicitPlaneWidget2 2.png2017-02-11T20:07:09Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestImplicitPlaneWidget2_1.png&diff=61472File:VTK Examples Baseline Widgets TestImplicitPlaneWidget2 1.png2017-02-11T20:07:07Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_Widgets_TestContourWidget_1.png&diff=61471File:VTK Examples Baseline Widgets TestContourWidget 1.png2017-02-11T20:07:00Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_VolumeRendering_TestHAVSVolumeMapper_3.png&diff=61470File:VTK Examples Baseline VolumeRendering TestHAVSVolumeMapper 3.png2017-02-11T20:06:43Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_VisualizationAlgorithms_TestFindCellIntersections_1.png&diff=61469File:VTK Examples Baseline VisualizationAlgorithms TestFindCellIntersections 1.png2017-02-11T20:06:37Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_VisualizationAlgorithms_TestCutWithCutFunction_4.png&diff=61468File:VTK Examples Baseline VisualizationAlgorithms TestCutWithCutFunction 4.png2017-02-11T20:06:29Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensenhttps://public.kitware.com/Wiki/index.php?title=File:VTK_Examples_Baseline_VisualizationAlgorithms_TestCutWithCutFunction_3.png&diff=61467File:VTK Examples Baseline VisualizationAlgorithms TestCutWithCutFunction 3.png2017-02-11T20:06:27Z<p>Lorensen: New baseline added</p>
<hr />
<div>New baseline added</div>Lorensen