Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Core::NodeMapLayer Class Reference

Map layer that contains an osg::Node with geometry. More...

#include <nodemaplayer.h>

Inheritance diagram for Updraft::Core::NodeMapLayer:
Collaboration diagram for Updraft::Core::NodeMapLayer:

List of all members.

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.

Detailed Description

Map layer that contains an osg::Node with geometry.


Constructor & Destructor Documentation

Updraft::Core::NodeMapLayer::NodeMapLayer ( const QString &  title,
osg::Node *  node 
)

Member Function Documentation

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.

Tells whether the node is currently visible.

Returns:
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.

Parameters:
valueWhether the node should be visible.

Implements Updraft::Core::MapLayer.


Member Data Documentation

osg::ref_ptr<osg::Node> Updraft::Core::NodeMapLayer::node [private]

The node that contains the map layer geometry.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines