Updraft
1.0
Open source glider flight visualisation tool.
|
00001 #ifndef UPDRAFT_SRC_CORE_NODEMAPLAYER_H_ 00002 #define UPDRAFT_SRC_CORE_NODEMAPLAYER_H_ 00003 00004 #include <osg/Node> 00005 #include <osg/ref_ptr> 00006 00007 #include "maplayer.h" 00008 00009 00010 namespace Updraft { 00011 namespace Core { 00012 00014 class NodeMapLayer: public MapLayer { 00015 Q_OBJECT 00016 00017 public: 00018 NodeMapLayer(const QString &title, osg::Node* node); 00019 ~NodeMapLayer(); 00020 00023 void setVisibility(bool value); 00024 00027 bool isVisible(); 00028 00029 private: 00031 osg::ref_ptr<osg::Node> node; 00032 00033 void addToScene(MapLayerGroup *group); 00034 void removeFromScene(MapLayerGroup *group); 00035 }; 00036 00037 } // End namespace Core 00038 } // End namespace Updraft 00039 00040 #endif // UPDRAFT_SRC_CORE_NODEMAPLAYER_H_ 00041