1 / 37
文档名称:

AE程序4.doc

格式:doc   大小:18KB   页数:37页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

AE程序4.doc

上传人:赖大文档 2022/2/5 文件大小:18 KB

下载得到文件列表

AE程序4.doc

相关文档

文档介绍

文档介绍:AE程序4
25:PieChartRenderer

using System;
using ;
using ;AddField(strPopField1,strPopField1);
(strPopField2,strPopField2);
pQueryFilter = new QueryFilterClass();
(strPopField1);
(strPopField2);
pCursor = (pQueryFilter, true);
fieldIndecies[0] = (strPopField1);
fieldIndecies[1] = (strPopField2);
firstValue = true;
dmaxValue = 0;
pRowBuffer = ();
while (pRowBuffer != null)
{
for( lfieldIndex = 0 ; lfieldIndex<= numFields - 1;lfieldIndex++)
{
dfieldValue=(double)
(fieldIndecies[lfieldIndex]);
if (firstValue)
{
dmaxValue = dfieldValue;
firstValue=false;
}
else
{
if( dfieldValue > dmaxValue)
{
dmaxValue = dfieldValue;
}
}
}
pRowBuffer = ();
}
if (dmaxValue <= 0)
{
("Failed to gather stats on the feature class");
();
}
IPieChartSymbol pPieChartSymbol;
pPieChartSymbol = new PieChartSymbolClass();
pChartSymbol = (IChartSymbol) pPieChartSymbol;
= true;
= true;
ILineSymbol pOutline;
pOutline = new SimpleLineSymbolClass();
= getRGB(100, 205, 30);
= 2;
= pOutline;
pMarkerSymbol = (IMarkerSymbol) pPieChartSymbol;
= dmaxValue;
= 30;
pSymbolArray = (ISymbolArray) pPieChartSymbol;
pFillSymbol = new SimpleFillSymbolClass();
= getRGB(213, 212, 252);
((ISymbol) pFillSymbol);
pFillSymbol = new SimpleFillSymbolClass();
= getRGB(193, 252, 179);
( (ISymbol) pFillSymbol);
= (IChartSymbol) pPieChartSymbol;
= "Population";
pFillSymbol = new SimpleFillSymbolClass();
= getRGB(239, 228, 190);
pCh