LVectorWindow::GetScaleFactor

#include "ltwrappr.h"

VECTORPOINT LVectorWindow::GetScaleFactor(L_VOID)

Gets the current scale factor for the LVectorWindow object.

Returns

A VECTORPOINT structure that holds the current LVectorWindow scale factor.

Comments

The LVectorWindow::ScaleIn and LVectorWindow::ScaleOut member functions use the scale factor to scale the currently loaded vector.

Scaling changes the internally stored scale of the vector.

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:

LVectorWindow::SetScaleFactor, LVectorWindow::ScaleIn, LVectorWindow::ScaleOut, Class Members

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__GetScaleFactorExample(LVectorWindow *pVectorWindow)
{
   VECTORPOINT scale;
   L_TCHAR     szTemp[100];
   //Get the current scale factor
   scale = pVectorWindow->GetScaleFactor();
   wsprintf(szTemp, TEXT("ScaleFactor[%lf, %lf, %lf]"), scale.x, scale.y, scale.z);
   MessageBox(NULL, szTemp, TEXT(""), MB_OK);
   return SUCCESS;
}