亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mitab_tooldef.cpp

?? 支持各種柵格圖像和矢量圖像讀取的庫
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
 **********************************************************************/int     TABToolDefTable::GetNumPen(){    return m_numPen;}/********************************************************************** *                   TABToolDefTable::GetPenDefRef() * * Return a reference to the specified Pen tool definition, or NULL if * specified index is invalid. * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/TABPenDef *TABToolDefTable::GetPenDefRef(int nIndex){    if (nIndex >0 && nIndex <= m_numPen)        return m_papsPen[nIndex-1];    return NULL;}/********************************************************************** *                   TABToolDefTable::AddPenDefRef() * * Either create a new PenDefRef or add a reference to an existing one. * * Return the pen index that has been attributed to this Pen tool  * definition, or -1 if something went wrong * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/int TABToolDefTable::AddPenDefRef(TABPenDef *poNewPenDef){    int i, nNewPenIndex = 0;    TABPenDef *poDef;    if (poNewPenDef == NULL)        return -1;    /*-----------------------------------------------------------------     * Check for "none" case: pattern = 0 (pattern 0 does not exist!)     *----------------------------------------------------------------*/    if (poNewPenDef->nLinePattern < 1)        return 0;    /*-----------------------------------------------------------------     * Start by searching the list of existing pens     *----------------------------------------------------------------*/    for (i=0; nNewPenIndex == 0 && i<m_numPen; i++)    {        poDef = m_papsPen[i];        if (poDef->nPixelWidth == poNewPenDef->nPixelWidth &&            poDef->nLinePattern == poNewPenDef->nLinePattern &&            poDef->nPointWidth == poNewPenDef->nPointWidth &&            poDef->rgbColor == poNewPenDef->rgbColor)        {            nNewPenIndex = i+1; // Fount it!            poDef->nRefCount++;        }                   }    /*-----------------------------------------------------------------     * OK, we did not find a match, then create a new entry     *----------------------------------------------------------------*/    if (nNewPenIndex == 0)    {        if (m_numPen >= m_numAllocatedPen)        {            // Realloc array by blocks of 20 items            m_numAllocatedPen += 20;            m_papsPen = (TABPenDef**)CPLRealloc(m_papsPen,                                        m_numAllocatedPen*sizeof(TABPenDef*));        }        m_papsPen[m_numPen] = (TABPenDef*)CPLCalloc(1, sizeof(TABPenDef));        *m_papsPen[m_numPen] = *poNewPenDef;        m_papsPen[m_numPen]->nRefCount = 1;        nNewPenIndex = ++m_numPen;    }    return nNewPenIndex;}/********************************************************************** *                   TABToolDefTable::GetNumBrushes() * * Return the number of valid Brush indexes for this .MAP file **********************************************************************/int     TABToolDefTable::GetNumBrushes(){    return m_numBrushes;}/********************************************************************** *                   TABToolDefTable::GetBrushDefRef() * * Return a reference to the specified Brush tool definition, or NULL if * specified index is invalid. * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/TABBrushDef *TABToolDefTable::GetBrushDefRef(int nIndex){    if (nIndex >0 && nIndex <= m_numBrushes)        return m_papsBrush[nIndex-1];    return NULL;}/********************************************************************** *                   TABToolDefTable::AddBrushDefRef() * * Either create a new BrushDefRef or add a reference to an existing one. * * Return the Brush index that has been attributed to this Brush tool  * definition, or -1 if something went wrong * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/int TABToolDefTable::AddBrushDefRef(TABBrushDef *poNewBrushDef){    int i, nNewBrushIndex = 0;    TABBrushDef *poDef;    if (poNewBrushDef == NULL)        return -1;    /*-----------------------------------------------------------------     * Check for "none" case: pattern = 0 (pattern 0 does not exist!)     *----------------------------------------------------------------*/    if (poNewBrushDef->nFillPattern < 1)        return 0;    /*-----------------------------------------------------------------     * Start by searching the list of existing Brushs     *----------------------------------------------------------------*/    for (i=0; nNewBrushIndex == 0 && i<m_numBrushes; i++)    {        poDef = m_papsBrush[i];        if (poDef->nFillPattern == poNewBrushDef->nFillPattern &&            poDef->bTransparentFill == poNewBrushDef->bTransparentFill &&            poDef->rgbFGColor == poNewBrushDef->rgbFGColor &&            poDef->rgbBGColor == poNewBrushDef->rgbBGColor)        {            nNewBrushIndex = i+1; // Fount it!            poDef->nRefCount++;        }                   }    /*-----------------------------------------------------------------     * OK, we did not find a match, then create a new entry     *----------------------------------------------------------------*/    if (nNewBrushIndex == 0)    {        if (m_numBrushes >= m_numAllocatedBrushes)        {            // Realloc array by blocks of 20 items            m_numAllocatedBrushes += 20;            m_papsBrush = (TABBrushDef**)CPLRealloc(m_papsBrush,                                  m_numAllocatedBrushes*sizeof(TABBrushDef*));        }        m_papsBrush[m_numBrushes]=(TABBrushDef*)CPLCalloc(1,                                                           sizeof(TABBrushDef));        *m_papsBrush[m_numBrushes] = *poNewBrushDef;        m_papsBrush[m_numBrushes]->nRefCount = 1;        nNewBrushIndex = ++m_numBrushes;    }    return nNewBrushIndex;}/********************************************************************** *                   TABToolDefTable::GetNumFonts() * * Return the number of valid Font indexes for this .MAP file **********************************************************************/int     TABToolDefTable::GetNumFonts(){    return m_numFonts;}/********************************************************************** *                   TABToolDefTable::GetFontDefRef() * * Return a reference to the specified Font tool definition, or NULL if * specified index is invalid. * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/TABFontDef *TABToolDefTable::GetFontDefRef(int nIndex){    if (nIndex >0 && nIndex <= m_numFonts)        return m_papsFont[nIndex-1];    return NULL;}/********************************************************************** *                   TABToolDefTable::AddFontDefRef() * * Either create a new FontDefRef or add a reference to an existing one. * * Return the Font index that has been attributed to this Font tool  * definition, or -1 if something went wrong * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/int TABToolDefTable::AddFontDefRef(TABFontDef *poNewFontDef){    int i, nNewFontIndex = 0;    TABFontDef *poDef;    if (poNewFontDef == NULL)        return -1;    /*-----------------------------------------------------------------     * Start by searching the list of existing Fonts     *----------------------------------------------------------------*/    for (i=0; nNewFontIndex == 0 && i<m_numFonts; i++)    {        poDef = m_papsFont[i];        if (EQUAL(poDef->szFontName, poNewFontDef->szFontName))        {            nNewFontIndex = i+1; // Fount it!            poDef->nRefCount++;        }                   }    /*-----------------------------------------------------------------     * OK, we did not find a match, then create a new entry     *----------------------------------------------------------------*/    if (nNewFontIndex == 0)    {        if (m_numFonts >= m_numAllocatedFonts)        {            // Realloc array by blocks of 20 items            m_numAllocatedFonts += 20;            m_papsFont = (TABFontDef**)CPLRealloc(m_papsFont,                                  m_numAllocatedFonts*sizeof(TABFontDef*));        }        m_papsFont[m_numFonts]=(TABFontDef*)CPLCalloc(1,                                                           sizeof(TABFontDef));        *m_papsFont[m_numFonts] = *poNewFontDef;        m_papsFont[m_numFonts]->nRefCount = 1;        nNewFontIndex = ++m_numFonts;    }    return nNewFontIndex;}/********************************************************************** *                   TABToolDefTable::GetNumSymbols() * * Return the number of valid Symbol indexes for this .MAP file **********************************************************************/int     TABToolDefTable::GetNumSymbols(){    return m_numSymbols;}/********************************************************************** *                   TABToolDefTable::GetSymbolDefRef() * * Return a reference to the specified Symbol tool definition, or NULL if * specified index is invalid. * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/TABSymbolDef *TABToolDefTable::GetSymbolDefRef(int nIndex){    if (nIndex >0 && nIndex <= m_numSymbols)        return m_papsSymbol[nIndex-1];    return NULL;}/********************************************************************** *                   TABToolDefTable::AddSymbolDefRef() * * Either create a new SymbolDefRef or add a reference to an existing one. * * Return the Symbol index that has been attributed to this Symbol tool  * definition, or -1 if something went wrong * * Note that nIndex is a 1-based index.  A value of 0 indicates "none"  * in MapInfo. **********************************************************************/int TABToolDefTable::AddSymbolDefRef(TABSymbolDef *poNewSymbolDef){    int i, nNewSymbolIndex = 0;    TABSymbolDef *poDef;    if (poNewSymbolDef == NULL)        return -1;    /*-----------------------------------------------------------------     * Start by searching the list of existing Symbols     *----------------------------------------------------------------*/    for (i=0; nNewSymbolIndex == 0 && i<m_numSymbols; i++)    {        poDef = m_papsSymbol[i];        if (poDef->nSymbolNo == poNewSymbolDef->nSymbolNo &&            poDef->nPointSize == poNewSymbolDef->nPointSize &&            poDef->_nUnknownValue_ == poNewSymbolDef->_nUnknownValue_ &&            poDef->rgbColor == poNewSymbolDef->rgbColor )        {            nNewSymbolIndex = i+1; // Fount it!            poDef->nRefCount++;        }                   }    /*-----------------------------------------------------------------     * OK, we did not find a match, then create a new entry     *----------------------------------------------------------------*/    if (nNewSymbolIndex == 0)    {        if (m_numSymbols >= m_numAllocatedSymbols)        {            // Realloc array by blocks of 20 items            m_numAllocatedSymbols += 20;            m_papsSymbol = (TABSymbolDef**)CPLRealloc(m_papsSymbol,                                  m_numAllocatedSymbols*sizeof(TABSymbolDef*));        }        m_papsSymbol[m_numSymbols]=(TABSymbolDef*)CPLCalloc(1,                                                        sizeof(TABSymbolDef));        *m_papsSymbol[m_numSymbols] = *poNewSymbolDef;        m_papsSymbol[m_numSymbols]->nRefCount = 1;        nNewSymbolIndex = ++m_numSymbols;    }    return nNewSymbolIndex;}/********************************************************************** *                   TABToolDefTable::GetMinVersionNumber() * * Returns the minimum file version number that can accept all the * tool objects currently defined. * * Default is 300, and currently 450 can be returned if file contains * pen widths defined in points. **********************************************************************/int     TABToolDefTable::GetMinVersionNumber(){    int i, nVersion = 300;    /*-----------------------------------------------------------------     * Scan Pen Defs     *----------------------------------------------------------------*/    for(i=0; i< m_numPen; i++)    {        if (m_papsPen[i]->nPointWidth > 0 )        {            nVersion = MAX(nVersion, 450);  // Raise version to 450        }    }    return nVersion;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区激情视频| 亚洲6080在线| 欧美日韩一区二区三区高清| 日本午夜一本久久久综合| 久久久国产精品不卡| 在线观看国产日韩| 国产iv一区二区三区| 亚洲国产cao| 亚洲欧洲国产日韩| 欧美色倩网站大全免费| 韩国午夜理伦三级不卡影院| 亚洲在线观看免费视频| 国产午夜精品久久久久久久 | 午夜激情一区二区| 中文字幕av不卡| 欧美一区二区三区视频免费| 99久久er热在这里只有精品66| 麻豆精品视频在线观看视频| 曰韩精品一区二区| 日本一二三四高清不卡| 日韩欧美国产三级电影视频| 欧美日韩在线直播| 99国产精品久久久| 成人美女在线视频| 高清免费成人av| 成人精品免费看| 国产乱妇无码大片在线观看| 激情小说亚洲一区| 韩国欧美国产1区| 99久久精品免费看国产| 国产成人午夜99999| 国内精品伊人久久久久av一坑 | 日本一区二区免费在线观看视频| 日韩欧美在线123| 色综合天天综合色综合av | 性做久久久久久免费观看| 亚洲影院久久精品| 男女视频一区二区| 国产一区二区三区国产| 成人毛片老司机大片| 日本精品视频一区二区三区| 欧美日韩中文字幕精品| 69堂亚洲精品首页| 欧美本精品男人aⅴ天堂| 国产精品夫妻自拍| 午夜精品福利一区二区三区av| 美女mm1313爽爽久久久蜜臀| 国产一区二区三区| 91免费国产在线观看| 91精品国产色综合久久不卡蜜臀 | 国产在线视频精品一区| av网站一区二区三区| 欧美日韩国产小视频在线观看| 日韩欧美国产电影| 亚洲情趣在线观看| 国产在线视频不卡二| 欧美日韩一卡二卡三卡| 欧美大肚乱孕交hd孕妇| 91亚洲精品久久久蜜桃| 欧美成人女星排行榜| 亚洲精品乱码久久久久| 国产在线播精品第三| 欧洲视频一区二区| 中文字幕一区三区| 国产成人免费视| 国产视频视频一区| 国产成人福利片| 国产精品青草综合久久久久99| 美女看a上一区| 欧美日产国产精品| 日韩高清不卡在线| 日韩欧美亚洲国产精品字幕久久久| 五月天亚洲婷婷| 欧美挠脚心视频网站| 久久精品国产亚洲高清剧情介绍 | 久久婷婷久久一区二区三区| 老司机免费视频一区二区三区| 日韩视频一区二区| 韩国精品久久久| 中文字幕免费观看一区| 91天堂素人约啪| 亚洲777理论| 久久精品一区四区| 91在线丨porny丨国产| 亚洲高清免费在线| 精品成人私密视频| 91在线观看一区二区| 亚洲无人区一区| 精品国产凹凸成av人网站| 国产成人在线免费观看| 一区二区日韩电影| 精品国产精品网麻豆系列| 国产福利一区在线观看| 亚洲一区二区av在线| 欧美不卡一区二区三区| 91视频免费看| 精品一区二区影视| 亚洲小说欧美激情另类| 国产欧美一区二区三区在线老狼| 在线视频国内自拍亚洲视频| 国产精品一区二区视频| 亚洲h在线观看| 中文字幕字幕中文在线中不卡视频| 欧美日韩免费一区二区三区| 国产自产2019最新不卡| 亚洲二区视频在线| 亚洲精品日韩一| 欧美国产精品v| 久久久精品综合| 日韩欧美一区二区在线视频| 色婷婷久久久久swag精品 | 欧美日韩视频一区二区| 99久久免费国产| 国产精品中文有码| 免费成人av在线| 蜜臀av性久久久久蜜臀av麻豆 | 高清国产午夜精品久久久久久| 蓝色福利精品导航| 蜜桃传媒麻豆第一区在线观看| 亚洲综合一区在线| 亚洲精品视频在线| 亚洲综合色成人| 视频一区二区三区入口| 一区二区三区资源| 五月婷婷激情综合网| 午夜精品成人在线| 久色婷婷小香蕉久久| 免费在线观看视频一区| 捆绑调教美女网站视频一区| 久久国产三级精品| 粉嫩aⅴ一区二区三区四区五区| 成人黄色在线视频| 色老汉一区二区三区| 欧美久久一二区| 2020国产精品自拍| 亚洲桃色在线一区| 日韩电影在线看| 国产成a人无v码亚洲福利| av不卡在线观看| 欧美午夜精品免费| 精品处破学生在线二十三| 国产精品―色哟哟| 午夜av区久久| 韩国毛片一区二区三区| 成人免费观看男女羞羞视频| 91麻豆视频网站| 精品捆绑美女sm三区| 国产精品女同一区二区三区| 亚洲男同性恋视频| 国产剧情一区在线| 欧美另类久久久品| 国产精品理论片| 久久精品99国产精品| 色综合色综合色综合| 精品对白一区国产伦| 水蜜桃久久夜色精品一区的特点| 国产一区二区三区四区五区入口 | 69堂国产成人免费视频| 中文幕一区二区三区久久蜜桃| 日本vs亚洲vs韩国一区三区二区| 国产精品996| 日韩欧美电影一二三| 亚洲免费av在线| 99热99精品| 国产精品国产三级国产有无不卡| 秋霞午夜av一区二区三区| 日本高清不卡一区| 一区二区三区日韩欧美精品| av在线不卡电影| 国产精品丝袜91| 91香蕉国产在线观看软件| 国产精品日韩成人| caoporm超碰国产精品| 日本一区二区三区dvd视频在线| 久久精品国产精品亚洲红杏| 91麻豆精品国产91| 热久久免费视频| 日韩欧美在线影院| 国产99精品视频| 综合久久综合久久| 精品视频在线免费看| 午夜av电影一区| 日韩欧美国产wwwww| 国产乱码精品一区二区三区忘忧草 | 91麻豆精品在线观看| 亚洲午夜精品在线| 欧美剧情片在线观看| 久久精品久久99精品久久| 久久亚洲春色中文字幕久久久| 国产永久精品大片wwwapp| 国产精品理论片在线观看| 在线国产电影不卡| 精品一区在线看| 依依成人精品视频| 精品三级在线观看| www.日韩av| 精品一区二区成人精品| 亚洲日本欧美天堂| 欧美xxxxxxxx| 在线看日本不卡|