LContainer::GetScalar

#include "Ltwrappr.h"

L_INT LContainer::GetScalar (pvptScalarNum, pvptScalarDen)

pVECTORPOINT pvptScalarNum;

pointer to a structure

pVECTORPOINT pvptScalarDen;

pointer to a structure

Gets the current container coordinates scaling values.

Parameter

Description

pvptScalarNum

Pointer to VECTORPOINT structure to be updated with the numerator of the scaling factors for the x, y and z directions.

pvptScalarDen

Pointer to VECTORPOINT structure to be updated with the denominator of the scaling factors for the x, y and z directions.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

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::SetScalar.

Topics:

Container Scaling Values

Example

L_INT LContainer_GetScalarExample( LContainer &lCont ) 
{ 
   L_INT nRet; 
   nRet = lCont.IsValid (); 
   if (SUCCESS == nRet ) /* check the validity of container handle */ 
   { 
      VECTORPOINT vptScalarNum, vptScalarDen ; 
      /* get the current scaling values */ 
      nRet = lCont.GetScalar ( &vptScalarNum, &vptScalarDen ) ; 
      if(nRet != SUCCESS) 
         return nRet; 
      /* Set the horizontal scaling factor */ 
      vptScalarNum.x ++ ; 
      vptScalarDen.x =  1 ; 
      /* Set the vertical scaling factor */ 
      vptScalarNum.y ++ ; 
      vptScalarDen.y = 1 ; 
      /* Set the z scaling factor to 1:1 factor */ 
      vptScalarNum.z = 1 ; 
      vptScalarDen.z = 1 ; 
      nRet = lCont.SetScalar ( &vptScalarNum, &vptScalarDen ) ; 
      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