ACF $AcfVersion:0$
CColorSchemaBase.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtGui/QPainter>
7
8
9// ACF includes
10#include <iview/IColorSchema.h>
11
12
13namespace iview
14{
15
16
18{
19public:
20 enum
21 {
25 };
26
27 // reimplemented (iview::IColorSchema)
28 virtual void Assign(const IColorSchema& colorSchema) override;
29 virtual void DrawTicker(QPainter& drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const override;
30 virtual const i2d::CRect& GetTickerBox(IColorSchema::TickerType tickerType) const override;
31 virtual int GetLogicalLineWidth() const override;
32
33protected:
34 // static attributes
35 static i2d::CRect s_tickerDrawBoxes[(int)TT_LAST + (int)1];
37};
38
39
40// public inline methods
41
42// reimplemented (iview::IColorSchema)
43
45{
46 return LOGICAL_LINE_WIDTH;
47}
48
49
50} // namespace iview
51
52
53
54
55
Simple rectangle with integer bounds.
Definition CRect.h:22
Index implementation for addressing elements in 2D-space.
Definition CIndex2d.h:21
static i2d::CRect s_tickerDrawBoxes[(int) TT_LAST+(int) 1]
static i2d::CRect s_tickerBoundingBoxes[(int) TT_LAST+(int) 1]
virtual void Assign(const IColorSchema &colorSchema) override
virtual int GetLogicalLineWidth() const override
Return width of line.
virtual void DrawTicker(QPainter &drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const override
Draw a ticker.
virtual const i2d::CRect & GetTickerBox(IColorSchema::TickerType tickerType) const override
Get bounding box of ticker in position (0, 0).
Defines set of standard pens, brushes and simple management of unions.
TickerType
Defines a type of ticker.
In this library is defined 2D view concept and standard visualisation objects.