Unit1.dfm 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Box Sphere Intersection'
  5. ClientHeight = 454
  6. ClientWidth = 552
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. Position = poScreenCenter
  15. WindowState = wsMaximized
  16. OnCreate = FormCreate
  17. OnMouseWheel = FormMouseWheel
  18. PixelsPerInch = 96
  19. TextHeight = 13
  20. object Viewer: TGLSceneViewer
  21. Left = 180
  22. Top = 0
  23. Width = 372
  24. Height = 454
  25. Camera = GLCamera1
  26. Buffer.BackgroundColor = clTeal
  27. FieldOfView = 149.907211303710900000
  28. Align = alClient
  29. OnMouseDown = ViewerMouseDown
  30. OnMouseMove = ViewerMouseMove
  31. TabOrder = 0
  32. end
  33. object Panel2: TPanel
  34. Left = 0
  35. Top = 0
  36. Width = 180
  37. Height = 454
  38. Align = alLeft
  39. TabOrder = 1
  40. object Label5: TLabel
  41. Left = 10
  42. Top = 134
  43. Width = 54
  44. Height = 13
  45. Caption = 'Sphere pos'
  46. end
  47. object Label3: TLabel
  48. Left = 16
  49. Top = 8
  50. Width = 58
  51. Height = 13
  52. Caption = 'Box position'
  53. end
  54. object Label4: TLabel
  55. Left = 96
  56. Top = 8
  57. Width = 45
  58. Height = 13
  59. Caption = 'Box scale'
  60. end
  61. object Label1: TLabel
  62. Left = 8
  63. Top = 384
  64. Width = 34
  65. Height = 13
  66. Caption = 'Result:'
  67. end
  68. object Label7: TLabel
  69. Left = 96
  70. Top = 136
  71. Width = 66
  72. Height = 13
  73. Caption = 'Sphere radius'
  74. end
  75. object CheckBox06: TCheckBox
  76. Left = 8
  77. Top = 291
  78. Width = 80
  79. Height = 17
  80. Caption = 'Grid'
  81. Checked = True
  82. State = cbChecked
  83. TabOrder = 1
  84. OnClick = CheckBox04Click
  85. end
  86. object CheckBox04: TCheckBox
  87. Left = 8
  88. Top = 242
  89. Width = 80
  90. Height = 19
  91. Caption = 'Box visible'
  92. Checked = True
  93. State = cbChecked
  94. TabOrder = 0
  95. OnClick = CheckBox04Click
  96. end
  97. object CheckBox05: TCheckBox
  98. Left = 8
  99. Top = 267
  100. Width = 80
  101. Height = 17
  102. Caption = 'Axis'
  103. TabOrder = 2
  104. OnClick = CheckBox04Click
  105. end
  106. object CheckBox07: TCheckBox
  107. Left = 8
  108. Top = 314
  109. Width = 97
  110. Height = 17
  111. Caption = 'Sphere visible '
  112. Checked = True
  113. State = cbChecked
  114. TabOrder = 3
  115. OnClick = CheckBox04Click
  116. end
  117. object Edit1: TEdit
  118. Left = 10
  119. Top = 25
  120. Width = 56
  121. Height = 21
  122. TabOrder = 4
  123. Text = '12'
  124. OnChange = Edit1Change
  125. end
  126. object Edit2: TEdit
  127. Left = 10
  128. Top = 48
  129. Width = 56
  130. Height = 21
  131. TabOrder = 5
  132. Text = '9'
  133. OnChange = Edit1Change
  134. end
  135. object Edit3: TEdit
  136. Left = 10
  137. Top = 72
  138. Width = 56
  139. Height = 21
  140. TabOrder = 6
  141. Text = '6'
  142. OnChange = Edit1Change
  143. end
  144. object UpDown1: TUpDown
  145. Left = 66
  146. Top = 25
  147. Width = 20
  148. Height = 21
  149. Associate = Edit1
  150. Min = -100
  151. Position = 12
  152. TabOrder = 7
  153. end
  154. object UpDown2: TUpDown
  155. Left = 66
  156. Top = 48
  157. Width = 20
  158. Height = 21
  159. Associate = Edit2
  160. Min = -100
  161. Position = 9
  162. TabOrder = 8
  163. end
  164. object UpDown3: TUpDown
  165. Left = 66
  166. Top = 72
  167. Width = 20
  168. Height = 21
  169. Associate = Edit3
  170. Min = -100
  171. Position = 6
  172. TabOrder = 9
  173. end
  174. object Edit4: TEdit
  175. Left = 91
  176. Top = 24
  177. Width = 56
  178. Height = 21
  179. TabOrder = 10
  180. Text = '10'
  181. OnChange = Edit1Change
  182. end
  183. object Edit5: TEdit
  184. Left = 91
  185. Top = 48
  186. Width = 56
  187. Height = 21
  188. TabOrder = 11
  189. Text = '10'
  190. OnChange = Edit1Change
  191. end
  192. object Edit6: TEdit
  193. Left = 91
  194. Top = 72
  195. Width = 56
  196. Height = 21
  197. TabOrder = 12
  198. Text = '10'
  199. OnChange = Edit1Change
  200. end
  201. object UpDown4: TUpDown
  202. Left = 147
  203. Top = 24
  204. Width = 20
  205. Height = 21
  206. Associate = Edit4
  207. Position = 10
  208. TabOrder = 13
  209. end
  210. object UpDown5: TUpDown
  211. Left = 147
  212. Top = 48
  213. Width = 20
  214. Height = 21
  215. Associate = Edit5
  216. Position = 10
  217. TabOrder = 14
  218. end
  219. object UpDown6: TUpDown
  220. Left = 147
  221. Top = 72
  222. Width = 20
  223. Height = 21
  224. Associate = Edit6
  225. Position = 10
  226. TabOrder = 15
  227. end
  228. object Edit7: TEdit
  229. Left = 10
  230. Top = 152
  231. Width = 56
  232. Height = 21
  233. TabOrder = 16
  234. Text = '7'
  235. OnChange = Edit1Change
  236. end
  237. object Edit8: TEdit
  238. Left = 10
  239. Top = 176
  240. Width = 56
  241. Height = 21
  242. TabOrder = 17
  243. Text = '-1'
  244. OnChange = Edit1Change
  245. end
  246. object Edit9: TEdit
  247. Left = 10
  248. Top = 200
  249. Width = 56
  250. Height = 21
  251. TabOrder = 18
  252. Text = '6'
  253. OnChange = Edit1Change
  254. end
  255. object UpDown7: TUpDown
  256. Left = 66
  257. Top = 152
  258. Width = 20
  259. Height = 21
  260. Associate = Edit7
  261. Min = -100
  262. Position = 7
  263. TabOrder = 19
  264. end
  265. object UpDown8: TUpDown
  266. Left = 66
  267. Top = 176
  268. Width = 20
  269. Height = 21
  270. Associate = Edit8
  271. Min = -100
  272. Position = -1
  273. TabOrder = 20
  274. end
  275. object UpDown9: TUpDown
  276. Left = 66
  277. Top = 200
  278. Width = 20
  279. Height = 21
  280. Associate = Edit9
  281. Min = -100
  282. Position = 6
  283. TabOrder = 21
  284. end
  285. object Edit10: TEdit
  286. Left = 93
  287. Top = 152
  288. Width = 56
  289. Height = 21
  290. TabOrder = 22
  291. Text = '5'
  292. OnChange = Edit1Change
  293. end
  294. object UpDown10: TUpDown
  295. Left = 149
  296. Top = 152
  297. Width = 20
  298. Height = 21
  299. Associate = Edit10
  300. Position = 5
  301. TabOrder = 23
  302. end
  303. object Button3: TButton
  304. Left = 40
  305. Top = 344
  306. Width = 75
  307. Height = 25
  308. Caption = 'Recalc'
  309. TabOrder = 24
  310. OnClick = Button3Click
  311. end
  312. object Button4: TButton
  313. Left = 11
  314. Top = 98
  315. Width = 158
  316. Height = 25
  317. Caption = 'Random box rotation'
  318. Default = True
  319. TabOrder = 25
  320. OnClick = Button4Click
  321. end
  322. end
  323. object GLScene: TGLScene
  324. Left = 216
  325. Top = 16
  326. object DCCamTarget: TGLDummyCube
  327. CubeSize = 0.100000001490116100
  328. VisibleAtRunTime = True
  329. end
  330. object GLLightSource1: TGLLightSource
  331. ConstAttenuation = 1.000000000000000000
  332. Position.Coordinates = {00007A4400004844000016440000803F}
  333. SpotCutOff = 180.000000000000000000
  334. end
  335. object GLLightSource2: TGLLightSource
  336. ConstAttenuation = 1.000000000000000000
  337. Position.Coordinates = {0000FAC30000C8C3000096C30000803F}
  338. SpotCutOff = 180.000000000000000000
  339. end
  340. object GLCube1: TGLCube
  341. Material.FrontProperties.Diffuse.Color = {0000803F00000000000000000000803F}
  342. Direction.Coordinates = {00000000000000800000803F00000000}
  343. end
  344. object DCCube1: TGLDummyCube
  345. CubeSize = 1.000000000000000000
  346. VisibleAtRunTime = True
  347. end
  348. object GLSphere1: TGLSphere
  349. Material.FrontProperties.Diffuse.Color = {000000000000803F000000000000803F}
  350. Radius = 0.500000000000000000
  351. end
  352. object GLSphere2: TGLSphere
  353. Material.FrontProperties.Diffuse.Color = {000000000000803F000000000000803F}
  354. Material.PolygonMode = pmLines
  355. Radius = 0.500000000000000000
  356. end
  357. object GLXYZGrid1: TGLXYZGrid
  358. XSamplingScale.Min = -10.000000000000000000
  359. XSamplingScale.Max = 10.000000000000000000
  360. XSamplingScale.Step = 3.000000000000000000
  361. YSamplingScale.Min = -10.000000000000000000
  362. YSamplingScale.Max = 10.000000000000000000
  363. YSamplingScale.Step = 3.000000000000000000
  364. ZSamplingScale.Step = 0.100000001490116100
  365. end
  366. object GLLines1: TGLLines
  367. Visible = False
  368. LineWidth = 3.000000000000000000
  369. Nodes = <
  370. item
  371. Color.Color = {0000803F00000000000000000000803F}
  372. end
  373. item
  374. X = 1.000000000000000000
  375. Color.Color = {0000803F00000000000000000000803F}
  376. end
  377. item
  378. Color.Color = {000000000000003F000000000000803F}
  379. end
  380. item
  381. Y = 1.000000000000000000
  382. Color.Color = {0AD7A33E48E1FA3E1F85EB3E0000803F}
  383. end
  384. item
  385. end
  386. item
  387. Z = 1.000000000000000000
  388. end>
  389. NodesAspect = lnaInvisible
  390. SplineMode = lsmSegments
  391. Options = [loUseNodeColorForLines]
  392. end
  393. object GLLines3: TGLLines
  394. LineColor.Color = {0000803F0000803F000000000000803F}
  395. LineWidth = 10.000000000000000000
  396. Nodes = <>
  397. NodesAspect = lnaInvisible
  398. Division = 1
  399. SplineMode = lsmSegments
  400. Options = []
  401. end
  402. object GLCamera1: TGLCamera
  403. DepthOfView = 500.000000000000000000
  404. FocalLength = 50.000000000000000000
  405. NearPlaneBias = 0.100000001490116100
  406. TargetObject = DCCamTarget
  407. Position.Coordinates = {0000A04000000040000040400000803F}
  408. Direction.Coordinates = {000000000000803F0000008000000000}
  409. Up.Coordinates = {00000000000000000000803F00000000}
  410. Left = 256
  411. Top = 144
  412. end
  413. end
  414. object GLCadencer: TGLCadencer
  415. Scene = GLScene
  416. OnProgress = GLCadencerProgress
  417. Left = 280
  418. Top = 16
  419. end
  420. end