MHIDLA Class Reference

Object for displaying Dynamic Line Art. More...

#include <mhi.h>

Inheritance diagram for MHIDLA:
MHDLADisplay

List of all members.

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

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.

Detailed Description

Object for displaying Dynamic Line Art.

Definition at line 260 of file mhi.h.


Constructor & Destructor Documentation

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

Definition at line 263 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 1171 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 272 of file mhi.h.

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

Implements MHDLADisplay.

Definition at line 278 of file mhi.h.

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

Implements MHDLADisplay.

Definition at line 279 of file mhi.h.

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

Implements MHDLADisplay.

Definition at line 280 of file mhi.h.

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]

Implements MHDLADisplay.

Definition at line 1219 of file mhi.cpp.

Referenced by DrawPoly().

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

Implements MHDLADisplay.

Definition at line 1314 of file mhi.cpp.

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

Implements MHDLADisplay.

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

void MHIDLA::DrawPoly ( bool  isFilled,
int  nPoints,
const int *  xArray,
const int *  yArray 
) [virtual]

Definition at line 1364 of file mhi.cpp.

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().


Member Data Documentation

Definition at line 298 of file mhi.h.

Referenced by Draw().

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]

Width of the drawing.

Definition at line 300 of file mhi.h.

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

int MHIDLA::m_height [protected]

Height of the drawing.

Definition at line 301 of file mhi.h.

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

bool MHIDLA::m_boxed [protected]

Does it have a border?

Definition at line 302 of file mhi.h.

Referenced by Draw().

Line colour for the background.

Definition at line 303 of file mhi.h.

Referenced by Draw().

Fill colour for the background.

Definition at line 304 of file mhi.h.

Referenced by Draw().

Current line colour.

Definition at line 305 of file mhi.h.

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

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:10 2012 for MythTV by  doxygen 1.6.3