LVectorBase::Empty

Summary

Deletes all layers and objects from the class object's associated vector.

This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Syntax

#include "ltwrappr.h"

virtual L_INT LVectorBase::Empty(L_VOID)

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Calling this function will not affect other settings such as camera, transformation, etc.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example removes all layers and objects.

L_INT LVectorBase__EmptyExample() 
{ 
   L_INT       nRet; 
   LVectorBase Vector; 
   L_BOOL      bEmpty; 
   L_TCHAR*    pszMsg; 
 
   nRet = Vector.Load(MAKE_IMAGE_PATH(TEXT("random.dxf"))); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = Vector.IsEmpty(&bEmpty); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   pszMsg = bEmpty? TEXT("Vector is Empty"): TEXT("Vector has layers/objects"); 
 
   MessageBox(NULL, pszMsg, NULL, MB_OK); 
 
   nRet = Vector.Empty(); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = Vector.IsEmpty(&bEmpty); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   pszMsg = bEmpty? TEXT("Vector is Empty"): TEXT("Vector has layers/objects"); 
 
   MessageBox(NULL, pszMsg, NULL, MB_OK); 
 
   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.