CChartPointsSerie Class Reference

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

#include <ChartPointsSerie.h>

Inheritance diagram for CChartPointsSerie:

CChartXYSerie CChartSerieBase< SChartXYPoint > CChartSerie

List of all members.

Public Types

enum  PointType { ptEllipse = 0, ptRectangle = 1, ptTriangle = 2 }
 The different point shapes.

Public Member Functions

void SetPointSize (int XSize, int YSize)
 Sets the width and height of each points.
void GetPointSize (int &XSize, int &YSize) const
 Retrieves the width and height of each points.
void SetPointType (PointType Type)
 Sets the points shape.
PointType GetPointType () const
 Returns the points shape.
void SetBorderColor (COLORREF Color)
 Sets the border color of the points.
COLORREF GetBorderColor ()
 Returns the border color of the points.
 CChartPointsSerie (CChartCtrl *pParent)
 Constructor.
virtual ~CChartPointsSerie ()
 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 points series.

The data points are simply displayed as independant points.


Member Function Documentation

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

Check whether a screen point is on the series.

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.


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