SRGraphPosition::CalcDisplayPosition
voidSRGraphPosition::CalcDisplayPosition(SRGDisplayBase *pD)
Calculates the display values at the m_Point position
Defined in: SRGPosn.cpp
Parameters
pD
Pointer to the SRGDisplayBase object to test
Remarks
Depending on the type of display and the style of the data, this routine will calculate the data value of the mouse position in relation to the axes and the group and index being displayed at that point.Results are stored in the position class by initializing the relevant values and flagging their validity in the m_dwFlags member.
Tests can be made on the m_dwFlags member using the provided methods.
Data, group, or index values can be retrieved by using the access methods.
Different graph styles will lead to different results. For example, a graph style of CX_GRAPH_LINE will provide an index and the data value under the point as calculated from the graph scale. The CX_GRAPH_VBAR style will provide index, group, and Y value. Scatter graphs will provide X and Y values.