osgEarth 2.1.1
|
Public Member Functions | |
optional< bool > & | relativeLineSize () |
const optional< bool > & | relativeLineSize () const |
optional< bool > & | optimizeLineSampling () |
const optional< bool > & | optimizeLineSampling () const |
AGGLiteOptions (const TileSourceOptions &options=TileSourceOptions()) | |
Config | getConfig () const |
Protected Member Functions | |
void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< bool > | _relativeLineSize |
optional< bool > | _optimizeLineSampling |
Definition at line 30 of file AGGLiteOptions.
osgEarth::Drivers::AGGLiteOptions::AGGLiteOptions | ( | const TileSourceOptions & | options = TileSourceOptions() | ) | [inline] |
Definition at line 51 of file AGGLiteOptions.
: FeatureTileSourceOptions( options ), _relativeLineSize(true), _optimizeLineSampling(true) { setDriver( "agglite" ); fromConfig( _conf ); }
void osgEarth::Drivers::AGGLiteOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::Features::FeatureTileSourceOptions.
Definition at line 75 of file AGGLiteOptions.
{ conf.getIfSet( "relative_line_size", _relativeLineSize ); conf.getIfSet( "optimize_line_sampling", _optimizeLineSampling ); }
Config osgEarth::Drivers::AGGLiteOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::Features::FeatureTileSourceOptions.
Definition at line 61 of file AGGLiteOptions.
{ Config conf = FeatureTileSourceOptions::getConfig(); conf.updateIfSet("relative_line_size", _relativeLineSize); conf.updateIfSet("optimize_line_sampling", _optimizeLineSampling); return conf; }
void osgEarth::Drivers::AGGLiteOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::Features::FeatureTileSourceOptions.
Definition at line 69 of file AGGLiteOptions.
{ FeatureTileSourceOptions::mergeConfig( conf ); fromConfig(conf); }
const optional<bool>& osgEarth::Drivers::AGGLiteOptions::optimizeLineSampling | ( | ) | const [inline] |
Definition at line 48 of file AGGLiteOptions.
{ return _optimizeLineSampling; }
optional<bool>& osgEarth::Drivers::AGGLiteOptions::optimizeLineSampling | ( | ) | [inline] |
Whether to downsample line features to that they are no higher resolution than the target image resolution. Defaults to true, but you can disable this (for a possible performance increase) if you know your data to be of a relatively low resolution. (Default = true)
Definition at line 47 of file AGGLiteOptions.
{ return _optimizeLineSampling; }
optional<bool>& osgEarth::Drivers::AGGLiteOptions::relativeLineSize | ( | ) | [inline] |
If true, the rasterizer will adjust the line width based on the tile extent, having the effect of making lines appear approximately the same width at all scales. (Default = true)
Definition at line 38 of file AGGLiteOptions.
{ return _relativeLineSize; }
const optional<bool>& osgEarth::Drivers::AGGLiteOptions::relativeLineSize | ( | ) | const [inline] |
Definition at line 39 of file AGGLiteOptions.
{ return _relativeLineSize; }
optional<bool> osgEarth::Drivers::AGGLiteOptions::_optimizeLineSampling [private] |
Definition at line 81 of file AGGLiteOptions.
optional<bool> osgEarth::Drivers::AGGLiteOptions::_relativeLineSize [private] |
Definition at line 80 of file AGGLiteOptions.