osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::Symbology::PointSymbol Class Reference

Inheritance diagram for osgEarth::Symbology::PointSymbol:
Collaboration diagram for osgEarth::Symbology::PointSymbol:

List of all members.

Public Member Functions

 PointSymbol (const Config &conf=Config())
optional< Fill > & fill ()
const optional< Fill > & fill () const
optional< float > & size ()
const optional< float > & size () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Protected Attributes

optional< Fill_fill
optional< float > _size

Detailed Description

Symbol that describes how to render point geometries.

Definition at line 30 of file PointSymbol.


Constructor & Destructor Documentation

PointSymbol::PointSymbol ( const Config conf = Config())

Definition at line 66 of file GeometrySymbol.cpp.

                         :
_fill( Fill() ), _size(1.0)
{
    //nop
}

Member Function Documentation

optional<Fill>& osgEarth::Symbology::PointSymbol::fill ( ) [inline]

Point fill properties.

Definition at line 36 of file PointSymbol.

{ return _fill; }

Here is the caller graph for this function:

const optional<Fill>& osgEarth::Symbology::PointSymbol::fill ( ) const [inline]

Definition at line 37 of file PointSymbol.

{ return _fill; }
Config PointSymbol::getConfig ( ) const [virtual]

Reimplemented from osgEarth::Symbology::Symbol.

Definition at line 33 of file PointSymbol.cpp.

{
    Config conf = Symbol::getConfig();
    conf.key() = "point";
    conf.addObjIfSet( "fill", _fill );
    conf.addIfSet( "size", _size );
    return conf;
}

Here is the call graph for this function:

void PointSymbol::mergeConfig ( const Config conf) [virtual]

Definition at line 43 of file PointSymbol.cpp.

{
    conf.getObjIfSet( "fill", _fill );
    conf.getIfSet( "size", _size );
}

Here is the call graph for this function:

const optional<float>& osgEarth::Symbology::PointSymbol::size ( ) const [inline]

Definition at line 41 of file PointSymbol.

{ return _size; }
optional<float>& osgEarth::Symbology::PointSymbol::size ( ) [inline]

Point size property

Definition at line 40 of file PointSymbol.

{ return _size; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 48 of file PointSymbol.

Definition at line 49 of file PointSymbol.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines