osgEarth 2.1.1
Public Member Functions

osgEarth::Util::Annotation::EllipseNode Class Reference

Inheritance diagram for osgEarth::Util::Annotation::EllipseNode:
Collaboration diagram for osgEarth::Util::Annotation::EllipseNode:

List of all members.

Public Member Functions

 EllipseNode (MapNode *mapNode, const osg::Vec3d &center, const Linear &radiusMajor, const Linear &radiusMinor, const Angular &rotationAngle, const Style &style, bool draped=true, unsigned numSegments=0)

Detailed Description

Renders a circle that can drape on a MapNode terrain.

Definition at line 208 of file Annotation.


Constructor & Destructor Documentation

EllipseNode::EllipseNode ( MapNode mapNode,
const osg::Vec3d &  center,
const Linear radiusMajor,
const Linear radiusMinor,
const Angular rotationAngle,
const Style style,
bool  draped = true,
unsigned  numSegments = 0 
)

Definition at line 217 of file Annotation.cpp.

                                                        :
FeatureNode( mapNode, 0L, draped )
{
    if ( mapNode )
    {
        GeometryFactory factory( mapNode->getMap()->getProfile()->getSRS() );
        Geometry* geom = factory.createEllipse(center, radiusMajor, radiusMinor, rotationAngle, numSegments);
        if ( geom )
        {
            Feature* feature = new Feature( geom, style );
            feature->geoInterp() = GEOINTERP_GREAT_CIRCLE;
            setFeature( feature );
        }
    }
}

Here is the call graph for this function:


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