Editing
Vtk/SimpleCubeTutorial
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Other Knobs to Twist=== <table border="0" width="40%" align="right" cellpadding="12"> <tr><td align="center"> <table border="1" cellpadding="4"> <tr> <td align="center" colspan="3"> '''<font color="darkblue">Cheetsheet</font>''' </td> </tr> <tr> <td align="center"> Module: </td> <td align="center"> Method Action: </td> <td align="center"> Result </td> </tr> <tr> <td align="left"> vtkPolyDataReader </td> <td align="left"> SetLookupTableName = my_table </td> <td align="left"> '''my_table'''<sup>†</sup> </td> </tr> <tr> <td align="left" rowspan="2"> vtkPolyDataReader </td> <td align="left" rowspan="2"> SetLookupTableName = default </td> <td align="left"> <font size="-1">VTK's default hue-based color table </font> </td> </tr> <tr> <td align="left"> <font size="-1">Color table provided by ''vtkLookupTable'' module, if one hooked into ''vtkPolyDataMapper'' </font> </td> </tr> <tr> <td align="left"> vtkPolyDataMapper </td> <td align="left"> ScalarVisibilityOff </td> <td align="left"> Color defined by vtkProperty module </td> </tr> <tr> <td align="left"> vtkProperty </td> <td align="left"> SetRepresentationToWireframe </td> <td align="left"> Rendered as wireframe only </td> </tr> <tr> <td align="left" colspan="3"> <font size="-1"><sup>†</sup>Table obtained from ''Simple Legacy Formatted'' input file</font> </td> </tr> </table> </td></tr></table> <font color="blue">Switch Between Different Color Tables:</font> * When using the input data file associated with Example E, the six faces of the cube will be colored according to the values assigned by the user to the "my_table" LOOKUP_TABLE. You can straightforwardly switch to VTK's "default" color table without further modifying the input data file by clicking on (i.e., selecting) the "vtkPolyDataReader" module in the VisTrails pipeline, dragging the "SetLookupTableName" method into the "Set Methods" segment of the VisTrails Builder Window, typing the string "default" into the provided window, then reexecuting the pipeline. (You can switch back to the user-provided color table by typing in the string "my_table", then reexecuting the pipeline.) * You can also revert back to the tomato-colored cube (or whatever color is specified inside the "vtkProperty" module) by clicking on the "vtkPolyDataMapper" module in the VisTrails pipeline, dragging the "ScalarVisibilityOff" method into the "Set Methods" segment of the BisTrails Builder Window, then reexecuting the pipeline. <font color="blue">Transparency:</font> * The fourth floating-point number <math>~(\alpha)</math> that appears in each row of the color LOOKUP_TABLE allows you to assign a transparency (as well as a specific color) to each polygon that has the relevant scalar value. Experiment with changing this number from 1.0 (opaque) to 0.0 (fully transparent, or any fractional value in between (partial transparency). <font color="blue">Use vtkLookupTable Module:</font> * You can construct a wide range of different color Lookup Tables by adding the "vtkLookupTable" module to the VisTrails pipeline. In an [[vtk/ColorLookupTablea#Color_Lookup_Tables|accompanying presentation]], we explain and illustrate how this is done. <font color="blue">Wireframe:</font> * If, at any time, you want to render only the underlying ''wireframe'' structure of your three-dimensional configuration, simply activate the '"SetRepresentationToWireframe" method inside the "vtkProperty" module.
Summary:
Please note that all contributions to JETohlineWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JETohlineWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Tiled Menu
Table of Contents
Old (VisTrails) Cover
Appendices
Variables & Parameters
Key Equations
Special Functions
Permissions
Formats
References
lsuPhys
Ramblings
Uploaded Images
Originals
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information