#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. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
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. |
Functions: |
LVectorObject::SetViewContext, LVectorObject::RemoveViewContext |
Topics: |
|
|
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;
}
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