The module Replay Spatial Graph Edit Log applies edit operations that have been recorded with Filament-Editor startLogging <dir> to a Spatial Graph.
Edit operations are stored as a sequence of JSON files together with the initial Spatial Graph, when Filament-Editor startLogging was called, and the final Spatial Graph, when Filament-Editor stopLogging was called. Intermediate Spatial Graphs are stored for some edit operations and after a certain number of changes. The filenames start with an ISO datetime, so that they can be easily ordered.
Each edit operation is stored as a JSON object with the following format:
{ // Current file format version. "version": 1, // ISO datetime when the operation was recorded. "timestamp": <String>, // The operation type (for example "DeleteOperation"). "operation": <String>, "executionType": "EXEC" | "REDO" | "UNDO", // See McBitfield::serialize() for encoding details. Briefly, the number of // bits is stored as an int followed by the individual bits stored as // 4-byte words; all in little-endian. The buffer is then compressed with // qCompress() and encoded as Base64. "highlightedSelection": <Base64-encoded string>, "visibleSelection": <Base64-encoded string>, // Additional, operation-dependent information. "customData": <object> }
Data [required]
The original spatial graph to which the edit operations shall be applied.Step control [optional]
Connection to module that controls time.
Log directory
Directory from which to load the log.Step control
Controls which operations to apply. Edit operations can only be applied in forward direction starting from 0.