haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: CustomDrawComponent/CustomDrawDataLayerLaneLegEdge
Response OnDetermineRegion (
  Edge object
) id:Response_CustomDrawComponent_CustomDrawDataLayerLaneLegEdge_OnDetermineRegion
{
  #keys: '[110880.4.1287161742]'
  Body:
  [*
    // Determine region for SPUE
    minx := minvalue ( object.FromX(), object.ToX() );
    miny := minvalue ( object.FromY(), object.ToY() );
    maxx := maxvalue ( object.FromX(), object.ToX() );
    maxy := maxvalue ( object.FromY(), object.ToY() );
    height := maxvalue( maxx - minx, 1 );
    width := maxvalue( maxy - miny, 1 );
    
    this.AddRegion( minx, miny, height, width );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDetermineRegion'
}