Changeset 6246 for geovis/trunk


Ignore:
Timestamp:
Apr 5, 2016 11:14:22 AM (8 years ago)
Author:
ldelgass
Message:

rename member var

Location:
geovis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.cpp

    r6245 r6246  
    495495void Renderer::initControls()
    496496{
    497     if (_hbox.valid())
    498         return;
    499     _hbox =
     497    if (_copyrightScaleBox.valid())
     498        return;
     499    _copyrightScaleBox =
    500500        new osgEarth::Util::Controls::HBox(osgEarth::Util::Controls::Control::ALIGN_RIGHT,
    501501                                           osgEarth::Util::Controls::Control::ALIGN_BOTTOM,
     
    518518    _scaleBar->setBorderColor(osg::Vec4f(0, 0, 0 ,1));
    519519    _scaleBar->setBorderWidth(1.0);
    520     _hbox->addControl(_copyrightLabel.get());
    521     _hbox->addControl(_scaleLabel.get());
    522     _hbox->addControl(_scaleBar.get());
    523     osgEarth::Util::Controls::ControlCanvas::getOrCreate(_viewer.get())->addControl(_hbox.get());
     520    _copyrightScaleBox->addControl(_copyrightLabel.get());
     521    _copyrightScaleBox->addControl(_scaleLabel.get());
     522    _copyrightScaleBox->addControl(_scaleBar.get());
     523    osgEarth::Util::Controls::ControlCanvas::getOrCreate(_viewer.get())->addControl(_copyrightScaleBox.get());
    524524    // Install an event callback to handle scale bar updates
    525525    // Can't use an update callback since that will trigger
  • geovis/trunk/Renderer.h

    r6219 r6246  
    663663    osg::ref_ptr<MouseCoordsTool> _mouseCoordsTool;
    664664    osg::ref_ptr<MouseCoordsCallback> _coordsCallback;
    665     osg::ref_ptr<osgEarth::Util::Controls::HBox> _hbox;
     665    osg::ref_ptr<osgEarth::Util::Controls::HBox> _copyrightScaleBox;
    666666    osg::ref_ptr<osgEarth::Util::Controls::LabelControl> _copyrightLabel;
    667667    osg::ref_ptr<osgEarth::Util::Controls::LabelControl> _scaleLabel;
Note: See TracChangeset for help on using the changeset viewer.