Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2106

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QLineF" doc="/**
&lt;p&gt;The &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; class provides a two-dimensional vector using floating point precision.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; describes a finite length line (or line segment) on a two-dimensional surface. &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; defines the start and end points of the line using floating point accuracy for coordinates. Use the &lt;a href=&quot;QLineF.html#toLine()&quot;&gt;&lt;tt&gt;toLine&lt;/tt&gt;&lt;/a&gt; function to retrieve an integer based copy of this line.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qline-point.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qline-coordinates.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The positions of the line's start and end points can be retrieved using the &lt;a href=&quot;QLineF.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLineF.html#x1()&quot;&gt;&lt;tt&gt;x1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLineF.html#y1()&quot;&gt;&lt;tt&gt;y1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLineF.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLineF.html#x2()&quot;&gt;&lt;tt&gt;x2&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QLineF.html#y2()&quot;&gt;&lt;tt&gt;y2&lt;/tt&gt;&lt;/a&gt; functions. The &lt;a href=&quot;QLineF.html#dx()&quot;&gt;&lt;tt&gt;dx&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QLineF.html#dy()&quot;&gt;&lt;tt&gt;dy&lt;/tt&gt;&lt;/a&gt; functions return the horizontal and vertical components of the line, respectively.&lt;/p&gt;
&lt;p&gt;The line's length can be retrieved using the &lt;a href=&quot;QLineF.html#length()&quot;&gt;&lt;tt&gt;length&lt;/tt&gt;&lt;/a&gt; function, and altered using the &lt;a href=&quot;QLineF.html#setLength(double)&quot;&gt;&lt;tt&gt;setLength&lt;/tt&gt;&lt;/a&gt; function. Use the &lt;a href=&quot;QLineF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; function to determine whether the &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; represents a valid line or a null line.&lt;/p&gt;
&lt;p&gt;The intersect() function determines the &lt;a href=&quot;QLineF.html#IntersectType-enum&quot;&gt;&lt;tt&gt;IntersectType&lt;/tt&gt;&lt;/a&gt; for this line and a given line, while the &lt;a href=&quot;QLineF.html#angle(com.trolltech.qt.gui.QLineF)&quot;&gt;&lt;tt&gt;angle&lt;/tt&gt;&lt;/a&gt; function returns the angle between the lines. In addition, the &lt;a href=&quot;QLineF.html#unitVector()&quot;&gt;&lt;tt&gt;unitVector&lt;/tt&gt;&lt;/a&gt; function returns a line that has the same starting point as this line, but with a length of only 1, while the &lt;a href=&quot;QLineF.html#normalVector()&quot;&gt;&lt;tt&gt;normalVector&lt;/tt&gt;&lt;/a&gt; function returns a line that is perpendicular to this line with the same starting point and length.&lt;/p&gt;
&lt;p&gt;Finally, the line can be translated a given offset using the &lt;a href=&quot;QLineF.html#translate(double, double)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; function, and can be traversed using the &lt;a href=&quot;QLineF.html#pointAt(double)&quot;&gt;&lt;tt&gt;pointAt&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html&quot;&gt;&lt;tt&gt;QLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygonF.html&quot;&gt;&lt;tt&gt;QPolygonF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QLineF(double x1, double y1, double x2, double y2)" doc="/**
&lt;p&gt;Constructs a line object that represents the line between (&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;) and (&lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public QLineF(com.trolltech.qt.core.QPointF pt1, com.trolltech.qt.core.QPointF pt2)" doc="/**
&lt;p&gt;Constructs a line object that represents the line between &lt;tt&gt;pt1&lt;/tt&gt; and &lt;tt&gt;pt2&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QLineF(com.trolltech.qt.gui.QLine line)" doc="/**
&lt;p&gt;Construct a &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; object from the given integer-based &lt;tt&gt;line&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#toLine()&quot;&gt;&lt;tt&gt;toLine&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QLineF()" doc="/**
&lt;p&gt;Constructs a null line.&lt;/p&gt;
 */"/>
    <method name="public final double angle(com.trolltech.qt.gui.QLineF l)" doc="/**
&lt;p&gt;Returns the angle (in degrees) between this line and the given &lt;tt&gt;l&lt;/tt&gt;, taking the direction of the lines into account. If the lines do not intersect within their range, it is the intersection point of the extended lines that serves as origo (see QLineF::UnboundedIntersection).&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qlinef-angle-identicaldirection.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qlinef-angle-oppositedirection.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;When the lines are parallel, this function returns 0 if they have the same direction; otherwise it returns 180.&lt;/p&gt;

@see &lt;tt&gt;intersect&lt;/tt&gt; */"/>
    <method name="public final double dx()" doc="/**
&lt;p&gt;Returns the horizontal component of the line's vector.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#dy()&quot;&gt;&lt;tt&gt;dy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#pointAt(double)&quot;&gt;&lt;tt&gt;pointAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double dy()" doc="/**
&lt;p&gt;Returns the vertical component of the line's vector.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#dx()&quot;&gt;&lt;tt&gt;dx&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#pointAt(double)&quot;&gt;&lt;tt&gt;pointAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the line is not set up with valid start and end point; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final double length()" doc="/**
&lt;p&gt;Returns the length of the line.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#setLength(double)&quot;&gt;&lt;tt&gt;setLength&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QLineF normalVector()" doc="/**
&lt;p&gt;Returns a line that is perpendicular to this line with the same starting point and length.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qlinef-normalvector.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QLineF.html#unitVector()&quot;&gt;&lt;tt&gt;unitVector&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final com.trolltech.qt.core.QPointF p1()" doc="/**
&lt;p&gt;Returns the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#x1()&quot;&gt;&lt;tt&gt;x1&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#y1()&quot;&gt;&lt;tt&gt;y1&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPointF p2()" doc="/**
&lt;p&gt;Returns the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#x2()&quot;&gt;&lt;tt&gt;x2&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#y2()&quot;&gt;&lt;tt&gt;y2&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPointF pointAt(double t)" doc="/**
&lt;p&gt;Returns the point at the parameterized position specified by &lt;tt&gt;t&lt;/tt&gt;. The function returns the line's start point if t = 0, and its end point if t = 1.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#dx()&quot;&gt;&lt;tt&gt;dx&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#dy()&quot;&gt;&lt;tt&gt;dy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLength(double len)" doc="/**
&lt;p&gt;Sets the length of the line to the given &lt;tt&gt;len&lt;/tt&gt;. If the line is a null line, the length will remain zero regardless of the length specified.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#length()&quot;&gt;&lt;tt&gt;length&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLineF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QLine toLine()" doc="/**
&lt;p&gt;Returns an integer based copy of this line.&lt;/p&gt;
&lt;p&gt;Note that the returned line's start and end points are rounded to the nearest integer.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#QLineF()&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPointF p)" doc="/**
&lt;p&gt;Translates this line by the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void translate(double dx, double dy)" doc="/**
&lt;p&gt;Translates this line the distance specified by &lt;tt&gt;dx&lt;/tt&gt; and &lt;tt&gt;dy&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QLineF unitVector()" doc="/**
&lt;p&gt;Returns the unit vector for this line, i.e a line starting at the same point as &lt;i&gt;this&lt;/i&gt; line with a length of 1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#normalVector()&quot;&gt;&lt;tt&gt;normalVector&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double x1()" doc="/**
&lt;p&gt;Returns the x-coordinate of the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double x2()" doc="/**
&lt;p&gt;Returns the x-coordinate of the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double y1()" doc="/**
&lt;p&gt;Returns the y-coordinate of the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double y2()" doc="/**
&lt;p&gt;Returns the y-coordinate of the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="IntersectType" doc="/**
&lt;p&gt;Describes the intersection between two lines.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qlinef-unbounded.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qlinef-bounded.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;QLineF::UnboundedIntersection&lt;/td&gt;&lt;td&gt;QLineF::BoundedIntersection&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;tt&gt;intersect&lt;/tt&gt; */">
        <enum-value name="NoIntersection" doc="/**
&lt;p&gt;Indicates that the lines do not intersect; i.e&amp;#x2e; they are parallel.&lt;/p&gt;
 */"/>
        <enum-value name="BoundedIntersection" doc="/**
&lt;p&gt;The two lines intersect with each other within the start and end points of each line.&lt;/p&gt;
 */"/>
        <enum-value name="UnboundedIntersection" doc="/**
&lt;p&gt;The two lines intersect, but not within the range defined by their lengths. This will be the case if the lines are not parallel.&lt;/p&gt;
 */"/>
</enum>
</class>