IMatrixWritableProxy

Assembly: Matrix;

Description

The IMatrixWritableProxy interface is used to work with proxy object of matrix.

Inheritance Hierarchy

          IMatrixWritableProxy

Comments

To get object of this type, cast the matrix obtained in IMatrixEx.CreateWritableProxyO to IMatrixWritableProxy. Proxy object enables working separately with initial and changed matrix data. On creating proxy object, data of initial matrix will be copied to the BaseMatrix matrix. The ChangeMatrix matrix will be also created, but it will be empty.

On changing data in initial matrix, all changes will be fixed in the ChangeMatrix matrix. Initial data will be still available in the BaseMatrix matrix. On calling the ApplyChanges method, changes from the ChangeMatrix matrix will be applied to the BaseMatrix matrix. When calling the RevertChanges method the ChangeMatrix matrix is cleared, and the source matrix is restored from the BaseMatrix matrix.

After calling any from the methods (ApplyChanges or RevertChanges), the ChangeMatrix matrix will be cleared. If the iterator was created for the ChangeMatrix matrix, then it becomes incorrect. To continue work, the iterator must be recreated.

Properties

  Property name Brief description
BaseMatrix The BaseMatix property returns source data matrix of proxy object.
ChangeMatrix The ChangeMatrix property returns changed data matrix of proxy object.

Methods

  Method name Brief description
ApplyChanges The ApplyChanges method applies all changes to proxy object of data matrix.
RevertChanges The RevertChanges method cancels all changes of proxy object of data matrix.

See also:

Matrix Assembly Interfaces