Click here to Skip to main content
15,885,244 members
Articles / Desktop Programming / MFC

High-speed Charting Control

Rate me:
Please Sign up or sign in to vote.
4.95/5 (327 votes)
13 Jul 2010CPOL35 min read 4.2M   100.5K   787  
A flexible charting control to display 2D data
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ChartDemo: CChartDragLineCursor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>CChartDragLineCursor Class Reference</h1><!-- doxytag: class="CChartDragLineCursor" --><!-- doxytag: inherits="CChartCursor" -->Specialization of a <a class="el" href="class_c_chart_cursor.html" title="Base class for cursors which can be added to the chart control.">CChartCursor</a> class for a dragline cursor.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="_chart_drag_line_cursor_8h-source.html">ChartDragLineCursor.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for CChartDragLineCursor:</div>
<div class="dynsection">

<p><center><img src="class_c_chart_drag_line_cursor.png" usemap="#CChartDragLineCursor_map" border="0" alt=""></center>
<map name="CChartDragLineCursor_map">
<area href="class_c_chart_cursor.html" alt="CChartCursor" shape="rect" coords="0,0,143,24">
</map>
</div>

<p>
<a href="class_c_chart_drag_line_cursor-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="391dcf99ce816da36b444a9890615f8c"></a><!-- doxytag: member="CChartDragLineCursor::SetPosition" ref="391dcf99ce816da36b444a9890615f8c" args="(double dPosition)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_drag_line_cursor.html#391dcf99ce816da36b444a9890615f8c">SetPosition</a> (double dPosition)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the position (by value) of the cursor. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c844f049640ccc6d73d4cb21b6ae8c63"></a><!-- doxytag: member="CChartDragLineCursor::OnMouseMove" ref="c844f049640ccc6d73d4cb21b6ae8c63" args="(CPoint mousePoint)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_drag_line_cursor.html#c844f049640ccc6d73d4cb21b6ae8c63">OnMouseMove</a> (CPoint mousePoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the mouse is moved over the plot area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b397fe1c95e3b5f2b901f9728d3a58d"></a><!-- doxytag: member="CChartDragLineCursor::OnMouseButtonDown" ref="1b397fe1c95e3b5f2b901f9728d3a58d" args="(CPoint mousePoint)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_drag_line_cursor.html#1b397fe1c95e3b5f2b901f9728d3a58d">OnMouseButtonDown</a> (CPoint mousePoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the mouse button is pressed over the plot area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e4b7d1c533b38e06186305d4a28d1a9c"></a><!-- doxytag: member="CChartDragLineCursor::OnMouseButtonUp" ref="e4b7d1c533b38e06186305d4a28d1a9c" args="(CPoint mousePoint)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_drag_line_cursor.html#e4b7d1c533b38e06186305d4a28d1a9c">OnMouseButtonUp</a> (CPoint mousePoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the mouse button is released over the plot area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="78d054565c8095f2c541f8f6d0e9bcaf"></a><!-- doxytag: member="CChartDragLineCursor::Draw" ref="78d054565c8095f2c541f8f6d0e9bcaf" args="(CDC *pDC)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_drag_line_cursor.html#78d054565c8095f2c541f8f6d0e9bcaf">Draw</a> (CDC *pDC)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draw the cursor. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Specialization of a <a class="el" href="class_c_chart_cursor.html" title="Base class for cursors which can be added to the chart control.">CChartCursor</a> class for a dragline cursor. 
<p>
A dragline cursor is a simple vertical or horizontal line associated with a specific axis. The line can be moved if the user clicks on the line (and keeps the button pressed) and moves the mouse. Once the mouse button is released, the line doesn't move anymore.<br>
 To create a dragline cursor, call the CreateDragLineCursor from the <a class="el" href="class_c_chart_ctrl.html" title="The main chart control class.">CChartCtrl</a> class. <hr>The documentation for this class was generated from the following files:<ul>
<li>E:/Sources Misc/ChartDemo/ChartCtrl/<a class="el" href="_chart_drag_line_cursor_8h-source.html">ChartDragLineCursor.h</a><li>E:/Sources Misc/ChartDemo/ChartCtrl/ChartDragLineCursor.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Belgium Belgium
I am a 29 years old guy and I live with my girlfriend in Hoegaarden, little city from Belgium well known for its white beer Smile | :) .
I studied as an industrial engineer in electronics but I oriented myself more towards software development when I started to work.
Currently I am working in a research centre in mechatronica. I mainly develop in C++ but I also do a bit of Java.
When I have so spare time, I like to read (mainly fantasy) and play electric guitar.

Comments and Discussions