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
|
<!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's Guide: qwt_plot_item.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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>qwt_plot_item.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_ITEM</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_PLOT_ITEM</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include "qwt_global.h"</span>
00014
00015 <span class="keyword">class </span><a class="code" href="class_qwt_plot.html">QwtPlot</a>;
00016
<a name="l00021"></a><a class="code" href="class_qwt_plot_item.html">00021</a> <span class="keyword">class </span>QWT_EXPORT QwtPlotItem
00022 {
00023 <span class="keyword">public</span>:
00024 QwtPlotItem(<a class="code" href="class_qwt_plot.html">QwtPlot</a> *parent, <span class="keywordtype">bool</span> nbl = TRUE);
00025 <span class="keyword">virtual</span> ~QwtPlotItem();
00026
00027 <span class="keywordtype">void</span> reparent(<a class="code" href="class_qwt_plot.html">QwtPlot</a> *plot);
00028
<a name="l00030"></a><a class="code" href="class_qwt_plot_item.html#a3">00030</a> <a class="code" href="class_qwt_plot.html">QwtPlot</a> *parentPlot() { <span class="keywordflow">return</span> d_parent; }
00031
<a name="l00033"></a><a class="code" href="class_qwt_plot_item.html#a4">00033</a> <span class="keyword">const</span> <a class="code" href="class_qwt_plot.html">QwtPlot</a> *parentPlot()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_parent; }
00034
00035 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEnabled(<span class="keywordtype">bool</span>);
00036 <span class="keywordtype">bool</span> enabled() const;
00037
00038 virtual <span class="keywordtype">void</span> itemChanged();
00039
00040 private:
00041 <span class="keywordtype">bool</span> d_enabled;
00042 <a class="code" href="class_qwt_plot.html">QwtPlot</a> *d_parent;
00043 };
00044
00045
<a name="l00050"></a><a class="code" href="class_qwt_plot_mapped_item.html">00050</a> class QWT_EXPORT <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a> : public QwtPlotItem
00051 {
00052 <span class="keyword">public</span>:
00053 <a class="code" href="class_qwt_plot_mapped_item.html">QwtPlotMappedItem</a>(<a class="code" href="class_qwt_plot.html">QwtPlot</a> *parent, <span class="keywordtype">bool</span> nbl = TRUE);
00054
00055 <span class="keywordtype">void</span> setAxis(<span class="keywordtype">int</span> xAxis, <span class="keywordtype">int</span> yAxis);
00056
00057 <span class="keywordtype">void</span> setXAxis(<span class="keywordtype">int</span> axis);
00058 <span class="keywordtype">int</span> xAxis() <span class="keyword">const</span>;
00059
00060 <span class="keywordtype">void</span> setYAxis(<span class="keywordtype">int</span> axis);
00061 <span class="keywordtype">int</span> yAxis() <span class="keyword">const</span>;
00062
00063 <span class="keyword">private</span>:
00064 <span class="keywordtype">int</span> d_xAxis;
00065 <span class="keywordtype">int</span> d_yAxis;
00066 };
00067
00068 <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>
|