MM Developer's Guide
MM Interfaces | MM Methods
| MM Types and Misc API
Interface ID: IID_IMoa3dVectorValueUtils
Pointer type:
PIMoa3dVectorValueUtils
Inheritance:
IMoaUnknown
Header file: mivect3d.h
Note: syntax provided in C++ format.
- ValueToMoa3dVector(ConstPMoaMmValue pValue, Moa3dVector pVector)
pValue
MmValue
that contains the vector valuepVector
Moa3dVector
that will receive the result MoaError
Moa3dVector
data for a value with type kMoaMmValueType_3dVector
.
pVector is a pointer to memory for a Moa3dVector to
receive the result. Returns kMoaMmErr_VectorValueExpected if pValue is
not a vector-type value.
- ValueToMoa3dVectorPtr(ConstPMoaMmValue pValue, Moa3dVector ** ppVector)
pValue
MmValue
ppVector
MoaError
ValueToMoa3dVector
, except that it returns a ptr to the
Moa3dVector
this value represents, rather than a copy. Locks any
necessary handles. Caller is responsible for calling ValueReleaseVectorPtr
when they are done with it. Returns kMoaMmErr_VectorValueExpected if pValue is
not a vector-type value.
- ValueReleaseVectorPtr(ConstPMoaMmValue pValue, Moa3dVector ** ppVector)
pValue
ppVector
Moa3dVector
MoaError
ValueToMoa3dVectorPtr
.
Should be preceeded by a call to ValueToMoa3dVectorPtr
- Moa3dVectorToValue(Moa3dVector pVector, PMoaMmValue pValue)
pVector
pValue
MoaError
Moa3dVector
into a Lingo value, the caller
must ValueRelease
when done with it
- ValueToMoa3dMatrix(ConstPMoaMmValue pValue, Moa3dMatrix pMatrix)
pValue
MmValue
that contains the matrix valuepMatrix
Moa3dMatrix
that will receive the result MoaError
Moa3dMatrix
data for a value. pMatrix
is a pointer to memory for a Moa3dMatrix to receive the result. Returns
kMoaMmErr_MatrixValueExpected if pValue is not of
type kMoaMmValueType_3dMatrix
.
- Moa3dMatrixToValue(Moa3dMatrix pMatrix, PMoaMmValue pValue)
pMatrix
Moa3dMatrix
that contains the matrix value pValue
MmValue
that will receive the value for the matrix
data MoaError
Moa3dMatrix
data to a value. pMatrix
is a pointer to memory for a Moa3dMatrix that contains the matrix
values. This interface is only supported with Director 8.5.1 and later
.
Note that some matrix data is not valid or useful as a 3D transform matrix.
- ValueIsAVector(ConstPMoaMmValue pValue)
pValue
MoaLong
moa3dVector
, 0 if not
- ValueIsATransform(ConstPMoaMmValue pValue)
pValue
MoaLong
moa3dMatrix
, 0 if not