Difference between revisions of "User:Tohline/vtk/ColorLookupTablea"

From VistrailsWiki
Jump to navigation Jump to search
(→‎Getting Started: Intermediate save)
(→‎Using VisTrail's vtkLookupTable Module: Another intermediate save)
Line 5: Line 5:
==Using VisTrail's vtkLookupTable Module==
==Using VisTrail's vtkLookupTable Module==
In our [[User:Tohline/vtk/SimpleCubeTutorial#Constructing_a_More_Sophisticated_Cube|accompanying discussion]], we have explained how VTK's ''default color table'' can be relied upon to assign colors to POLYGONS, based on the scalar values with which each POLYGON has been labeled.  Then, following an example used in the [http://www.kitware.com/products/books/vtkguide.html ''VTK User's Guide''], we have explained how [[User:Tohline/vtk/SimpleCubeTutorial#Specifying_Colors_of_Cell_Faces_via_a_User-defined_Color_Table|the user can define his/her own color table]] inside of an input file that adheres to the ''Simple Legacy Format.''
In our [[User:Tohline/vtk/SimpleCubeTutorial#Constructing_a_More_Sophisticated_Cube|accompanying discussion]], we have explained how VTK's ''default color table'' can be relied upon to assign colors to POLYGONS, based on the scalar values with which each POLYGON has been labeled.  Then, following an example used in the [http://www.kitware.com/products/books/vtkguide.html ''VTK User's Guide''], we have explained how [[User:Tohline/vtk/SimpleCubeTutorial#Specifying_Colors_of_Cell_Faces_via_a_User-defined_Color_Table|the user can define his/her own color table]] inside of an input file that adheres to the ''Simple Legacy Format.''
<div align="center">
<pre>
LOOKUP_TABLE my_table 8
0.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0
0.0 1.0 0.0 1.0
1.0 1.0 0.0 1.0
0.0 0.0 1.0 1.0
1.0 0.0 1.0 1.0
0.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0
</pre>
</div>


<div align="center">
<div align="center">

Revision as of 23:54, 23 March 2014

Color Lookup Tables

Whitworth's (1981) Isothermal Free-Energy Surface
|   Tiled Menu   |   Tables of Content   |  Banner Video   |  Tohline Home Page   |

This presentation is intended to accompany the "Simple Cube" tutorial that we have written as an aid for individuals who are trying to fully utilize the capabilities of VisTrails in their research. It is intended to build upon the information that can be obtained from the VTK User's Guide, authored and published by Kitware, Inc.

Using VisTrail's vtkLookupTable Module

In our accompanying discussion, we have explained how VTK's default color table can be relied upon to assign colors to POLYGONS, based on the scalar values with which each POLYGON has been labeled. Then, following an example used in the VTK User's Guide, we have explained how the user can define his/her own color table inside of an input file that adheres to the Simple Legacy Format.

LOOKUP_TABLE my_table 8
0.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0
0.0 1.0 0.0 1.0
1.0 1.0 0.0 1.0
0.0 0.0 1.0 1.0
1.0 0.0 1.0 1.0
0.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0

VisTrails Screen Snapshot

Employing the vtkLookupTable Module

Related Discussions