Sets an LVectorBase object, or any object derived from LVectorBase, to be used by the Vector Object functions.
#include "ltwrappr.h"
L_VOID LVectorObject::SetVector(pVector)
Pointer to the vector object to be used by the vector objects.
None.
This function is mainly used internally. Functions that use an LVectorObject do this automatically.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document