File: qwt__plot__classes_8h-source.html

package info (click to toggle)
libqwt 4.2.0-4.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 66
file content (83 lines) | stat: -rw-r--r-- 7,473 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User&apos;s Guide: qwt_plot_classes.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>qwt_plot_classes.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009 
00010 <span class="preprocessor">#ifndef QWT_PLOT_CLASSES_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_PLOT_CLASSES_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include "qwt_global.h"</span>
00014 <span class="preprocessor">#include "qwt_plot_item.h"</span>
00015 <span class="preprocessor">#include "qwt_marker.h"</span>
00016 <span class="preprocessor">#include "qwt_curve.h"</span>
00017 <span class="preprocessor">#include "qwt_grid.h"</span>
00018 
<a name="l00023"></a><a class="code" href="class_qwt_plot_curve.html">00023</a> <span class="keyword">class </span>QWT_EXPORT QwtPlotCurve: <span class="keyword">public</span> <a class="code" href="class_qwt_curve.html">QwtCurve</a>, <span class="keyword">public</span> <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>
00024 {
00025 <span class="keyword">public</span>:
<a name="l00027"></a><a class="code" href="class_qwt_plot_curve.html#a0">00027</a>     QwtPlotCurve(<a class="code" href="class_qwt_plot.html">QwtPlot</a>* parent, <span class="keyword">const</span> QString &amp;title = QString::null): 
00028         <a class="code" href="class_qwt_curve.html">QwtCurve</a>(title), 
00029         <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>(parent) 
00030     {}
00031 
<a name="l00033"></a><a class="code" href="class_qwt_plot_curve.html#a1">00033</a>     <span class="keyword">const</span> QwtPlotCurve&amp; <a class="code" href="class_qwt_curve.html#a3">operator=</a>(<span class="keyword">const</span> QwtPlotCurve &amp;c)
00034     {
00035         QwtPlotMappedItem::operator=((<span class="keyword">const</span> <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a> &amp;)c);
00036         <a class="code" href="class_qwt_curve.html#a3">QwtCurve::operator=</a>(c);
00037         <span class="keywordflow">return</span> *<span class="keyword">this</span>;
00038     } 
00039 
<a name="l00041"></a><a class="code" href="class_qwt_plot_curve.html#a2">00041</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_qwt_curve.html#b10">curveChanged</a>() { <a class="code" href="class_qwt_plot_item.html#a7">itemChanged</a>(); }
00042 };
00043 
<a name="l00047"></a><a class="code" href="class_qwt_plot_grid.html">00047</a> <span class="keyword">class </span>QWT_EXPORT QwtPlotGrid: <span class="keyword">public</span> <a class="code" href="class_qwt_grid.html">QwtGrid</a>, <span class="keyword">public</span> <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>
00048 {
00049 <span class="keyword">public</span>:
<a name="l00051"></a><a class="code" href="class_qwt_plot_grid.html#a0">00051</a>     QwtPlotGrid(<a class="code" href="class_qwt_plot.html">QwtPlot</a> *parent): 
00052         <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>(parent) {}
00053 
<a name="l00055"></a><a class="code" href="class_qwt_plot_grid.html#a1">00055</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_qwt_grid.html#b0">gridChanged</a>() { <a class="code" href="class_qwt_plot_item.html#a7">itemChanged</a>(); }
00056 };
00057 
00058 
<a name="l00062"></a><a class="code" href="class_qwt_plot_marker.html">00062</a> <span class="keyword">class </span>QWT_EXPORT QwtPlotMarker: <span class="keyword">public</span> <a class="code" href="class_qwt_marker.html">QwtMarker</a>, <span class="keyword">public</span> <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a> 
00063 {
00064 <span class="keyword">public</span>:
<a name="l00066"></a><a class="code" href="class_qwt_plot_marker.html#a0">00066</a>     QwtPlotMarker(<a class="code" href="class_qwt_plot.html">QwtPlot</a> *parent): 
00067         <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>(parent),
00068         d_xValue(0.0),
00069         d_yValue(0.0)
00070     {}
00071 
<a name="l00073"></a><a class="code" href="class_qwt_plot_marker.html#a1">00073</a>     <span class="keywordtype">double</span> xValue()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_xValue; }
00074 
<a name="l00076"></a><a class="code" href="class_qwt_plot_marker.html#a2">00076</a>     <span class="keywordtype">double</span> yValue()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_yValue; }
00077 
<a name="l00079"></a><a class="code" href="class_qwt_plot_marker.html#a3">00079</a>     <span class="keywordtype">void</span> setXValue(<span class="keywordtype">double</span> val) { d_xValue = val; <a class="code" href="class_qwt_marker.html#b0">markerChanged</a>(); }
00080 
<a name="l00082"></a><a class="code" href="class_qwt_plot_marker.html#a4">00082</a>     <span class="keywordtype">void</span> setYValue(<span class="keywordtype">double</span> val) { d_yValue = val; <a class="code" href="class_qwt_marker.html#b0">markerChanged</a>(); }
00083 
<a name="l00085"></a><a class="code" href="class_qwt_plot_marker.html#a5">00085</a>     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_qwt_marker.html#b0">markerChanged</a>() { <a class="code" href="class_qwt_plot_item.html#a7">itemChanged</a>(); }
00086 
00087 <span class="keyword">private</span>:
00088     <span class="keywordtype">double</span> d_xValue;
00089     <span class="keywordtype">double</span> d_yValue;
00090 };
00091 
00092 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>