PurplePen.DangerousCourseObj.CreateSymDef C# (CSharp) Method

CreateSymDef() protected method

protected CreateSymDef ( Map map, SymColor symColor ) : SymDef
map Map
symColor SymColor
return SymDef
        protected override SymDef CreateSymDef(Map map, SymColor symColor)
        {
            AreaSymDef symdef = new AreaSymDef("Dangerous area", "710", null, null);
            AreaSymDef.HatchInfo hatchInfo = new AreaSymDef.HatchInfo();
            hatchInfo.hatchColor = symColor;
            hatchInfo.hatchWidth = 0.25F * scaleRatio;
            hatchInfo.hatchSpacing = 0.6F * scaleRatio;
            hatchInfo.hatchAngle = 45;
            symdef.AddHatching(hatchInfo);
            hatchInfo.hatchAngle = 135;
            symdef.AddHatching(hatchInfo);
            symdef.ToolboxImage = MapUtil.CreateToolboxIcon(Properties.Resources.OOB_OcadToolbox);
            map.AddSymdef(symdef);
            return symdef;
        }