LVectorBase::GetObjectParallelogram

#include "ltwrappr.h"

virtual L_INT LVectorBase::GetObjectParallelogram(pMin, pMax, dwFlags=0)

pVECTORPOINT pMin;

pointer to a vector point

pVECTORPOINT pMax;

pointer to a vector point

L_UINT32 dwFlags;

flag that indicates which parallelogram to get

Gets the parallelogram that contains the specified object(s).

Parameter Description
pMin Pointer to a VECTORPOINT structure to be updated with the minimum point of the bounding parallelogram of the specified object.
pMax Pointer to a VECTORPOINT structure to be updated with the maximum point of the bounding parallelogram of the specified object.
dwFlags Flag that indicates which parallelogram to use when updating the pMin and pMax parameters. Possible values are:
  Value Meaning
  0 pMin and pMax will be updated with the parallelogram containing all objects within the vector handle.
  VECTOR_FLAGS_SELECTED_ONLY pMin and pMax will be updated with the parallelogram containing all selected objects within the vector handle.
  VECTOR_FLAGS_TRANSFORMED Apply current transformation on pMin and pMax before returning.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Obtains the bounding parallelogram of a single object, several selected objects, or all objects within the vector handle.

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:

LVectorBase::IsObjectSelected, LVectorBase::GetObjectRect

Topics:

Manipulating Objects or Vertices within a Vector Image

 

Vector Images: Obtaining Object Information

Example

This example obtains drawing physical extents.

L_INT LVectorBase__GetObjectParallelogramExample(HWND hWnd, LVectorBase *pVector) 
{ 
   UNREFERENCED_PARAMETER(hWnd); 
   L_INT          nRet; 
   VECTORPOINT    LeftTop, RightBottom; 
   POINT          LeftTop2D, RightBottom2D; 
   // Get drawing logical extents 
   nRet = pVector->GetObjectParallelogram(&LeftTop, &RightBottom); 
   if(nRet != SUCCESS) 
      return nRet; 
   // Convert to physical to get the rect where the drawing will painted 
   nRet = pVector->LogicalToPhysical(&LeftTop2D, &LeftTop ); 
   if(nRet != SUCCESS) 
      return nRet; 
   nRet = pVector->LogicalToPhysical( &RightBottom2D, &RightBottom ); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C++ Class Library Help