gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.47k stars 772 forks source link

A question about node or feature's edit #2499

Closed shaozhihua closed 4 months ago

shaozhihua commented 4 months ago

I have browsed the official application of OSGEARTH and some projects from others. I found that everyone use "CircleNodeEditor" or "osgEarth::Annotation::FeatureEditor" class to implment the editing of shapes or features. but my osgearth is very new,the version is 3.6.5,and I can't find these two classes, when I read the application tests,file : osgearth_annotation.cpp screenshot which is deleted the CircleNodeEditor, so my question is how can I add editor to the node like CircleNode 、 ellipseNode、RectangleNode e.g; expect for some replies ,thanks very much!

gwaldron commented 4 months ago

You are right, they were deprecated and removed. You are welcome to grab the old code and use it in your own projects. Good luck!

shaozhihua commented 4 months ago

so I can't add editable node to them by the latest osgearth code? isn't any solution? I thought there is some new way to instead it before delete it...I think i am wrong..

gwaldron commented 4 months ago

The solution is to take the old editors and update them to use in your own application. There are no annotation editor classes in the current osgEarth.

shaozhihua commented 4 months ago

Ok,I will find the "XXXeditor" classes code in early osgearth version,and put them into my project. thank you very much! Gwaldron. good luck to me.I hope it works.