![]() | XConfiguration Class |
Namespace: Pixoneer.NXDL.NGR
public class XConfiguration : IDisposable
The XConfiguration type exposes the following members.
Name | Description | |
---|---|---|
![]() | XConfiguration | XConfiguration클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
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. |
![]() | 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 객체를 얻는다. |
![]() | RenderType | NXDL의 각종 View컨트롤들이 Render를 수행하기 위한 타입 ( OpenGL만 가능). |
Name | Description | |
---|---|---|
![]() | GetMaxID | 내부에 정의된 XPBTDataGroup객체의 ID중 Maximum ID를 얻는다. |
![]() | LoadConfigFile | Configration파일 경로를 입력하여 Configration을 로딩한다. |
![]() ![]() | LoadCurrentConfig | 현재 엔진의 기본 설정을 로딩한다. |
![]() | SaveConfigFile | this객체에 존재하는 XPBTDataGroup리스트에 대하여 파일에 저장한다. |
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"); }