public override void Deserialize(AttributeData data) { //Color info _hasNoColor = data.ReadAttributeInteger("HasNoColor") != 0; HasColorSet = data.ReadAttributeInteger("HasColor") != 0; var red = data.ReadAttributeInteger("Red"); var greem = data.ReadAttributeInteger("Green"); var blue = data.ReadAttributeInteger("Blue"); _color = Color.FromArgb(255, red, greem, blue); //Transparency info HasTransparency = data.ReadAttributeInteger("HasTransparency") != 0; _transparency = data.ReadAttributeDouble("Transparency"); //Display info _displayMode = (AISDisplayMode)data.ReadAttributeInteger("DisplayMode"); _visibility = (ObjectVisibility)data.ReadAttributeInteger("Visibility"); _selectionEnabled = data.ReadAttributeInteger("EnableSelection") == 1 ? true : false; OnModified(); }
public DrawingAttributesInterpreter() { _displayMode = AISDisplayMode.AIS_Shaded; }