#include "ltwrappr.h"
virtual L_INT LVectorBase::GetGroupByName(pszName, pVectorGroup)
Gets the group with the specified name, in the class object's associated vector handle.
Character string that contains the name of the group to get.
Pointer to an LVectorGroup object to be updated with the group handle, if the group is found. If the group is not found, this function will return ERROR_VECTOR_GROUP_NOT_FOUND.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If two or more groups in a vector handle have the same name, this function will get the first group found.
Required DLLs and Libraries
This example will delete all clones of the named group from pVector.
L_INT LVectorBase__GetGroupByNameExample(HWND hWnd, LVectorBase *pVector)
{
UNREFERENCED_PARAMETER(hWnd);
LVectorGroup VectorGroup;
L_INT nRet;
L_TCHAR* pszName = TEXT("TerryGroup1");
// Get the group with the given name
nRet = pVector->GetGroupByName(pszName, &VectorGroup );
if( nRet == SUCCESS )
{
// Delete its clones
nRet = VectorGroup.DeleteGroupClones();
if(nRet != SUCCESS)
return nRet;
}
else
return nRet;
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