#include <ChartSurfaceSerie.h>
Public Types | |
enum | FillStyle { fsSolid = 0, fsHatchDownDiag, fsHatchUpDiag, fsHatchCross, fsHatchDiagCross, fsHatchHorizontal, fsHatchVertical } |
The different fill styles. | |
Public Member Functions | |
CChartSurfaceSerie (CChartCtrl *pParent) | |
Constructor. | |
virtual | ~CChartSurfaceSerie () |
Destructor. | |
void | SetFillStyle (FillStyle NewStyle) |
Sets the fill style. | |
FillStyle | GetFillStyle () const |
Returns the fill style. | |
void | SetHorizontal (bool bHoriz) |
Sets the series in horizontal or vertical mode. | |
bool | GetHorizontal () const |
Returns true if the series is in horizontal mode. | |
bool | IsPointOnSerie (const CPoint &screenPoint, unsigned &uIndex) const |
Check whether a screen point is on the series. | |
void | SetSeriesOrdering (PointsOrdering) |
Specifies how the points should be ordered in the series. |
A surface can be horizontal (default) or vertical: this defines how the filling of the surface is done. For a horizontal surface, the filling is done between the points and the associated horizontal axis and for a vertical surface, the filling is done between the points and the associated vertical axis. The series can be associated with a secondary axis. For example, if the surface series is horizontal and is associated with the top axis (secondary axis), the filling is done between the top axis and the points.
bool CChartSurfaceSerie::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 on the surface. 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 CChartSurfaceSerie::SetHorizontal | ( | bool | bHoriz | ) |
Sets the series in horizontal or vertical mode.
If the series is in horizontal mode, the filling will be done between the data points and the horizontal axis.
void CChartSurfaceSerie::SetSeriesOrdering | ( | PointsOrdering | newOrdering | ) | [virtual] |
Specifies how the points should be ordered in the series.
This specifies if the points should be ordered on their X values, on their Y values or not ordered (kept in order they are added to the control). Ordering can improve performances a lot but makes it impossible to draw some specific curves (for instance, drawing an ellipse is only possible if no ordering is set).
Reimplemented from CChartSerieBase< SChartXYPoint >.