Exemple #1
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("selectThroughObjects", this.selectThroughObjects);
     writer.SetBoolean("orderSelection", this.orderSelection);
     writer.SetBoolean("selectFaces", this.selectFaces);
     writer.SetDrawingColor("DisplayColour", this.display_material.Diffuse);
     return(base.Write(writer));
 }
 bool GH_ISerializable.Write(GH_IWriter writer)
 {
     writer.SetString("Text", Text);
     writer.SetString("Font", Font);
     writer.SetDrawingColor("Colour", Colour);
     writer.SetPoint3D("Location", new GH_Point3D(Location.X, Location.Y, Location.Z));
     writer.SetDouble("Horizontal", HorizontalAlignment);
     writer.SetDouble("Vertical", VerticalAlignment);
     writer.SetDouble("Rotation", Rotation);
     return(true);
 }
Exemple #3
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("Vertical", hJustify);
            writer.SetInt32("Horizontal", vJustify);

            writer.SetBoolean("Bold", IsBold);
            writer.SetBoolean("Italic", IsItalic);
            writer.SetBoolean("Under", IsUnder);

            writer.SetDrawingColor("Color", DrawColor);

            writer.SetString("FontName", fName);
            writer.SetDouble("FontSize", fSize);

            return(base.Write(writer));
        }
Exemple #4
0
 public bool Write(GH_IWriter writer)
 {
     writer.SetString("tName", Name);
     writer.SetString("tDescription", Description);
     writer.SetString("tOwner", Owner);
     writer.SetString("tLink", Link);
     writer.SetBoolean("tHasDate", HasDate);
     writer.SetDrawingColor("tColor", Color);
     if (HasDate)
     {
         writer.SetDate("tDate", Date);
     }
     writer.SetInt32("tStatus", (int)Status);
     writer.SetEnumerable("tTags", _tags, WriteString);
     return(true);
 }
Exemple #5
0
 public static void WriteDrawingColor(GH_IWriter writer, string itemName, Color data)
 {
     writer.SetDrawingColor(itemName, data);
 }