113 lines
17 KiB
XML
113 lines
17 KiB
XML
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
||
|
<compounddef id="drawingcursor_8hpp" kind="file">
|
||
|
<compoundname>drawingcursor.hpp</compoundname>
|
||
|
<includedby refid="drawingcursor_8hh" local="no">/usr/include/gecode/gist/drawingcursor.hh</includedby>
|
||
|
<invincdepgraph>
|
||
|
<node id="7378">
|
||
|
<label>/usr/include/gecode/gist/drawingcursor.hh</label>
|
||
|
<link refid="drawingcursor_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="7377">
|
||
|
<label>/usr/include/gecode/gist/drawingcursor.hpp</label>
|
||
|
<link refid="drawingcursor.hpp"/>
|
||
|
<childnode refid="7378" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
</invincdepgraph>
|
||
|
<innernamespace refid="namespaceGecode">Gecode</innernamespace>
|
||
|
<innernamespace refid="namespaceGecode_1_1Gist">Gecode::Gist</innernamespace>
|
||
|
<briefdescription>
|
||
|
</briefdescription>
|
||
|
<detaileddescription>
|
||
|
</detaileddescription>
|
||
|
<programlisting>
|
||
|
<codeline lineno="1"><highlight class="comment">/*<sp/>-*-<sp/>mode:<sp/>C++;<sp/>c-basic-offset:<sp/>2;<sp/>indent-tabs-mode:<sp/>nil<sp/>-*-<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
|
||
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/><sp/>Main<sp/>authors:</highlight></codeline>
|
||
|
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack<sp/><tack@gecode.org></highlight></codeline>
|
||
|
<codeline lineno="5"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/><sp/>Copyright:</highlight></codeline>
|
||
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>Guido<sp/>Tack,<sp/>2006</highlight></codeline>
|
||
|
<codeline lineno="8"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/>Last<sp/>modified:</highlight></codeline>
|
||
|
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Date:<sp/>2010-08-12<sp/>09:48:30<sp/>+0200<sp/>(Thu,<sp/>12<sp/>Aug<sp/>2010)<sp/>$<sp/>by<sp/>$Author:<sp/>tack<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>$Revision:<sp/>11345<sp/>$</highlight></codeline>
|
||
|
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>Gecode,<sp/>the<sp/>generic<sp/>constraint</highlight></codeline>
|
||
|
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/>development<sp/>environment:</highlight></codeline>
|
||
|
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/>http://www.gecode.org</highlight></codeline>
|
||
|
<codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/>Permission<sp/>is<sp/>hereby<sp/>granted,<sp/>free<sp/>of<sp/>charge,<sp/>to<sp/>any<sp/>person<sp/>obtaining</highlight></codeline>
|
||
|
<codeline lineno="18"><highlight class="comment"><sp/>*<sp/>a<sp/>copy<sp/>of<sp/>this<sp/>software<sp/>and<sp/>associated<sp/>documentation<sp/>files<sp/>(the</highlight></codeline>
|
||
|
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/>"Software"),<sp/>to<sp/>deal<sp/>in<sp/>the<sp/>Software<sp/>without<sp/>restriction,<sp/>including</highlight></codeline>
|
||
|
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/>without<sp/>limitation<sp/>the<sp/>rights<sp/>to<sp/>use,<sp/>copy,<sp/>modify,<sp/>merge,<sp/>publish,</highlight></codeline>
|
||
|
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/>distribute,<sp/>sublicense,<sp/>and/or<sp/>sell<sp/>copies<sp/>of<sp/>the<sp/>Software,<sp/>and<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>permit<sp/>persons<sp/>to<sp/>whom<sp/>the<sp/>Software<sp/>is<sp/>furnished<sp/>to<sp/>do<sp/>so,<sp/>subject<sp/>to</highlight></codeline>
|
||
|
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>the<sp/>following<sp/>conditions:</highlight></codeline>
|
||
|
<codeline lineno="24"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/>The<sp/>above<sp/>copyright<sp/>notice<sp/>and<sp/>this<sp/>permission<sp/>notice<sp/>shall<sp/>be</highlight></codeline>
|
||
|
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/>included<sp/>in<sp/>all<sp/>copies<sp/>or<sp/>substantial<sp/>portions<sp/>of<sp/>the<sp/>Software.</highlight></codeline>
|
||
|
<codeline lineno="27"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="28"><highlight class="comment"><sp/>*<sp/>THE<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>"AS<sp/>IS",<sp/>WITHOUT<sp/>WARRANTY<sp/>OF<sp/>ANY<sp/>KIND,</highlight></codeline>
|
||
|
<codeline lineno="29"><highlight class="comment"><sp/>*<sp/>EXPRESS<sp/>OR<sp/>IMPLIED,<sp/>INCLUDING<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO<sp/>THE<sp/>WARRANTIES<sp/>OF</highlight></codeline>
|
||
|
<codeline lineno="30"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY,<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>AND</highlight></codeline>
|
||
|
<codeline lineno="31"><highlight class="comment"><sp/>*<sp/>NONINFRINGEMENT.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>AUTHORS<sp/>OR<sp/>COPYRIGHT<sp/>HOLDERS<sp/>BE</highlight></codeline>
|
||
|
<codeline lineno="32"><highlight class="comment"><sp/>*<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>CLAIM,<sp/>DAMAGES<sp/>OR<sp/>OTHER<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>AN<sp/>ACTION</highlight></codeline>
|
||
|
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/>OF<sp/>CONTRACT,<sp/>TORT<sp/>OR<sp/>OTHERWISE,<sp/>ARISING<sp/>FROM,<sp/>OUT<sp/>OF<sp/>OR<sp/>IN<sp/>CONNECTION</highlight></codeline>
|
||
|
<codeline lineno="34"><highlight class="comment"><sp/>*<sp/>WITH<sp/>THE<sp/>SOFTWARE<sp/>OR<sp/>THE<sp/>USE<sp/>OR<sp/>OTHER<sp/>DEALINGS<sp/>IN<sp/>THE<sp/>SOFTWARE.</highlight></codeline>
|
||
|
<codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gecode<sp/>{<sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">Gist<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="39"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="40"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="41" refid="classGecode_1_1Gist_1_1DrawingCursor_1ac2f034842bf12b07fa725f6a1c008e36" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Gist_1_1DrawingCursor_1ac2f034842bf12b07fa725f6a1c008e36" kindref="member">DrawingCursor::moveUpwards</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/>x<sp/>-=<sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1af1c607e2ed88f7c9269d78a0cf1a3092" kindref="member">getOffset</ref>();</highlight></codeline>
|
||
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/>y<sp/>-=<sp/>Layout::dist_y;</highlight></codeline>
|
||
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a51383e2a893a05d6260cf2bfc3850481" kindref="member">NodeCursor<VisualNode>::moveUpwards</ref>();</highlight></codeline>
|
||
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/>forceinline<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/>DrawingCursor::isClipped(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(clippingRect.width()<sp/>==<sp/>0<sp/>&&<sp/>clippingRect.x()<sp/>==<sp/>0</highlight></codeline>
|
||
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>&&<sp/>clippingRect.height()<sp/>==<sp/>0<sp/>&&<sp/>clippingRect.y()<sp/>==<sp/>0)</highlight></codeline>
|
||
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1BoundingBox" kindref="compound">BoundingBox</ref><sp/>b<sp/>=<sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1ab9726e4a819b0440984e4a224e7a60ec" kindref="member">getBoundingBox</ref>();</highlight></codeline>
|
||
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(x<sp/>+<sp/>b.<ref refid="classGecode_1_1Gist_1_1BoundingBox_1ab90350c0f7e122e354f2d8ceaba94366" kindref="member">left</ref><sp/>><sp/>clippingRect.x()<sp/>+<sp/>clippingRect.width()<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>x<sp/>+<sp/>b.<ref refid="classGecode_1_1Gist_1_1BoundingBox_1a996520c7cdddd99a7e1bac0f289eda37" kindref="member">right</ref><sp/><<sp/>clippingRect.x()<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>y<sp/>><sp/>clippingRect.y()<sp/>+<sp/>clippingRect.height()<sp/>||</highlight></codeline>
|
||
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>y<sp/>+<sp/>(<ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1ad5c066381363f25e773c5cbef44fb043" kindref="member">getShape</ref>()-><ref refid="classGecode_1_1Gist_1_1Shape_1ae40d2e6fdd6c3f0ecca98af422c58d9b" kindref="member">depth</ref>()+1)<sp/>*<sp/>Layout::dist_y<sp/><<sp/></highlight></codeline>
|
||
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>clippingRect.y());</highlight></codeline>
|
||
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="61" refid="classGecode_1_1Gist_1_1DrawingCursor_1a4695f954b7fc26aec659aad9cb9f9365" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Gist_1_1DrawingCursor_1a4695f954b7fc26aec659aad9cb9f9365" kindref="member">DrawingCursor::mayMoveDownwards</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a6ed0e3862054186bdb199491a17fe0df" kindref="member">NodeCursor<VisualNode>::mayMoveDownwards</ref>()<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>!<ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1ab803c811afb36214ce8481f1b5dade97" kindref="member">isHidden</ref>()<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1a951fb1d1b22b6ca02e74013f8392d314" kindref="member">childrenLayoutIsDone</ref>()<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>!isClipped();</highlight></codeline>
|
||
|
<codeline lineno="66"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="67"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="69" refid="classGecode_1_1Gist_1_1DrawingCursor_1a1905749fec58d6450d414aee70eee650" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Gist_1_1DrawingCursor_1a1905749fec58d6450d414aee70eee650" kindref="member">DrawingCursor::moveDownwards</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1add0fd81655e62118548be719e0869809" kindref="member">NodeCursor<VisualNode>::moveDownwards</ref>();</highlight></codeline>
|
||
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/>x<sp/>+=<sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1af1c607e2ed88f7c9269d78a0cf1a3092" kindref="member">getOffset</ref>();</highlight></codeline>
|
||
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/>y<sp/>+=<sp/>Layout::dist_y;</highlight></codeline>
|
||
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="74"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="76" refid="classGecode_1_1Gist_1_1DrawingCursor_1ad34490124e0ba19c7c60c9775027ca15" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="classGecode_1_1Gist_1_1DrawingCursor_1ad34490124e0ba19c7c60c9775027ca15" kindref="member">DrawingCursor::moveSidewards</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/>x<sp/>-=<sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1af1c607e2ed88f7c9269d78a0cf1a3092" kindref="member">getOffset</ref>();</highlight></codeline>
|
||
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1aac74c6ac9b49167865ea1e76d0c235e0" kindref="member">NodeCursor<VisualNode>::moveSidewards</ref>();</highlight></codeline>
|
||
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/>x<sp/>+=<sp/><ref refid="classGecode_1_1Gist_1_1NodeCursor_1a79fb7b8bc5aa9c84c6735db1154112c9" kindref="member">node</ref>()-><ref refid="classGecode_1_1Gist_1_1VisualNode_1af1c607e2ed88f7c9269d78a0cf1a3092" kindref="member">getOffset</ref>();</highlight></codeline>
|
||
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
|
||
|
<codeline lineno="81"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="82"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="83"><highlight class="normal">}}</highlight></codeline>
|
||
|
<codeline lineno="84"><highlight class="normal"></highlight><highlight class="comment">//<sp/>STATISTICS:<sp/>gist-any</highlight><highlight class="normal"></highlight></codeline>
|
||
|
</programlisting>
|
||
|
<location file="/usr/include/gecode/gist/drawingcursor.hpp"/>
|
||
|
</compounddef>
|
||
|
</doxygen>
|