<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>HippoDraw Class Library</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="hippoApp.ico"> </head><body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a> </div> </div> <div class="contents"> <h1>SaveAsImageEvent.cxx</h1><a href="SaveAsImageEvent_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="SaveAsImageEvent_8h.html" title="SaveAsImageEvent class interface.">SaveAsImageEvent.h</a>"</span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#if QT_VERSION < 0x040000</span> <a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#else</span> <a name="l00015"></a>00015 <span class="preprocessor"></span><span class="comment">//Added by the Qt porting tool:</span> <a name="l00016"></a>00016 <span class="preprocessor">#include <QtCore/QCustomEvent></span> <a name="l00017"></a>00017 <span class="preprocessor">#include <QtCore/QEvent></span> <a name="l00018"></a>00018 <span class="preprocessor">#endif</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="keyword">namespace </span>hippodraw { <a name="l00022"></a>00022 <a name="l00023"></a>00023 <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ace9453cb90b60fcc2b0cef0d7c499f10" title="The constructor taking the plotter object and image filename as arguments.">SaveAsImageEvent::</a> <a name="l00024"></a><a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ace9453cb90b60fcc2b0cef0d7c499f10">00024</a> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ace9453cb90b60fcc2b0cef0d7c499f10" title="The constructor taking the plotter object and image filename as arguments.">SaveAsImageEvent</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * plotter, <a name="l00025"></a>00025 <span class="keyword">const</span> std::string & filename ) <a name="l00026"></a>00026 : <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcustomevent.html">QCustomEvent</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qevent.html">QEvent</a>::User, const_cast < <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * > ( plotter ) ), <a name="l00027"></a>00027 m_filename ( filename ) <a name="l00028"></a>00028 { <a name="l00029"></a>00029 } <a name="l00030"></a>00030 <a name="l00031"></a>00031 <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ace9453cb90b60fcc2b0cef0d7c499f10" title="The constructor taking the plotter object and image filename as arguments.">SaveAsImageEvent::</a> <a name="l00032"></a><a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#a0adc5420a6675449a666771f3aa0e09a">00032</a> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ace9453cb90b60fcc2b0cef0d7c499f10" title="The constructor taking the plotter object and image filename as arguments.">SaveAsImageEvent</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html" title="A derived class of QCustomEvent to handle saving a PlotterBase object as image file...">SaveAsImageEvent</a> & event ) <a name="l00033"></a>00033 : <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcustomevent.html">QCustomEvent</a> ( event ), <a name="l00034"></a>00034 m_filename ( event.m_filename ) <a name="l00035"></a>00035 { <a name="l00036"></a>00036 } <a name="l00037"></a>00037 <a name="l00038"></a><a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ae7e949f908098ce56aeac10dc4e98150">00038</a> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#ae7e949f908098ce56aeac10dc4e98150" title="The required virtual destructor.">SaveAsImageEvent::~SaveAsImageEvent</a> () <a name="l00039"></a>00039 { <a name="l00040"></a>00040 } <a name="l00041"></a>00041 <a name="l00042"></a>00042 <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * <a name="l00043"></a>00043 <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#a3ea4ecda28161919ff211eb43356f3ea" title="Returns the PlotterBase object that created the update event.">SaveAsImageEvent::</a> <a name="l00044"></a><a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#a3ea4ecda28161919ff211eb43356f3ea">00044</a> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#a3ea4ecda28161919ff211eb43356f3ea" title="Returns the PlotterBase object that created the update event.">plotter</a> ( )<span class="keyword"> const</span> <a name="l00045"></a>00045 <span class="keyword"></span>{ <a name="l00046"></a>00046 <span class="keywordtype">void</span> * pointer = <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qcustomevent.html#data">data</a>(); <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keywordflow">return</span> reinterpret_cast < <a class="code" href="classhippodraw_1_1PlotterBase.html" title="The base class for the PlotterBase hierarchy.">PlotterBase</a> * > ( pointer ); <a name="l00049"></a>00049 } <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="keyword">const</span> std::string & <a name="l00052"></a>00052 <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#af70efc71c067a130ad3286c88df651ef" title="Returns the filename for the image.">SaveAsImageEvent::</a> <a name="l00053"></a><a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#af70efc71c067a130ad3286c88df651ef">00053</a> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#af70efc71c067a130ad3286c88df651ef" title="Returns the filename for the image.">filename</a> ()<span class="keyword"> const</span> <a name="l00054"></a>00054 <span class="keyword"></span>{ <a name="l00055"></a>00055 <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1SaveAsImageEvent.html#abeab36922e15d948509bdf36c5a46cd9" title="The filename for the image.">m_filename</a>; <a name="l00056"></a>00056 } <a name="l00057"></a>00057 <a name="l00058"></a>00058 } <span class="comment">// namespace hippodraw</span> <a name="l00059"></a>00059 </pre></div></div> <hr size="1"><address style="align: right;"><small> Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0> </a> </small></address> </body> </html>