Object for displaying Dynamic Line Art. More...
#include <mhi.h>
Public Member Functions | |
| MHIDLA (MHIContext *parent, bool isBoxed, MHRgba lineColour, MHRgba fillColour) | |
| virtual void | Draw (int x, int y) |
| Draw the completed drawing onto the display. | |
| virtual void | SetSize (int width, int height) |
| Set the box size. Also clears the drawing. | |
| virtual void | SetLineSize (int width) |
| virtual void | SetLineColour (MHRgba colour) |
| virtual void | SetFillColour (MHRgba colour) |
| virtual void | Clear (void) |
| Clear the drawing. | |
| virtual void | DrawLine (int x1, int y1, int x2, int y2) |
| virtual void | DrawBorderedRectangle (int x, int y, int width, int height) |
| virtual void | DrawOval (int x, int y, int width, int height) |
| virtual void | DrawArcSector (int x, int y, int width, int height, int start, int arc, bool isSector) |
| virtual void | DrawPoly (bool isFilled, int nPoints, const int *xArray, const int *yArray) |
Protected Member Functions | |
| void | DrawRect (int x, int y, int width, int height, MHRgba colour) |
| void | DrawLineSub (int x1, int y1, int x2, int y2, bool swapped) |
Protected Attributes | |
| MHIContext * | m_parent |
| QImage | m_image |
| int | m_width |
| Width of the drawing. | |
| int | m_height |
| Height of the drawing. | |
| bool | m_boxed |
| Does it have a border? | |
| MHRgba | m_boxLineColour |
| Line colour for the background. | |
| MHRgba | m_boxFillColour |
| Fill colour for the background. | |
| MHRgba | m_lineColour |
| Current line colour. | |
| MHRgba | m_fillColour |
| Current fill colour. | |
| int | m_lineWidth |
| Current line width. | |
Object for displaying Dynamic Line Art.
Definition at line 260 of file mhi.h.
| MHIDLA::MHIDLA | ( | MHIContext * | parent, | |
| bool | isBoxed, | |||
| MHRgba | lineColour, | |||
| MHRgba | fillColour | |||
| ) | [inline] |
| void MHIDLA::Draw | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Draw the completed drawing onto the display.
Implements MHDLADisplay.
| virtual void MHIDLA::SetSize | ( | int | width, | |
| int | height | |||
| ) | [inline, virtual] |
Set the box size. Also clears the drawing.
Implements MHDLADisplay.
| virtual void MHIDLA::SetLineSize | ( | int | width | ) | [inline, virtual] |
Implements MHDLADisplay.
| virtual void MHIDLA::SetLineColour | ( | MHRgba | colour | ) | [inline, virtual] |
Implements MHDLADisplay.
| virtual void MHIDLA::SetFillColour | ( | MHRgba | colour | ) | [inline, virtual] |
Implements MHDLADisplay.
| void MHIDLA::Clear | ( | void | ) | [virtual] |
Clear the drawing.
Implements MHDLADisplay.
Definition at line 1159 of file mhi.cpp.
Referenced by SetSize().
| void MHIDLA::DrawLine | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) | [virtual] |
| void MHIDLA::DrawBorderedRectangle | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [virtual] |
Implements MHDLADisplay.
| void MHIDLA::DrawOval | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [virtual] |
Implements MHDLADisplay.
| void MHIDLA::DrawArcSector | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height, | |||
| int | start, | |||
| int | arc, | |||
| bool | isSector | |||
| ) | [virtual] |
Implements MHDLADisplay.
| void MHIDLA::DrawPoly | ( | bool | isFilled, | |
| int | nPoints, | |||
| const int * | xArray, | |||
| const int * | yArray | |||
| ) | [virtual] |
| void MHIDLA::DrawRect | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height, | |||
| MHRgba | colour | |||
| ) | [protected] |
Definition at line 1118 of file mhi.cpp.
Referenced by Clear(), and DrawBorderedRectangle().
| void MHIDLA::DrawLineSub | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2, | |||
| bool | swapped | |||
| ) | [protected] |
Definition at line 1241 of file mhi.cpp.
Referenced by DrawLine().
MHIContext* MHIDLA::m_parent [protected] |
QImage MHIDLA::m_image [protected] |
Definition at line 299 of file mhi.h.
Referenced by Clear(), Draw(), DrawLineSub(), DrawPoly(), and DrawRect().
int MHIDLA::m_width [protected] |
int MHIDLA::m_height [protected] |
bool MHIDLA::m_boxed [protected] |
MHRgba MHIDLA::m_boxLineColour [protected] |
MHRgba MHIDLA::m_boxFillColour [protected] |
MHRgba MHIDLA::m_lineColour [protected] |
Current line colour.
Definition at line 305 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawLineSub(), and SetLineColour().
MHRgba MHIDLA::m_fillColour [protected] |
Current fill colour.
Definition at line 306 of file mhi.h.
Referenced by DrawBorderedRectangle(), DrawPoly(), and SetFillColour().
int MHIDLA::m_lineWidth [protected] |
Current line width.
Definition at line 307 of file mhi.h.
Referenced by Draw(), DrawBorderedRectangle(), DrawLineSub(), and SetLineSize().
1.6.3