<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://selfgravitatingfluids.education/JETohline/index.php?action=history&amp;feed=atom&amp;title=Vtk%2FUnderstanding</id>
	<title>Vtk/Understanding - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://selfgravitatingfluids.education/JETohline/index.php?action=history&amp;feed=atom&amp;title=Vtk%2FUnderstanding"/>
	<link rel="alternate" type="text/html" href="https://selfgravitatingfluids.education/JETohline/index.php?title=Vtk/Understanding&amp;action=history"/>
	<updated>2026-04-24T03:12:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://selfgravitatingfluids.education/JETohline/index.php?title=Vtk/Understanding&amp;diff=2064&amp;oldid=prev</id>
		<title>Joel2 at 21:51, 9 July 2024</title>
		<link rel="alternate" type="text/html" href="https://selfgravitatingfluids.education/JETohline/index.php?title=Vtk/Understanding&amp;diff=2064&amp;oldid=prev"/>
		<updated>2024-07-09T21:51:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:51, 9 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;td align=&amp;quot;center&amp;quot; colspan=&amp;quot;1&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;td align=&amp;quot;center&amp;quot; colspan=&amp;quot;1&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:VTK_Fig4.1.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jpg&lt;/del&gt;|400px|center]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:VTK_Fig4.1.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;png&lt;/ins&gt;|400px|center]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/td&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joel2</name></author>
	</entry>
	<entry>
		<id>https://selfgravitatingfluids.education/JETohline/index.php?title=Vtk/Understanding&amp;diff=2060&amp;oldid=prev</id>
		<title>Joel2: Created page with &quot;=Understanding vtk Tools Inside VisTrails= ==Basic Concepts== VTK User&#039;s GuideI advise that a new user begin by playing with the Vistrails module that renders a simple cylinder.  It can be found under the VisTrails &#039;&#039;examples&#039;&#039; folder as:  &lt;font face=&quot;courier&quot; color=&quot;maroon&quot;&gt;&amp;#8230;/examples/vtk_examples/Rendering/Cylinder.vt&lt;/font&gt;.  Note that the suffix (or file t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://selfgravitatingfluids.education/JETohline/index.php?title=Vtk/Understanding&amp;diff=2060&amp;oldid=prev"/>
		<updated>2024-07-09T21:46:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Understanding vtk Tools Inside VisTrails= ==Basic Concepts== &lt;a href=&quot;/JETohline/index.php/File:VTK_TextbookCover.jpg&quot; title=&quot;File:VTK TextbookCover.jpg&quot;&gt;right|thumb|link=http://www.kitware.com/products/books/vtkguide.html|100px|VTK User&amp;#039;s Guide&lt;/a&gt;I advise that a new user begin by playing with the Vistrails module that renders a simple cylinder.  It can be found under the VisTrails &amp;#039;&amp;#039;examples&amp;#039;&amp;#039; folder as:  &amp;lt;font face=&amp;quot;courier&amp;quot; color=&amp;quot;maroon&amp;quot;&amp;gt;…/examples/vtk_examples/Rendering/Cylinder.vt&amp;lt;/font&amp;gt;.  Note that the suffix (or file t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Understanding vtk Tools Inside VisTrails=&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
[[Image:VTK_TextbookCover.jpg|right|thumb|link=http://www.kitware.com/products/books/vtkguide.html|100px|VTK User&amp;#039;s Guide]]I advise that a new user begin by playing with the Vistrails module that renders a simple cylinder.  It can be found under the VisTrails &amp;#039;&amp;#039;examples&amp;#039;&amp;#039; folder as:  &amp;lt;font face=&amp;quot;courier&amp;quot; color=&amp;quot;maroon&amp;quot;&amp;gt;&amp;amp;#8230;/examples/vtk_examples/Rendering/Cylinder.vt&amp;lt;/font&amp;gt;.  Note that the suffix (or file type) &amp;quot;.vt&amp;quot; indicates that the file is a vistrail (vt) program written in python; each such &amp;#039;&amp;#039;vistrail&amp;#039;&amp;#039;, in turn, makes extensive use of routines that are available through the open source Visualization Toolkit (vtk) library.  The simple cylinder is a good example to begin with because it is highlighted in Chapter 4 of the [http://www.kitware.com/products/books/vtkguide.html &amp;#039;&amp;#039;VTK User&amp;#039;s Guide,&amp;#039;&amp;#039; authored and published by Kitware, Inc.]&lt;br /&gt;
&lt;br /&gt;
The top, left-hand panel of Figure 1, below, shows the workflow &amp;#039;&amp;#039;pipeline&amp;#039;&amp;#039; that will appear in the Center Widget of the VisTrails Builder Window when the &amp;quot;Cylinder.vt&amp;quot; &amp;#039;&amp;#039;vistrail&amp;#039;&amp;#039; is opened and the &amp;quot;Pipeline&amp;quot; button on the VisTrails Toolbar is clicked.  Then, clicking on the &amp;quot;vtkCamera&amp;quot; &amp;#039;&amp;#039;module&amp;#039;&amp;#039; within the pipeline will generate the information shown inside the &amp;quot;methods&amp;quot; sub-window.  (Actually, before taking the screenshot shown here, the &amp;quot;methods&amp;quot; sub-window was enlarged a bit to reveal additional details.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; width=&amp;quot;60%&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;th align=&amp;quot;center&amp;quot; colspan=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
Figure 1: A Simple Cylinder&lt;br /&gt;
  &amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td align=&amp;quot;center&amp;quot; colspan=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
[[Image:CylinderWorkflow01.jpg|400px|center|This workflow &amp;#039;&amp;#039;pipeline&amp;#039;&amp;#039; appears in the VisTrails builder window when the &amp;quot;Cylinder.vt&amp;quot; module is opened.]]&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td align=&amp;quot;center&amp;quot; colspan=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
[[Image:VTK_Fig4.1.jpg|400px|center]]&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Above:&amp;#039;&amp;#039;&amp;#039;  The VisTrails Builder Window that is created by opening the &amp;#039;&amp;#039;Cylinder.vt&amp;#039;&amp;#039; vistrail.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Below:&amp;#039;&amp;#039;&amp;#039; Corresponding &amp;#039;&amp;#039;Cylinder.py&amp;#039;&amp;#039; python code&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td align=&amp;quot;left&amp;quot; rowspan=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Above:&amp;#039;&amp;#039;&amp;#039;  Opening paragraphs of &amp;lt;math&amp;gt;~\S4.1&amp;lt;/math&amp;gt; in the [http://www.kitware.com/products/books/vtkguide.html &amp;#039;&amp;#039;VTK User&amp;#039;s Guide&amp;#039;&amp;#039;]; executing the &amp;#039;&amp;#039;Cylinder.vt&amp;#039;&amp;#039; vistrail should generate the &amp;quot;tomato&amp;quot; colored cylinder shown here in Figure 4-1.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Below:&amp;#039;&amp;#039;&amp;#039; Related Tcl and C++ code excerpts.&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
  &amp;lt;td colspan=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red;font-size:75%&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
# This simple example shows how to do basic rendering and pipeline&lt;br /&gt;
# creation.&lt;br /&gt;
&lt;br /&gt;
import vtk&lt;br /&gt;
# The colors module defines various useful colors.&lt;br /&gt;
from vtk.util.colors import tomato&lt;br /&gt;
&lt;br /&gt;
# This creates a polygonal cylinder model with eight circumferential&lt;br /&gt;
# facets.&lt;br /&gt;
cylinder = vtk.vtkCylinderSource()&lt;br /&gt;
cylinder.SetResolution(8)&lt;br /&gt;
&lt;br /&gt;
# The mapper is responsible for pushing the geometry into the graphics&lt;br /&gt;
# library. It may also do color mapping, if scalars or other&lt;br /&gt;
# attributes are defined.&lt;br /&gt;
cylinderMapper = vtk.vtkPolyDataMapper()&lt;br /&gt;
cylinderMapper.SetInputConnection(cylinder.GetOutputPort())&lt;br /&gt;
&lt;br /&gt;
# The actor is a grouping mechanism: besides the geometry (mapper), it&lt;br /&gt;
# also has a property, transformation matrix, and/or texture map.&lt;br /&gt;
# Here we set its color and rotate it -22.5 degrees.&lt;br /&gt;
cylinderActor = vtk.vtkActor()&lt;br /&gt;
cylinderActor.SetMapper(cylinderMapper)&lt;br /&gt;
cylinderActor.GetProperty().SetColor(tomato)&lt;br /&gt;
cylinderActor.RotateX(30.0)&lt;br /&gt;
cylinderActor.RotateY(-45.0)&lt;br /&gt;
&lt;br /&gt;
# Create the graphics structure. The renderer renders into the render&lt;br /&gt;
# window. The render window interactor captures mouse events and will&lt;br /&gt;
# perform appropriate camera or actor manipulation depending on the&lt;br /&gt;
# nature of the events.&lt;br /&gt;
ren = vtk.vtkRenderer()&lt;br /&gt;
renWin = vtk.vtkRenderWindow()&lt;br /&gt;
renWin.AddRenderer(ren)&lt;br /&gt;
iren = vtk.vtkRenderWindowInteractor()&lt;br /&gt;
iren.SetRenderWindow(renWin)&lt;br /&gt;
&lt;br /&gt;
# Add the actors to the renderer, set the background and size&lt;br /&gt;
ren.AddActor(cylinderActor)&lt;br /&gt;
ren.SetBackground(0.1, 0.2, 0.4)&lt;br /&gt;
renWin.SetSize(200, 200)&lt;br /&gt;
&lt;br /&gt;
# This allows the interactor to initalize itself. It has to be&lt;br /&gt;
# called before an event loop. &lt;br /&gt;
iren.Initialize()&lt;br /&gt;
&lt;br /&gt;
# We&amp;#039;ll zoom in a little by accessing the camera and invoking a &amp;quot;Zoom&amp;quot;&lt;br /&gt;
# method on it.&lt;br /&gt;
ren.ResetCamera()&lt;br /&gt;
ren.GetActiveCamera().Zoom(1.5)&lt;br /&gt;
renWin.Render()&lt;br /&gt;
&lt;br /&gt;
# Start the event loop.&lt;br /&gt;
iren.Start()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;td align=&amp;quot;left&amp;quot; rowspan=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
Related Tcl code:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:red;font-size:75%&amp;quot;&amp;gt;&lt;br /&gt;
vtkCylinderSource Cylinder&lt;br /&gt;
    cylinder SetResolution 8&lt;br /&gt;
vtkPolyDataMapper cylinderMapper&lt;br /&gt;
    cylinderMapper SetInputConnection [cylinder GetOutputPort]&lt;br /&gt;
vtkActor cylinderActor&lt;br /&gt;
    cylinderActor SetMapper cylinderMapper&lt;br /&gt;
    eval [cylinderActor GetProperty] SetColor $tomato&lt;br /&gt;
    cylinderActor RotateX  30.0&lt;br /&gt;
    cylinderActor RotateY -45.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Web References==&lt;br /&gt;
Here are some potentially relevant web pages:&lt;br /&gt;
* [http://www.rug.nl/science-and-society/centre-for-information-technology/research/hpcv/visualisation/vtk/polydata/man.html Examples (1)]&lt;br /&gt;
* [http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html VTK File Formats]&lt;/div&gt;</summary>
		<author><name>Joel2</name></author>
	</entry>
</feed>