GH_GenericObjectAction
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.
Inheritance Hierarchy
System.Object
Grasshopper.Kernel.Undo.GH_UndoAction
Grasshopper.Kernel.Undo.GH_ArchivedUndoAction
Grasshopper.Kernel.Undo.Actions.GH_GenericObjectAction
Namespace: Grasshopper.Kernel.Undo.Actions
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public class GH_GenericObjectAction : GH_ArchivedUndoAction
The GH_GenericObjectAction type exposes the following members.
Constructors
Name
Description
Public Method
GH_GenericObjectAction
Initializes a new instance of the GH_GenericObjectAction class
Properties
Name
Description
Public Property
ExpiresDisplay
Override this property if you want the Rhino viewport display to refresh upon undo completion.
(Inherited from GH_UndoAction.)
Public Property
ExpiresSolution
(Overrides
GH_UndoAction.ExpiresSolution
.)Public Property
State
(Inherited from GH_UndoAction.)
Methods
Name
Description
Protected method
Deserialize
Deserializes the obj from the local archive.
(Inherited from GH_ArchivedUndoAction.)
Protected method
Internal_Redo
(Overrides
GH_UndoAction.Internal_Redo(GH_Document)
.)Protected method
Internal_Undo
(Overrides
GH_UndoAction.Internal_Undo(GH_Document)
.)Public Method
Read
(Inherited from GH_ArchivedUndoAction.)
Public Method
Redo
(Inherited from GH_UndoAction.)
Protected method
Serialize
Serializes the obj into the local archive.
(Inherited from GH_ArchivedUndoAction.)
Protected method
SerializeToByteArray
Serializes the obj into the local archive.
(Inherited from GH_ArchivedUndoAction.)
Public Method
Undo
(Inherited from GH_UndoAction.)
Public Method
Write
(Inherited from GH_ArchivedUndoAction.)
Fields
Name
Description
Protected field
m_dataInternal data storage for serialized archives.
(Inherited from GH_ArchivedUndoAction.)