L_VecGetObjectViewContext

Summary

Retrieves the minimum and maximum points of an objects view context space.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetObjectViewContext(pVector, pObject, pMin, pMax)

Parameters

pVECTORHANDLE pVector

Pointer to vector handle.

const pVECTOROBJECT pObject

Pointer to a VECTOROBJECT structure that contains the vector object for which to get the view context.

pVECTORPOINT pMin

Pointer to a VECTORPOINT structure to be updated with the minimum point of the view context space.

pVECTORPOINT pMax

Pointer to a VECTORPOINT structure to be updated with the maximum point of the view context space.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function fails if pObject does not have a preset view context.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT VecGetObjectViewContextExample( 
   pVECTORHANDLE pVector, 
   pVECTOROBJECT pObject, 
   pVECTORPOINT pMin, 
   pVECTORPOINT pMax) 
{ 
   L_INT          nRet; 
   VECTORPOINT    Min; 
   VECTORPOINT    Max; 
 
   nRet = L_VecGetObjectViewContext ( pVector, pObject, &Min, &Max ); 
   if( SUCCESS != nRet ) 
   { 
      nRet = L_VecSetObjectViewContext ( pVector, pObject, pMin, pMax ); 
      if (nRet != SUCCESS) 
         return nRet; 
 
      *pMin = Min; 
      *pMax = Max; 
   } 
 
   if( SUCCESS != nRet ) 
      L_VecRemoveObjectViewContext ( pVector, pObject ); 
 
   return nRet; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.