Q3PointArray Class Reference #include <Q3PointArray> Данный класс является частью библиотеки поддержки Qt 3. Он предоставлен для поддержки ранее написанного кода. Мы настоятельно не рекомендуем использовать этот класс в новом коде. Для получения дополнительной информации смотрите Портирование на Qt 4. Inherits: QPolygon. Открытые функции
Дополнительные унаследованные члены
Подробное описаниеThe Q3PointArray class provides an array of points. Q3PointArray is a QPolygon subclass that provides functions to make it more source compatible with the QPointArray class in Qt 3. In Qt 4, we recommend that you use QPainterPath for representing arcs, ellipses, and Bezier curves, rather than QPolygon. Описание функций-членовQ3PointArray::Q3PointArray ()Constructs an empty Q3PointArray. Q3PointArray::Q3PointArray ( const QRect & r, bool closed = false )Constructs a point array from the rectangle r. If closed is false, then the point array just contains the following four points of the rectangle ordered clockwise. The bottom-right point is located at (r.x() + r.width(), r.y() + r.height()). Q3PointArray::Q3PointArray ( const QPolygon & other )Создаёт копию other. Q3PointArray Q3PointArray::copy () constReturns a copy of this Q3PointArray. Q3PointArray Q3PointArray::cubicBezier () constReturns the Bezier points for the four control points in this array. bool Q3PointArray::isNull ()Returns isEmpty(). Use isEmpty() instead. void Q3PointArray::makeArc ( int x, int y, int w, int h, int a1, int a2 )Sets the points of the array to those describing an arc of an ellipse with size, width w by height h, and position (x, y), starting from angle a1 and spanning by angle a2. The resulting array has sufficient resolution for pixel accuracy (see the overloaded function which takes an additional QMatrix parameter). Angles are specified in 16ths of a degree, i.e. a full circle equals 5760 (16*360). Positive values mean counter-clockwise, whereas negative values mean the clockwise direction. Ноль градусов соответствует 3-часовой отметке. void Q3PointArray::makeArc ( int x, int y, int w, int h, int a1, int a2, const QMatrix & xf )Это перегруженная функция. Sets the points of the array to those describing an arc of an ellipse with width w and height h and position (x, y), starting from angle a1, and spanning angle by a2, and transformed by the matrix xf. The resulting array has sufficient resolution for pixel accuracy. Angles are specified in 16ths of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values mean counter-clockwise, whereas negative values mean the clockwise direction. Ноль градусов соответствует 3-часовой отметке. void Q3PointArray::makeEllipse ( int x, int y, int w, int h )Sets the points of the array to those describing an ellipse with size, width w by height h, and position (x, y). The returned array has sufficient resolution for use as pixels. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |