osgEarth 2.1.1
|
Symbol that directs the GeometryCompiler to create extruded 3D geometry from 2D vector data.
Definition at line 34 of file ExtrusionSymbol.
Definition at line 38 of file ExtrusionSymbol.
Definition at line 24 of file ExtrusionSymbol.cpp.
: Symbol ( conf ), _height ( 10.0 ), _flatten ( true ), _heightRef( HEIGHT_REFERENCE_Z ) { if ( !conf.empty() ) mergeConfig(conf); }
optional<bool>& osgEarth::Symbology::ExtrusionSymbol::flatten | ( | ) | [inline] |
Whether the top cap of the extruded geometry should be flat (default=true)
Definition at line 69 of file ExtrusionSymbol.
{ return _flatten; }
const optional<bool>& osgEarth::Symbology::ExtrusionSymbol::flatten | ( | ) | const [inline] |
Definition at line 70 of file ExtrusionSymbol.
{ return _flatten; }
Config ExtrusionSymbol::getConfig | ( | ) | const [virtual] |
Reimplemented from osgEarth::Symbology::Symbol.
Definition at line 35 of file ExtrusionSymbol.cpp.
{ Config conf = Symbol::getConfig(); conf.key() = "extrusion"; conf.addIfSet ( "height", _height ); conf.addIfSet ( "flatten", _flatten ); conf.addObjIfSet( "height_expression", _heightExpr ); conf.addIfSet ( "height_reference", "z", _heightRef, HEIGHT_REFERENCE_Z ); conf.addIfSet ( "height_reference", "msl", _heightRef, HEIGHT_REFERENCE_MSL ); conf.addIfSet ( "wall_style", _wallStyleName ); conf.addIfSet ( "roof_style", _roofStyleName ); return conf; }
const optional<float>& osgEarth::Symbology::ExtrusionSymbol::height | ( | ) | const [inline] |
Definition at line 57 of file ExtrusionSymbol.
{ return _height; }
optional<float>& osgEarth::Symbology::ExtrusionSymbol::height | ( | ) | [inline] |
Height to which to extrude geometry above the footprint (for HEIGHT_REFERENCE_Z) or above MSL (for HEIGHT_REFERENCE_MSL)
Definition at line 56 of file ExtrusionSymbol.
{ return _height; }
const optional<NumericExpression>& osgEarth::Symbology::ExtrusionSymbol::heightExpression | ( | ) | const [inline] |
Definition at line 61 of file ExtrusionSymbol.
{ return _heightExpr; }
optional<NumericExpression>& osgEarth::Symbology::ExtrusionSymbol::heightExpression | ( | ) | [inline] |
Simple expression to evaluate to get height
Definition at line 60 of file ExtrusionSymbol.
{ return _heightExpr; }
optional<HeightReference>& osgEarth::Symbology::ExtrusionSymbol::heightReference | ( | ) | [inline] |
Reference frame in which height is expressed
Definition at line 65 of file ExtrusionSymbol.
{ return _heightRef; }
const optional<HeightReference>& osgEarth::Symbology::ExtrusionSymbol::heightReference | ( | ) | const [inline] |
Definition at line 66 of file ExtrusionSymbol.
{ return _heightRef; }
void ExtrusionSymbol::mergeConfig | ( | const Config & | conf | ) | [virtual] |
Definition at line 50 of file ExtrusionSymbol.cpp.
{ conf.getIfSet ( "height", _height ); conf.getIfSet ( "flatten", _flatten ); conf.getObjIfSet( "height_expression", _heightExpr ); conf.getIfSet ( "height_reference", "z", _heightRef, HEIGHT_REFERENCE_Z ); conf.getIfSet ( "height_reference", "msl", _heightRef, HEIGHT_REFERENCE_MSL ); conf.getIfSet ( "wall_style", _wallStyleName ); conf.getIfSet ( "roof_style", _roofStyleName ); }
const optional<std::string>& osgEarth::Symbology::ExtrusionSymbol::roofStyleName | ( | ) | const [inline] |
Definition at line 78 of file ExtrusionSymbol.
{ return _roofStyleName; }
optional<std::string>& osgEarth::Symbology::ExtrusionSymbol::roofStyleName | ( | ) | [inline] |
Name of a style describing how to symbolize the elevated rooftop
Definition at line 77 of file ExtrusionSymbol.
{ return _roofStyleName; }
optional<std::string>& osgEarth::Symbology::ExtrusionSymbol::wallStyleName | ( | ) | [inline] |
Name of a style describing how to symbolize the extruded walls
Definition at line 73 of file ExtrusionSymbol.
{ return _wallStyleName; }
const optional<std::string>& osgEarth::Symbology::ExtrusionSymbol::wallStyleName | ( | ) | const [inline] |
Definition at line 74 of file ExtrusionSymbol.
{ return _wallStyleName; }
optional<bool> osgEarth::Symbology::ExtrusionSymbol::_flatten [protected] |
Definition at line 86 of file ExtrusionSymbol.
optional<float> osgEarth::Symbology::ExtrusionSymbol::_height [protected] |
Definition at line 85 of file ExtrusionSymbol.
Definition at line 87 of file ExtrusionSymbol.
Definition at line 88 of file ExtrusionSymbol.
optional<std::string> osgEarth::Symbology::ExtrusionSymbol::_roofStyleName [protected] |
Definition at line 90 of file ExtrusionSymbol.
optional<std::string> osgEarth::Symbology::ExtrusionSymbol::_wallStyleName [protected] |
Definition at line 89 of file ExtrusionSymbol.