Quintiq file version 2.0
#parent: PanelSCV/CustomDrawDataLayerSCVEdge
Response OnDetermineRegion (
  shadow[SCVEdge] object
) id:Response_PanelSCV_CustomDrawDataLayerSCVEdge_OnDetermineRegion
{
  #keys: '[134266.2.4936505]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDetermineRegion'
  QuillAction
  {
    Body:
    [*
      // Edge region
      padding := 6;
      region := construct( Polygon );
      
      // Adding points in a polygon must be in a clockwise manner
      p := Shape::Polygon();
      
      p.AddPoint( object.FromX(), object.FromY() + padding );
      p.AddPoint( object.ToX(), object.ToY() + padding );
      p.AddPoint( object.ToX(), object.ToY() - padding );
      p.AddPoint( object.FromX(), object.FromY() - padding );
      
      layer.AddRegion( &p, 0 );
    *]
    GroupServerCalls: false
  }
}
