(form "30000" (size 68 20)
  (heading "Define a DTM Entity")

  (field "colouring_type" (position 0 0) (display_length 2) (input allowed) (input allowed)
    (default "single colour")
    (value_in "single colour" "bands of specified size" "set number of bands" "range for bands" "bands using algebraic expressions" "draped image")
  )
  (field "face_style" (position 0 0) (display_length 2) (input allowed)
    (value_in "solid" "##" "||" "==" "//" "\\\\" "::" "<><>" "[][]")
  )
  (field "gloss" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (value_in "0.05" "0.10" "0.15" "0.20" "0.25" "0.30" "0.35" "0.40" "0.45" "0.50" "0.60" "0.70" "0.80" "0.90" "1.00" "1.50" "2.00" "2.50" "3.00" "3.50" "4.00" "4.50" "5.00" "5.00" "6.00" "7.00" "8.00" "9.00" "10.00" "15.00" "20.00" "25.00" "30.00" "35.00" "40.00" "45.00" "50.00" "60.00" "70.00" "80.00" "90.00" "100.00" "150.00200.00" "250.00" "300.00350.00" "400.00" "450.00" "500.00" "600.00" "700.00" "800.00" "900.00" "1000.00")
  )
  (field "reflectance" (position 0 0) (display_length 2) (input allowed)
    (max_length 32)
  )
  (field "single_colour" (position 0 0) (display_length 2) (input allowed)
    (max_length 32)
  )
  (field "grade_field1" (position 0 0) (display_length 2) (input allowed)
    (max_length 30)
    (null disallowed)
  )
  (field "slice_size" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 10)
    (null disallowed)
  )
  (field "grade_field2" (position 0 0) (display_length 2) (input allowed)
    (max_length 30)
    (null disallowed)
  )
  (field "grade_field3" (position 0 0) (display_length 2) (input allowed)
    (max_length 30)
    (null disallowed)
  )
  (field "slice_range" (position 0 0) (display_length 2) (input allowed)
    (max_length 10)
    (null disallowed)
  )
  (field "registration_file_name" (position 0 0) (display_length 2) (input allowed)
    (null disallowed)
    (max_length 256)
  )
  (field "image_file" (position 0 0) (display_length 2) (input allowed)
    (max_length 256)
    (null disallowed)
  )
  (field "drape_method" (position 0 0) (display_length 2) (input allowed)
    (value_in "registered" "tiled" "mirror tiled")
    (default "registered")
    (null disallowed)
  )
  (field "filter_colour" (position 0 0) (display_length 2) (input allowed)
    (max_length 256)
  )
  (scroll_block "colours" (position 0 0) (size 35 7)
    (extra 0 1)
    (scroll_size 35 7)
    (repeat interactive
      (grow 0 1)
      (instances 1
        (min 1)
        (max 100)
      )
    )
    (main
      (field "colour" (position 0 0) (display_length 2) (input allowed)
        (max_length 32)
      )
      (field "expression" (position 0 0) (display_length 2) (input allowed)
        (max_length 128)
      )
    )
  )
  (field "display_edges" (position 0 0) (display_length 2) (input allowed)
    (value_in "Y" "N")
  )
  (field "edges" (position 0 0) (display_length 2) (input allowed)
  )
  (field "use_spot_light" (position 0 0) (display_length 2) (input allowed)
    (default "Y")
    (value_in "Y" "N")
  )
  (field "illumination_cone" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (low_bound 0.01)
    (high_bound 180)
    (max_length 16)
    (null disallowed)
  )
  (field "sharpness_cone" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (low_bound 0.1)
    (high_bound 180)
    (max_length 16)
    (null disallowed)
  )
  (field "offset_angle" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (low_bound 0.0)
    (high_bound 45)
    (max_length 16)
    (null disallowed)
  )
  (field "spot_colour" (position 0 0) (display_length 2) (input allowed)
    (max_length 128)
    (null disallowed)
  ) 
  (field "use_directional_lights" (position 0 0) (display_length 2) (input allowed)
    (default "on")
    (value_in "on" "off")
  )
  (field "light_y1" (position 0 0) (display_length 2) (input allowed)
    (default "-1")
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_y2" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_y3" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_x1" (position 0 0) (display_length 2) (input allowed)
    (default "1")
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_x2" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_x3" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_z1" (position 0 0) (display_length 2) (input allowed)
    (default "1")
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_z2" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_z3" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 16)
    (null disallowed)
  )
  (field "light_colour1" (position 0 0) (display_length 2) (input allowed)
    (max_length 20)
    (default "white")
  )
  (field "light_colour2" (position 0 0) (display_length 2) (input allowed)
    (max_length 32)
  )
  (field "light_colour3" (position 0 0) (display_length 2) (input allowed)
    (max_length 32)
  )
  (field "rendering" (position 0 0) (display_length 2) (input allowed)
    (value_in "N" "G" "P")
  )
  (field "brightness" (position 0 0) (display_length 2) (input allowed)
    (max_length 20)
    (value_in "Default" "1" "1.25" "1.5" "1.75" "2" "2.5" "3" "4" "5")
    (default "Default")
  )
  (field "display_contours" (position 0 0) (display_length 2) (input allowed)
    (value_in "Y" "N")
  )
  (field "contour_entity" (position 0 0) (display_length 2) (input allowed)
    (value_in "todo: add list of string type entities")
  )
  (field "contour_definition_type" (position 0 0) (display_length 2) (input allowed)
    (value_in "I" "R")
  )
  (field "conmin" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 10)
    (null disallowed)
  )
  (field "conmax" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 10)
    (null disallowed)
  )
  (field "ci" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 10)
    (null disallowed)
  )
  (field "conrng" (position 0 0) (display_length 2) (input allowed)
    (max_length 32)
  )
  (field "index_contours" (position 0 0) (display_length 2) (input allowed)
    (value_in "Y" "N")
  )
  (field "index_value" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 32)
  )
  (field "index_contour_entity" (position 0 0) (display_length 2) (input allowed)
    (value_in "todo: add list of string type entities")
  )
  (field "smooth_contours" (position 0 0) (display_length 2) (input allowed)
    (default "Y")
    (value_in "Y" "N")
  )
  (field "nlines" (position 0 0) (display_length 2) (input allowed)
    (format integer_4)
    (high_bound 10)
    (low_bound 2)
    (max_length 2)
    (null disallowed)
  )
  (field "smooth" (position 0 0) (display_length 2) (input allowed)
    (value_in "S" "I")
  )
  (field "fade" (position 0 0) (display_length 2) (input allowed)
    (format real_8)
    (max_length 30)
    (null disallowed)
    (default "0.0")
  )

  (default_buttons)
)
