Gets the current container coordinates offset values.
#include "Ltwrappr.h"
L_INT LContainer::GetOffset (pnXOffset, pnYOffset, pnZOffset)
Pointer to the value that will receive the offset of the external representation in the x direction.
Pointer to the value that will receive the offset of the external representation in the y direction.
Pointer to the value that will receive the offset of the external representation in the z direction.
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
The offsets that this function will set will be without any transformations.
L_INT LContainer_GetOffsetExample( LContainer &lCont ){L_INT nRet;nRet = lCont.IsValid ( );if ( nRet == SUCCESS ) /* check the validity of container handle */{L_INT x, y, z ;/* get the current offset values for the container */nRet = lCont.GetOffset ( &x, &y, &z ) ;if(nRet != SUCCESS)return nRet;x ++ ;y ++ ;/* set the current offset values for the container */nRet = lCont.SetOffset ( x, y, z ) ;if(nRet != SUCCESS)return nRet;}else{return nRet ;}return SUCCESS ;}