cgml::CityModel Class Reference

core:CityModel More...

Inheritance diagram for cgml::CityModel:

gml::_FeatureCollection gml::_Base

List of all members.

Public Member Functions

void AddCityObject (_CityObject *pObject)
 Add a city object to the model.
 CityModel ()
 Ctor.

Private Attributes

CityObjectList cCityObjectMemberList
 List of included objects.


Detailed Description

core:CityModel

Root node for a city model. Add this to an wxXmlDocument. Example:

wxXmlDocument cityModelDoc;
CityModel *pCM = new CityModel();
cityModel.SetRoot( pCM );
cityModelDoc.Save("MyCityModel.gml");
Generates the root node:
<?xml version="1.0" encoding="utf-8"?>
<core:CityModel xmlns="http://www.citygml.org/citygml/profiles/base/1.0" 
xmlns:core="http://www.opengis.net/citygml/1.0" 
xmlns:bldg="http://www.opengis.net/citygml/building/1.0" 
xmlns:grp="http://www.opengis.net/citygml/cityobjectgroup/1.0" 
xmlns:tex="http://www.opengis.net/citygml/texturedsurface/1.0" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xAL="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.citygml.org/citygml/profiles/base/1.0 CityGML.xsd" />

Constructor & Destructor Documentation

cgml::CityModel::CityModel (  ) 

Ctor.

Adds all XML namespaces


Member Function Documentation

void cgml::CityModel::AddCityObject ( _CityObject pObject  ) 

Add a city object to the model.

Adds nodes for city object. E.g.:

<cityObjectMember>
        <Building>
        ...
        </Building>
</cityObjectMember>
Parameters:
pObject The object to add


The documentation for this class was generated from the following file:

Generated on Wed Aug 5 15:24:04 2009   ReVisitor AB