IMatrixData Interface
Get
Set
GetTriple
SetTriple
IMatrixData interface gives access to a table of numbers of double floating
type. Common use is an access to an array of points, coordinates of which are
stored as rows of the table. Size of the table is supposed to be known from the
context of the specific use of the interface.
See also: LowDim Sample.
HRESULT Get( int row, int column, double* val )
Parameters
row
- [in] 0-based index of the row
column - [in] 0-based index of
the column.
val - [out] the returned value
Return Values:
- S_OK in case of success.
- DISP_E_BADINDEX if indices are out of range
Remarks:
The method returns the number stored in the i-th row and
j-column via the val parameter
HRESULT Set( int row, int column, double val )
Parameters
row
- [in] 0-based index of the row
column - [in] 0-based index of
the column.
val - [in] the value to be stored
Return Values:
- S_OK in case of success.
- DISP_E_BADINDEX if indices are out of range
Remarks:
The method modifies the number stored in the i-th row and
j-column of the matrix
HRESULT GetTriple( int row, double* v0, double* v1, double* v2 )
Parameters
row- [in] 0-based index of the row
v0,v1,v2 - [out] The returned elements
Remarks:
Returns the first three elements of the row. If the matrix has fewer than 3
columns v1 (and v2) parameters are ignored
HRESULT SetTriple( int row, double v0, double v1, double v2 )
Parameters
row
- [in] - 0-based index of the row
v0,v1,v2 - [in] New values
Remarks:
Modifies the first three elements of the row. If the matrix
has fewer than 3 columns v1 (and v2) parameters are ignored
|