DataWindow :
- nella creazione degli split aggiunto measure type per ogni valore.
This commit is contained in:
+121
-98
@@ -45,6 +45,7 @@ local vSashJoints = { SashJointType, SashJointType, SashJointType, SashJointType
|
||||
|
||||
|
||||
local sProfilePath = 'C:\\EgtData\\EgtWindowMaker\\Profiles\\Profilo78.nge'
|
||||
-- local sProfilePath = 'C:\\EgtData\\EgtWindowMaker\\Profiles\\CambioProfilo.nge'
|
||||
-- local sProfilePath = 'C:\\EgtData\\EgtWindowMaker\\Profiles\\ProfiloSaomad.nge'
|
||||
-- local sProfilePath = 'C:\\EgtData\\EgtWindowMaker\\Profiles\\AlzanteScorrevole.nge'
|
||||
|
||||
@@ -59,54 +60,58 @@ WinCreate.ImportProfile( sProfilePath)
|
||||
|
||||
-- creo telaio
|
||||
|
||||
local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {WindowWidth, WindowHeight})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER_SIDE, vFrameJoints, {WindowWidth, WindowHeight, WindowHeight + 800})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER_SIDE, vFrameJoints, {WindowWidth, WindowHeight + 500, WindowHeight})
|
||||
local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, { WindowWidth, WindowHeight})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER_SIDE, vFrameJoints, { WindowWidth, WindowHeight, WindowHeight + 800})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER_SIDE, vFrameJoints, { WindowWidth, WindowHeight + 500, WindowHeight})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.ROUND_ARC, vFrameJoints, WindowWidth, WindowHeight)
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.SEGMENTAL_ARC, { FrameJointType, FrameJointType, FrameJointType, FrameJointType}, {1500, 1800, 2200})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER, { FrameJointType, FrameJointType, FrameJointType, FrameJointType, FrameJointType}, {WindowWidth, WindowHeight, WindowHeight + 500})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.POINTED_ARC, { FrameJointType, FrameJointType, FrameJointType, FrameJointType, FrameJointType}, {1500, 1500, 2400})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.TRG, { FrameJointType, FrameJointType, FrameJointType}, {1500, 1500, 500})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.THREE_CENTER_ARC, { FrameJointType, FrameJointType, WIN_JNT.ANGLED, WIN_JNT.ANGLED, WIN_JNT.ANGLED, WIN_JNT.ANGLED}, {1500, 1500, 1800, 200})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.SEGMENTAL_ARC, { FrameJointType, FrameJointType, FrameJointType, FrameJointType}, { 1500, 1800, 2200})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.CHAMFER, { FrameJointType, FrameJointType, FrameJointType, FrameJointType, FrameJointType}, { WindowWidth, WindowHeight, WindowHeight + 500})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.POINTED_ARC, { FrameJointType, FrameJointType, FrameJointType, FrameJointType, FrameJointType}, { 1500, 1500, 2400})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.TRG, { FrameJointType, FrameJointType, FrameJointType}, { 1500, 1500, 500})
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.THREE_CENTER_ARC, { FrameJointType, FrameJointType, WIN_JNT.ANGLED, WIN_JNT.ANGLED, WIN_JNT.ANGLED, WIN_JNT.ANGLED}, { 1500, 1500, 1800, 200})
|
||||
|
||||
|
||||
|
||||
------------------------ Aggiunta split a griglia ------------------------
|
||||
|
||||
-- WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.ABSOLUT, {100, 300, 100, 300}, {500, 600, 850}, false)
|
||||
-- WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.PERCENTAGE, {0.15}, {0.5, 0.3}, false)
|
||||
-- WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.PROPORTIONAL, {1, 4, 1, 2, 1}, {1, 2, 1, 2, 1}, false)
|
||||
|
||||
-- WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE}, { 150, 300, 150, 300},
|
||||
-- { WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE}, { 500, 600, 850}, false)
|
||||
-- WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 15}, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 50, 30}, false)
|
||||
-- WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL}, { 1, 4, 1, 2, 1},
|
||||
-- { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL}, { 1, 2, 1, 2, 1}, false)
|
||||
-- WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.ABSOLUTE}, { 2, 1, 200},
|
||||
-- { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PROPORTIONAL}, { 1, 50, 1})
|
||||
|
||||
|
||||
------------------------ Cambi profilo ------------------------
|
||||
|
||||
-- vetro / anta
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTTURN_RIGHT)
|
||||
-- WinCreate.AddFill( nSashId, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / anta in orizzontale
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSashId, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- anta / vetro
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSashId, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / anta / vetro
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[2], vSashJoints)
|
||||
-- WinCreate.AddFill( nSashId, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[3], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / anta / anta
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId1 = WinCreate.AddSash( vAreas[2], vSashJoints)
|
||||
-- local nSashId2 = WinCreate.AddSash( vAreas[3], vSashJoints)
|
||||
@@ -114,17 +119,17 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSashId2, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- anta battente / anta ricevente / vetro
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.66})
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 66})
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / anta / vetro / anta (1)
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas3[1], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId1 = WinCreate.AddSash( vAreas2[2], vSashJoints)
|
||||
@@ -133,7 +138,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSashId2, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / anta / vetro / anta (2)
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.25, 0.25, 0.25})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId1 = WinCreate.AddSash( vAreas[2], vSashJoints)
|
||||
-- WinCreate.AddFill( nSashId1, WIN_FILLTYPES.GLASS)
|
||||
@@ -142,7 +147,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSashId2, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- vetro / vetro / anta / anta
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.25, 0.25, 0.25})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId1 = WinCreate.AddSash( vAreas[3], vSashJoints)
|
||||
@@ -151,24 +156,24 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSashId2, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- anta / vetro con split
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[1], vSashJoints)
|
||||
-- WinCreate.AddFill( nSashId, WIN_FILLTYPES.GLASS)
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas2[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- anta con split / vetro
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSashId = WinCreate.AddSash( vAreas[1], vSashJoints)
|
||||
-- local vAreasSash = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreasSash = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreasSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreasSash[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- ante ( divise da split orizzontale) / vetro
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 30})
|
||||
-- local nSashId1 = WinCreate.AddSash( vAreas2[1], vSashJoints)
|
||||
-- WinCreate.AddFill( nSashId1, WIN_FILLTYPES.GLASS)
|
||||
-- local nSashId2 = WinCreate.AddSash( vAreas2[2], vSashJoints)
|
||||
@@ -182,7 +187,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddThreshold( nFrameId, 'Threshold')
|
||||
|
||||
-- anta mobile a sx
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_FIXED},
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_FIXED},
|
||||
-- { WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.FIXED})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -190,7 +195,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000592', 'Sx')
|
||||
|
||||
-- anta mobile a dx
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.SLIDE_FIXED, WIN_SASHTYPES.SLIDE_MOVABLE},
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.SLIDE_FIXED, WIN_SASHTYPES.SLIDE_MOVABLE},
|
||||
-- { WIN_OPENING_TYPES.FIXED, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -198,7 +203,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000592', 'Dx')
|
||||
|
||||
-- 2 ante mobili, sx davanti
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE_BACK},
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE_BACK},
|
||||
-- { WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -206,7 +211,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000593', 'Sx')
|
||||
|
||||
-- 2 ante mobili, dx davanti
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.SLIDE_MOVABLE_BACK, WIN_SASHTYPES.SLIDE_MOVABLE},
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.SLIDE_MOVABLE_BACK, WIN_SASHTYPES.SLIDE_MOVABLE},
|
||||
-- { WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -214,8 +219,11 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000593', 'Dx')
|
||||
|
||||
-- 4 ante, le centrali sono mobili
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {4500, 2100})
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.25, 0.25, 0.25}, vSashJoints, { WIN_SASHTYPES.SLIDE_FIXED, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_FIXED},
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, { 4500, 2100})
|
||||
-- -- WinCreate.AddThreshold( nFrameId, 'Threshold')
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25},
|
||||
-- { vSashJoints, vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.SLIDE_FIXED, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_FIXED},
|
||||
-- { WIN_OPENING_TYPES.FIXED, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT, WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.FIXED})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -225,8 +233,11 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000594', 'Dx')
|
||||
|
||||
-- 4 ante mobili
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {4500, 2100})
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.25, 0.25, 0.25}, vSashJoints, { WIN_SASHTYPES.SLIDE_MOVABLE_BACK, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE_BACK},
|
||||
-- local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, { 4500, 2100})
|
||||
-- -- WinCreate.AddThreshold( nFrameId, 'Threshold')
|
||||
-- local vSash = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25},
|
||||
-- { vSashJoints, vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.SLIDE_MOVABLE_BACK, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE, WIN_SASHTYPES.SLIDE_MOVABLE_BACK},
|
||||
-- { WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT, WIN_OPENING_TYPES.COPLANARSLIDE_RIGHT, WIN_OPENING_TYPES.COPLANARSLIDE_LEFT})
|
||||
-- WinCreate.AddFill( vSash[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSash[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -245,16 +256,16 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
|
||||
-- divisione orizzontale / verticale
|
||||
-- WinCreate.AddBottomRail( nFrameId, 2)
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.7})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.7})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 70})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 70})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- divisione verticale ed orizzontale (1)
|
||||
-- WinCreate.AddBottomRail( nFrameId, 1)
|
||||
-- local vAreas1 = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[1], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas1 = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[1], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas2[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas3[1], WIN_FILLTYPES.GLASS)
|
||||
@@ -262,7 +273,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
|
||||
-- divisione verticale ed orizzontale (2)
|
||||
-- WinCreate.AddBottomRail( nFrameId, 1)
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.5}, {0.5}, true)
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { WIN_MEASURE.PERCENTAGE}, { 50}, true)
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[3], WIN_FILLTYPES.GLASS)
|
||||
@@ -280,16 +291,16 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- divisione orizzontale / verticale
|
||||
-- local nSashId = WinCreate.AddSash( nFrameId, vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddBottomRail( nSashId, 1)
|
||||
-- -- local vAreas = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- divisione verticale e orizzontale
|
||||
-- local nSashId = WinCreate.AddSash( nFrameId, vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- local vAreas1 = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[1], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas1 = WinCreate.AddSplits( nSashId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[1], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas3 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- WinCreate.AddFill( vAreas2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas2[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreas3[1], WIN_FILLTYPES.GLASS)
|
||||
@@ -300,23 +311,23 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
------------------------ Finestre con più ante singole ------------------------
|
||||
|
||||
-- due ante divisione verticale
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTTURN_RIGHT)
|
||||
-- WinCreate.AddFill( nSash2Id, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- due ante divisione orizzontale
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTONLY_TOP)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTONLY_TOP)
|
||||
-- WinCreate.AddFill( nSash2Id, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- tre ante
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.ABSOLUT, { WindowWidth / 3, WindowWidth / 3})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PROPORTIONAL, { 1, 1, 1})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.ABSOLUTE, WIN_MEASURE.ABSOLUTE}, { WindowWidth / 3, WindowWidth / 3})
|
||||
-- -- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL}, { 1, 1, 1})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints)
|
||||
@@ -325,8 +336,8 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSash3Id, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- tre ante una sopra e due sotto
|
||||
-- local vAreas1 = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas1 = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas1[2], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas1[1], vSashJoints, WIN_OPENING_TYPES.FIXED)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas2[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
@@ -335,9 +346,9 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSash3Id, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- sei ante (1)
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas1 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local vAreas1 = WinCreate.AddSplits( vAreas[1], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33})
|
||||
-- local vAreas2 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas1[1], vSashJoints)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas1[2], vSashJoints)
|
||||
@@ -352,7 +363,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddFill( nSash6Id, WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- sei ante (2)
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.PERCENTAGE, {0.33, 0.33}, {0.5}, false)
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { WIN_MEASURE.PERCENTAGE}, { 50}, false)
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints)
|
||||
@@ -371,27 +382,31 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
------------------------ Finestre con ante battenti e riceventi ------------------------
|
||||
|
||||
-- battente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- battente / ricevente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, {WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[3], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- battente / battente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, {WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[3], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- battente / battente / ricevente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PROPORTIONAL, { 1, 1, 1, 1}, vSashJoints, {WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL, WIN_MEASURE.PROPORTIONAL}, { 1, 1, 1, 1},
|
||||
-- { vSashJoints, vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -403,64 +418,64 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
------------------------ Finestre con ante singole e ante battenti/riceventi ------------------------
|
||||
|
||||
-- tre ante : singola / ricevente / battente
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 33})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[2], WIN_MEASURE.PERCENTAGE, {0.5}, vSashJoints, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[2], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
|
||||
-- tre ante ( singola / ricevente/ battente) con split nelle ante
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.33})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 33})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- local vAreasSash1 = WinCreate.AddSplits( nSash1Id, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.ABSOLUT, { WindowHeight * 3 / 5})
|
||||
-- local vAreasSash1 = WinCreate.AddSplits( nSash1Id, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.ABSOLUTE}, { WindowHeight * 3 / 5})
|
||||
-- WinCreate.AddFill( vAreasSash1[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreasSash1[2], WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes2 = WinCreate.AddSashGroup( vAreas[2], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, {WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- local vSashes2 = WinCreate.AddSashGroup( vAreas[2], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- local vAreasSash2 = WinCreate.AddSplits( vSashes2[1], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.ABSOLUT, { WindowHeight * 3 / 5})
|
||||
-- local vAreasSash2 = WinCreate.AddSplits( vSashes2[1], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.ABSOLUTE}, { WindowHeight * 3 / 5})
|
||||
-- WinCreate.AddFill( vAreasSash2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreasSash2[2], WIN_FILLTYPES.GLASS)
|
||||
-- local vAreasSash3 = WinCreate.AddSplits( vSashes2[2], WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.ABSOLUT, { WindowHeight * 3 / 5})
|
||||
-- local vAreasSash3 = WinCreate.AddSplits( vSashes2[2], WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.ABSOLUTE}, { WindowHeight * 3 / 5})
|
||||
-- WinCreate.AddFill( vAreasSash3[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vAreasSash3[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- 3 ante : sopra battente / ricevente, sotto singola
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.7})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 70})
|
||||
-- local nSash0Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.FIXED)
|
||||
-- WinCreate.AddFill( nSash0Id, WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, {WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- 4 ante : sopra anta singola e sotto singola ( con split) / battente / ricevente
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.3})
|
||||
-- local vAreas1 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.3})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 30})
|
||||
-- local vAreas1 = WinCreate.AddSplits( vAreas[2], WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 30})
|
||||
-- local nSash0Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTONLY_TOP)
|
||||
-- WinCreate.AddFill( nSash0Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas1[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- local vSashAreas = WinCreate.AddSplits( nSash1Id, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.6})
|
||||
-- local vSashAreas = WinCreate.AddSplits( nSash1Id, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 60})
|
||||
-- WinCreate.AddFill( vSashAreas[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashAreas[2], WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas1[2], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, {WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas1[2], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
-- sei ante : divisione orizzontale e per ogni divisione anta singola / battente/ ricevente
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, WIN_MEASURE.PERCENTAGE, {0.33}, {0.5}, false)
|
||||
-- local vAreas = WinCreate.AddGridSplits( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 33}, { WIN_MEASURE.PERCENTAGE}, { 50}, false)
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[3], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash2Id, WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes1 = WinCreate.AddSashGroup( vAreas[2], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, {WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes1 = WinCreate.AddSashGroup( vAreas[2], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes1[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes1[2], WIN_FILLTYPES.GLASS)
|
||||
-- local vSashes2 = WinCreate.AddSashGroup( vAreas[4], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, {WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes2 = WinCreate.AddSashGroup( vAreas[4], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes2[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes2[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -485,22 +500,22 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- -- WinCreate.AddHardware( nSashId, '000604', 'Sx') -- trapezio
|
||||
|
||||
-- 2 ante singole
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTTURN_RIGHT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( nSash2Id, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddHardware( nSash1Id, '000558', 'Sx')
|
||||
-- WinCreate.AddHardware( nSash2Id, '000558', 'Dx')
|
||||
-- WinCreate.AddHardware( nSash1Id, '000610', 'Sx') -- arco a tutto sesto
|
||||
-- WinCreate.AddHardware( nSash2Id, '000610', 'Dx')
|
||||
-- WinCreate.AddHardware( nSash1Id, '000611', 'Sx') -- arco ribassato
|
||||
-- WinCreate.AddHardware( nSash2Id, '000611', 'Dx')
|
||||
-- WinCreate.AddHardware( nSash1Id, '000604', 'Sx') -- trapezio
|
||||
-- WinCreate.AddHardware( nSash2Id, '000604', 'Dx')
|
||||
-- -- WinCreate.AddHardware( nSash1Id, '000610', 'Sx') -- arco a tutto sesto
|
||||
-- -- WinCreate.AddHardware( nSash2Id, '000610', 'Dx')
|
||||
-- -- WinCreate.AddHardware( nSash1Id, '000611', 'Sx') -- arco ribassato
|
||||
-- -- WinCreate.AddHardware( nSash2Id, '000611', 'Dx')
|
||||
-- -- WinCreate.AddHardware( nSash1Id, '000604', 'Sx') -- trapezio
|
||||
-- -- WinCreate.AddHardware( nSash2Id, '000604', 'Dx')
|
||||
|
||||
-- 2 ante singole con apertura sul montante
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, WIN_MEASURE.PERCENTAGE, { 0.5})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.VERTICAL, { WIN_MEASURE.PERCENTAGE}, { 50})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[1], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- local nSash2Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
@@ -509,11 +524,11 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSash2Id, '000558', 'Sx')
|
||||
|
||||
-- 3 ante : sotto singola, sopra battente / ricevente
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, WIN_MEASURE.PERCENTAGE, { 0.6})
|
||||
-- local vAreas = WinCreate.AddSplits( nFrameId, WIN_SPLITORIENTATION.HORIZONTAL, { WIN_MEASURE.PERCENTAGE}, { 60})
|
||||
-- local nSash1Id = WinCreate.AddSash( vAreas[2], vSashJoints, WIN_OPENING_TYPES.TILTTURN_LEFT)
|
||||
-- WinCreate.AddFill( nSash1Id, WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddHardware( nSash1Id, '000558', 'Sx')
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( vAreas[1], { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -521,7 +536,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000559', 'Sx')
|
||||
|
||||
-- 2 ante : battente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -531,7 +546,7 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- -- WinCreate.AddHardware( nSashGrpId, '000599', 'Sx') -- arco ribassato
|
||||
|
||||
-- 2 ante : ricevente / battente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.5}, vSashJoints, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE}, { 50}, { vSashJoints, vSashJoints}, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -539,7 +554,8 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000559', 'Dx')
|
||||
|
||||
-- 3 ante : battente / battente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -548,7 +564,8 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000564', 'Sx')
|
||||
|
||||
-- 3 ante : ricevente / battente / battente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.ACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.INACTIVE, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.ACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -557,7 +574,8 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000564', 'Dx')
|
||||
|
||||
-- 3 ante : battente / ricevente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -566,7 +584,8 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000565', 'Sx')
|
||||
|
||||
-- 3 ante : ricevente / ricevente / battente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.33, 0.33}, vSashJoints, { WIN_SASHTYPES.INACTIVE_OUT, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.ACTIVE},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 33, 33}, { vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.INACTIVE_OUT, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.ACTIVE},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -575,7 +594,9 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000565', 'Dx')
|
||||
|
||||
-- 4 ante : battente / battente / ricevente / ricevente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.25, 0.25, 0.25}, vSashJoints, { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25},
|
||||
-- { vSashJoints, vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.ACTIVE_OUT, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.INACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
@@ -585,7 +606,9 @@ local nFrameId = WinCreate.CreateFrame( WIN_FRAME_TYPES.RECT, vFrameJoints, {Win
|
||||
-- WinCreate.AddHardware( nSashGrpId, '000575', 'Sx')
|
||||
|
||||
-- 4 ante : ricevente / ricevente / battente / battente
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, WIN_MEASURE.PERCENTAGE, { 0.25, 0.25, 0.25}, vSashJoints, { WIN_SASHTYPES.INACTIVE_OUT, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.ACTIVE_OUT},
|
||||
-- local vSashes = WinCreate.AddSashGroup( nFrameId, { WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE, WIN_MEASURE.PERCENTAGE}, { 25, 25, 25},
|
||||
-- { vSashJoints, vSashJoints, vSashJoints, vSashJoints},
|
||||
-- { WIN_SASHTYPES.INACTIVE_OUT, WIN_SASHTYPES.INACTIVE_IN, WIN_SASHTYPES.ACTIVE_IN, WIN_SASHTYPES.ACTIVE_OUT},
|
||||
-- { WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_LEFT, WIN_OPENING_TYPES.TURNONLY_RIGHT, WIN_OPENING_TYPES.TURNONLY_RIGHT})
|
||||
-- WinCreate.AddFill( vSashes[1], WIN_FILLTYPES.GLASS)
|
||||
-- WinCreate.AddFill( vSashes[2], WIN_FILLTYPES.GLASS)
|
||||
|
||||
@@ -51,7 +51,7 @@ WIN_SPLITORIENTATION = {
|
||||
|
||||
-- tipi di misure
|
||||
WIN_MEASURE = {
|
||||
ABSOLUT = 1,
|
||||
ABSOLUTE = 1,
|
||||
PROPORTIONAL = 2,
|
||||
PERCENTAGE = 3,
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ local function IdentifySashShape( nAreaId, nOutlineLayerId)
|
||||
end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
-- funzione che aggiunge una anta
|
||||
-- funzione che aggiunge una singola anta
|
||||
function WinCreate.AddSash( nParentAreaId, vJoints, nOpeningType, nAreaNbr)
|
||||
|
||||
-- se già presente area errore
|
||||
@@ -335,7 +335,7 @@ end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
-- funzione che aggiunge un gruppo di ante
|
||||
function WinCreate.AddSashGroup( nParentAreaId, nMeasureType, vDimensions, vJoints, vSashTypes, vOpeningTypes, nAreaNbr, vSashNbrs)
|
||||
function WinCreate.AddSashGroup( nParentAreaId, vMeasureTypes, vDimensions, vJoints, vSashTypes, vOpeningTypes, nAreaNbr, vSashNbrs)
|
||||
|
||||
-- se già presente sottoarea errore
|
||||
if EgtGetFirstNameInGroup( nParentAreaId, WIN_AREA .. '*') then
|
||||
@@ -343,7 +343,7 @@ function WinCreate.AddSashGroup( nParentAreaId, nMeasureType, vDimensions, vJoin
|
||||
end
|
||||
|
||||
-- creo gli split di tipo french
|
||||
local vAreas = WinCreate.AddSplits( nParentAreaId, WIN_SPLITORIENTATION.VERTICAL, nMeasureType, vDimensions, true, nAreaNbr)
|
||||
local vAreas = WinCreate.AddSplits( nParentAreaId, WIN_SPLITORIENTATION.VERTICAL, vMeasureTypes, vDimensions, true, nAreaNbr)
|
||||
|
||||
-- identifico la forma del gruppo di ante
|
||||
local nAreaSplit = EgtGetParent( vAreas[1])
|
||||
@@ -572,50 +572,71 @@ local function CreateAreasFromSplits( nAreaId, vSplitCrvs)
|
||||
end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
local function CalcSplitCurves( nLayerId, b3OutlineLayer, b3Limit, nSplitType, nMeasureType, PositionList)
|
||||
|
||||
local vSplitCurves = {}
|
||||
local nProportion = 0
|
||||
if nMeasureType == WIN_MEASURE.PROPORTIONAL then
|
||||
for i = 1, #PositionList do
|
||||
nProportion = nProportion + PositionList[i]
|
||||
-- funzione che calcola le dimensioni assolute delle divisioni
|
||||
local function CalcSplitDimensions( vMeasureTypes, vValues, dDim)
|
||||
|
||||
local vDimensions = {}
|
||||
-- calcolo le dimensioni di tutti gli split assoluti e percentuali e calcolo i valori di riferimento per eventuali split proporzionali
|
||||
local nPropTot = 0
|
||||
local dPropDim = dDim
|
||||
local bProportional = false
|
||||
for i = 1, #vMeasureTypes do
|
||||
if vMeasureTypes[i] == WIN_MEASURE.ABSOLUTE then
|
||||
vDimensions[i] = vValues[i]
|
||||
dPropDim = dPropDim - vDimensions[i]
|
||||
elseif vMeasureTypes[i] == WIN_MEASURE.PERCENTAGE then
|
||||
vDimensions[i] = dDim * vValues[i] / 100
|
||||
dPropDim = dPropDim - vDimensions[i]
|
||||
elseif vMeasureTypes[i] == WIN_MEASURE.PROPORTIONAL then
|
||||
nPropTot = nPropTot + vValues[i]
|
||||
bProportional = true
|
||||
end
|
||||
end
|
||||
local dCurrPosition = 0
|
||||
for i = 1, #PositionList do
|
||||
-- calcolo la posizione corrente
|
||||
dCurrPosition = dCurrPosition + PositionList[i]
|
||||
local dCalcPosition
|
||||
local nSplitCrv
|
||||
|
||||
-- calcolo le dimensioni degli split proporzionali
|
||||
if bProportional then
|
||||
if dPropDim < GEO.EPS_SMALL then
|
||||
return {}
|
||||
end
|
||||
for i = 1, #vValues do
|
||||
if vMeasureTypes[i] == WIN_MEASURE.PROPORTIONAL then
|
||||
vDimensions[i] = dPropDim * vValues[i] / nPropTot
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return vDimensions
|
||||
end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
local function CalcSplitCurves( nLayerId, b3OutlineLayer, b3Limit, nSplitType, vMeasureTypes, vValues)
|
||||
|
||||
-- calcolo le dimensioni assolute di tutti gli split
|
||||
local vDimensions = CalcSplitDimensions( vMeasureTypes, vValues, EgtIf( nSplitType == WIN_SPLITORIENTATION.VERTICAL, b3OutlineLayer:getDimX(), b3OutlineLayer:getDimY()))
|
||||
|
||||
local vSplitCurves = {}
|
||||
local dPosition = 0
|
||||
for i = 1, #vDimensions do
|
||||
-- calcolo la posizione cumulata
|
||||
dPosition = dPosition + vDimensions[i]
|
||||
|
||||
local nSplitCrv
|
||||
if nSplitType == WIN_SPLITORIENTATION.VERTICAL then
|
||||
-- aree ordinate da sx a dx
|
||||
if nMeasureType == WIN_MEASURE.ABSOLUT then
|
||||
dCalcPosition = dCurrPosition
|
||||
elseif nMeasureType == WIN_MEASURE.PROPORTIONAL then
|
||||
dCalcPosition = b3OutlineLayer:getDimX() * dCurrPosition / nProportion
|
||||
elseif nMeasureType == WIN_MEASURE.PERCENTAGE then
|
||||
dCalcPosition = b3OutlineLayer:getDimX() * dCurrPosition
|
||||
end
|
||||
local dCurrPosition = dPosition
|
||||
-- creo la linea se rientra nella regione limite
|
||||
local dX = b3OutlineLayer:getMin():getX() + dCalcPosition
|
||||
local dX = b3OutlineLayer:getMin():getX() + dCurrPosition
|
||||
if dX > b3Limit:getMin():getX() + GEO.EPS_SMALL and dX < b3Limit:getMax():getX() - GEO.EPS_SMALL then
|
||||
nSplitCrv = EgtLinePVL( nLayerId, b3OutlineLayer:getMin() + X_AX() * dCalcPosition, Y_AX(), b3OutlineLayer:getDimY())
|
||||
nSplitCrv = EgtLinePVL( nLayerId, b3OutlineLayer:getMin() + X_AX() * dCurrPosition, Y_AX(), b3OutlineLayer:getDimY())
|
||||
end
|
||||
|
||||
elseif nSplitType == WIN_SPLITORIENTATION.HORIZONTAL then
|
||||
-- aree ordinate dall'alto al basso
|
||||
if nMeasureType == WIN_MEASURE.ABSOLUT then
|
||||
dCalcPosition = b3OutlineLayer:getDimY() - dCurrPosition
|
||||
elseif nMeasureType == WIN_MEASURE.PROPORTIONAL then
|
||||
dCalcPosition = b3OutlineLayer:getDimY() * ( 1 - dCurrPosition / nProportion)
|
||||
elseif nMeasureType == WIN_MEASURE.PERCENTAGE then
|
||||
dCalcPosition = b3OutlineLayer:getDimY() * ( 1 - dCurrPosition)
|
||||
end
|
||||
local dCurrPosition = b3OutlineLayer:getDimY() - dPosition
|
||||
-- creo la linea se rientra nella regione limite
|
||||
local dY = b3OutlineLayer:getMin():getY() + dCalcPosition
|
||||
local dY = b3OutlineLayer:getMin():getY() + dCurrPosition
|
||||
if dY > b3Limit:getMin():getY() + GEO.EPS_SMALL and dY < b3Limit:getMax():getY() - GEO.EPS_SMALL then
|
||||
nSplitCrv = EgtLinePVL( nLayerId, b3OutlineLayer:getMin() + Y_AX() * dCalcPosition, X_AX(), b3OutlineLayer:getDimX())
|
||||
nSplitCrv = EgtLinePVL( nLayerId, b3OutlineLayer:getMin() + Y_AX() * dCurrPosition, X_AX(), b3OutlineLayer:getDimX())
|
||||
end
|
||||
end
|
||||
|
||||
@@ -630,7 +651,7 @@ end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
-- funzione che crea tagli split multipli
|
||||
function WinCreate.AddSplits( nParentAreaId, nSplitType, nMeasureType, PositionList, bFrench, nAreaNbr)
|
||||
function WinCreate.AddSplits( nParentAreaId, nSplitType, vMeasureTypes, vValues, bFrench, nAreaNbr)
|
||||
|
||||
-- se area ha già sottoarea errore
|
||||
if EgtGetFirstNameInGroup( nParentAreaId, WIN_AREA .. '*') then
|
||||
@@ -644,11 +665,7 @@ function WinCreate.AddSplits( nParentAreaId, nSplitType, nMeasureType, PositionL
|
||||
if nAreaNbr then
|
||||
EgtSetInfo( nAreaId, WIN_AREA_NBR, nAreaNbr)
|
||||
end
|
||||
|
||||
-- copio il contorno dall'area parent e setto opportune corrispondenze sou/child
|
||||
local nOutlineLayerId = CopyParentOutline( nAreaId, nParentAreaId)
|
||||
local b3OutlineLayer = EgtGetBBox( nOutlineLayerId, GDB_BB.STANDARD)
|
||||
|
||||
|
||||
-- creo layer per split
|
||||
local nSplitLayerId = EgtGroup( nAreaId)
|
||||
EgtSetName( nSplitLayerId, WIN_BASESPLIT)
|
||||
@@ -658,7 +675,9 @@ function WinCreate.AddSplits( nParentAreaId, nSplitType, nMeasureType, PositionL
|
||||
end
|
||||
|
||||
-- creo le curve di split
|
||||
local vSplitCurves = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3OutlineLayer, nSplitType, nMeasureType, PositionList)
|
||||
local nParentOutlineLayerId = EgtGetFirstNameInGroup( nParentAreaId, WIN_AREAOUTLINE)
|
||||
local b3OutlineLayer = EgtGetBBox( nParentOutlineLayerId, GDB_BB.STANDARD)
|
||||
local vSplitCurves = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3OutlineLayer, nSplitType, vMeasureTypes, vValues)
|
||||
|
||||
-- se non ci sono curve valide cancello tutto ed esco
|
||||
if #vSplitCurves == 0 then
|
||||
@@ -666,6 +685,9 @@ function WinCreate.AddSplits( nParentAreaId, nSplitType, nMeasureType, PositionL
|
||||
return
|
||||
end
|
||||
|
||||
-- copio il contorno dall'area parent e setto opportune corrispondenze sou/child
|
||||
local nOutlineLayerId = CopyParentOutline( nAreaId, nParentAreaId)
|
||||
|
||||
-- creo le aree generate dagli split
|
||||
local vAreas = CreateAreasFromSplits( nAreaId, vSplitCurves)
|
||||
return vAreas
|
||||
@@ -673,7 +695,7 @@ end
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
-- funzione che crea tagli split grid
|
||||
function WinCreate.AddGridSplits( nParentAreaId, nMeasureType, PositionListVert, PositionListHoriz, bStartVertical, nAreaNbr)
|
||||
function WinCreate.AddGridSplits( nParentAreaId, vVertMeasureTypes, vVertValues, vHorizMeasureTypes, vHorizValues, bStartVertical, nAreaNbr)
|
||||
|
||||
local AreaResult = {}
|
||||
|
||||
@@ -699,21 +721,25 @@ function WinCreate.AddGridSplits( nParentAreaId, nMeasureType, PositionListVert,
|
||||
EgtSetName( nSplitLayerId, WIN_BASESPLIT)
|
||||
|
||||
-- stabilisco direzione principale e secondaria
|
||||
local PositionListMain, PositionListOther, nSplitOrientationMain, nSplitOrientationOther
|
||||
local vMainTypes, vOtherTypes, vMainValues, vOtherValues, nMainSplitOrientation, nOtherSplitOrientation
|
||||
if bStartVertical then
|
||||
PositionListMain = PositionListVert
|
||||
PositionListOther = PositionListHoriz
|
||||
nSplitOrientationMain = WIN_SPLITORIENTATION.VERTICAL
|
||||
nSplitOrientationOther = WIN_SPLITORIENTATION.HORIZONTAL
|
||||
vMainTypes = vVertMeasureTypes
|
||||
vMainValues = vVertValues
|
||||
nMainSplitOrientation = WIN_SPLITORIENTATION.VERTICAL
|
||||
vOtherTypes = vHorizMeasureTypes
|
||||
vOtherValues = vHorizValues
|
||||
nOtherSplitOrientation = WIN_SPLITORIENTATION.HORIZONTAL
|
||||
else
|
||||
PositionListMain = PositionListHoriz
|
||||
PositionListOther = PositionListVert
|
||||
nSplitOrientationMain = WIN_SPLITORIENTATION.HORIZONTAL
|
||||
nSplitOrientationOther = WIN_SPLITORIENTATION.VERTICAL
|
||||
vMainTypes = vHorizMeasureTypes
|
||||
vMainValues = vHorizValues
|
||||
nMainSplitOrientation = WIN_SPLITORIENTATION.HORIZONTAL
|
||||
vOtherTypes = vVertMeasureTypes
|
||||
vOtherValues = vVertValues
|
||||
nOtherSplitOrientation = WIN_SPLITORIENTATION.VERTICAL
|
||||
end
|
||||
|
||||
-- calcolo la suddivisione nella direzione principale
|
||||
local vMainSplit = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3OutlineLayer, nSplitOrientationMain, nMeasureType, PositionListMain)
|
||||
local vMainSplit = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3OutlineLayer, nMainSplitOrientation, vMainTypes, vMainValues)
|
||||
local vMainAreas = CreateAreasFromSplits( nAreaId, vMainSplit)
|
||||
|
||||
-- per ogni area della direzione principale calcolo la suddivisione nella direzione secondaria
|
||||
@@ -723,7 +749,7 @@ function WinCreate.AddGridSplits( nParentAreaId, nMeasureType, PositionListVert,
|
||||
local b3Limit = EgtGetBBox( nAreaOutlineLayerId, GDB_BB.STANDARD)
|
||||
|
||||
-- calcolo gli split nella direzione secondaria
|
||||
local vOtherSplit = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3Limit, nSplitOrientationOther, nMeasureType, PositionListOther)
|
||||
local vOtherSplit = CalcSplitCurves( nSplitLayerId, b3OutlineLayer, b3Limit, nOtherSplitOrientation, vOtherTypes, vOtherValues)
|
||||
if #vOtherSplit > 0 then
|
||||
local vNewAreas = CreateAreasFromSplits( vMainAreas[i], vOtherSplit)
|
||||
AreaResult = EgtJoinTables( AreaResult, vNewAreas)
|
||||
|
||||
@@ -103,7 +103,7 @@ end
|
||||
local function GetMeasureType( sMeasureType)
|
||||
|
||||
if sMeasureType == 'ABSOLUT' then
|
||||
return WIN_MEASURE.ABSOLUT
|
||||
return WIN_MEASURE.ABSOLUTE
|
||||
elseif sMeasureType == 'PROPORTIONAL' then
|
||||
return WIN_MEASURE.PROPORTIONAL
|
||||
elseif sMeasureType == 'PERCENTAGE' then
|
||||
@@ -214,7 +214,6 @@ local function ConvertTableToGeometry( AreaTable, nParentId)
|
||||
|
||||
-- recupero dati
|
||||
local tSashes = AreaTable[JWD_SASH_LIST]
|
||||
--local vJoints = GetJoints( AreaTable[JWD_JOINTS])
|
||||
local nBottomRailNbr = 0
|
||||
if AreaTable[JWD_BOTTOMRAIL] then
|
||||
nBottomRailNbr = AreaTable[JWD_BOTTOMRAIL_QTY]
|
||||
@@ -267,18 +266,14 @@ local function ConvertTableToGeometry( AreaTable, nParentId)
|
||||
for i = 1, #tSashes do
|
||||
vMeasureType[i] = GetMeasureType( tSashes[i][JWD_MEASURE_TYPE])
|
||||
vDimensions[i] = tSashes[i][JWD_DIMENSION]
|
||||
if vMeasureType[i] == WIN_MEASURE.PERCENTAGE then
|
||||
vDimensions[i] = vDimensions[i] / 100
|
||||
end
|
||||
vOpeningTypes[i] = GetOpeningType( tSashes[i][JWD_OPENING_TYPE])
|
||||
vSashNbrs[i] = tSashes[i][JWD_ID_SASH]
|
||||
vJoints[i] = GetJoints( tSashes[i][JWD_JOINTS])
|
||||
end
|
||||
table.remove( vDimensions)
|
||||
local vSashTypes, sHandleSide = GetSashTypes( tSashes, vOpeningTypes)
|
||||
|
||||
|
||||
-- aggiungo il gruppo di ante
|
||||
local vAreas = WinCreate.AddSashGroup( nParentId, vMeasureType[1], vDimensions, vJoints, vSashTypes, vOpeningTypes, nAreaNbr, vSashNbrs)
|
||||
local vAreas = WinCreate.AddSashGroup( nParentId, vMeasureType, vDimensions, vJoints, vSashTypes, vOpeningTypes, nAreaNbr, vSashNbrs)
|
||||
-- aggiungo le ante
|
||||
for i = 1, #vAreas do
|
||||
-- bottomrail
|
||||
@@ -305,30 +300,24 @@ local function ConvertTableToGeometry( AreaTable, nParentId)
|
||||
local vVertDimensions = {}
|
||||
local vVertMeasureType = {}
|
||||
local vSplitVertDimensions = AreaTable[JWD_SPLIT_VERT_POS]
|
||||
for i = 1, #vSplitVertDimensions - 1 do
|
||||
for i = 1, #vSplitVertDimensions do
|
||||
vVertMeasureType[i] = GetMeasureType( vSplitVertDimensions[i][JWD_MEASURE_TYPE])
|
||||
vVertDimensions[i] = vSplitVertDimensions[i][JWD_DIMENSION]
|
||||
if vVertMeasureType[i] == WIN_MEASURE.PERCENTAGE then
|
||||
vVertDimensions[i] = vVertDimensions[i] / 100
|
||||
end
|
||||
end
|
||||
local vHorizDimensions = {}
|
||||
local vHorizMeasureType = {}
|
||||
local vSplitHorizDimensions = AreaTable[JWD_SPLIT_HORIZ_POS]
|
||||
for i = 1, #vSplitHorizDimensions - 1 do
|
||||
for i = 1, #vSplitHorizDimensions do
|
||||
vHorizMeasureType[i] = GetMeasureType( vSplitHorizDimensions[i][JWD_MEASURE_TYPE])
|
||||
vHorizDimensions[i] = vSplitHorizDimensions[i][JWD_DIMENSION]
|
||||
if vHorizMeasureType[i] == WIN_MEASURE.PERCENTAGE then
|
||||
vHorizDimensions[i] = vHorizDimensions[i] / 100
|
||||
end
|
||||
end
|
||||
local vSplitAreas
|
||||
if AreaTable[JWD_SPLIT_TYPE] == 'GRID' then
|
||||
vSplitAreas = WinCreate.AddGridSplits( nParentId, vVertMeasureType[1], vVertDimensions, vHorizDimensions, AreaTable[JWD_SPLIT_START_VERT], nAreaNbr)
|
||||
vSplitAreas = WinCreate.AddGridSplits( nParentId, vVertMeasureType, vVertDimensions, vHorizMeasureType, vHorizDimensions, AreaTable[JWD_SPLIT_START_VERT], nAreaNbr)
|
||||
elseif AreaTable[JWD_SPLIT_TYPE] == 'VERTICAL' then
|
||||
vSplitAreas = WinCreate.AddSplits( nParentId, WIN_SPLITORIENTATION.VERTICAL, vVertMeasureType[1], vVertDimensions, false, nAreaNbr)
|
||||
vSplitAreas = WinCreate.AddSplits( nParentId, WIN_SPLITORIENTATION.VERTICAL, vVertMeasureType, vVertDimensions, false, nAreaNbr)
|
||||
else
|
||||
vSplitAreas = WinCreate.AddSplits( nParentId, WIN_SPLITORIENTATION.HORIZONTAL, vHorizMeasureType[1], vHorizDimensions, false, nAreaNbr)
|
||||
vSplitAreas = WinCreate.AddSplits( nParentId, WIN_SPLITORIENTATION.HORIZONTAL, vHorizMeasureType, vHorizDimensions, false, nAreaNbr)
|
||||
end
|
||||
for i = 1, #vSplitAreas do
|
||||
ConvertTableToGeometry( AreaTable[JWD_AREA_LIST][i], vSplitAreas[i])
|
||||
|
||||
Reference in New Issue
Block a user