This commit is contained in:
zueuk 2006-11-24 13:16:38 +00:00
parent 323b6fe128
commit 383e1b86fb
8 changed files with 176 additions and 88 deletions

View File

@ -1,8 +1,8 @@
object EditForm: TEditForm object EditForm: TEditForm
Left = 379 Left = 380
Top = 303 Top = 304
Width = 584 Width = 582
Height = 573 Height = 575
Caption = 'Transform Editor' Caption = 'Transform Editor'
Color = clBtnFace Color = clBtnFace
Constraints.MinHeight = 400 Constraints.MinHeight = 400
@ -54,8 +54,8 @@ object EditForm: TEditForm
TextHeight = 13 TextHeight = 13
object StatusBar: TStatusBar object StatusBar: TStatusBar
Left = 0 Left = 0
Top = 530 Top = 532
Width = 576 Width = 574
Height = 15 Height = 15
Panels = < Panels = <
item item
@ -71,7 +71,7 @@ object EditForm: TEditForm
object topPnl: TPanel object topPnl: TPanel
Left = 0 Left = 0
Top = 0 Top = 0
Width = 576 Width = 574
Height = 24 Height = 24
Align = alTop Align = alTop
BevelOuter = bvSpace BevelOuter = bvSpace
@ -338,15 +338,15 @@ object EditForm: TEditForm
object EditPnl: TPanel object EditPnl: TPanel
Left = 0 Left = 0
Top = 24 Top = 24
Width = 576 Width = 574
Height = 506 Height = 508
Align = alClient Align = alClient
TabOrder = 1 TabOrder = 1
object Splitter1: TSplitter object Splitter1: TSplitter
Left = 394 Left = 392
Top = 1 Top = 1
Width = 9 Width = 9
Height = 504 Height = 506
Align = alRight Align = alRight
AutoSnap = False AutoSnap = False
Beveled = True Beveled = True
@ -356,18 +356,18 @@ object EditForm: TEditForm
object GrphPnl: TPanel object GrphPnl: TPanel
Left = 1 Left = 1
Top = 1 Top = 1
Width = 393 Width = 391
Height = 504 Height = 506
Align = alClient Align = alClient
BevelOuter = bvNone BevelOuter = bvNone
Color = clAppWorkSpace Color = clAppWorkSpace
TabOrder = 0 TabOrder = 0
end end
object RightPanel: TPanel object RightPanel: TPanel
Left = 403 Left = 401
Top = 1 Top = 1
Width = 172 Width = 172
Height = 504 Height = 506
Align = alRight Align = alRight
Alignment = taLeftJustify Alignment = taLeftJustify
BevelOuter = bvNone BevelOuter = bvNone
@ -407,7 +407,7 @@ object EditForm: TEditForm
Left = 0 Left = 0
Top = 138 Top = 138
Width = 172 Width = 172
Height = 366 Height = 368
Align = alClient Align = alClient
TabOrder = 0 TabOrder = 0
object lblTransform: TLabel object lblTransform: TLabel
@ -438,9 +438,9 @@ object EditForm: TEditForm
end end
object PageControl: TPageControl object PageControl: TPageControl
Left = 1 Left = 1
Top = 32 Top = 36
Width = 170 Width = 170
Height = 333 Height = 331
ActivePage = TriangleTab ActivePage = TriangleTab
Align = alBottom Align = alBottom
Anchors = [akLeft, akTop, akRight, akBottom] Anchors = [akLeft, akTop, akRight, akBottom]
@ -453,7 +453,7 @@ object EditForm: TEditForm
Left = 0 Left = 0
Top = 0 Top = 0
Width = 162 Width = 162
Height = 287 Height = 285
HorzScrollBar.Visible = False HorzScrollBar.Visible = False
VertScrollBar.Smooth = True VertScrollBar.Smooth = True
VertScrollBar.Style = ssFlat VertScrollBar.Style = ssFlat
@ -855,7 +855,7 @@ object EditForm: TEditForm
Width = 65 Width = 65
Height = 21 Height = 21
AutoSelect = False AutoSelect = False
TabOrder = 5 TabOrder = 3
Text = '0' Text = '0'
OnExit = CornerEditExit OnExit = CornerEditExit
OnKeyPress = CornerEditKeyPress OnKeyPress = CornerEditKeyPress
@ -866,7 +866,7 @@ object EditForm: TEditForm
Width = 65 Width = 65
Height = 21 Height = 21
AutoSelect = False AutoSelect = False
TabOrder = 4 TabOrder = 2
Text = '0' Text = '0'
OnExit = CornerEditExit OnExit = CornerEditExit
OnKeyPress = CornerEditKeyPress OnKeyPress = CornerEditKeyPress
@ -877,7 +877,7 @@ object EditForm: TEditForm
Width = 65 Width = 65
Height = 21 Height = 21
AutoSelect = False AutoSelect = False
TabOrder = 3 TabOrder = 5
Text = '0' Text = '0'
OnExit = CornerEditExit OnExit = CornerEditExit
OnKeyPress = CornerEditKeyPress OnKeyPress = CornerEditKeyPress
@ -888,7 +888,7 @@ object EditForm: TEditForm
Width = 65 Width = 65
Height = 21 Height = 21
AutoSelect = False AutoSelect = False
TabOrder = 2 TabOrder = 4
Text = '0' Text = '0'
OnExit = CornerEditExit OnExit = CornerEditExit
OnKeyPress = CornerEditKeyPress OnKeyPress = CornerEditKeyPress
@ -1151,7 +1151,7 @@ object EditForm: TEditForm
Caption = 'Reset transform' Caption = 'Reset transform'
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
OnClick = mnuResetClick OnClick = btnResetCoefsClick
end end
object btnXcoefs: TSpeedButton object btnXcoefs: TSpeedButton
Left = 8 Left = 8
@ -1160,6 +1160,12 @@ object EditForm: TEditForm
Height = 21 Height = 21
Hint = 'Reset vector X' Hint = 'Reset vector X'
Caption = 'X' Caption = 'X'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
OnClick = btnXcoefsClick OnClick = btnXcoefsClick
@ -1726,7 +1732,7 @@ object EditForm: TEditForm
Left = 313 Left = 313
Top = 40 Top = 40
Bitmap = { Bitmap = {
494C01011E002200040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600 494C01011F002200040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
0000000000003600000028000000400000009000000001002000000000000090 0000000000003600000028000000400000009000000001002000000000000090
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
@ -1866,57 +1872,57 @@ object EditForm: TEditForm
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
00000000000000000000000000000000000000000000FFFFFF00000000000000
000000000000FFFFFF0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
00000000000000000000000000000000000000000000FFFFFF00000000000000
000000000000FFFFFF0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
0000FFFFFF000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF00FFFF
FF00FFFFFF00000000000000000000000000000000000000000000000000FFFF
FF00000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
000000000000FFFFFF0000000000000000000000000000000000FFFFFF000000
0000FFFFFF000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FFFFFF000000
000000000000FFFFFF00000000000000000000000000FFFFFF00000000000000
000000000000FFFFFF0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000FFFFFF00FFFF
0000000000000000000000000000000000000000000000000000000000000000 FF00FFFFFF0000000000000000000000000000000000FFFFFF00000000000000
0000000000000000000000000000000000000000000000000000000000000000 000000000000FFFFFF0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
@ -1932,36 +1938,38 @@ object EditForm: TEditForm
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000A1A1A1000000000000000000000000000000000000000000000000000000 0000A1A1A1000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000005C5C5C00000000005C5C 000000000000000000000000000000000000000000005C5C5C00000000005C5C
5C00000000000000000000000000000000000000000000000000000000005C5C 5C00000000000000000000000000000000000000000000000000000000005C5C
5C00000000005C5C5C0000000000000000000000000000000000000000000000 5C00000000005C5C5C0000000000000000000000000000000000000000000000
0000000000008000000080000000800000008000000080000000800000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000A1A1 000000000000000000000000000000000000000000000000000000000000A1A1
A100000000000000000000000000000000000000000000000000000000000000 A100000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000008000000080000000800000008000000080000000800000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000A1A1A1000000 0000000000000000000000000000000000000000000000000000A1A1A1000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000005C5C5C000000 00000000000000000000000000000000000000000000000000005C5C5C000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
00005C5C5C000000000000000000000000000000000000000000000000000000 00005C5C5C000000000000000000000000000000000000000000000000000000
0000000000008000000080000000000000008000000080000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000A1A1A100000000000000 00000000000000000000000000000000000000000000A1A1A100000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000008000000080000000800000008000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000A1A1A10000000000000000000000 000000000000000000000000000000000000A1A1A10000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
@ -1969,6 +1977,7 @@ object EditForm: TEditForm
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000008000000080000000800000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
@ -1976,10 +1985,7 @@ object EditForm: TEditForm
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000008000000080000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
@ -2886,11 +2892,11 @@ object EditForm: TEditForm
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000FFFFFFFF00000000FFFF2AA900000000 00000000000000000000000000000000FFFF8F11FFFF0000FFFF8F112AA90000
F01F7EFD00000000F83FFEFF00000000FEFF7EFD000000008EE3FEFF00000000 F01F8F117EFD0000F83F8383FEFF0000FEFF81C77EFD00008EE38183FEFF0000
06C17EFD00000000FEFFFEFF0000000076DD000100000000FEFFFEF300000000 06C181117EFD0000FEFF8111FEFF000076DD831100010000FEFFFFFFFEF30000
AEEB7EE500000000FEFFFECF00000000DEF77E9D00000000E00FFE3F00000000 AEEBF81F7EE50000FEFFF81FFECF0000DEF7F93F7E9D0000E00FF87FFE3F0000
FEFF7E7D00000000FFFF2AA9000000008F11FFFFFC01FC018F110EE1FC01FC01 FEFFF8FF7E7D0000FFFFF9FF2AA900008F11FFFFFC01FC018F110EE1FC01FC01
8F117C7DFC0180018383783DFC01000183C77EFDFC0100018383FEFF00010001 8F117C7DFC0180018383783DFC01000183C77EFDFC0100018383FEFF00010001
8111DEF70001000181119EF3000300038111000100070003FFFF9EF3000F0003 8111DEF70001000181119EF3000300038111000100070003FFFF9EF3000F0003
FE7FDEF700FF0003FE7FFEFF00FF0003F81F7EFD00FF0FC3F81F783D01FF0003 FE7FDEF700FF0003FE7FFEFF00FF0003F81F7EFD00FF0FC3F81F783D01FF0003
@ -2930,7 +2936,7 @@ object EditForm: TEditForm
Caption = 'Reset triangle' Caption = 'Reset triangle'
Hint = 'Reset triangle' Hint = 'Reset triangle'
ImageIndex = 20 ImageIndex = 20
OnClick = mnuResetClick OnClick = mnuResetTriangleClick
end end
object N6: TMenuItem object N6: TMenuItem
Caption = '-' Caption = '-'

View File

@ -285,7 +285,7 @@ type
Shift: TShiftState); Shift: TShiftState);
procedure txtValidateValue(Sender: TObject); procedure txtValidateValue(Sender: TObject);
procedure txtValKeyPress(Sender: TObject; var Key: Char); procedure txtValKeyPress(Sender: TObject; var Key: Char);
procedure mnuResetClick(Sender: TObject); procedure mnuResetTriangleClick(Sender: TObject);
procedure mnuResetAllClick(Sender: TObject); procedure mnuResetAllClick(Sender: TObject);
procedure btnXcoefsClick(Sender: TObject); procedure btnXcoefsClick(Sender: TObject);
procedure btnYcoefsClick(Sender: TObject); procedure btnYcoefsClick(Sender: TObject);
@ -300,6 +300,7 @@ type
procedure btnOpostClick(Sender: TObject); procedure btnOpostClick(Sender: TObject);
procedure PostCoefValidate(Sender: TObject); procedure PostCoefValidate(Sender: TObject);
procedure PostCoefKeypress(Sender: TObject; var Key: Char); procedure PostCoefKeypress(Sender: TObject; var Key: Char);
procedure btnResetCoefsClick(Sender: TObject);
procedure btnResetPostCoefsClick(Sender: TObject); procedure btnResetPostCoefsClick(Sender: TObject);
procedure btnPivotModeClick(Sender: TObject); procedure btnPivotModeClick(Sender: TObject);
procedure PivotValidate(Sender: TObject); procedure PivotValidate(Sender: TObject);
@ -738,6 +739,29 @@ begin
tb2PostXswap.Down := postXswap; tb2PostXswap.Down := postXswap;
bvlPostCoefs.Visible := postXswap; bvlPostCoefs.Visible := postXswap;
bvlCoefs.Visible := not postXswap;
if postXswap then begin
btnXcoefs.Font.Style := [];
btnYcoefs.Font.Style := [];
btnOcoefs.Font.Style := [];
btnXpost.Font.Style := [fsBold];
btnYpost.Font.Style := [fsBold];
btnOpost.Font.Style := [fsBold];
btnResetCoefs.Font.Style := [];
btnResetPostCoefs.Font.Style := [fsBold];
end
else begin
btnXcoefs.Font.Style := [fsBold];
btnYcoefs.Font.Style := [fsBold];
btnOcoefs.Font.Style := [fsBold];
btnXpost.Font.Style := [];
btnYpost.Font.Style := [];
btnOpost.Font.Style := [];
btnResetCoefs.Font.Style := [fsBold];
btnResetPostCoefs.Font.Style := [];
end;
{
btnXpost.Enabled := postXswap; btnXpost.Enabled := postXswap;
btnYpost.Enabled := postXswap; btnYpost.Enabled := postXswap;
btnOpost.Enabled := postXswap; btnOpost.Enabled := postXswap;
@ -749,7 +773,6 @@ begin
txtPost21.Enabled := postXswap; txtPost21.Enabled := postXswap;
btnResetPostCoefs.Enabled := postXswap; btnResetPostCoefs.Enabled := postXswap;
bvlCoefs.Visible := not postXswap;
btnXcoefs.Enabled := not postXswap; btnXcoefs.Enabled := not postXswap;
btnYcoefs.Enabled := not postXswap; btnYcoefs.Enabled := not postXswap;
btnOcoefs.Enabled := not postXswap; btnOcoefs.Enabled := not postXswap;
@ -760,6 +783,7 @@ begin
txtE.Enabled := not postXswap; txtE.Enabled := not postXswap;
txtF.Enabled := not postXswap; txtF.Enabled := not postXswap;
btnResetCoefs.Enabled := not postXswap; btnResetCoefs.Enabled := not postXswap;
}
if SelectedTriangle < Transforms then if SelectedTriangle < Transforms then
begin begin
@ -1172,9 +1196,10 @@ begin
with cp.xform[i] do // draw post-triangle with cp.xform[i] do // draw post-triangle
if postXswap or if postXswap or
((ShowAllXforms or (i = SelectedTriangle)) and (
(p[0,0]<>1) or (p[0,1]<>0) or (p[0,0]<>1) or (p[0,1]<>0) or
(p[1,0]<>0) or (p[1,1]<>1) or (p[1,0]<>0) or (p[1,1]<>1) or
(p[2,0]<>0) or (p[2,1]<>0) then (p[2,0]<>0) or (p[2,1]<>0) )) then
begin begin
Pen.Color := GetTriangleColor(i) shr 1 and $7f7f7f; Pen.Color := GetTriangleColor(i) shr 1 and $7f7f7f;
tps := Pen.Style; tps := Pen.Style;
@ -1198,7 +1223,8 @@ begin
f := ToScreen(tT.x[1] - tyx, tT.y[1] - tyy); f := ToScreen(tT.x[1] - tyx, tT.y[1] - tyy);
Polyline([a, b, e, f]); Polyline([a, b, e, f]);
if postXswap then begin if postXswap and ((i = SelectedTriangle) or ShowAllXforms) then
begin
Pen.Style := psDot; Pen.Style := psDot;
cp.GetTriangle(tT, i); cp.GetTriangle(tT, i);
@ -1228,7 +1254,7 @@ begin
brush.Color := pen.color shr 1 and $7f7f7f; brush.Color := pen.color shr 1 and $7f7f7f;
Polyline([c, a]); Polyline([c, a]);
brush.Color := EditorBkgColor; brush.Color := EditorBkgColor;
end; end;
Pen.Style := psSolid; Pen.Style := psSolid;
Ellipse(a.x - 4, a.y - 4, a.x + 4, a.y + 4); Ellipse(a.x - 4, a.y - 4, a.x + 4, a.y + 4);
@ -3806,13 +3832,20 @@ begin
txtValidateValue(Sender); txtValidateValue(Sender);
end; end;
procedure TEditForm.mnuResetClick(Sender: TObject); procedure TEditForm.mnuResetTriangleClick(Sender: TObject);
begin begin
{ if (MainTriangles[SelectedTriangle].x[0] = MainTriangles[-1].x[0]) and
(MainTriangles[SelectedTriangle].x[1] = MainTriangles[-1].x[1]) and
(MainTriangles[SelectedTriangle].x[2] = MainTriangles[-1].x[2]) and
(MainTriangles[SelectedTriangle].y[0] = MainTriangles[-1].y[0]) and
(MainTriangles[SelectedTriangle].y[1] = MainTriangles[-1].y[1]) and
(MainTriangles[SelectedTriangle].y[2] = MainTriangles[-1].y[2])
then exit;
MainForm.UpdateUndo; MainForm.UpdateUndo;
MainTriangles[SelectedTriangle] := MainTriangles[-1]; MainTriangles[SelectedTriangle] := MainTriangles[-1];
UpdateFlame(True); UpdateFlame(True);
} {
with cp.xform[SelectedTriangle] do with cp.xform[SelectedTriangle] do
begin begin
if (c[0,0]<>1) or (c[0,1]<>0) or(c[1,0]<>0) or (c[1,1]<>1) or (c[2,0]<>0) or (c[2,1]<>0) then if (c[0,0]<>1) or (c[0,1]<>0) or(c[1,0]<>0) or (c[1,1]<>1) or (c[2,0]<>0) or (c[2,1]<>0) then
@ -3829,6 +3862,7 @@ begin
UpdateFlame(True); UpdateFlame(True);
end; end;
end; end;
}
end; end;
procedure TEditForm.mnuResetAllClick(Sender: TObject); procedure TEditForm.mnuResetAllClick(Sender: TObject);
@ -4063,6 +4097,26 @@ begin
UpdateFlame(true); UpdateFlame(true);
end; end;
procedure TEditForm.btnResetCoefsClick(Sender: TObject);
begin
with cp.xform[SelectedTriangle] do
begin
if (c[0,0]<>1) or (c[0,1]<>0) or(c[1,0]<>0) or (c[1,1]<>1) or (c[2,0]<>0) or (c[2,1]<>0) then
begin
MainForm.UpdateUndo;
c[0, 0] := 1;
c[0, 1] := 0;
c[1, 0] := 0;
c[1, 1] := 1;
c[2, 0] := 0;
c[2, 1] := 0;
ShowSelectedInfo;
cp.TrianglesFromCP(MainTriangles);
UpdateFlame(True);
end;
end;
end;
procedure TEditForm.btnResetPostCoefsClick(Sender: TObject); procedure TEditForm.btnResetPostCoefsClick(Sender: TObject);
begin begin
with cp.xform[SelectedTriangle] do with cp.xform[SelectedTriangle] do

View File

@ -97,6 +97,7 @@ var
GridColor1, GridColor2, HelpersColor: integer; GridColor1, GridColor2, HelpersColor: integer;
ExtEditEnabled, TransformAxisLock: boolean; ExtEditEnabled, TransformAxisLock: boolean;
DoubleClickSetVars: boolean; DoubleClickSetVars: boolean;
ShowAllXforms: boolean;
{ Display } { Display }

View File

@ -41,7 +41,7 @@ const
RS_XO = 2; RS_XO = 2;
RS_VO = 3; RS_VO = 3;
AppVersionString = 'Apophysis 2.05 post-release 2'; AppVersionString = 'Apophysis 2.05 beta 2 rc3';
type type
TMouseMoveState = (msUsual, msZoomWindow, msZoomOutWindow, msZoomWindowMove, TMouseMoveState = (msUsual, msZoomWindow, msZoomOutWindow, msZoomWindowMove,
@ -1808,7 +1808,7 @@ begin
if not Assigned(Renderer) then if not Assigned(Renderer) then
begin begin
if EditForm.Visible and ((MainCP.Width / MainCP.Height) <> (EditForm.cp.Width / EditForm.cp.Height)) if EditForm.Visible and ((MainCP.Width / MainCP.Height) <> (EditForm.cp.Width / EditForm.cp.Height))
then EditForm.UpdateDisplay{(true)}; // preview only? then EditForm.UpdateDisplay(true); // preview only?
if AdjustForm.Visible then AdjustForm.UpdateDisplay(true); // preview only! if AdjustForm.Visible then AdjustForm.UpdateDisplay(true); // preview only!
RenderCP := MainCP.Clone; RenderCP := MainCP.Clone;
@ -1938,6 +1938,7 @@ begin
on EInOutError do Application.MessageBox('Error creating batch', PChar(APP_NAME), 16); on EInOutError do Application.MessageBox('Error creating batch', PChar(APP_NAME), 16);
end; end;
RandFile := AppPath + 'apophysis.rand'; RandFile := AppPath + 'apophysis.rand';
MainCp.name := '';
end; end;
{ ******************************** Menu ************************************ } { ******************************** Menu ************************************ }

View File

@ -258,40 +258,40 @@ object OptionsForm: TOptionsForm
Left = 8 Left = 8
Top = 4 Top = 4
Width = 145 Width = 145
Height = 138 Height = 173
Caption = 'Editor Graph' Caption = 'Editor Graph'
TabOrder = 0 TabOrder = 0
object Label40: TLabel object Label40: TLabel
Left = 8 Left = 8
Top = 56 Top = 88
Width = 56 Width = 56
Height = 13 Height = 13
Caption = 'Background' Caption = 'Background'
end end
object Label41: TLabel object Label41: TLabel
Left = 8 Left = 8
Top = 96 Top = 128
Width = 50 Width = 50
Height = 13 Height = 13
Caption = 'Reference' Caption = 'Reference'
end end
object Label42: TLabel object Label42: TLabel
Left = 75 Left = 75
Top = 56 Top = 88
Width = 50 Width = 50
Height = 13 Height = 13
Caption = 'Grid colors' Caption = 'Grid colors'
end end
object Label43: TLabel object Label43: TLabel
Left = 75 Left = 75
Top = 96 Top = 128
Width = 36 Width = 36
Height = 13 Height = 13
Caption = 'Helpers' Caption = 'Helpers'
end end
object pnlBackColor: TPanel object pnlBackColor: TPanel
Left = 8 Left = 8
Top = 72 Top = 104
Width = 62 Width = 62
Height = 17 Height = 17
Cursor = crHandPoint Cursor = crHandPoint
@ -320,7 +320,7 @@ object OptionsForm: TOptionsForm
end end
object pnlReference: TPanel object pnlReference: TPanel
Left = 8 Left = 8
Top = 112 Top = 144
Width = 62 Width = 62
Height = 17 Height = 17
Cursor = crHandPoint Cursor = crHandPoint
@ -331,7 +331,7 @@ object OptionsForm: TOptionsForm
end end
object pnlGridColor1: TPanel object pnlGridColor1: TPanel
Left = 75 Left = 75
Top = 72 Top = 104
Width = 29 Width = 29
Height = 17 Height = 17
Cursor = crHandPoint Cursor = crHandPoint
@ -342,7 +342,7 @@ object OptionsForm: TOptionsForm
end end
object pnlGridColor2: TPanel object pnlGridColor2: TPanel
Left = 108 Left = 108
Top = 72 Top = 104
Width = 29 Width = 29
Height = 17 Height = 17
Cursor = crHandPoint Cursor = crHandPoint
@ -353,7 +353,7 @@ object OptionsForm: TOptionsForm
end end
object pnlHelpersColor: TPanel object pnlHelpersColor: TPanel
Left = 75 Left = 75
Top = 112 Top = 144
Width = 62 Width = 62
Height = 17 Height = 17
Cursor = crHandPoint Cursor = crHandPoint
@ -362,6 +362,17 @@ object OptionsForm: TOptionsForm
TabOrder = 5 TabOrder = 5
OnClick = pnlHelpersColorClick OnClick = pnlHelpersColorClick
end end
object chkShowAllXforms: TCheckBox
Left = 8
Top = 56
Width = 129
Height = 25
Caption = 'Always show both type of transforms'
Checked = True
State = cbChecked
TabOrder = 7
WordWrap = True
end
end end
object rgReferenceMode: TRadioGroup object rgReferenceMode: TRadioGroup
Left = 160 Left = 160
@ -405,9 +416,9 @@ object OptionsForm: TOptionsForm
end end
end end
object rgDoubleClickVars: TRadioGroup object rgDoubleClickVars: TRadioGroup
Left = 8 Left = 160
Top = 144 Top = 144
Width = 297 Width = 273
Height = 57 Height = 57
Caption = 'Double-click on variation' Caption = 'Double-click on variation'
Items.Strings = ( Items.Strings = (

View File

@ -216,6 +216,7 @@ type
rgDoubleClickVars: TRadioGroup; rgDoubleClickVars: TRadioGroup;
chkOldPaletteFormat: TCheckBox; chkOldPaletteFormat: TCheckBox;
rgZoomingMode: TRadioGroup; rgZoomingMode: TRadioGroup;
chkShowAllXforms: TCheckBox;
procedure btnCancelClick(Sender: TObject); procedure btnCancelClick(Sender: TObject);
procedure FormShow(Sender: TObject); procedure FormShow(Sender: TObject);
procedure btnOKClick(Sender: TObject); procedure btnOKClick(Sender: TObject);
@ -326,6 +327,7 @@ begin
chkAxisLock.Checked := TransformAxisLock; chkAxisLock.Checked := TransformAxisLock;
if DoubleClickSetVars then rgDoubleClickVars.ItemIndex := 1 if DoubleClickSetVars then rgDoubleClickVars.ItemIndex := 1
else rgDoubleClickVars.ItemIndex := 0; else rgDoubleClickVars.ItemIndex := 0;
chkShowAllXforms.Checked := ShowAllXforms;
{ Display tab } { Display tab }
txtSampleDensity.Text := FloatToStr(defSampleDensity); txtSampleDensity.Text := FloatToStr(defSampleDensity);
@ -454,6 +456,7 @@ begin
ReferenceMode := rgReferenceMode.ItemIndex; ReferenceMode := rgReferenceMode.ItemIndex;
UseTransformColors := chkUseXFormColor.checked; UseTransformColors := chkUseXFormColor.checked;
HelpersEnabled := chkHelpers.Checked; HelpersEnabled := chkHelpers.Checked;
ShowAllXforms := chkShowAllXforms.Checked;
ExtEditEnabled := chkExtendedEdit.Checked; ExtEditEnabled := chkExtendedEdit.Checked;
TransformAxisLock := chkAxisLock.Checked; TransformAxisLock := chkAxisLock.Checked;

View File

@ -661,6 +661,10 @@ begin
HelpersEnabled := Registry.ReadBool('HelpersEnabled') HelpersEnabled := Registry.ReadBool('HelpersEnabled')
else else
HelpersEnabled := true; HelpersEnabled := true;
if Registry.ValueExists('ShowAllXforms') then
ShowAllXforms := Registry.ReadBool('ShowAllXforms')
else
ShowAllXforms := true;
if Registry.ValueExists('BackgroundColor') then if Registry.ValueExists('BackgroundColor') then
EditorBkgColor := Registry.ReadInteger('BackgroundColor') EditorBkgColor := Registry.ReadInteger('BackgroundColor')
@ -695,6 +699,7 @@ begin
else begin else begin
UseTransformColors := false; UseTransformColors := false;
HelpersEnabled := true; HelpersEnabled := true;
ShowAllXforms := true;
EditorBkgColor := $000000; EditorBkgColor := $000000;
GridColor1 := $444444; GridColor1 := $444444;
GridColor2 := $333333; GridColor2 := $333333;
@ -1075,6 +1080,7 @@ begin
begin begin
Registry.WriteBool('UseTransformColors', UseTransformColors); Registry.WriteBool('UseTransformColors', UseTransformColors);
Registry.WriteBool('HelpersEnabled', HelpersEnabled); Registry.WriteBool('HelpersEnabled', HelpersEnabled);
Registry.WriteBool('ShowAllXforms', ShowAllXforms);
Registry.WriteInteger('BackgroundColor', EditorBkgColor); Registry.WriteInteger('BackgroundColor', EditorBkgColor);
Registry.WriteInteger('GridColor1', GridColor1); Registry.WriteInteger('GridColor1', GridColor1);
Registry.WriteInteger('GridColor2', GridColor2); Registry.WriteInteger('GridColor2', GridColor2);

View File

@ -282,6 +282,8 @@ procedure TBaseRenderer.ShowBigStats;
var var
Stats: TBucketStats; Stats: TBucketStats;
TotalSamples: int64; TotalSamples: int64;
Rbits, Gbits, Bbits, Abits: double;
begin begin
if not assigned(strOutput) then exit; if not assigned(strOutput) then exit;
@ -299,10 +301,14 @@ begin
strOutput.Add(Format(' Max possible bits: %2.3f', [8 + log2(TotalSamples)])); strOutput.Add(Format(' Max possible bits: %2.3f', [8 + log2(TotalSamples)]));
FImageMaker.GetBucketStats(Stats); FImageMaker.GetBucketStats(Stats);
with Stats do begin with Stats do begin
strOutput.Add(Format(' Max Red: %2.3f bits', [log2(MaxR)])); if MaxR > 0 then Rbits := log2(MaxR) else Rbits := 0;
strOutput.Add(Format(' Max Green: %2.3f bits', [log2(MaxG)])); if MaxG > 0 then Gbits := log2(MaxG) else Gbits := 0;
strOutput.Add(Format(' Max Blue: %2.3f bits', [log2(MaxB)])); if MaxB > 0 then Bbits := log2(MaxB) else Bbits := 0;
strOutput.Add(Format(' Max Count: %2.3f bits', [log2(MaxA)])); if MaxA > 0 then Abits := log2(MaxA) else Abits := 0;
strOutput.Add(Format(' Max Red: %2.3f bits', [Rbits]));
strOutput.Add(Format(' Max Green: %2.3f bits', [Gbits]));
strOutput.Add(Format(' Max Blue: %2.3f bits', [Bbits]));
strOutput.Add(Format(' Max Count: %2.3f bits', [Abits]));
strOutput.Add(Format(' Point hit ratio: %2.2f%%', [100.0*(TotalA/TotalSamples)])); strOutput.Add(Format(' Point hit ratio: %2.2f%%', [100.0*(TotalA/TotalSamples)]));
if RenderTime > 0 then // hmm if RenderTime > 0 then // hmm
strOutput.Add(Format(' Average speed: %n points per second', [TotalSamples / (RenderTime * 24 * 60 * 60)])); strOutput.Add(Format(' Average speed: %n points per second', [TotalSamples / (RenderTime * 24 * 60 * 60)]));