CChartLineSerie Class Reference

Specialization of a CChartSerie to display a line series. More...

#include <ChartLineSerie.h>

Inheritance diagram for CChartLineSerie:

CChartXYSerie CChartSerieBase< SChartXYPoint > CChartSerie

List of all members.

Public Member Functions

int GetPenStyle () const
 Returns the pen style (plain, dashed, dotted, ...).
void SetPenStyle (int NewStyle)
 Sets the pen style (plain, dashed, dotted, ...).
int GetWidth () const
 Returns the pen width.
void SetWidth (int PenWidth)
 Sets the pen width.
void SetSmooth (bool bSmooth)
 Enables the smoothing of the curve (slower).
 CChartLineSerie (CChartCtrl *pParent)
 Constructor.
virtual ~CChartLineSerie ()
 Destructor.
bool IsPointOnSerie (const CPoint &screenPoint, unsigned &uIndex) const
 Check whether a screen point is on the series.


Detailed Description

Specialization of a CChartSerie to display a line series.

The data points are connected by line segments. The curve can also be smoothed.


Member Function Documentation

int CChartLineSerie::GetPenStyle (  )  const [inline]

Returns the pen style (plain, dashed, dotted, ...).

For a list of pen styles available, see the CreatePen function in MSDN.

bool CChartLineSerie::IsPointOnSerie ( const CPoint &  screenPoint,
unsigned &  uIndex 
) const [virtual]

Check whether a screen point is on the series.

This function returns true if the screen point is close to a line segment. If the screen point is also close to a specific point of the series, the index of the point is stored in the uIndex parameter. Otherwise, this parameter contains INVALID_POINT.

Parameters:
screenPoint The screen point to test
uIndex If the point is close to a specific point of the series, its index is stored here.
Returns:
true if the point is on the series

Implements CChartSerie.

void CChartLineSerie::SetPenStyle ( int  NewStyle  ) 

Sets the pen style (plain, dashed, dotted, ...).

For a list of pen styles available, see the CreatePen function in MSDN.


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

Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by  doxygen 1.5.8