Updraft
1.0
Open source glider flight visualisation tool.
|
Map layer that contains an osg::Node with geometry. More...
#include <nodemaplayer.h>
Public Member Functions | |
NodeMapLayer (const QString &title, osg::Node *node) | |
~NodeMapLayer () | |
void | setVisibility (bool value) |
Displays/hides the map layer by setting/hiding the node. | |
bool | isVisible () |
Tells whether the node is currently visible. | |
Private Member Functions | |
void | addToScene (MapLayerGroup *group) |
Add the map layer to the osg group of the map layer group. | |
void | removeFromScene (MapLayerGroup *group) |
Remove the layer from the osg group of the map layer group. | |
Private Attributes | |
osg::ref_ptr< osg::Node > | node |
The node that contains the map layer geometry. |
Map layer that contains an osg::Node with geometry.
Updraft::Core::NodeMapLayer::NodeMapLayer | ( | const QString & | title, |
osg::Node * | node | ||
) |
void Updraft::Core::NodeMapLayer::addToScene | ( | MapLayerGroup * | group | ) | [private, virtual] |
Add the map layer to the osg group of the map layer group.
Implements Updraft::MapLayerInterface.
bool Updraft::Core::NodeMapLayer::isVisible | ( | ) | [virtual] |
Tells whether the node is currently visible.
Implements Updraft::MapLayerInterface.
void Updraft::Core::NodeMapLayer::removeFromScene | ( | MapLayerGroup * | group | ) | [private, virtual] |
Remove the layer from the osg group of the map layer group.
Implements Updraft::MapLayerInterface.
void Updraft::Core::NodeMapLayer::setVisibility | ( | bool | value | ) | [virtual] |
Displays/hides the map layer by setting/hiding the node.
value | Whether the node should be visible. |
Implements Updraft::Core::MapLayer.
osg::ref_ptr<osg::Node> Updraft::Core::NodeMapLayer::node [private] |
The node that contains the map layer geometry.