From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/ntqwmatrix.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/ntqwmatrix.html') diff --git a/doc/html/ntqwmatrix.html b/doc/html/ntqwmatrix.html index 745dfbdad..1f137d36f 100644 --- a/doc/html/ntqwmatrix.html +++ b/doc/html/ntqwmatrix.html @@ -87,29 +87,29 @@ The TQWMatrix class specifies 2D transformations of a coordinate system.

-

The standard coordinate system of a paint +

The standard coordinate system of a paint device has the origin located at the top-left position. X values increase to the right; Y values increase downward. -

This coordinate system is the default for the TQPainter, which +

This coordinate system is the default for the TQPainter, which renders graphics in a paint device. A user-defined coordinate system can be specified by setting a TQWMatrix for the painter.

Example:

-        MyWidget::paintEvent( TQPaintEvent * )
+        MyWidget::paintEvent( TQPaintEvent * )
         {
-            TQPainter p;                      // our painter
+            TQPainter p;                      // our painter
             TQWMatrix m;                      // our transformation matrix
             m.rotate( 22.5 );                // rotated coordinate system
-            p.begin( this );                 // start painting
-            p.setWorldMatrix( m );           // use rotated coordinate system
-            p.drawText( 30,20, "detator" );  // draw rotated text at 30,20
-            p.end();                         // painting done
+            p.begin( this );                 // start painting
+            p.setWorldMatrix( m );           // use rotated coordinate system
+            p.drawText( 30,20, "detator" );  // draw rotated text at 30,20
+            p.end();                         // painting done
         }
     

A matrix specifies how to translate, scale, shear or rotate the graphics; the actual transformation is performed by the drawing -routines in TQPainter and by TQPixmap::xForm(). +routines in TQPainter and by TQPixmap::xForm().

The TQWMatrix class contains a 3x3 matrix of the form: @@ -162,12 +162,12 @@ that sets rotation directly. m = m3 * m2 * m1; // combine all transformations -

TQPainter has functions to translate, scale, shear and rotate the +

TQPainter has functions to translate, scale, shear and rotate the coordinate system without using a TQWMatrix. Although these functions are very convenient, it can be more efficient to build a -TQWMatrix and call TQPainter::setWorldMatrix() if you want to perform +TQWMatrix and call TQPainter::setWorldMatrix() if you want to perform more than a single transform operation. -

See also TQPainter::setWorldMatrix(), TQPixmap::xForm(), Graphics Classes, and Image Processing Classes. +

See also TQPainter::setWorldMatrix(), TQPixmap::xForm(), Graphics Classes, and Image Processing Classes.


Member Type Documentation

TQWMatrix::TransformationMode

-- cgit v1.2.3
m11m12 0