osgEarth 2.1.1
Public Member Functions

osgEarth::Util::Annotation::CircleNode Class Reference

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

List of all members.

Public Member Functions

 CircleNode (MapNode *mapNode, const osg::Vec3d &center, const Linear &radius, const Style &style, bool draped=true, unsigned numSegments=0)

Detailed Description

Renders a circle that can drape on a MapNode terrain.

Definition at line 193 of file Annotation.


Constructor & Destructor Documentation

CircleNode::CircleNode ( MapNode mapNode,
const osg::Vec3d &  center,
const Linear radius,
const Style style,
bool  draped = true,
unsigned  numSegments = 0 
)

Definition at line 191 of file Annotation.cpp.

                                                            :
FeatureNode( mapNode, 0L, draped )
{
    if ( mapNode )
    {
        const SpatialReference* targetSRS = mapNode->getMap()->getProfile()->getSRS();

        GeometryFactory factory( targetSRS );

        Geometry* geom = factory.createCircle(center, radius, 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