I have two questions.
First, I want to draw a 2D line on the center of the screen independent from Spatial Reference.
Do you have any example source code?
Second, to do basic things like my first question above, is there any tutorial explaining the osgearth SDK( member classes and functions )?
I could not find anything except this short documentation on the link http://docs.osgearth.org/en/latest/
Okay, drawing a 2D line is an openscenegraph issue. What about positioning it on the center of the osgEarth display? I dont want to place my osg::Node object to any lat/lon/altitude. I want to position my osg::Node display's center.
osg::ref_ptr<osg::Node> nn = createSceneGraph();//this function draws me a shape.
osgEarth::ModelLayer* m1 = new osgEarth::ModelLayer( "model1", nn.get() );
GeoTransform* geo = new GeoTransform();
geo->addChild( nn.get() );
geo->setPosition( osgEarth::GeoPoint( mapNode->getMapSRS(), 39.0, 32.0, 1200.0, ALTMODE_RELATIVE ) );
mapNode->addChild( geo );