Updraft
1.0
Open source glider flight visualisation tool.
|
Class storing a turn-points layer. More...
#include <tplayer.h>
Public Member Functions | |
TPLayer (bool displayed_, osgEarth::Util::ObjectPlacer *objectPlacer_, const TPFile *file_, TurnPoints *parent_, const QVector< SettingInterface * > &settings) | |
virtual | ~TPLayer () |
osg::Node * | getNode () const |
osg::Node * | getLblNode () const |
bool | isDisplayed () |
void | display (bool displayed_) |
Changes display state. | |
Private Member Functions | |
osg::Geometry * | createGeometry (qreal scale) |
Creates osg::Geometry for turn-point billboard. | |
osg::Geode * | createGeode (qreal scale, bool isAirfield) |
Creates osg::Geometry for turn-point billboard. | |
osg::AutoTransform * | createAutoTransform (const osg::Matrix &matrix, osg::Geode *geode) |
Creates osg::AutoTransform for turn-point billboard. | |
osg::Node * | createAutoScale (const osg::Vec3 &position, qreal characterSize, const QString &message, qreal minScale=0.0, qreal maxScale=FLT_MAX) |
Autoscale creates the osg::Node Label. | |
Private Attributes | |
osg::Group * | group |
osg Node representing this turn-points layer | |
osgEarth::Util::ObjectPlacer * | objectPlacer |
osgEarth placer for placing objects to specific geo.coordinates | |
const TPFile * | file |
bool | displayed |
TurnPoints * | parent |
QList< TPMapObject * > | mapObjects |
qreal | labelMinScale |
Text min/max visibility setting. | |
qreal | labelMaxScale |
qreal | labelDrawDist |
Labels display distance from camera. | |
qreal | lblSize |
Label font size. |
Class storing a turn-points layer.
Updraft::TPLayer::TPLayer | ( | bool | displayed_, |
osgEarth::Util::ObjectPlacer * | objectPlacer_, | ||
const TPFile * | file_, | ||
TurnPoints * | parent_, | ||
const QVector< SettingInterface * > & | settings | ||
) |
Updraft::TPLayer::~TPLayer | ( | ) | [virtual] |
osg::Node * Updraft::TPLayer::createAutoScale | ( | const osg::Vec3 & | position, |
qreal | characterSize, | ||
const QString & | message, | ||
qreal | minScale = 0.0 , |
||
qreal | maxScale = FLT_MAX |
||
) | [private] |
Autoscale creates the osg::Node Label.
osg::AutoTransform * Updraft::TPLayer::createAutoTransform | ( | const osg::Matrix & | matrix, |
osg::Geode * | geode | ||
) | [private] |
Creates osg::AutoTransform for turn-point billboard.
This function is called for each TP.
matrix | transformation of a TP |
geode | node used for object visualization |
osg::Geode * Updraft::TPLayer::createGeode | ( | qreal | scale, |
bool | isAirfield | ||
) | [private] |
Creates osg::Geometry for turn-point billboard.
scale | relative size of the node. |
isAirfield | Whether the turn-point is an air-field |
osg::Geometry * Updraft::TPLayer::createGeometry | ( | qreal | scale | ) | [private] |
Creates osg::Geometry for turn-point billboard.
scale | relative size of the node. |
void Updraft::TPLayer::display | ( | bool | displayed_ | ) |
Changes display state.
displayed_ | new value of a display state |
osg::Node* Updraft::TPLayer::getLblNode | ( | ) | const |
osg::Node * Updraft::TPLayer::getNode | ( | ) | const |
bool Updraft::TPLayer::isDisplayed | ( | ) |
bool Updraft::TPLayer::displayed [private] |
const TPFile* Updraft::TPLayer::file [private] |
osg::Group* Updraft::TPLayer::group [private] |
osg Node representing this turn-points layer
qreal Updraft::TPLayer::labelDrawDist [private] |
Labels display distance from camera.
This value is the distance that LOD starts to display the labels. Reasonable value : 4000 (default)
qreal Updraft::TPLayer::labelMaxScale [private] |
qreal Updraft::TPLayer::labelMinScale [private] |
Text min/max visibility setting.
qreal Updraft::TPLayer::lblSize [private] |
Label font size.
QList<TPMapObject*> Updraft::TPLayer::mapObjects [private] |
osgEarth::Util::ObjectPlacer* Updraft::TPLayer::objectPlacer [private] |
osgEarth placer for placing objects to specific geo.coordinates
TurnPoints* Updraft::TPLayer::parent [private] |