public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("outputDynamicFrames", outputDynamicFrames);
     writer.SetBoolean("visualizeMouseManipulation", visualizeMouseManipulation);
     writer.SetBoolean("asynchronous", asynchronous);
     return(base.Write(writer));
 }
Exemple #2
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("PolyE1", PolygonA);
     writer.SetBoolean("PolyE2", PolygonB);
     writer.SetBoolean("PolyE3", PolygonC);
     return(base.Write(writer));
 }
Exemple #3
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetBoolean("Horizontal", IsHorizontal);
            writer.SetBoolean("Extents", IsFill);

            return(base.Write(writer));
        }
Exemple #4
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("_VectorX", _VectorX);
     writer.SetBoolean("_VectorY", _VectorY);
     writer.SetBoolean("_VectorZ", _VectorZ);
     return(base.Write(writer));
 }
 //      Serialization
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("isInstruction", isInstruction);
     writer.SetBoolean("colorize", colorize);
     writer.SetBoolean("angleApproach", angleApproach);
     return(base.Write(writer));
 }
Exemple #6
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("IntList", IntList);
     writer.SetBoolean("BoolList", BoolList);
     writer.SetBoolean("IntervalList", IntervalList);
     return(base.Write(writer));
 }
Exemple #7
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("PlyFromWidth1", Flag);
     writer.SetBoolean("PlyFromWidth2", Flag2);
     writer.SetBoolean("PlyFromWidth3", Flag3);
     return(base.Write(writer));
 }
Exemple #8
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("Abs1", Abs1);
     writer.SetBoolean("Abs2", Abs2);
     writer.SetBoolean("Abs3", Abs3);
     return(base.Write(writer));
 }
 /// <summary>
 /// Add our own fields. Needed for (de)serialization of the variable input parameters.
 /// </summary>
 /// <param name="writer"> Provides access to a subset of GH_Chunk methods used for writing archives. </param>
 /// <returns> True on success, false on failure. </returns>
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("Override Robot Tool", OverrideRobotTool);
     writer.SetBoolean("Override Work Object", OverrideWorkObject);
     writer.SetBoolean("Set Digital Output", SetDigitalOutput);
     return(base.Write(writer));
 }
 /// <summary>
 /// Add our own fields. Needed for (de)serialization of the variable input parameters.
 /// </summary>
 /// <param name="writer"> Provides access to a subset of GH_Chunk methods used for writing archives. </param>
 /// <returns> True on success, false on failure. </returns>
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("Set Mass", SetMass);
     writer.SetBoolean("Set Center of Gravity", SetCenterOfGravity);
     writer.SetBoolean("Set Moment of Inertia", SetMomentOfInertia);
     return(base.Write(writer));
 }
 //Write
 public override bool Write(GH_IWriter writer)
 {
     writer.SetDouble("scale", this.Scale);
     writer.SetBoolean("DisableClickable", this.DisableClickable);
     writer.SetBoolean("SaveImgWithCoords", this.ifSaveThis);
     return(base.Write(writer));
 }
Exemple #12
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("StrictChoice", Strict);
     writer.SetBoolean("SomeChoice", Some);
     writer.SetBoolean("AllChoice", All);
     return(base.Write(writer));
 }
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("FPSIndex", FPSindex);

            writer.SetInt32("SizeWidth", PictWidth);
            writer.SetInt32("SizeHeight", PictHeight);
            writer.SetInt32("SizeIndex", Sizeindex);

            writer.SetInt32("TypeIndex", Typeindex);

            writer.SetBoolean("Duration", Duration);
            writer.SetBoolean("Remap", Remap);
            writer.SetDouble("TimeInFrame", TimeInFrame);

            writer.SetDouble("DelayLog", DelayLog);
            writer.SetBoolean("Save", Save);

            writer.SetDouble("SliderMul", SliderMultiple);
            writer.SetDouble("ViewportReduce", ViewportReduce);
            writer.SetBoolean("ShowLabel", ShowLabel);
            writer.SetDouble("LabelSize", LabelSize);
            writer.SetBoolean("ShowFrame", ShowFrame);
            writer.SetBoolean("ShowTime", ShowTime);
            writer.SetBoolean("ShowPercent", ShowPercent);
            writer.SetBoolean("ShowRemain", ShowRemain);
            writer.SetBoolean("ShowGraph", ShowGraph);
            writer.SetBoolean("ShowGraphEvent", ShowGraphOnEvent);
            return(base.Write(writer));
        }
Exemple #14
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("Display Faces", this.faces);
     writer.SetBoolean("Display Edges", this.edgesE);
     writer.SetBoolean("Display Edge Faces", this.edgesF);
     return(base.Write(writer));
 }
Exemple #15
0
 public override bool Write(GH_IWriter writer)
 {
     try
     {
         if (Client != null)
         {
             using (var ms = new MemoryStream())
             {
                 var formatter = new BinaryFormatter();
                 formatter.Serialize(ms, Client);
                 var arr  = ms.ToArray();
                 var arrr = arr;
                 writer.SetByteArray("speckleclient", ms.ToArray());
                 writer.SetBoolean("remotecontroller", EnableRemoteControl);
                 writer.SetBoolean("manualmode", ManualMode);
                 writer.SetBoolean("DebouncingDisabled", DebouncingDisabled);
             }
         }
     }
     catch (Exception err)
     {
         throw err;
     }
     return(base.Write(writer));
 }
Exemple #16
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));
 }
Exemple #17
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetBoolean("Grid", HasGrid);
            writer.SetBoolean("Axis", HasAxis);
            writer.SetBoolean("Gizmo", HasGizmo);

            return(base.Write(writer));
        }
Exemple #18
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("FontMode", IconMode);
            writer.SetBoolean("Horizontal", IsHorizontal);
            writer.SetBoolean("Light", IsLight);

            return(base.Write(writer));
        }
Exemple #19
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetBoolean("Horizontal", boolDirection);
            writer.SetBoolean("Label", boolLabel);
            writer.SetBoolean("Tick", boolTick);

            return(base.Write(writer));
        }
Exemple #20
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("alternateGraphics", AlternateGraphics);
     writer.SetBoolean("Sortable", Sortable);
     writer.SetBoolean("ResizeHorizontal", ResizeHorizontal);
     writer.SetBoolean("AddlRows", AddlRows);
     writer.SetInt32("GridType", GridType);
     return(base.Write(writer));
 }
Exemple #21
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("HV2D", this.HV2D);
     writer.SetBoolean("HV3D", this.HV3D);
     writer.SetBoolean("FaceHV2D", this.FaceHV2D);
     writer.SetBoolean("FaceHV3D", this.FaceHV3D);
     writer.SetBoolean("Diag", this.Diag);
     return(base.Write(writer));
 }
Exemple #22
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetBoolean("Dup", RemoveDupTris);
            writer.SetBoolean("Fin", RemoveFinTris);
            writer.SetBoolean("Occ", RemoveOcclTris);
            writer.SetBoolean("Un", RemoveUnusedVerts);

            return(base.Write(writer));
        }
Exemple #23
0
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

        /// <summary>
        /// Adds to the default serialization method to save the current child status so it persists on copy/paste and save/reopen.
        /// </summary>
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("mIndex", mIndex);
            writer.SetInt32("iIndex", iIndex);
            writer.SetInt32("fIndex", fIndex);
            writer.SetBoolean("PerturbA", pA);
            writer.SetBoolean("PerturbB", pB);

            return(base.Write(writer));
        }
Exemple #24
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);

            return(base.Write(writer));
        }
Exemple #25
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("FilterMode", modeStatus);
            writer.SetBoolean("Title", modeTitle);
            writer.SetBoolean("Ctrl", modeCtrl);
            writer.SetBoolean("ScrollH", modeScrollH);
            writer.SetBoolean("ScrollV", modeScrollV);
            writer.SetBoolean("Transparent", modeTrans);

            return(base.Write(writer));
        }
Exemple #26
0
        public override bool Write(GH_IWriter writer)
        {
            writer.SetInt32("Orientation", OrientMode);
            writer.SetBoolean("Horizontal", IsHorizontal);
            writer.SetBoolean("Extents", IsExtents);
            writer.SetBoolean("Ticks", HasTicks);
            writer.SetBoolean("Light", IsLight);
            writer.SetBoolean("Flipped", IsFlipped);

            return(base.Write(writer));
        }
Exemple #27
0
 public override bool WriteFull(GH_IWriter writer)
 {
     writer.CreateChunk("key");
     writer.CreateChunk("proj");
     writer.CreateChunk("filterbyname");
     writer.CreateChunk("filteroldone");
     writer.SetString("key", myControlPanel.key);
     writer.SetString("proj", myControlPanel.project);
     writer.SetBoolean("filterbyname", myControlPanel._filterbyname);
     writer.SetBoolean("filteroldone", myControlPanel._filteroldone);
     return(base.Write(writer));
 }
Exemple #28
0
        public override bool Write(GH_IWriter writer)
        {
            bool rc = base.Write(writer);

            if (rc)
            {
                writer.SetVersion(TagVersion, _version.major, _version.minor, _version.revision);
                writer.SetString(TagPath, RemoteDefinitionLocation);
                writer.SetBoolean(TagCacheResultsOnServer, _cacheResultsOnServer);
                writer.SetBoolean(TagCacheResultsInMemory, _cacheResultsInMemory);
            }
            return(rc);
        }
        public override bool Write(GH_IWriter writer)
        {
            if (SelectedConstructor != null)
            {
                writer.SetString("SelectedConstructorName", CSOUtils.MethodFullName(SelectedConstructor));
                writer.SetString("SelectedTypeName", SelectedConstructor.DeclaringType.FullName);
            }

            writer.SetBoolean("UseSchemaTag", UseSchemaTag);
            writer.SetBoolean("UserSetSchemaTag", UserSetSchemaTag);
            writer.SetString("seed", Seed);
            return(base.Write(writer));
        }
        public override bool Write(GH_IWriter writer)
        {
            writer.SetBoolean("UseDefaultCache", UseDefaultCache);
            writer.SetBoolean("AutoSend", AutoSend);
            writer.SetString("CurrentComponentState", CurrentComponentState);
            writer.SetString("BaseId", BaseId);
            writer.SetString("KitName", Kit.Name);

            var owSer = string.Join("\n", OutputWrappers.Select(ow => $"{ow.ServerUrl}\t{ow.StreamId}\t{ow.CommitId}"));

            writer.SetString("OutputWrappers", owSer);

            return(base.Write(writer));
        }
 //write and read allow the settings to persist through document save and component copy/paste.
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("createNewSpreadsheets", createNewSpreadsheets);
     return base.Write(writer);
 }
Exemple #32
0
 public override bool Write(GH_IWriter writer)
 {
     writer.SetBoolean("IsCartesian", isCartesian);
     return base.Write(writer);
 }