classrectangle.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 434 行 · 第 1/2 页
HTML
434 行
<tr> <td> </td> <td><p>This method sets the top left position of the rectangle <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>new top left position of the rectangle </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when update was successful </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01552">1552</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00302">m_posLeftTop</a>. </td> </tr></table><a name="a6" doxytag="Rectangle::setPosRightBottom"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Rectangle::setPosRightBottom </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname1" valign="top" nowrap> <em>pos</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the right bottom position of the rectangle <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>new right bottom position of the rectangle </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>true when update was succesfull </dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01568">1568</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00303">m_posRightBottom</a>. </td> </tr></table><a name="a3" doxytag="Rectangle::setRectanglePoints"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Rectangle::setRectanglePoints </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>pos1</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classVecPosition.html">VecPosition</a> </td> <td class="mdname" nowrap> <em>pos2</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the upper left and right bottom point of the current rectangle. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pos</em> </td><td>first point that defines corner of rectangle </td></tr><tr><td valign=top><em>pos2</em> </td><td>second point that defines other corner of rectangle </td></tr></table></dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01522">1522</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8C-source.html#l00542">VecPosition::getX</a>(), <a class="el" href="Geometry_8C-source.html#l00558">VecPosition::getY</a>(), <a class="el" href="Geometry_8h-source.html#l00302">m_posLeftTop</a>, <a class="el" href="Geometry_8h-source.html#l00303">m_posRightBottom</a>, <a class="el" href="Geometry_8C-source.html#l00066">max</a>(), <a class="el" href="Geometry_8C-source.html#l00075">min</a>(), <a class="el" href="Geometry_8C-source.html#l00534">VecPosition::setX</a>(), and <a class="el" href="Geometry_8C-source.html#l00550">VecPosition::setY</a>().<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01513">Rectangle</a>(). </td> </tr></table><a name="a1" doxytag="Rectangle::show"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Rectangle::show </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>os</em> = cout </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method prints the rectangle to the specified output stream in the format rect( top_left_point, bottom_right_point ). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which rectangle is written. </td></tr></table></dl><p>Definition at line <a class="el" href="Geometry_8C-source.html#l01533">1533</a> of file <a class="el" href="Geometry_8C-source.html">Geometry.C</a>.<p>References <a class="el" href="Geometry_8h-source.html#l00302">m_posLeftTop</a>, and <a class="el" href="Geometry_8h-source.html#l00303">m_posRightBottom</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="o0" doxytag="Rectangle::m_posLeftTop"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classVecPosition.html">VecPosition</a> Rectangle::m_posLeftTop<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>top left position of the rectangle <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00302">302</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01560">getPosLeftTop</a>(), <a class="el" href="Geometry_8C-source.html#l01542">isInside</a>(), <a class="el" href="Geometry_8C-source.html#l01552">setPosLeftTop</a>(), <a class="el" href="Geometry_8C-source.html#l01522">setRectanglePoints</a>(), and <a class="el" href="Geometry_8C-source.html#l01533">show</a>(). </td> </tr></table><a name="o1" doxytag="Rectangle::m_posRightBottom"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classVecPosition.html">VecPosition</a> Rectangle::m_posRightBottom<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>bottom right position of the rectangle <p>Definition at line <a class="el" href="Geometry_8h-source.html#l00303">303</a> of file <a class="el" href="Geometry_8h-source.html">Geometry.h</a>.<p>Referenced by <a class="el" href="Geometry_8C-source.html#l01576">getPosRightBottom</a>(), <a class="el" href="Geometry_8C-source.html#l01542">isInside</a>(), <a class="el" href="Geometry_8C-source.html#l01568">setPosRightBottom</a>(), <a class="el" href="Geometry_8C-source.html#l01522">setRectanglePoints</a>(), and <a class="el" href="Geometry_8C-source.html#l01533">show</a>(). </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Geometry_8h-source.html">Geometry.h</a><li><a class="el" href="Geometry_8C-source.html">Geometry.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:56 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?