Brief description of class still missing. More...
#include <LayerLocker.h>
Public Member Functions | |
LayerLocker (GraphContentLayer *layer) | |
void | unlock () |
~LayerLocker () |
Brief description of class still missing.
Full description of class still missing
SciFigs::LayerLocker::LayerLocker | ( | GraphContentLayer * | layer | ) | [inline] |
Lock layer calling lockDelayPainting(). layer can be null.
Once a layer has been locked this is safe to edit its properties. After unlock(), any execution of the event loop may start again the painting operations. If there is no execution of the event loop, even after a unlock() or after destructor call, this is still safe to edit the layer.
References SciFigs::GraphContentLayer::lockDelayPainting().
: _layer(layer) { if(_layer) _layer->lockDelayPainting(); }
SciFigs::LayerLocker::~LayerLocker | ( | ) | [inline] |
void SciFigs::LayerLocker::unlock | ( | ) | [inline] |
Unlock layer. Compatible with unlock from destructor.
References SciFigs::GraphContentLayer::unlock().
Referenced by FKTimeWindows::setCurrentWindow(), FKTimeWindows::setParameters(), and MonoStation::AbstractTool::start().
{ if(_layer) { _layer->unlock(); _layer=0; } }