CColorSchemaBase.h
Go to the documentation of this file.
1 #ifndef iview_CColorSchemaBase_included
2 #define iview_CColorSchemaBase_included
3 
4 
5 // Qt includes
6 #include <QtGui/QPainter>
7 
8 
9 // ACF includes
10 #include <iview/IColorSchema.h>
11 
12 
13 namespace iview
14 {
15 
16 
18 {
19 public:
20  enum
21  {
25  };
26 
27  // reimplemented (iview::IColorSchema)
28  virtual void Assign(const IColorSchema& colorSchema);
29  virtual void DrawTicker(QPainter& drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const;
30  virtual const i2d::CRect& GetTickerBox(IColorSchema::TickerType tickerType) const;
31  virtual int GetLogicalLineWidth() const;
32 
33 protected:
34  // static attributes
35  static i2d::CRect s_tickerDrawBoxes[(int)TT_LAST + (int)1];
36  static i2d::CRect s_tickerBoundingBoxes[(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 #endif // !iview_CColorSchemaBase_included
54 
55 
56 
virtual const i2d::CRect & GetTickerBox(IColorSchema::TickerType tickerType) const
Get bounding box of ticker in position (0, 0).
Simple rectangle with integer bounds.
Definition: CRect.h:21
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
virtual void DrawTicker(QPainter &drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const
Draw a ticker.
virtual int GetLogicalLineWidth() const
Return width of line.
Defines set of standard pens, brushes and simple management of unions.
Definition: IColorSchema.h:28
virtual void Assign(const IColorSchema &colorSchema)
static i2d::CRect s_tickerBoundingBoxes[(int) TT_LAST+(int) 1]
static i2d::CRect s_tickerDrawBoxes[(int) TT_LAST+(int) 1]
TickerType
Defines a type of ticker.
Definition: IColorSchema.h:78

© 2007-2017 Witold Gantzke and Kirill Lepskiy