LVectorObject::SetVector

Summary

Sets an LVectorBase object, or any object derived from LVectorBase, to be used by the Vector Object functions.

Syntax

#include "ltwrappr.h"

L_VOID LVectorObject::SetVector(pVector)

Parameters

LVectorBase * pVector

Pointer to the vector object to be used by the vector objects.

Returns

None.

Comments

This function is mainly used internally. Functions that use an LVectorObject do this automatically.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LVectorObject__SetVectorExample(LPPOINT pPoint) 
{ 
   L_INT          nRet; 
   LVectorBase    Vector; 
   LVectorObject  VectorObject; 
 
   nRet = Vector.Load(MAKE_IMAGE_PATH(TEXT("random.dxf"))); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = Vector.HitTest (pPoint, &VectorObject); 
   if (nRet==SUCCESS) 
   { 
      //Associate the LVectorObject with an LVectorBase 
      //Note that most functions that use an LVectorObject do this automatically 
      VectorObject.SetVector(&Vector); 
      //...Do something with the vector object 
      //...LVectorObject destructor is called when VectorObject goes out of scope. 
   } 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.