|
XConfiguration Class
|
PlanetView에서 사용하는 Configuration(XDLConfiguration.xml)을 정의하는 클래스이다.
XDLConfiguration.xml 환경설정을 읽어 정보를 확인할 수 있고, 설정된 정보를 XML 파일 형식으로 저장한다.
Inheritance Hierarchy
Namespace: Pixoneer.NXDL.NGRAssembly: NXDLgr (in NXDLgr.dll) Version: 2.0.3.38
Syntaxpublic class XConfiguration : IDisposable
The XConfiguration type exposes the following members.
Constructors
Properties | Name | Description |
---|
 | BlueMarble | Planet 2D 혹은 3D에서 사용하는 전세계지도(BlueMarble) 파일 경로를 설정하거나 얻는다. |
 | ConfigFilePath | 라이브러리가 설치된 곳에 존재하는 Configuration 파일의 경로를 설정하거나 얻는다. |
 | DefaultPBEDataset | Planet 2D 혹은 3D에서 지형 DEM를 렌더링하기 PBE의 Data Source 경로 혹은 URL. |
 | DefaultPBIDataset | Planet 2D 혹은 3D에서 지형 Texture를 렌더링하기 PBI의 Data Source 경로 혹은 URL. |
 | DefaultPBPDataset | Planet 2D 혹은 3D에서 지형 지명 이름을 렌더링하기 PBP의 Data Source 경로 혹은 URL. |
 | DefaultPBVDataset | Planet 2D 혹은 3D에서 지형 벡터 데이터를 렌더링하기 PBV의 Data Source 경로 혹은 URL. |
 | MaxTileCount | Planet 2D 혹은 3D에서Tile을 메모리에 적재하기 위한 메모리 Cache(Tile 영역의 수)를 의미. |
 | PBEGroups | Configuration에 존재하는 PBE(Pixoneer Base Elevation) Data Source에 대한 XPBTDataGroup들을 포함하는 ArrayList 객체를 얻는다. |
 | PBIGroups | Configuration에 존재하는 PBI(Pixoneer Base Image) Data Source에 대한 XPBTDataGroup들을 포함하는 ArrayList 객체를 얻는다. |
 | PBPGroups | Configuration에 존재하는 PBP(Pixoneer Base Placename) Data Source에 대한 XPBTDataGroup들을 포함하는 ArrayList 객체를 얻는다. |
 | PBVGroups | Configuration에 존재하는 PBV(Pixoneer Base Vector) Data Source에 대한 XPBTDataGroup들을 포함하는 ArrayList 객체를 얻는다. |
 | Planet2DProjection | Planet 2D 투영방식 문자열. 가능한 문자열 : WEBMERCATOR 또는 EEC |
 | RenderType | NXDL의 각종 View컨트롤들이 Render를 수행하기 위한 타입 ( OpenGL만 가능). |
 | ShaderVersion | GroundEffect, SkyEffect, LightingEffect 등의 렌더링 쉐이더 버전
(1 : 최신, 0 : 텍스처 렌더링 + light effect가 적용되지 않는 밤/낮 효과(이전 렌더링) )
|
Top
Methods
Example
This is example for each RPF TOC settings
XConfiguration config = new XConfiguration();
if (config.LoadConfigFile(strXDLConfigurationPath) == false)
{
MessageBox.Show("XDLConfiguration.xml Load Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
string strTocFull = string.Empty;
foreach (XPBTDataGroup group in config.PBIGroups)
{
foreach (XPBTDataSource src in group.Sources)
{
if (src.URL.IndexOf(".toc") >= 0)
{
nRPFGroupID = group.ID;
strTocFull = src.URL;
break;
}
}
if (strTocFull != string.Empty )
break;
}
if (strTocFull == string.Empty)
{
MessageBox.Show("Can`t Find RPF Source in XDLConfiguration.xml", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
int nTokenIndex = strTocFull.IndexOf(".toc");
if (nTokenIndex < 0)
{
MessageBox.Show("Can`t Not Find *.Toc File in XDLConfiguration.xml", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
while (nTokenIndex > 0)
{
string strTocFile = strTocFull.Substring(0, nTokenIndex+4);
if (strTocFile != string.Empty)
{
ListToc.Items.Add(strTocFile.ToLower());
}
if( strTocFull.Length > nTokenIndex+5 )
strTocFull = strTocFull.Substring(nTokenIndex+5);
else
strTocFull = strTocFull.Substring(nTokenIndex + 4);
nTokenIndex = strTocFull.IndexOf(".toc");
}
See Also