lcTIN_PtypeGetNext Home

Returns a handle to the point type that is placed after the specified point type in a TIN object.

 HANDLE lcTIN_PtypeGetNext (
   HANDLE hTIN,
   HANDLE hPtype
 );

Parameters
hTIN
  Handle to a TIN object.
hPtype
  Handle to a TIN point type.

Return Value

  Handle to the point type that is placed after hPtype in the list.
If there are no point types after hPtype, the function returns NULL.

See Also

  lcTIN_PtypeGetFirst


Code sample:
  // get name and color of all point types
  HANDLE hTIN, hPtype;
  WCHAR szName[256];
  int Color;
  hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" );
  if (hTIN != 0){
    hPtype = lcTIN_PtypeGetFirst( hTIN );
    while( hPtype != 0 ){
      memset( szName, 0, sizeof(szName) );
      wcsncpy( szName, lcPropGetStr( hPtype, LC_PROP_TINPTYPE_NAME ), 255 );
      Color = lcPropGetInt( hPtype, LC_PROP_TINPTYPE_COLOR );
      // get next point type
      hPtype = lcTIN_PtypeGetNext( hTIN, hPtype );
    }
  }