|
libosmscout 0.1
|
#include <LabelLayouterHelper.h>
Public Member Functions | |
| void | AddMask (const ScreenRectMask &mask) |
| bool | HasCollision (const ScreenRectMask &mask) const |
| void | Reset (size_t width, size_t height) |
| Reset the mask for a frame: clear all marks and adopt the given viewport size. | |
| ScreenMask ()=default | |
| ScreenMask (size_t width, size_t height) | |
|
default |
| osmscout::ScreenMask::ScreenMask | ( | size_t | width, |
| size_t | height | ||
| ) |
| void osmscout::ScreenMask::AddMask | ( | const ScreenRectMask & | mask | ) |
References osmscout::ScreenRectMask::GetCell(), osmscout::ScreenRectMask::GetFirstCell(), osmscout::ScreenRectMask::GetFirstRow(), osmscout::ScreenRectMask::GetLastCell(), and osmscout::ScreenRectMask::GetLastRow().
Referenced by osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::ProcessLabelContourLabel(), and osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::ProcessLabelInstance().
| bool osmscout::ScreenMask::HasCollision | ( | const ScreenRectMask & | mask | ) | const |
References osmscout::ScreenRectMask::GetCell(), osmscout::ScreenRectMask::GetFirstCell(), osmscout::ScreenRectMask::GetFirstRow(), osmscout::ScreenRectMask::GetLastCell(), and osmscout::ScreenRectMask::GetLastRow().
Referenced by osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::ProcessLabelContourLabel(), and osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::ProcessLabelInstance().
| void osmscout::ScreenMask::Reset | ( | size_t | width, |
| size_t | height | ||
| ) |
Reset the mask for a frame: clear all marks and adopt the given viewport size.
The bitmask is reused, so a repeated frame of the same size does not allocate it again.
Referenced by osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::Reset().