Records a single object change. Object changes are undone/redone by (de)serializing the objects. Object changes also keep track of all wires feeding into and coming out of the object.

Constructors

GH_GenericObjectAction

#
public GH_GenericObjectAction()

Fields

m_data

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

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

#
public override bool ExpiresSolution { get; }

State

public GH_UndoState State { get; }
inherited fromGH_UndoAction
State

Methods

Deserialize

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

Internal_Redo

#
protected override void Internal_Redo()

Internal_Undo

#
protected override void Internal_Undo()

Read

public override bool Read(
reader
)
inherited fromGH_ArchivedUndoAction

Redo

public void Redo()
inherited fromGH_UndoAction
Redo

Serialize

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

SerializeToByteArray

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

Undo

public void Undo()
inherited fromGH_UndoAction
Undo

Write

public override bool Write(
writer
)
inherited fromGH_ArchivedUndoAction