LContainer::GetOffset

#include "Ltwrappr.h"

L_INT LContainer::GetOffset (pnXOffset, pnYOffset, pnZOffset)

L_INT *pnXOffset;

pointer to get the x-coordinates offset

L_INT *pnYOffset;

pointer to get the y-coordinates offset

L_INT *pnZOffset;

pointer to get the z-coordinates offset

Gets the current container coordinates offset values.

Parameter

Description

pnXOffset

Pointer to the value that will receive the offset of the external representation in the x direction.

pnYOffset

Pointer to the value that will receive the offset of the external representation in the y direction.

pnZOffset

Pointer to the value that will receive the offset of the external representation in the z direction.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The offsets that this function will set will be without any transformations.

Required DLLs and Libraries

LTCON

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LContainer::SetOffset.

Topics:

Container Offsets

Example

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 ; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Container and Automation C++ Class Library Help