Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorObject::GetViewContext

Show in webframe

#include "ltwrappr.h"

L_INT LVectorObject::GetViewContext(pMin, pMax)

pVECTORPOINT pMin;

/* pointer to a VECTORPOINT structure */

pVECTORPOINT pMax;

/* pointer to a VECTORPOINT structure */

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

Parameter

Description

pMin

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

pMax

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

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function fails if the object doesnt have a preset view context.

Required DLLs and Libraries

LVKRN

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:

LVectorObject::SetViewContext, LVectorObject::RemoveViewContext

Topics:

Vector Images: Obtaining Object Information

 

Working with theView Context

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; 
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.