Gets layer information on the class object's associated layer.
#include "ltwrappr.h"
virtual L_INT LVectorLayer::GetLayerDesc(pLayerDesc=NULL)
Pointer to a VECTORLAYERDESC structure to be updated with the layer information if the layer is found.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function updates the m_Desc member variable of the LVectorLayer object.
This function can be used in conjunction with LVectorLayer::SetLayerDesc to change layer properties.
LVectorLayer::GetLayerDesc and LVectorLayer::SetLayerDesc should be called in pairs.
This example will add a new layer to a vector handle.
L_INT LVectorLayer__GetLayerDescExample(HWND hWnd, LVectorBase *pVector)
{
UNREFERENCED_PARAMETER(hWnd);
L_INT nRet;
LVectorLayer VectorLayer;
VECTORLAYERDESC LayerDesc;
nRet = VectorLayer.GetLayerDesc(&LayerDesc);
if(nRet != SUCCESS)
return nRet;
lstrcpy(LayerDesc.szName, TEXT("Terry's New Layer"));
VectorLayer.SetLayerDesc(&LayerDesc);
nRet = pVector->AddLayer(&VectorLayer, VECTOR_FLAGS_RENAME_DUPLICATES);
if(nRet != SUCCESS)
{
MessageBox( NULL, TEXT("Could not add layer!"), TEXT(""), MB_OK );
return nRet;
}
//...LVectorLayer destructor called when VectorLayer 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