Unit1.dfm 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Moving Objects with Mouse'
  5. ClientHeight = 452
  6. ClientWidth = 548
  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. OnCreate = FormCreate
  15. OnKeyPress = FormKeyPress
  16. OnKeyUp = FormKeyUp
  17. OnMouseWheel = FormMouseWheel
  18. PixelsPerInch = 96
  19. TextHeight = 13
  20. object Scn: TGLSceneViewer
  21. Left = 161
  22. Top = 0
  23. Width = 387
  24. Height = 452
  25. Camera = GLCamera1
  26. Buffer.BackgroundColor = clBackground
  27. FieldOfView = 51.630752563476560000
  28. Align = alClient
  29. OnMouseDown = ScnMouseDown
  30. OnMouseMove = ScnMouseMove
  31. TabOrder = 0
  32. end
  33. object Panel1: TPanel
  34. Left = 0
  35. Top = 0
  36. Width = 161
  37. Height = 452
  38. Align = alLeft
  39. BevelOuter = bvNone
  40. TabOrder = 1
  41. ExplicitHeight = 407
  42. object Label2: TLabel
  43. Left = 0
  44. Top = 26
  45. Width = 158
  46. Height = 26
  47. Align = alTop
  48. Caption = 'Select and move with the mouse any of the two cubes.'
  49. ShowAccelChar = False
  50. WordWrap = True
  51. end
  52. object Label1: TLabel
  53. Left = 0
  54. Top = 0
  55. Width = 114
  56. Height = 13
  57. Align = alTop
  58. Caption = 'Author: Rado Stoyanov'
  59. ShowAccelChar = False
  60. WordWrap = True
  61. end
  62. object Label3: TLabel
  63. Left = 0
  64. Top = 52
  65. Width = 150
  66. Height = 26
  67. Align = alTop
  68. Caption = 'Default movement is on the XY plane.'
  69. ShowAccelChar = False
  70. WordWrap = True
  71. end
  72. object Label4: TLabel
  73. Left = 0
  74. Top = 78
  75. Width = 145
  76. Height = 26
  77. Align = alTop
  78. Caption = 'Shift + Drag moves on the XZ plane.'
  79. ShowAccelChar = False
  80. WordWrap = True
  81. end
  82. object Label5: TLabel
  83. Left = 0
  84. Top = 13
  85. Width = 142
  86. Height = 13
  87. Align = alTop
  88. Caption = '[email protected]'
  89. ShowAccelChar = False
  90. WordWrap = True
  91. end
  92. object Button1: TButton
  93. Left = 618
  94. Top = 8
  95. Width = 155
  96. Height = 25
  97. Caption = 'Near: (0,0) Eye -> Obj'
  98. TabOrder = 0
  99. end
  100. object GroupBox1: TGroupBox
  101. Left = 0
  102. Top = 104
  103. Width = 161
  104. Height = 43
  105. Align = alTop
  106. Caption = 'Options'
  107. TabOrder = 1
  108. object ShowAxes: TCheckBox
  109. Left = 5
  110. Top = 18
  111. Width = 145
  112. Height = 17
  113. Caption = 'Show selection axes'
  114. TabOrder = 0
  115. OnClick = ShowAxesClick
  116. end
  117. end
  118. end
  119. object GLScene1: TGLScene
  120. Left = 296
  121. Top = 8
  122. object Floor: TGLCube
  123. Material.FrontProperties.Diffuse.Color = {C5C4C43ECDCCCC3E8382023FE3A53B3F}
  124. Position.Coordinates = {00000000000000005C8F82BF0000803F}
  125. CubeSize = {00000040000000400AD7233C}
  126. end
  127. object TopLight1: TGLLightSource
  128. Ambient.Color = {0000003F0000003F0000003F0000803F}
  129. ConstAttenuation = 0.800000011920929000
  130. Diffuse.Color = {EAE9693FEAE9693FEAE9693F0000803F}
  131. Position.Coordinates = {0000804100005041000040410000803F}
  132. SpotCutOff = 180.000000000000000000
  133. end
  134. object Cube1: TGLCube
  135. Material.BackProperties.Diffuse.Color = {8382023F8584043FB1B0303F8195633F}
  136. Material.FrontProperties.Diffuse.Color = {8382023F8584043FB1B0303F6DE75B3F}
  137. Material.BlendingMode = bmTransparency
  138. Material.Texture.ImageAlpha = tiaAlphaFromIntensity
  139. Material.Texture.TextureMode = tmModulate
  140. Direction.Coordinates = {0000803F000000000000000000000000}
  141. Position.Coordinates = {CDCCCC3DCDCCCC3D666666BF0000803F}
  142. Scale.Coordinates = {CDCC4C3ECDCC4C3ECDCC4C3E00000000}
  143. end
  144. object Cube2: TGLCube
  145. Position.Coordinates = {CDCCCCBECDCCCC3E000000BF0000803F}
  146. CubeSize = {0000803E0000803E0000803E}
  147. end
  148. object DummyCube1: TGLDummyCube
  149. Position.Coordinates = {0000803F0000803F0000003F0000803F}
  150. CubeSize = 0.200000002980232200
  151. EdgeColor.Color = {DEDD5D3FDEDD5D3FE9E8683F0000803F}
  152. end
  153. object XArrow: TGLArrowLine
  154. Direction.Coordinates = {0000803F000000000000000000000000}
  155. Position.Coordinates = {CDCCCC3D000080BF000080BF0000803F}
  156. Up.Coordinates = {000000002EBD3BB30000803F00000000}
  157. BottomRadius = 0.009999999776482582
  158. Height = 2.200000047683716000
  159. TopRadius = 0.009999999776482582
  160. TopArrowHeadHeight = 0.200000002980232200
  161. TopArrowHeadRadius = 0.050000000745058060
  162. BottomArrowHeadHeight = 0.500000000000000000
  163. BottomArrowHeadRadius = 0.050000000745058060
  164. end
  165. object YArrow: TGLArrowLine
  166. Direction.Coordinates = {24DE4C320000803F2CBD3B3300000000}
  167. Position.Coordinates = {000080BFCDCCCC3D000080BF0000803F}
  168. Up.Coordinates = {2EBD3BB32CBD3BB30000803F00000000}
  169. BottomRadius = 0.009999999776482582
  170. Height = 2.200000047683716000
  171. TopRadius = 0.009999999776482582
  172. TopArrowHeadHeight = 0.200000002980232200
  173. TopArrowHeadRadius = 0.050000000745058060
  174. BottomArrowHeadHeight = 0.500000000000000000
  175. BottomArrowHeadRadius = 0.200000002980232200
  176. end
  177. object ZArrow: TGLArrowLine
  178. Position.Coordinates = {000080BF000080BF000000BF0000803F}
  179. BottomRadius = 0.009999999776482582
  180. Height = 1.000000000000000000
  181. TopRadius = 0.009999999776482582
  182. TopArrowHeadHeight = 0.200000002980232200
  183. TopArrowHeadRadius = 0.050000000745058060
  184. BottomArrowHeadHeight = 0.500000000000000000
  185. BottomArrowHeadRadius = 0.050000000745058060
  186. end
  187. object TxtX: TGLSpaceText
  188. Direction.Coordinates = {F30435BFF30435BF0000000000000000}
  189. Position.Coordinates = {CDCCCC3F000080BF000080BF0000803F}
  190. Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
  191. Up.Coordinates = {00000000000000000000803F00000000}
  192. Extrusion = 0.300000011920929000
  193. Font.Charset = DEFAULT_CHARSET
  194. Font.Color = clWindowText
  195. Font.Height = -11
  196. Font.Name = 'Arial'
  197. Font.Style = []
  198. Lines.Strings = (
  199. 'X')
  200. CharacterRange = stcrAlphaNum
  201. end
  202. object TxtY: TGLSpaceText
  203. Direction.Coordinates = {F40435BFF20435BF0000000000000000}
  204. Position.Coordinates = {000080BF9A99D93F000080BF0000803F}
  205. Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
  206. Up.Coordinates = {00000000000000000000803F00000000}
  207. Extrusion = 0.300000011920929000
  208. Font.Charset = DEFAULT_CHARSET
  209. Font.Color = clWindowText
  210. Font.Height = -11
  211. Font.Name = 'Arial'
  212. Font.Style = []
  213. Lines.Strings = (
  214. 'Y')
  215. CharacterRange = stcrAlphaNum
  216. end
  217. object TxtZ: TGLSpaceText
  218. Direction.Coordinates = {F304353FF304353F0000000000000000}
  219. Position.Coordinates = {9A99193ECDCCCCBD0000803F0000803F}
  220. Scale.Coordinates = {9A99993E9A99993E9A99993E00000000}
  221. Up.Coordinates = {00000080000000000000803F00000000}
  222. Extrusion = 0.200000002980232200
  223. Font.Charset = DEFAULT_CHARSET
  224. Font.Color = clWindowText
  225. Font.Height = -11
  226. Font.Name = 'Arial'
  227. Font.Style = []
  228. Lines.Strings = (
  229. 'Z')
  230. CharacterRange = stcrAlphaNum
  231. end
  232. object GLCamera1: TGLCamera
  233. DepthOfView = 1000.000000000000000000
  234. FocalLength = 400.000000000000000000
  235. NearPlaneBias = 0.001000000047497451
  236. TargetObject = DummyCube1
  237. Position.Coordinates = {0000B8410000A041000080410000803F}
  238. Direction.Coordinates = {2EF964BF2EF9E43E0000000000000000}
  239. Up.Coordinates = {00000000000000000000803F00000000}
  240. end
  241. object TopText: TGLHUDText
  242. Position.Coordinates = {0000A0400000A040000000000000803F}
  243. BitmapFont = GLWindowsBitmapFont1
  244. Text = 'TopText'
  245. Rotation = 0.000000000000000000
  246. end
  247. object ObjText: TGLHUDText
  248. Position.Coordinates = {0000C0400000A841000000000000803F}
  249. BitmapFont = GLWindowsBitmapFont1
  250. Text = 'ObjText'
  251. Rotation = 0.000000000000000000
  252. end
  253. end
  254. object GLWindowsBitmapFont1: TGLWindowsBitmapFont
  255. Font.Charset = DEFAULT_CHARSET
  256. Font.Color = clWhite
  257. Font.Height = -11
  258. Font.Name = 'Tahoma'
  259. Font.Style = []
  260. Left = 400
  261. Top = 8
  262. end
  263. end