osgEarth 2.1.1
Classes | Defines

/home/cube/sources/osgearth/src/osgEarthDrivers/kml/KML_Common File Reference

#include <osgEarth/Common>
#include <osgEarth/URI>
#include <osgEarth/MapNode>
#include <osgEarthSymbology/Style>
#include "KMLOptions"
Include dependency graph for KML_Common:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  KMLContext

Defines

#define OSGEARTH_DRIVER_KML_COMMON   1
#define LC   "[KML] "
#define for_one(NAME, FUNC, CONF, CX)
#define for_many(NAME, FUNC, CONF, CX)
#define for_features(FUNC, CONF, CX)

Define Documentation

#define for_features (   FUNC,
  CONF,
  CX 
)
Value:
for_many( Document,      FUNC, CONF, CX ); \
    for_many( Folder,        FUNC, CONF, CX ); \
    for_many( PhotoOverlay,  FUNC, CONF, CX ); \
    for_many( ScreenOverlay, FUNC, CONF, CX ); \
    for_many( GroundOverlay, FUNC, CONF, CX ); \
    for_many( NetworkLink,   FUNC, CONF, CX ); \
    for_many( Placemark,     FUNC, CONF, CX );

Definition at line 52 of file KML_Common.

#define for_many (   NAME,
  FUNC,
  CONF,
  CX 
)
Value:
{ \
   ConfigSet c = conf.children( toLower( #NAME ) ); \
   for( ConfigSet::const_iterator i = c.begin(); i != c.end(); ++i ) { \
        KML_##NAME instance; \
        instance. FUNC (*i, CX); \
   } \
}

Definition at line 43 of file KML_Common.

#define for_one (   NAME,
  FUNC,
  CONF,
  CX 
)
Value:
{ \
    Config c = conf.child( toLower( #NAME ) ); \
    if ( !c.empty() ) { \
        KML_##NAME instance; \
        instance. FUNC (c, CX); \
    } \
}

Definition at line 34 of file KML_Common.

#define LC   "[KML] "

Definition at line 28 of file KML_Common.

#define OSGEARTH_DRIVER_KML_COMMON   1

Definition at line 20 of file KML_Common.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines