Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > cf48da7d1b8e1f83fb29b038ef4f8fc6 > files > 11

engauge-digitizer-doc-9.8-1.mga6.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Engauge Digitizer: Background/BackgroundStateCurve.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Engauge Digitizer
   &#160;<span id="projectnumber">2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f6b2b049cfba8dfac04f27d257b447ab.html">Background</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">BackgroundStateCurve.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released      *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission.     *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> ******************************************************************************************************/</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef BACKGROUND_STATE_CURVE_H</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define BACKGROUND_STATE_CURVE_H</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;BackgroundStateAbstractBase.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classBackgroundStateCurve.html">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="classBackgroundStateCurve.html">BackgroundStateCurve</a> : <span class="keyword">public</span> <a class="code" href="classBackgroundStateAbstractBase.html">BackgroundStateAbstractBase</a></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;{</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  <a class="code" href="classBackgroundStateCurve.html">BackgroundStateCurve</a>(<a class="code" href="classBackgroundStateContext.html">BackgroundStateContext</a> &amp;<a class="code" href="classBackgroundStateAbstractBase.html#a4f0b10c05629d54cf8f629bcfe26de77">context</a>,</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;                       <a class="code" href="classGraphicsScene.html">GraphicsScene</a> &amp;<a class="code" href="classBackgroundStateAbstractBase.html#a3d30247a6ee7fb712101298468160fbc">scene</a>);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#a8f811c261870b4d8b8ea1466211bf526">begin</a>();</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#af3eb2e016b1b4f184ef9bf107641ee09">end</a>();</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#ac44a6debcc226656aeeb87eb2fe0c417">fitInView</a> (<a class="code" href="classGraphicsView.html">GraphicsView</a> &amp;view);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#a76317b5d0188fea8b920e2427e0fcd16">setCurveSelected</a> (<span class="keyword">const</span> <a class="code" href="classTransformation.html">Transformation</a> &amp;transformation,</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;                                 <span class="keyword">const</span> <a class="code" href="classDocumentModelGridRemoval.html">DocumentModelGridRemoval</a> &amp;modelGridRemoval,</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;                                 <span class="keyword">const</span> <a class="code" href="classDocumentModelColorFilter.html">DocumentModelColorFilter</a> &amp;colorFilter,</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;                                 <span class="keyword">const</span> QString &amp;curveSelected);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#a526a05f778a8833e55163a900c709c6e">setPixmap</a> (<span class="keyword">const</span> <a class="code" href="classTransformation.html">Transformation</a> &amp;transformation,</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;                          <span class="keyword">const</span> <a class="code" href="classDocumentModelGridRemoval.html">DocumentModelGridRemoval</a> &amp;modelGridRemoval,</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;                          <span class="keyword">const</span> <a class="code" href="classDocumentModelColorFilter.html">DocumentModelColorFilter</a> &amp;modelColorFilter,</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;                          <span class="keyword">const</span> QPixmap &amp;pixmapOriginal,</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;                          <span class="keyword">const</span> QString &amp;curveSelected);</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keyword">virtual</span> QString <a class="code" href="classBackgroundStateCurve.html#a8073daf6165fbf4295418fa630a7b0cd">state</a> () <span class="keyword">const</span>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBackgroundStateCurve.html#a8321e5d6db512844adf565a52f70eca2">updateColorFilter</a> (<span class="keyword">const</span> <a class="code" href="classTransformation.html">Transformation</a> &amp;transformation,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                                  <span class="keyword">const</span> <a class="code" href="classDocumentModelGridRemoval.html">DocumentModelGridRemoval</a> &amp;modelGridRemoval,</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                                  <span class="keyword">const</span> <a class="code" href="classDocumentModelColorFilter.html">DocumentModelColorFilter</a> &amp;colorFilter,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                                  <span class="keyword">const</span> QString &amp;curveSelected);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <a class="code" href="classBackgroundStateCurve.html">BackgroundStateCurve</a>();</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordtype">void</span> processImageFromSavedInputs(<span class="keyword">const</span> <a class="code" href="classTransformation.html">Transformation</a> &amp;transformation,</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                                   <span class="keyword">const</span> <a class="code" href="classDocumentModelGridRemoval.html">DocumentModelGridRemoval</a> &amp;modelGridRemoval,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                                   <span class="keyword">const</span> <a class="code" href="classDocumentModelColorFilter.html">DocumentModelColorFilter</a> &amp;modelColorFilter,</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                                   <span class="keyword">const</span> QString &amp;curveSelected);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="comment">// Data saved for use by processImageFromSavedInputs</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  QPixmap m_pixmapOriginal;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;};</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif // BACKGROUND_STATE_CURVE_H</span></div><div class="ttc" id="classBackgroundStateCurve_html_a8f811c261870b4d8b8ea1466211bf526"><div class="ttname"><a href="classBackgroundStateCurve.html#a8f811c261870b4d8b8ea1466211bf526">BackgroundStateCurve::begin</a></div><div class="ttdeci">virtual void begin()</div><div class="ttdoc">Method that is called at the exact moment a state is entered. Typically called just after end for the...</div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00025">BackgroundStateCurve.cpp:25</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html"><div class="ttname"><a href="classBackgroundStateCurve.html">BackgroundStateCurve</a></div><div class="ttdoc">Background image state for showing filter image from current curve. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8h_source.html#l00013">BackgroundStateCurve.h:13</a></div></div>
<div class="ttc" id="classBackgroundStateAbstractBase_html_a4f0b10c05629d54cf8f629bcfe26de77"><div class="ttname"><a href="classBackgroundStateAbstractBase.html#a4f0b10c05629d54cf8f629bcfe26de77">BackgroundStateAbstractBase::context</a></div><div class="ttdeci">BackgroundStateContext &amp; context()</div><div class="ttdoc">Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses...</div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateAbstractBase_8cpp_source.html#l00034">BackgroundStateAbstractBase.cpp:34</a></div></div>
<div class="ttc" id="classTransformation_html"><div class="ttname"><a href="classTransformation.html">Transformation</a></div><div class="ttdoc">Affine transformation between screen and graph coordinates, based on digitized axis points...</div><div class="ttdef"><b>Definition:</b> <a href="Transformation_8h_source.html#l00031">Transformation.h:31</a></div></div>
<div class="ttc" id="classDocumentModelColorFilter_html"><div class="ttname"><a href="classDocumentModelColorFilter.html">DocumentModelColorFilter</a></div><div class="ttdoc">Model for DlgSettingsColorFilter and CmdSettingsColorFilter. </div><div class="ttdef"><b>Definition:</b> <a href="DocumentModelColorFilter_8h_source.html#l00021">DocumentModelColorFilter.h:21</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_a8321e5d6db512844adf565a52f70eca2"><div class="ttname"><a href="classBackgroundStateCurve.html#a8321e5d6db512844adf565a52f70eca2">BackgroundStateCurve::updateColorFilter</a></div><div class="ttdeci">virtual void updateColorFilter(const Transformation &amp;transformation, const DocumentModelGridRemoval &amp;modelGridRemoval, const DocumentModelColorFilter &amp;colorFilter, const QString &amp;curveSelected)</div><div class="ttdoc">Apply color filter settings. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00110">BackgroundStateCurve.cpp:110</a></div></div>
<div class="ttc" id="classBackgroundStateContext_html"><div class="ttname"><a href="classBackgroundStateContext.html">BackgroundStateContext</a></div><div class="ttdoc">Context class that manages the background image state machine. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateContext_8h_source.html#l00032">BackgroundStateContext.h:32</a></div></div>
<div class="ttc" id="classGraphicsView_html"><div class="ttname"><a href="classGraphicsView.html">GraphicsView</a></div><div class="ttdoc">QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...</div><div class="ttdef"><b>Definition:</b> <a href="GraphicsView_8h_source.html#l00020">GraphicsView.h:20</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_a526a05f778a8833e55163a900c709c6e"><div class="ttname"><a href="classBackgroundStateCurve.html#a526a05f778a8833e55163a900c709c6e">BackgroundStateCurve::setPixmap</a></div><div class="ttdeci">virtual void setPixmap(const Transformation &amp;transformation, const DocumentModelGridRemoval &amp;modelGridRemoval, const DocumentModelColorFilter &amp;modelColorFilter, const QPixmap &amp;pixmapOriginal, const QString &amp;curveSelected)</div><div class="ttdoc">Update the image for this state, after the leaf class processes it appropriately. ...</div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00090">BackgroundStateCurve.cpp:90</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_a76317b5d0188fea8b920e2427e0fcd16"><div class="ttname"><a href="classBackgroundStateCurve.html#a76317b5d0188fea8b920e2427e0fcd16">BackgroundStateCurve::setCurveSelected</a></div><div class="ttdeci">virtual void setCurveSelected(const Transformation &amp;transformation, const DocumentModelGridRemoval &amp;modelGridRemoval, const DocumentModelColorFilter &amp;colorFilter, const QString &amp;curveSelected)</div><div class="ttdoc">Update the currently selected curve name. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00074">BackgroundStateCurve.cpp:74</a></div></div>
<div class="ttc" id="classBackgroundStateAbstractBase_html"><div class="ttname"><a href="classBackgroundStateAbstractBase.html">BackgroundStateAbstractBase</a></div><div class="ttdoc">Background image state machine state base class. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateAbstractBase_8h_source.html#l00030">BackgroundStateAbstractBase.h:30</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_ac44a6debcc226656aeeb87eb2fe0c417"><div class="ttname"><a href="classBackgroundStateCurve.html#ac44a6debcc226656aeeb87eb2fe0c417">BackgroundStateCurve::fitInView</a></div><div class="ttdeci">virtual void fitInView(GraphicsView &amp;view)</div><div class="ttdoc">Zoom so background fills the window. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00039">BackgroundStateCurve.cpp:39</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_a8073daf6165fbf4295418fa630a7b0cd"><div class="ttname"><a href="classBackgroundStateCurve.html#a8073daf6165fbf4295418fa630a7b0cd">BackgroundStateCurve::state</a></div><div class="ttdeci">virtual QString state() const</div><div class="ttdoc">State name for debugging. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00105">BackgroundStateCurve.cpp:105</a></div></div>
<div class="ttc" id="classBackgroundStateCurve_html_af3eb2e016b1b4f184ef9bf107641ee09"><div class="ttname"><a href="classBackgroundStateCurve.html#af3eb2e016b1b4f184ef9bf107641ee09">BackgroundStateCurve::end</a></div><div class="ttdeci">virtual void end()</div><div class="ttdoc">Method that is called at the exact moment a state is exited. Typically called just before begin for t...</div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateCurve_8cpp_source.html#l00032">BackgroundStateCurve.cpp:32</a></div></div>
<div class="ttc" id="classGraphicsScene_html"><div class="ttname"><a href="classGraphicsScene.html">GraphicsScene</a></div><div class="ttdoc">Add point and line handling to generic QGraphicsScene. </div><div class="ttdef"><b>Definition:</b> <a href="GraphicsScene_8h_source.html#l00032">GraphicsScene.h:32</a></div></div>
<div class="ttc" id="classBackgroundStateAbstractBase_html_a3d30247a6ee7fb712101298468160fbc"><div class="ttname"><a href="classBackgroundStateAbstractBase.html#a3d30247a6ee7fb712101298468160fbc">BackgroundStateAbstractBase::scene</a></div><div class="ttdeci">GraphicsScene &amp; scene()</div><div class="ttdoc">Reference to the GraphicsScene, without const. </div><div class="ttdef"><b>Definition:</b> <a href="BackgroundStateAbstractBase_8cpp_source.html#l00054">BackgroundStateAbstractBase.cpp:54</a></div></div>
<div class="ttc" id="classDocumentModelGridRemoval_html"><div class="ttname"><a href="classDocumentModelGridRemoval.html">DocumentModelGridRemoval</a></div><div class="ttdoc">Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...</div><div class="ttdef"><b>Definition:</b> <a href="DocumentModelGridRemoval_8h_source.html#l00017">DocumentModelGridRemoval.h:17</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Dec 25 2016 20:54:08 for Engauge Digitizer by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>