2.2.4.27 MatrixLayer
Contents
Name
MatrixLayer
Remark
The MatrixLayer class provides methods and properties common to matrix layers in Origin matrix pages. An Origin matrix contains a number of matrix objects thus the MatrixLayer class contains a collection of all the matrix objects in the matrix layer.
An Origin C MatrixLayer object is a wrapper object that is a reference to an internal Origin matrix layer object. Wrapper objects do not actually exist in Origin and merely refer to the internal Origin object. Consequently, multiple Origin C wrapper objects can refer to the same internal Origin object.
The MatrixLayer class is derived from the Datasheet, Layer, and OriginObject classes from which it inherits methods and properties.
Hierarchy
-
-
-
- MatrixLayer
-
-
Examples
EX1
void MatrixLayer_MatrixLayer_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if(ml) { Matrix mm(ml);// Get the active Matrix from a MatrixLayer printf("The active matrix is %d x %d\n",mm.GetNumRows(), mm.GetNumCols()); } }
Header to Include
origin.h
Reference
Members
| Name | Brief | Example |
|---|---|---|
| Copies part of an image from another matrix layer | ||
| Copy all matrix objects data inside roi | ||
| Create a copy of the matrix window matlayerSource and attaches it to the object. | ||
| Delete a number of MatrixObjects from the matrix layer. | ||
| Export all matrix objects to a multi frame image. | ||
| Get the index of the layer's active MatrixObject. | ||
| Get the matrix cell width | ||
| Replaced by GetInternalDataType. Kept for backwards compatibility. | ||
| Get internal data type of the active matrix object. | ||
| Check if MatrixLayer has data that represent the image | ||
| Check if MatrixLayer has associated image | ||
| Insert a number of new matrix objects into a matrix layer. | ||
| Constructor for the MatrixLayer class | ||
| Opens a new matrix from the supplied OGM file and attaches it to the object. | ||
| Put the data from an SPC blob into the matrix | ||
| Set the layer's active MatrixObject by index. | ||
| Set the matrix cell width | ||
| Sets the display format of the data in the matrix | ||
| Replaced by SetInternalDataType. Kept for backwards compatibility. | ||
| Set the internal data type for all the matrix objects in the layer. | ||
| Set the number of columns in a MatixLayer. | ||
| Set the number of MatrixObjects in a matrix layer. | ||
| set matrix view mode to image or data mode | ||
| Find matrix indecies from X Y |
Property
| Name | Brief | Example |
|---|---|---|
| A Collection of all matrix objects in a matrix layer |