Skip to content

Commit 2ac9ea8

Browse files
ChristosTjcfr
authored andcommitted
Examples: Update links to reference the examples site
Update Cxx & Python examples links from relative paths to external URLs associated with the VTK examples site: * https://kitware.github.io/vtk-examples/site/Cxx * https://kitware.github.io/vtk-examples/site/Python
1 parent fceea8b commit 2ac9ea8

File tree

9 files changed

+99
-99
lines changed

9 files changed

+99
-99
lines changed

VTKBook/03Chapter3.md

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

VTKBook/04Chapter4.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In the examples that follow we will frequently use a simplified representation o
3838
<figure id="Figure 4-1">
3939
<figure id="Figure 4-1a">
4040
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/Visualization/TestQuadricVisualization.png?raw=true" width="640" alt="Figure 4-1a">
41-
<figcaption style="color:blue" (a)Quadric visualization <a></a> <a href="../../Cxx/Visualization/QuadricVisualization" title="QuadricVisualization"> See QuadricVisualization.cxx</a> and <a href="../../Python/Visualization/QuadricVisualization" title="QuadricVisualization"> QuadricVisualization.py</a>.</figcaption>
41+
<figcaption style="color:blue" (a)Quadric visualization <a></a> <a href="https://kitware.github.io/vtk-examples/site/Cxx/Visualization/QuadricVisualization" title="QuadricVisualization"> See QuadricVisualization.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/Visualization/QuadricVisualization" title="QuadricVisualization"> QuadricVisualization.py</a>.</figcaption>
4242
</figure>
4343
<figure id="Figure 4-1b">
4444
<img src="https://github.com/Kitware/vtk-book/releases/download/book-resources/Figure4-1b.png?raw=true" width="640" alt="Figure4-1b">
@@ -359,7 +359,7 @@ In the *Visualization Toolkit*, there are several importers and exporters. To se
359359
<figure id="Figure 4-13b">
360360
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/IO/Test3DSImporter.png?raw=true" width="640" alt="Figure 4-13">
361361
</figure>
362-
<figcaption style="color:blue"><b>Figure 4-13</b>. Importing and exporting files in VTK. An importer creates a &#118;tkRenderWindow that describes the scene. Exporters use an instance of &#118;tkRenderWindow to obtain a description of the scene. <a href="../../Cxx/IO/3DSImporter" title="3DSImporter"> See 3DSImporter.cxx</a> and <a href="../../Python/IO/3DSImporter" title="3DSImporter"> 3DSImporter.py</a>.</figcaption>
362+
<figcaption style="color:blue"><b>Figure 4-13</b>. Importing and exporting files in VTK. An importer creates a &#118;tkRenderWindow that describes the scene. Exporters use an instance of &#118;tkRenderWindow to obtain a description of the scene. <a href="https://kitware.github.io/vtk-examples/site/Cxx/IO/3DSImporter" title="3DSImporter"> See 3DSImporter.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/IO/3DSImporter" title="3DSImporter"> 3DSImporter.py</a>.</figcaption>
363363
</figure>
364364

365365
**Figure 4-13** shows an image created from a *3D Studio* model and saved as a *Renderman* RIB file.
@@ -563,7 +563,7 @@ We will now demonstrate some of the features of the visualization pipeline with
563563
<figure id="Figure 4-19">
564564
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/Rendering/TestColoredSphere.png?raw=true" width="640" alt="Figure 4-19">
565565
</figure>
566-
<figcaption style="color:blue"><b>Figure 4-19</b>. A simple sphere example. <a href="../../Cxx/Rendering/ColoredSphere" title="ColoredSphere"> See ColoredSphere.cxx</a> and <a href="../../Python/Rendering/ColoredSphere" title="ColoredSphere"> ColoredSphere.py</a>.</figcaption>
566+
<figcaption style="color:blue"><b>Figure 4-19</b>. A simple sphere example. <a href="https://kitware.github.io/vtk-examples/site/Cxx/Rendering/ColoredSphere" title="ColoredSphere"> See ColoredSphere.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/Rendering/ColoredSphere" title="ColoredSphere"> ColoredSphere.py</a>.</figcaption>
567567
</figure>
568568

569569
The execution of the pipeline occurs implicitly when we render the actor. Each actor asks its mapper to update itself. The mapper in turn asks its input to update itself. This process continues until a source object is encountered. Then the source will execute if modified since the last render.
@@ -587,7 +587,7 @@ The transform filter only operates on objects with explicit point coordinate rep
587587
<figure id="Figure 4-20">
588588
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/Rendering/TestTransformSphere.png?raw=true" width="640" alt="Figure 4-20">
589589
</figure>
590-
<figcaption style="color:blue"><b>Figure 4-20</b>. The addition of a transform filter to the previous example. <a href="../../Cxx/Rendering/TransformSphere" title="TransformSphere"> See TransformSphere.cxx</a> and <a href="../../Python/Rendering/TransformSphere" title="TransformSphere"> TransformSphere.py</a>.</figcaption>
590+
<figcaption style="color:blue"><b>Figure 4-20</b>. The addition of a transform filter to the previous example. <a href="https://kitware.github.io/vtk-examples/site/Cxx/Rendering/TransformSphere" title="TransformSphere"> See TransformSphere.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/Rendering/TransformSphere" title="TransformSphere"> TransformSphere.py</a>.</figcaption>
591591
</figure>
592592

593593
The C++ compiler enforces the proper connections of sources, filters, and mappers. To decide which objects are compatible, we check the type specification of the SetInput() method. If the input object returns an output object or a subclass of that type, the two objects are compatible and may be connected.
@@ -601,7 +601,7 @@ The C++ compiler enforces the proper connections of sources, filters, and mapper
601601
<figure id="Figure 4-21b">
602602
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/Rendering/TestMace.png?raw=true" width="640" alt="Figure 4-21">
603603
</figure>
604-
<figcaption style="color:blue"><b>Figure 4-21</b>. An example of multiple inputs and outputs.<a href="../../Cxx/Rendering/Mace" title="Mace"> See Mace.cxx</a> and <a href="../../Python/Rendering/Mace" title="Mace"> Mace.py</a>.</figcaption>
604+
<figcaption style="color:blue"><b>Figure 4-21</b>. An example of multiple inputs and outputs.<a href="https://kitware.github.io/vtk-examples/site/Cxx/Rendering/Mace" title="Mace"> See Mace.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/Rendering/Mace" title="Mace"> Mace.py</a>.</figcaption>
605605
</figure>
606606

607607
The visualization network branches at vtkGlyph3D. If either branch is modified, then this filter will re-execute. Network updates must branch in both directions, and both branches must be up to date when vtkGlyph3D executes. These requirements are enforced by the Update() method, and pose no problem to the implicit execution method.
@@ -615,7 +615,7 @@ The visualization network branches at vtkGlyph3D. If either branch is modified,
615615
<figure id="Figure 4-22b">
616616
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/Visualization/TestLoopShrink.png?raw=true" width="640" alt="Figure 4-22">
617617
</figure>
618-
<figcaption style="color:blue"><b>Figure 4-22</b>. A network with a loop (LoopShrk.cxx). VTK 5.0 does not allow you to execute a looping visualization network; this was possible in previous versions of VTK.<a href="../../Cxx/Visualization/LoopShrink" title="LoopShrink"> See LoopShrink.cxx</a> and <a href="../../Python/Visualization/LoopShrink" title="LoopShrink"> LoopShrink.py</a>.</figcaption> </figure>
618+
<figcaption style="color:blue"><b>Figure 4-22</b>. A network with a loop (LoopShrk.cxx). VTK 5.0 does not allow you to execute a looping visualization network; this was possible in previous versions of VTK.<a href="https://kitware.github.io/vtk-examples/site/Cxx/Visualization/LoopShrink" title="LoopShrink"> See LoopShrink.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/Visualization/LoopShrink" title="LoopShrink"> LoopShrink.py</a>.</figcaption> </figure>
619619

620620
After vtkSphereSource generates an initial geometry (in response to a render request), the input of vtkShrinkFilter is changed to the output of the vtkElevationFilter. Because of the feedback loop, vtkShrinkFilter will always re-execute. Thus, the behavior of the network is to re-execute each time a render is performed. Because the shrink filter is reapplied to the same data, the polygons become smaller and smaller and eventually disappear.
621621

VTKBook/05Chapter5.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ Creation of datasets is a two step process. First the geometry and topology of t
499499
<figure id="Figure 5-17b">
500500
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/GeometricObjects/TestCube.png?raw=true" width="640" alt="Figure 5-17">
501501
</figure>
502-
<figcaption style="color:blue"><b>Figure 5-17</b>. Creation of polygonal cube. <a href="../../Cxx/GeometricObjects/Cube" title="Cube"> See Cube.cxx</a> and <a href="../../Python/GeometricObjects/Cube" title="Cube"> Cube.py</a>.</figcaption>
502+
<figcaption style="color:blue"><b>Figure 5-17</b>. Creation of polygonal cube. <a href="https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/Cube" title="Cube"> See Cube.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/GeometricObjects/Cube" title="Cube"> Cube.py</a>.</figcaption>
503503
</figure>
504504
505505
**Create a Polygonal Dataset.** In our first example we create a polygonal representation of a cube. The cube is defined by eight points and six quadrilateral faces. We also create eight scalar values associated with the eight vertices of the cube. **Figure 5-17** shows the key C++ code fragments used to create the data, and the resulting image.
@@ -529,7 +529,7 @@ The answer is no. Certain data objects in VTK are reference counted to conserve
529529
<figure id="Figure 5-18b">
530530
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/StructuredPoints/TestVol.png?raw=true" width="640" alt="Figure 5-18">
531531
</figure>
532-
<figcaption style="color:blue"><b>Figure 5-18</b>. Creating a image data dataset. Scalar data is generated from the equation for a sphere. Volume dimensions are 26^3. <a href="../../Cxx/StructuredPoints/Vol" title="Vol"> See Vol.cxx</a> and <a href="../../Python/StructuredPoints/Vol" title="Vol"> Vol.py</a>.</figcaption>
532+
<figcaption style="color:blue"><b>Figure 5-18</b>. Creating a image data dataset. Scalar data is generated from the equation for a sphere. Volume dimensions are 26^3. <a href="https://kitware.github.io/vtk-examples/site/Cxx/StructuredPoints/Vol" title="Vol"> See Vol.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/StructuredPoints/Vol" title="Vol"> Vol.py</a>.</figcaption>
533533
</figure>
534534
535535
In this example we create scalar data along with the image data dataset. The scalar values are computed from the implicit function for a sphere
@@ -573,7 +573,7 @@ $$
573573
<figure id="Figure 5-19b">
574574
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/StructuredGrid/TestSGrid.png?raw=true" width="640" alt="Figure 5-19">
575575
</figure>
576-
<figcaption style="color:blue"><b>Figure 5-19</b>. Creating a structured grid dataset of a semicylinder. Vectors are created whose magnitude is proportional to radius and oriented in tangential direction.<a href="../../Cxx/StructuredGrid/SGrid" title="SGrid"> See SGrid.cxx</a> and <a href="../../Python/StructuredGrid/SGrid" title="SGrid"> SGrid.py</a>.</figcaption>
576+
<figcaption style="color:blue"><b>Figure 5-19</b>. Creating a structured grid dataset of a semicylinder. Vectors are created whose magnitude is proportional to radius and oriented in tangential direction.<a href="https://kitware.github.io/vtk-examples/site/Cxx/StructuredGrid/SGrid" title="SGrid"> See SGrid.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/StructuredGrid/SGrid" title="SGrid"> SGrid.py</a>.</figcaption>
577577
</figure>
578578
579579
We arbitrarily choose the number of points in the tangential direction to be thirteen, the number of points in the radial direction to be eleven, and the number of points in the axis direction to be eleven (i.e., dimensions are $13 \times 11 \times 11$).
@@ -597,7 +597,7 @@ The creation of a structured grid dataset is partially explicit and partially im
597597
<figure id="Figure 5-20b">
598598
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/RectilinearGrid/TestRGrid.png?raw=true" width="640" alt="Figure 5-20">
599599
</figure>
600-
<figcaption style="color:blue"><b>Figure 5-20</b>. Creating a rectilinear grid dataset. The coordinates along each axis are defined using an instance of &#118;tkDataArray.<a href="../../Cxx/RectilinearGrid/RGrid" title="RGrid"> See RGrid.cxx</a> and <a href="../../Python/RectilinearGrid/RGrid" title="RGrid"> RGrid.py</a>.</figcaption>
600+
<figcaption style="color:blue"><b>Figure 5-20</b>. Creating a rectilinear grid dataset. The coordinates along each axis are defined using an instance of &#118;tkDataArray.<a href="https://kitware.github.io/vtk-examples/site/Cxx/RectilinearGrid/RGrid" title="RGrid"> See RGrid.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/RectilinearGrid/RGrid" title="RGrid"> RGrid.py</a>.</figcaption>
601601
</figure>
602602
603603
For maximum flexibility when creating rectilinear grids, in VTK we use three vtkDataArray objects to define the axes arrays. This means that different native data type (e.g., unsigned char, int, float, and so on) can be used for each axes.
@@ -623,7 +623,7 @@ The topological dimension of the dataset is implied by the specified dimensions.
623623
<figure id="Figure 5-21b">
624624
<img src="https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/UnstructuredGrid/TestUGrid.png?raw=true" width="640" alt="Figure 5-21">
625625
</figure>
626-
<figcaption style="color:blue"><b>Figure 5-21</b>. Creating a structured grid dataset of a semicylinder. Vectors are created whose magnitude is proportional to radius and oriented in tangential direction.<a href="../../Cxx/UnstructuredGrid/UGrid" title="UGrid"> See UGrid.cxx</a> and <a href="../../Python/UnstructuredGrid/UGrid" title="UGrid"> UGrid.py</a>.</figcaption>
626+
<figcaption style="color:blue"><b>Figure 5-21</b>. Creating a structured grid dataset of a semicylinder. Vectors are created whose magnitude is proportional to radius and oriented in tangential direction.<a href="https://kitware.github.io/vtk-examples/site/Cxx/UnstructuredGrid/UGrid" title="UGrid"> See UGrid.cxx</a> and <a href="https://kitware.github.io/vtk-examples/site/Python/UnstructuredGrid/UGrid" title="UGrid"> UGrid.py</a>.</figcaption>
627627
</figure>
628628
629629
To summarize the process of creating an instance of vtkUnstructuredGrid, we follow five steps. We assume the name of vtkUnstructuredGrid instance is ugrid.

0 commit comments

Comments
 (0)