r3.showdspf.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <h2>DESCRIPTION</h2>
  2. Visualization program which loads the isosurfaces previously calculated
  3. using <em>r3.mkdspf</em> and displays them according to commands given at the prompt.
  4. <em>r3.mkdspf</em> creates a dspf file from the 3D raster and <em>r3.showdspf</em> uses this
  5. dspf file to draw isosurfaces and 3D raster map to draw planes and everything
  6. related (boxes, etc).
  7. <p>Upon initialization of the program, two graphics windows are
  8. opened, one for the color table and the other for data display. The
  9. display window initially contains a red bounding box. Command options
  10. are then printed to the terminal and user is prompted for drawing
  11. instructions:
  12. <p><pre>
  13. THE INTERACTIVE OPTIONS ARE:
  14. ?, (l #), L, (t #), (T # #), I, +, -
  15. (x #) (y #) (z #) r (X #) (Y #) (Z #)
  16. (B(x,y,z)#), (E(x,y,z)#), S, R, F, C, c, s, b, g, n, p[#], d, D, w, Q, h
  17. USAGE AND MEANING:
  18. <b>?</b> lists available thresholds
  19. <b>l index# [index#...]</b> add threshold to display list
  20. <b>L</b> draw current display list
  21. <b>t index#</b> reset so only this threshold is displayed
  22. <b>T index# index#</b> show thresholds between hi &amp; lo
  23. <b>I</b> toggle thresholds INSIDE hi/lo or OUTSIDE hi/lo
  24. <b>+(+++)</b> display thresholds with consecutively increasing index#
  25. <b>-(---)</b> display thresholds with consecutively decreasing index#
  26. <b>x int#</b> absolute rotation around x-axis in degrees(int)
  27. <b>y int#</b> absolute rotation around y-axis in degrees(int)
  28. <b>z int#</b> absolute rotation around z-axis in degrees(int)
  29. <b>r</b> rotate_model
  30. <b>X int#</b> scale model in x
  31. <b>Y int#</b> scale model in y
  32. <b>Z int#</b> scale model in z
  33. <b>B(x,y,z)int#</b> begin display along (x,y,z) axis at #
  34. <b>E(x,y,z)int#</b> end display along (x,y,z)axis #
  35. <b>S int#</b> specular highlight control
  36. <b>R</b> resets display along axis to show all data
  37. <b>F <I>grid3name colortablename</I></b> load new color file
  38. <b>C</b> toggles the clear flag
  39. <b>c</b> clears the display (no thresholds)
  40. <b>s</b> swaps buffers
  41. <b>b</b> toggles draw a box
  42. <b>g</b> toggles grid
  43. <b>n</b> toggles surface normal direction
  44. <b>p</b> draw all walls
  45. <b>p#</b> draw a wall: 1-top, 2-bottom, 3-east, 4-west, 5-north, 6-south
  46. <b>d</b> draw (implement the option)
  47. <b>D</b> draw a solid defined by T(isosurface + parts of walls)
  48. <b>w</b> dump image to a file
  49. <b>Q</b> QUIT
  50. <b>h</b> help
  51. enter desired manipulations then press return
  52. &gt;&gt;
  53. </pre>
  54. <p>
  55. <h3>Hints:</h3>
  56. <ul>
  57. <li>To navigate around the data, use the <em>r</em> command, then place
  58. the mouse pointer in the graphics window and drag with the left mouse
  59. to rotate the bounding box. To zoom in and out, drag right or left
  60. with the middle mouse. When satisfied with the new viewing
  61. position, click with the right mouse.
  62. <li>To quickly view a series of isosurfaces, enter a series of <em>+</em> or <em>-</em>
  63. characters, i.e. <em>+++++++</em>
  64. <li>Scripts using above commands on separate lines may be
  65. directed to <em>r3.showdspf</em> as standard input.
  66. Use the <em>#</em> sign as the first character on a line to indicate a comment.
  67. </ul>
  68. <h2>EXAMPLE</h2>
  69. After generating a "dspf" control file with <em>r3.mkdspf</em> start
  70. <em>r3.showdspf</em>. Display/add the layers using <em>+</em>.
  71. <p>List available thresholds with <em>?</em>. Use <em>l</em> to select isosurfaces (available
  72. number can be adjusted with <em>r3.mkdspf</em>) and <em>L</em> to display:
  73. <br>
  74. <tt>l 1 2 3 4 5<br> L </tt>
  75. <p>To select and display a single threshold (here: 2), use:<br>
  76. <tt>t 2</tt>
  77. <p>To select and display a range of thresholds (here: 3-5), use:<br>
  78. <tt>T 3 5<br>
  79. D</tt>
  80. <p>To draw a box, enter<br>
  81. <tt>p</tt><br>
  82. the p# to plot a selected wall (here top wall):<br>
  83. <tt>p1</tt>
  84. <p>Tp draw a cut-off box, define it's position<br>
  85. <tt>Ex20</tt><br>
  86. <tt>p</tt><br>
  87. Here Ex20 defines the x coordinate of the end of the box.
  88. <p>In general - <em>p</em> draws a side of a box, <em>E</em>, <em>B</em>, define where that box starts or
  89. ends, so to make a fence diagram, the user draws sides of a series of boxes
  90. which have their starting (or ending) side shifting by a given interval.
  91. (this way the user can draw even more complex fence diagrams which have
  92. perpendicular fences, by using Ey or By). It is sufficient to use only <em>E</em> or
  93. <em>B</em> depending whether fence are drawn by using the end side or front side of a
  94. box).
  95. <p>To draw a fence, a sequence like this would be needed<br>
  96. <tt>Ex10<br>
  97. p5<br>
  98. Ex15<br>
  99. p5<br>
  100. Ex20<br>
  101. p5<br>
  102. Ex25<br>
  103. p5<br>
  104. </tt>
  105. or the same would be<br>
  106. <tt>Bx10<br>
  107. p6<br>
  108. Bx15<br>
  109. p6<br>
  110. Bx20<br>
  111. p6</tt>
  112. <p>The <em>p</em> is needed for the fence diagram, solids and boxes.
  113. <h2>SEE ALSO</h2>
  114. <em><a href="r3.mkdspf.html">r3.mkdspf</a></em>
  115. <h2>AUTHORS</h2>
  116. <signature>Bill Brown,
  117. <a href="mailto:brown@gis.uiuc.edu">brown@gis.uiuc.edu</a>
  118. </signature>
  119. <p><i>Last changed: $Date$</i>