osgEarth 2.1.1
|
Public Member Functions | |
UpdateLabelCallback (LabelControl *label, ImageOverlay *overlay, ImageOverlay::ControlPoint controlPoint) | |
virtual void | onOverlayChanged () |
Public Attributes | |
osg::ref_ptr< LabelControl > | _label |
osg::ref_ptr< ImageOverlay > | _overlay |
ImageOverlay::ControlPoint | _controlPoint |
Definition at line 145 of file osgearth_imageoverlay.cpp.
UpdateLabelCallback::UpdateLabelCallback | ( | LabelControl * | label, |
ImageOverlay * | overlay, | ||
ImageOverlay::ControlPoint | controlPoint | ||
) | [inline] |
Definition at line 147 of file osgearth_imageoverlay.cpp.
: _label(label), _overlay(overlay), _controlPoint(controlPoint) { }
virtual void UpdateLabelCallback::onOverlayChanged | ( | ) | [inline, virtual] |
Reimplemented from osgEarth::Util::ImageOverlay::ImageOverlayCallback.
Definition at line 155 of file osgearth_imageoverlay.cpp.
{ osg::Vec2d location = _overlay->getControlPoint( _controlPoint ); std::stringstream ss; ss << location.y() << ", " << location.x(); _label->setText( ss.str() ); }
Definition at line 166 of file osgearth_imageoverlay.cpp.
osg::ref_ptr< LabelControl > UpdateLabelCallback::_label |
Definition at line 164 of file osgearth_imageoverlay.cpp.
osg::ref_ptr< ImageOverlay > UpdateLabelCallback::_overlay |
Definition at line 165 of file osgearth_imageoverlay.cpp.