#include <ChartLineSerie.h>
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. |
The data points are connected by line segments. The curve can also be smoothed.
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.
screenPoint | The screen point to test | |
uIndex | If the point is close to a specific point of the series, its index is stored here. |
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.