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. PenAsTouch = False
  29. Align = alClient
  30. OnMouseDown = ViewerMouseDown
  31. OnMouseMove = ViewerMouseMove
  32. TabOrder = 0
  33. end
  34. object Panel2: TPanel
  35. Left = 0
  36. Top = 0
  37. Width = 180
  38. Height = 454
  39. Align = alLeft
  40. TabOrder = 1
  41. object Label5: TLabel
  42. Left = 10
  43. Top = 134
  44. Width = 54
  45. Height = 13
  46. Caption = 'Sphere pos'
  47. end
  48. object Label3: TLabel
  49. Left = 16
  50. Top = 8
  51. Width = 58
  52. Height = 13
  53. Caption = 'Box position'
  54. end
  55. object Label4: TLabel
  56. Left = 96
  57. Top = 8
  58. Width = 45
  59. Height = 13
  60. Caption = 'Box scale'
  61. end
  62. object Label1: TLabel
  63. Left = 8
  64. Top = 384
  65. Width = 34
  66. Height = 13
  67. Caption = 'Result:'
  68. end
  69. object Label7: TLabel
  70. Left = 96
  71. Top = 136
  72. Width = 66
  73. Height = 13
  74. Caption = 'Sphere radius'
  75. end
  76. object CheckBox06: TCheckBox
  77. Left = 8
  78. Top = 291
  79. Width = 80
  80. Height = 17
  81. Caption = 'Grid'
  82. Checked = True
  83. State = cbChecked
  84. TabOrder = 1
  85. OnClick = CheckBox04Click
  86. end
  87. object CheckBox04: TCheckBox
  88. Left = 8
  89. Top = 242
  90. Width = 80
  91. Height = 19
  92. Caption = 'Box visible'
  93. Checked = True
  94. State = cbChecked
  95. TabOrder = 0
  96. OnClick = CheckBox04Click
  97. end
  98. object CheckBox05: TCheckBox
  99. Left = 8
  100. Top = 267
  101. Width = 80
  102. Height = 17
  103. Caption = 'Axis'
  104. TabOrder = 2
  105. OnClick = CheckBox04Click
  106. end
  107. object CheckBox07: TCheckBox
  108. Left = 8
  109. Top = 314
  110. Width = 97
  111. Height = 17
  112. Caption = 'Sphere visible '
  113. Checked = True
  114. State = cbChecked
  115. TabOrder = 3
  116. OnClick = CheckBox04Click
  117. end
  118. object Edit1: TEdit
  119. Left = 10
  120. Top = 25
  121. Width = 56
  122. Height = 21
  123. TabOrder = 4
  124. Text = '12'
  125. OnChange = Edit1Change
  126. end
  127. object Edit2: TEdit
  128. Left = 10
  129. Top = 48
  130. Width = 56
  131. Height = 21
  132. TabOrder = 5
  133. Text = '9'
  134. OnChange = Edit1Change
  135. end
  136. object Edit3: TEdit
  137. Left = 10
  138. Top = 72
  139. Width = 56
  140. Height = 21
  141. TabOrder = 6
  142. Text = '6'
  143. OnChange = Edit1Change
  144. end
  145. object UpDown1: TUpDown
  146. Left = 66
  147. Top = 25
  148. Width = 20
  149. Height = 21
  150. Associate = Edit1
  151. Min = -100
  152. Position = 12
  153. TabOrder = 7
  154. end
  155. object UpDown2: TUpDown
  156. Left = 66
  157. Top = 48
  158. Width = 20
  159. Height = 21
  160. Associate = Edit2
  161. Min = -100
  162. Position = 9
  163. TabOrder = 8
  164. end
  165. object UpDown3: TUpDown
  166. Left = 66
  167. Top = 72
  168. Width = 20
  169. Height = 21
  170. Associate = Edit3
  171. Min = -100
  172. Position = 6
  173. TabOrder = 9
  174. end
  175. object Edit4: TEdit
  176. Left = 91
  177. Top = 24
  178. Width = 56
  179. Height = 21
  180. TabOrder = 10
  181. Text = '10'
  182. OnChange = Edit1Change
  183. end
  184. object Edit5: TEdit
  185. Left = 91
  186. Top = 48
  187. Width = 56
  188. Height = 21
  189. TabOrder = 11
  190. Text = '10'
  191. OnChange = Edit1Change
  192. end
  193. object Edit6: TEdit
  194. Left = 91
  195. Top = 72
  196. Width = 56
  197. Height = 21
  198. TabOrder = 12
  199. Text = '10'
  200. OnChange = Edit1Change
  201. end
  202. object UpDown4: TUpDown
  203. Left = 147
  204. Top = 24
  205. Width = 20
  206. Height = 21
  207. Associate = Edit4
  208. Position = 10
  209. TabOrder = 13
  210. end
  211. object UpDown5: TUpDown
  212. Left = 147
  213. Top = 48
  214. Width = 20
  215. Height = 21
  216. Associate = Edit5
  217. Position = 10
  218. TabOrder = 14
  219. end
  220. object UpDown6: TUpDown
  221. Left = 147
  222. Top = 72
  223. Width = 20
  224. Height = 21
  225. Associate = Edit6
  226. Position = 10
  227. TabOrder = 15
  228. end
  229. object Edit7: TEdit
  230. Left = 10
  231. Top = 152
  232. Width = 56
  233. Height = 21
  234. TabOrder = 16
  235. Text = '7'
  236. OnChange = Edit1Change
  237. end
  238. object Edit8: TEdit
  239. Left = 10
  240. Top = 176
  241. Width = 56
  242. Height = 21
  243. TabOrder = 17
  244. Text = '-1'
  245. OnChange = Edit1Change
  246. end
  247. object Edit9: TEdit
  248. Left = 10
  249. Top = 200
  250. Width = 56
  251. Height = 21
  252. TabOrder = 18
  253. Text = '6'
  254. OnChange = Edit1Change
  255. end
  256. object UpDown7: TUpDown
  257. Left = 66
  258. Top = 152
  259. Width = 20
  260. Height = 21
  261. Associate = Edit7
  262. Min = -100
  263. Position = 7
  264. TabOrder = 19
  265. end
  266. object UpDown8: TUpDown
  267. Left = 66
  268. Top = 176
  269. Width = 20
  270. Height = 21
  271. Associate = Edit8
  272. Min = -100
  273. Position = -1
  274. TabOrder = 20
  275. end
  276. object UpDown9: TUpDown
  277. Left = 66
  278. Top = 200
  279. Width = 20
  280. Height = 21
  281. Associate = Edit9
  282. Min = -100
  283. Position = 6
  284. TabOrder = 21
  285. end
  286. object Edit10: TEdit
  287. Left = 93
  288. Top = 152
  289. Width = 56
  290. Height = 21
  291. TabOrder = 22
  292. Text = '5'
  293. OnChange = Edit1Change
  294. end
  295. object UpDown10: TUpDown
  296. Left = 149
  297. Top = 152
  298. Width = 20
  299. Height = 21
  300. Associate = Edit10
  301. Position = 5
  302. TabOrder = 23
  303. end
  304. object Button3: TButton
  305. Left = 40
  306. Top = 344
  307. Width = 75
  308. Height = 25
  309. Caption = 'Recalc'
  310. TabOrder = 24
  311. OnClick = Button3Click
  312. end
  313. object Button4: TButton
  314. Left = 11
  315. Top = 98
  316. Width = 158
  317. Height = 25
  318. Caption = 'Random box rotation'
  319. Default = True
  320. TabOrder = 25
  321. OnClick = Button4Click
  322. end
  323. end
  324. object GLScene: TGLScene
  325. Left = 216
  326. Top = 16
  327. object DCCamTarget: TGLDummyCube
  328. CubeSize = 0.100000001490116100
  329. VisibleAtRunTime = True
  330. end
  331. object GLLightSource1: TGLLightSource
  332. ConstAttenuation = 1.000000000000000000
  333. Position.Coordinates = {00007A4400004844000016440000803F}
  334. SpotCutOff = 180.000000000000000000
  335. end
  336. object GLLightSource2: TGLLightSource
  337. ConstAttenuation = 1.000000000000000000
  338. Position.Coordinates = {0000FAC30000C8C3000096C30000803F}
  339. SpotCutOff = 180.000000000000000000
  340. end
  341. object GLCube1: TGLCube
  342. Material.FrontProperties.Diffuse.Color = {0000803F00000000000000000000803F}
  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