LVectorDialog::LVectorDialog

#include "ltwrappr.h"

L_VOID LVectorDialog::LVectorDialog(void)

L_VOID LVectorDialog::LVectorDialog(pLVector)

LVectorBase *pLVector;

/* pointer to an LVectorBase object */

Constructs and initializes the member variables of the class object.

Parameter

Description

pLVector

Pointer to an LVectorBase object that references the vector.

Returns

None

Comments

These are the constructors for the LVectorDialog class. They construct and initialize the member variables of the class object.

LVectorDialog::LVectorDialog(void) is the default constructor.

LVectorDialog::LVectorDialog(pLVector) constructs an LVectorDialog object and allocates a vector from another LEAD vector handle.

Required DLLs and Libraries

LVKRN
LVDLG
LTFIL

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:

LVectorDialog::~LVectorDialog, Class Members

Example

For an example of LVectorDialog::LVectorDialog(void), refer to LVectorDialog::IsValid.

This is an example for LVectorDialog::LVectorDialog(pLVector):

L_INT LVectorDialog__LVectorDialogExample(HWND hWnd)
{
   L_INT       nRet;
   VECTORPOINT rotatePoint = {90,0,0,0};
   VECTORPOINT originPoint = {0,0,0,0};
   LVectorBase Vector;
   nRet = Vector.Load(TEXT("C:\\Program Files\\LEAD Technologies, Inc\\LEADTOOLS 16\\Images\\test.dxf"));
   if(nRet != SUCCESS)
      return nRet;
    LVectorDialog VectorDlg(&Vector);
    VectorDlg.EnableAutoProcess();
    nRet = VectorDlg.DoModalVectorRotate(hWnd, &rotatePoint, &originPoint);
    //Get a pointer to the vector (refers to Vector)
    LVectorBase *pVector = VectorDlg.GetVector();
    UNREFERENCED_PARAMETER(pVector);
    //Do something with pointer ...
   //destructor called when out of scope
    return nRet;
}