LVectorObject::GetViewContext

#include "ltwrappr.h"

L_INT LVectorObject::GetViewContext(pMin, pMax)

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

Parameters

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 the object does not have a preset view context.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LVectorObject__ChangeViewContextExample( LVectorObject *pVecObj, pVECTORPOINT pMin, pVECTORPOINT pMax )  
{ 
   L_INT  nRet;  
   VECTORPOINT  Min;  
   VECTORPOINT  Max;  
 
   nRet = pVecObj->GetViewContext( &Min, &Max );  
   if( SUCCESS != nRet )  
   { 
      nRet = pVecObj->SetViewContext( pMin, pMax );  
 
      *pMin = Min;  
      *pMax = Max;  
   } 
 
   if( SUCCESS != nRet )  
   { 
      pVecObj->RemoveViewContext( );  
   } 
 
   return nRet;  
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.