Click or drag to resize

ReplayHistoryData Class

Provides history information to commands that will repeat history construction. Generally, a developer using this class will not construct a new instance, but receive one.
Inheritance Hierarchy
SystemObject
  Rhino.DocObjectsReplayHistoryData

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class ReplayHistoryData : IDisposable

The ReplayHistoryData type exposes the following members.

Properties
  NameDescription
Public propertyDocument
The document this record belongs to
Public propertyHistoryVersion
ReplayHistory overrides check the version number to ensure the information saved in the history record is compatible with the current implementation of ReplayHistory
Public propertyRecordId
Each history record has a unique id that Rhino assigns when it adds the history record to the history record table
Public propertyResults
Provides access to BOTH inputs and outputs of the replay history operation.

Use this property to then call an appropriate UpdateToX() method and make your custom history support work.

Top
Methods
  NameDescription
Public methodAppendHistoryResult
Create an empty history result and add it to the end of the Results array. Note that you should call Results again if you need them as the old Results array will be out of sync with this class.
Public methodDispose
Releases all resources used by the ReplayHistoryData
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRhinoObjRef
In ReplayHistory, use GetRhinoObjRef to convert the information in a history record into the ObjRef that has up to date RhinoObject pointers
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetBool
Public methodTryGetColor
Public methodTryGetDouble
Public methodTryGetDoubles
Public methodTryGetGuid
Public methodTryGetGuids
Public methodTryGetInt
Public methodTryGetPoint3d
Public methodTryGetPoint3dOnObject
Public methodTryGetString
Public methodTryGetTransform
Public methodTryGetVector3d
Public methodUpdateResultArray
Update the Results array with a different set of values. Null entries in the newResults will result in empty ReplayHistoryResult elements
Top
See Also