LVectorObject::GetObjectParallelogram

Summary

Gets the parallelogram that contains the class object.

Syntax

#include "ltwrappr.h"

L_INT LVectorObject::GetObjectParallelogram(pMin, pMax)

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 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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