CChartSurfaceSerie Class Reference

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

#include <ChartSurfaceSerie.h>

Inheritance diagram for CChartSurfaceSerie:

CChartXYSerie CChartSerieBase< SChartXYPoint > CChartSerie

List of all members.

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.


Detailed Description

Specialization of a CChartSerie to display a surface 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.


Member Function Documentation

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.

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


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