MHIDLA Class Reference

#include <mhi.h>

Inheritance diagram for MHIDLA:

MHDLADisplay

List of all members.


Detailed Description

Object for displaying Dynamic Line Art.

Definition at line 255 of file 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, const QPointArray &points)

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

MHIContextm_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.

Constructor & Destructor Documentation

MHIDLA::MHIDLA ( MHIContext parent,
bool  isBoxed,
MHRgba  lineColour,
MHRgba  fillColour 
) [inline]

Definition at line 258 of file mhi.h.


Member Function Documentation

void MHIDLA::Draw ( int  x,
int  y 
) [virtual]

Draw the completed drawing onto the display.

Implements MHDLADisplay.

Definition at line 1100 of file mhi.cpp.

virtual void MHIDLA::SetSize ( int  width,
int  height 
) [inline, virtual]

Set the box size. Also clears the drawing.

Implements MHDLADisplay.

Definition at line 265 of file mhi.h.

virtual void MHIDLA::SetLineSize ( int  width  )  [inline, virtual]

Implements MHDLADisplay.

Definition at line 271 of file mhi.h.

virtual void MHIDLA::SetLineColour ( MHRgba  colour  )  [inline, virtual]

Implements MHDLADisplay.

Definition at line 272 of file mhi.h.

virtual void MHIDLA::SetFillColour ( MHRgba  colour  )  [inline, virtual]

Implements MHDLADisplay.

Definition at line 273 of file mhi.h.

void MHIDLA::Clear ( void   )  [virtual]

Clear the drawing.

Implements MHDLADisplay.

Definition at line 1088 of file mhi.cpp.

Referenced by SetSize().

void MHIDLA::DrawLine ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Implements MHDLADisplay.

Definition at line 1148 of file mhi.cpp.

Referenced by DrawPoly().

void MHIDLA::DrawBorderedRectangle ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Implements MHDLADisplay.

Definition at line 1243 of file mhi.cpp.

void MHIDLA::DrawOval ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Implements MHDLADisplay.

Definition at line 1275 of file mhi.cpp.

void MHIDLA::DrawArcSector ( int  x,
int  y,
int  width,
int  height,
int  start,
int  arc,
bool  isSector 
) [virtual]

Implements MHDLADisplay.

Definition at line 1284 of file mhi.cpp.

void MHIDLA::DrawPoly ( bool  isFilled,
const QPointArray &  points 
) [virtual]

Implements MHDLADisplay.

Definition at line 1309 of file mhi.cpp.

Referenced by DrawArcSector(), and DrawOval().

void MHIDLA::DrawRect ( int  x,
int  y,
int  width,
int  height,
MHRgba  colour 
) [protected]

Definition at line 1047 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 1170 of file mhi.cpp.

Referenced by DrawLine().


Member Data Documentation

Definition at line 291 of file mhi.h.

Referenced by Draw().

QImage MHIDLA::m_image [protected]

Definition at line 292 of file mhi.h.

Referenced by Clear(), Draw(), DrawLineSub(), DrawPoly(), and DrawRect().

int MHIDLA::m_width [protected]

Width of the drawing.

Definition at line 293 of file mhi.h.

Referenced by Clear(), Draw(), DrawLineSub(), and SetSize().

int MHIDLA::m_height [protected]

Height of the drawing.

Definition at line 294 of file mhi.h.

Referenced by Clear(), Draw(), DrawLineSub(), and SetSize().

bool MHIDLA::m_boxed [protected]

Does it have a border?

Definition at line 295 of file mhi.h.

Referenced by Draw().

Line colour for the background.

Definition at line 296 of file mhi.h.

Referenced by Draw().

Fill colour for the background.

Definition at line 297 of file mhi.h.

Referenced by Draw().

Current line colour.

Definition at line 298 of file mhi.h.

Referenced by DrawBorderedRectangle(), DrawLineSub(), and SetLineColour().

Current fill colour.

Definition at line 299 of file mhi.h.

Referenced by DrawBorderedRectangle(), DrawPoly(), and SetFillColour().

int MHIDLA::m_lineWidth [protected]

Current line width.

Definition at line 300 of file mhi.h.

Referenced by Draw(), DrawBorderedRectangle(), DrawLineSub(), and SetLineSize().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:05 2010 for MythTV by  doxygen 1.5.5