<!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.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>SALOME - SMESH: SMESH_subMeshEventListener Class Reference</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="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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">SALOME - SMESH </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('classSMESH__subMeshEventListener.html','');}); /* @license-end */ </script> <div id="doc-content"> <!-- 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 class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pri-attribs">Private Attributes</a> </div> <div class="headertitle"> <div class="title">SMESH_subMeshEventListener Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>A base for objects reacting on submesh events. <a href="classSMESH__subMeshEventListener.html#details">More...</a></p> <p><code>#include <<a class="el" href="SMESH__subMeshEventListener_8hxx_source.html">SMESH_subMeshEventListener.hxx</a>></code></p> <div class="dynheader"> Collaboration diagram for SMESH_subMeshEventListener:</div> <div class="dyncontent"> <div class="center"><img src="classSMESH__subMeshEventListener__coll__graph.jpg" border="0" usemap="#SMESH__subMeshEventListener_coll__map" alt="Collaboration graph"/></div> <map name="SMESH__subMeshEventListener_coll__map" id="SMESH__subMeshEventListener_coll__map"> </map> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a2cd7a6bae5a2e759a95595b93bd500a3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSMESH__subMeshEventListener.html#a2cd7a6bae5a2e759a95595b93bd500a3">SMESH_subMeshEventListener</a> (bool isDeletable)</td></tr> <tr class="separator:a2cd7a6bae5a2e759a95595b93bd500a3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a54f6b49d77ec4beede2ae8175c09e51a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSMESH__subMeshEventListener.html#a54f6b49d77ec4beede2ae8175c09e51a">IsDeletable</a> () const</td></tr> <tr class="separator:a54f6b49d77ec4beede2ae8175c09e51a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab326266641fcb03e3e7db6bcc1c77041"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSMESH__subMeshEventListener.html#ab326266641fcb03e3e7db6bcc1c77041">ProcessEvent</a> (const <a class="el" href="classint.html">int</a> event, const <a class="el" href="classint.html">int</a> eventType, <a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a> *subMesh, <a class="el" href="structSMESH__subMeshEventListenerData.html">SMESH_subMeshEventListenerData</a> *data, const <a class="el" href="classSMESH__Hypothesis.html">SMESH_Hypothesis</a> *hyp=0)</td></tr> <tr class="memdesc:ab326266641fcb03e3e7db6bcc1c77041"><td class="mdescLeft"> </td><td class="mdescRight">Do something on a certain event. <a href="#ab326266641fcb03e3e7db6bcc1c77041">More...</a><br /></td></tr> <tr class="separator:ab326266641fcb03e3e7db6bcc1c77041"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a> Private Attributes</h2></td></tr> <tr class="memitem:a28de14f207a3f7e82a5a86d722b03cc4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSMESH__subMeshEventListener.html#a28de14f207a3f7e82a5a86d722b03cc4">myIsDeletable</a></td></tr> <tr class="memdesc:a28de14f207a3f7e82a5a86d722b03cc4"><td class="mdescLeft"> </td><td class="mdescRight">if true, it will be deleted by <a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a> <a href="#a28de14f207a3f7e82a5a86d722b03cc4">More...</a><br /></td></tr> <tr class="separator:a28de14f207a3f7e82a5a86d722b03cc4"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A base for objects reacting on submesh events. </p> <p class="definition">Definition at line <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html#l00044">44</a> of file <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html">SMESH_subMeshEventListener.hxx</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a2cd7a6bae5a2e759a95595b93bd500a3"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2cd7a6bae5a2e759a95595b93bd500a3">◆ </a></span>SMESH_subMeshEventListener()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">SMESH_subMeshEventListener::SMESH_subMeshEventListener </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>isDeletable</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html#l00047">47</a> of file <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html">SMESH_subMeshEventListener.hxx</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a54f6b49d77ec4beede2ae8175c09e51a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a54f6b49d77ec4beede2ae8175c09e51a">◆ </a></span>IsDeletable()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool SMESH_subMeshEventListener::IsDeletable </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html#l00048">48</a> of file <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html">SMESH_subMeshEventListener.hxx</a>.</p> </div> </div> <a id="ab326266641fcb03e3e7db6bcc1c77041"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab326266641fcb03e3e7db6bcc1c77041">◆ </a></span>ProcessEvent()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void SMESH_subMeshEventListener::ProcessEvent </td> <td>(</td> <td class="paramtype">const <a class="el" href="classint.html">int</a> </td> <td class="paramname"><em>event</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classint.html">int</a> </td> <td class="paramname"><em>eventType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a> * </td> <td class="paramname"><em>subMesh</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structSMESH__subMeshEventListenerData.html">SMESH_subMeshEventListenerData</a> * </td> <td class="paramname"><em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classSMESH__Hypothesis.html">SMESH_Hypothesis</a> * </td> <td class="paramname"><em>hyp</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Do something on a certain event. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">event</td><td>- algo_event or compute_event itself (of <a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a>) </td></tr> <tr><td class="paramname">eventType</td><td>- ALGO_EVENT or COMPUTE_EVENT (of <a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a>) </td></tr> <tr><td class="paramname">subMesh</td><td>- the submesh where the event occures </td></tr> <tr><td class="paramname">data</td><td>- listener data stored in the subMesh </td></tr> <tr><td class="paramname">hyp</td><td>- hypothesis, if eventType is algo_event</td></tr> </table> </dd> </dl> <p>The base implementation translates CLEAN event to the subMesh stored in the listener data. Also it sends SUBMESH_COMPUTED event in case of successful COMPUTE event. </p> </div> </div> <h2 class="groupheader">Field Documentation</h2> <a id="a28de14f207a3f7e82a5a86d722b03cc4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a28de14f207a3f7e82a5a86d722b03cc4">◆ </a></span>myIsDeletable</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool SMESH_subMeshEventListener::myIsDeletable</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">private</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>if true, it will be deleted by <a class="el" href="classSMESH__subMesh.html">SMESH_subMesh</a> </p> <p class="definition">Definition at line <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html#l00045">45</a> of file <a class="el" href="SMESH__subMeshEventListener_8hxx_source.html">SMESH_subMeshEventListener.hxx</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="classSMESH__subMeshEventListener.html">SMESH_subMeshEventListener</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li> </ul> </div> </body> </html>