L_VecGetObjectViewContext
#include "lvkrn.h"
L_LVKRN_API L_INT L_VecGetObjectViewContext(pVector, pObject, pMin, pMax)
pVECTORHANDLE pVector; |
/* pointer to the vector handle */ |
const pVECTOROBJECT pObject; |
/* pointer to a VECTOROBJECT structure */ |
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 |
pVector |
Pointer to vector handle. |
pObject |
Pointer to a VECTOROBJECT structure that contains the vector object for which to get the view context. |
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. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function fails if pObject 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. |
See Also
Functions: |
|
Topics: |
|
|
Example
L_INT VecGetObjectViewContextExample( pVECTORHANDLE pVector, pVECTOROBJECT pObject, pVECTORPOINT pMin, pVECTORPOINT pMax) { L_INT nRet; VECTORPOINT Min; VECTORPOINT Max; nRet = L_VecGetObjectViewContext ( pVector, pObject, &Min, &Max ); if( SUCCESS != nRet ) { nRet = L_VecSetObjectViewContext ( pVector, pObject, pMin, pMax ); if (nRet != SUCCESS) return nRet; *pMin = Min; *pMax = Max; } if( SUCCESS != nRet ) L_VecRemoveObjectViewContext ( pVector, pObject ); return nRet; }