LVectorObject::GetObjectParallelogram

#include "ltwrappr.h"

L_INT LVectorObject::GetObjectParallelogram(pMin, pMax)

Gets the parallelogram that contains the class object.

Parameters

pVECTORPOINT pMin

Pointer to a VECTORPOINT structure to be updated with the minimum coordinate of the bounding parallelogram of the class object.

pVECTORPOINT pMax

Pointer to a VECTORPOINT structure to be updated with the maximum coordinate of the bounding parallelogram of the class object.

Returns

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

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will get the extent of a vector object under pPoint.

L_INT LVectorObject__GetObjectParallelogramExample(HWND hWnd, LVectorBase *pVector, LPPOINT pPoint) 
{ 
   L_INT          nRet; 
   LVectorObject  VectorObject; 
 
   nRet = pVector->HitTest(pPoint, &VectorObject); 
   if (nRet==SUCCESS) 
   { 
      VECTORPOINT pointMin, pointMax; 
      L_TCHAR szMsg[200]; 
      nRet = VectorObject.GetObjectParallelogram(&pointMin, &pointMax); 
      if(nRet != SUCCESS) 
         return nRet; 
      wsprintf(szMsg, TEXT("GetObjectParallelogram pointMin[%lf,%lf] pointMax[%lf,%lf]"),  
               pointMin.x, 
               pointMin.y, 
               pointMax.x, 
               pointMax.y); 
      MessageBox(hWnd, szMsg, TEXT(""), MB_OK); 
   } 
   else 
      return nRet; 
 
   return SUCCESS; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help