|
osgEarth 2.1.1
|
Inheritance diagram for osgEarth::Util::Annotation::CircleNode:
Collaboration diagram for osgEarth::Util::Annotation::CircleNode:Public Member Functions | |
| CircleNode (MapNode *mapNode, const osg::Vec3d ¢er, const Linear &radius, const Style &style, bool draped=true, unsigned numSegments=0) | |
Renders a circle that can drape on a MapNode terrain.
Definition at line 193 of file Annotation.
| 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:
1.7.3