GH_ArchivedUndoAction

GH_UndoActionReferences
public abstract class GH_ArchivedUndoAction : GH_UndoAction
Base class implementation for undo actions that require (de)serialization of data.

Fields

m_data

#
Internal data storage for serialized archives.
protected byte[] m_data

Properties

ExpiresDisplay

Override this property if you want the Rhino viewport display to refresh upon undo completion.
public virtual bool ExpiresDisplay { get; }
inherited fromGH_UndoAction
ExpiresDisplay

ExpiresSolution

Override this property if you want the Grasshopper solution to refresh upon undo completion.
public virtual bool ExpiresSolution { get; }
inherited fromGH_UndoAction
ExpiresSolution

State

public GH_UndoState State { get; }
inherited fromGH_UndoAction
State

Methods

Deserialize

#
Deserializes the obj from the local archive.
protected void Deserialize()
ArgumentNullExceptionThrown when obj is a null reference.
NullReferenceExceptionThrown when the internal archive data is null.
IOExceptionThrown when the deserialization fails.

Internal_Redo

protected abstract void Internal_Redo()
inherited fromGH_UndoAction

Internal_Undo

protected abstract void Internal_Undo()
inherited fromGH_UndoAction

Read

#
public override bool Read(
reader
)

Redo

public void Redo()
inherited fromGH_UndoAction
Redo

Serialize

#
Serializes the obj into the local archive.
protected void Serialize(
obj
Object to serialize
)

SerializeToByteArray

#
Serializes the obj into the local archive.
protected byte[] SerializeToByteArray(
obj
Object to serialize
)

Undo

public void Undo()
inherited fromGH_UndoAction
Undo

Write

#
public override bool Write(
writer
)