foctreedemo.dfm
来自「delphi 最好的3D控件GLScene_Demos」· DFM 代码 · 共 138 行
DFM
138 行
object frmOctreeDemo: TfrmOctreeDemo
Left = 14
Top = 13
Width = 778
Height = 580
Caption = 'Octree Demo'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnCreate = FormCreate
OnDestroy = FormDestroy
OnMouseWheel = FormMouseWheel
DesignSize = (
770
551)
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 722
Top = 8
Width = 32
Height = 13
Alignment = taRightJustify
Anchors = [akTop, akRight]
Caption = 'Label1'
end
object Label3: TLabel
Left = 16
Top = 8
Width = 71
Height = 13
Caption = 'Leaf Threshold'
end
object Label2: TLabel
Left = 120
Top = 8
Width = 388
Height = 13
Caption =
'(Green = Colliding with other object, Red = inside query box/sph' +
'ere, Yellow = both)'
end
object GLSceneViewer1: TGLSceneViewer
Left = 8
Top = 56
Width = 750
Height = 489
Camera = GLCamera1
Buffer.BackgroundColor = clWhite
Buffer.FaceCulling = False
Anchors = [akLeft, akTop, akRight, akBottom]
OnMouseMove = GLSceneViewer1MouseMove
end
object TrackBar_LeafThreshold: TTrackBar
Left = 8
Top = 24
Width = 150
Height = 25
Max = 20
Min = 3
Orientation = trHorizontal
Frequency = 1
Position = 10
SelEnd = 0
SelStart = 0
TabOrder = 1
TickMarks = tmBottomRight
TickStyle = tsNone
OnChange = TrackBar_LeafThresholdChange
end
object Button_ResetOctreeSize: TButton
Left = 160
Top = 24
Width = 105
Height = 21
Caption = 'Reset Octree Size'
TabOrder = 2
OnClick = Button_ResetOctreeSizeClick
end
object GLScene1: TGLScene
Left = 96
Top = 64
object GLDummyCube1: TGLDummyCube
CubeSize = 1
end
object GLDirectOpenGL1: TGLDirectOpenGL
UseBuildList = False
OnRender = GLDirectOpenGL1Render
end
object GLCube1: TGLCube
Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3FCDCCCC3E}
Material.BlendingMode = bmTransparency
CubeSize = {0000A0400000A04000000041}
end
object GLSphere1: TGLSphere
Position.Coordinates = {0000C0400000C0400000C0400000803F}
Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3FCDCC4C3E}
Material.BlendingMode = bmTransparency
Radius = 2.5
end
object GLPlane1: TGLPlane
Direction.Coordinates = {0000000000000080000080BF00000000}
Position.Coordinates = {0000000000000000000020410000803F}
Up.Coordinates = {6A41323FD9BD373F0000000000000000}
Visible = False
Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3FCDCC4C3E}
Material.BlendingMode = bmTransparency
Height = 40
Width = 40
end
object GLLines1: TGLLines
Nodes = <>
Options = []
end
object GLCamera1: TGLCamera
DepthOfView = 100
FocalLength = 75
TargetObject = GLDummyCube1
Position.Coordinates = {0000404100008040000000410000803F}
object GLLightSource1: TGLLightSource
ConstAttenuation = 1
SpotCutOff = 180
end
end
end
object GLCadencer1: TGLCadencer
Scene = GLScene1
OnProgress = GLCadencer1Progress
Left = 96
Top = 112
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?