WorldWind Source Analysis Series: Set class SettingsBase

Source: Internet
Author: User

The planets in PLUGINSDK set classes Worldsettings and WorldWind. The program settings class Worldwindsettings are inherited from the parent class SettingsBase. The class diagram is shown below. Where the parent class SettingsBase has an enumerated type of locationtype embedded in it, the subclass Worldsettings's definition file comes with an enumerated type that defines the measurement mode.

The parent class SettingsBase is primarily the set file-related settings filename, version, path, load, and save as the top-level abstraction related to file processing. It is mainly saved in XML file, adopted. NET platform provides the XmlSerializer class for serialization.

The specific settings in class worldsettings and atmospheric rendering, UI control, latitude and longitude grid control, various elements of the planet, camera parameters, time saving, DirectX 3D settings, terrain parameters, measurement tools, units, layers, logs and other related content. Various settings elements (about 100 pairs of parameters, fields and attributes) details please refer to the source code.

Class Worldwindsettings encapsulates parameters related to the WorldWind program: proxy settings when associated with network data downloads, cache caching for network data downloads, plug-in information loaded at program startup plugin, file system parameter settings System Settings, various other parameters set miscellaneous Settings and so on.

The parameters related to proxy settings are whether to use the Windows default proxy, the network proxy URL, whether to use dynamic proxy, the user name of the proxy, and the password of the proxy.

Among them, the parameters related to the network data download buffer cache are: Buffer path, buffer size, buffer cleanup interval, buffer cumulative usage time.

Among them, the parameters associated with the loaded plug-in information plugin are: The collection of plug-ins collection.

The parameters related to the file system parameters of the filesystem settings are: The name of the planet that is started by default, and whether the configuration Assistant is displayed when the program starts.

Among them, the parameters related to other parameters set miscellaneous settings are: The configuration file path, the data path, whether to validate the validity of the XML.

The function void Updateproxysettings () is used to pass proxy-related settings parameters to static members in the network download class webdownload.

WorldWind Source Analysis Series: Set class SettingsBase

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.