r3.showdspf.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <H2>DESCRIPTION</H2>
  2. Visualization program which loads the isosurfaces previously calculated
  3. using r3.mkdspf and displays them according to commands given at the prompt.
  4. r3.mkdspf creates a dspf file from the 3D raster and r3.showdspf uses this
  5. dspf file to draw isosurfaces and 3D raster map to draw planes and everything
  6. related (boxes, etc).<br>
  7. 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. <BR>
  13. <pre>
  14. THE INTERACTIVE OPTIONS ARE:
  15. ?, (l #), L, (t #), (T # #), I, +, -
  16. (x #) (y #) (z #) r (X #) (Y #) (Z #)
  17. (B(x,y,z)#), (E(x,y,z)#), S, R, F, C, c, s, b, g, n, p[#], d, D, w, Q, h
  18. USAGE AND MEANING:
  19. <B>?</B> lists available thresholds
  20. <B>l index# [index#...]</B> add threshold to display list
  21. <B>L</B> Draw current display list
  22. <B>t index#</B> reset so only this threshold is displayed
  23. <B>T index# index#</B> show thresholds between hi &amp; lo
  24. <B>I</B> toggle thresholds INSIDE hi/lo or OUTSIDE hi/lo
  25. <B>+(+++)</B> display thresholds with consecutively increasing index#
  26. <B>-(---)</B> display thresholds with consecutively decreasing index#
  27. <B>x int#</B> absolute rotation around x-axis in degrees(int)
  28. <B>y int#</B> absolute rotation around y-axis in degrees(int)
  29. <B>z int#</B> absolute rotation around z-axis in degrees(int)
  30. <B>r</B> rotate_model
  31. <B>X int#</B> scale model in x
  32. <B>Y int#</B> scale model in y
  33. <B>Z int#</B> scale model in z
  34. <B>B(x,y,z)int#</B> begin display along (x,y,z) axis at #
  35. <B>E(x,y,z)int#</B> end display along (x,y,z)axis #
  36. <B>S int#</B> specular highlight control
  37. <B>R</B> resets display along axis to show all data
  38. <B>F <I>grid3name colortablename</I></B> load new color file
  39. <B>C</B> toggles the clear flag
  40. <B>c</B> clears the display (no thresholds)
  41. <B>s</B> swap buffers
  42. <B>b</B> toggles draw a box
  43. <B>g</B> toggles grid
  44. <B>n</B> toggle surface normal direction
  45. <B>p</B> draw all walls
  46. <B>p#</B> draw a wall: 1-top, 2-bottom, 3-east, 4-west, 5-north, 6-south
  47. <B>d</B> draw (implement the option)
  48. <B>D</B> draw a solid defined by T(isosurface + parts of walls)
  49. <B>w</B> dump image to a file
  50. <B>Q</B> QUIT
  51. <B>h</B> help
  52. enter desired manipulations then press return
  53. &gt;&gt;
  54. </pre>
  55. <p>
  56. <H3>Hints:</H3>
  57. <UL>
  58. <LI>To navigate around the data, use the <B>r</B> command, then place
  59. the mouse pointer in the graphics window and drag with the left mouse
  60. to rotate the bounding box. To zoom in and out, drag right or left
  61. with the middle mouse. When satisfied with the new viewing
  62. position, click with the right mouse.
  63. <LI>To quickly view a series of isosurfaces, enter a series of + or -
  64. characters, i.e. <B>+++++++</B>
  65. <LI>Scripts using above commands on separate lines may be
  66. directed to r3.showdspf as standard input.
  67. Use the <B>#</B> sign as the first character on a line to indicate a comment.
  68. </UL>
  69. <H2>EXAMPLE</H2>
  70. After generating a "dspf" control file with <em>r3.mkdspf</em> start
  71. <em>r3.showdspf</em>. Display/add the layers using "+".<br>
  72. List available thresholds with "?". Use "l" to select isosurfaces (available
  73. number can be adjusted with <em>r3.mkdspf</em>) and "L" to display:<br>
  74. <tt>l 1 2 3 4 5<br> L </tt> <p>
  75. To select and display a single threshold (here: 2), use:<br>
  76. <tt>t 2</tt> <p>
  77. To select and display a range of thresholds (here: 3-5), use:<br>
  78. <tt>T 3 5<br>
  79. D</tt> <p>
  80. 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><p>
  84. 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.<p>
  88. In general - p draws a side of a box, E, B, 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 E or
  93. B depending whether fence are drawn by using the end side or front side of a
  94. box).<br>
  95. 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>
  113. The <em>p</em> is needed for the fence diagram, solids and boxes.
  114. <H2>SEE ALSO</H2>
  115. <EM><A HREF="r3.mkdspf.html">r3.mkdspf</A></EM>
  116. <H2>AUTHORS</H2>
  117. <SIGNATURE>Bill Brown,
  118. <A HREF="mailto:brown@gis.uiuc.edu">brown@gis.uiuc.edu</A>
  119. </SIGNATURE>
  120. <p><i>Last changed: $Date$</i>