#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. | |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
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. |
Functions: |
|
Topics: |
|
|
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 extentsnRet = pVector->GetObjectParallelogram(&LeftTop, &RightBottom);if(nRet != SUCCESS)return nRet;// Convert to physical to get the rect where the drawing will paintednRet = pVector->LogicalToPhysical(&LeftTop2D, &LeftTop );if(nRet != SUCCESS)return nRet;nRet = pVector->LogicalToPhysical( &RightBottom2D, &RightBottom );if(nRet != SUCCESS)return nRet;return SUCCESS;}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
