Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_graphic.h


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_graphic.h

    r8127 r9383  
    3737    - QSvgRenderer/QSvgGenerator\n
    3838      Unfortunately QSvgRenderer hides to much information about
    39       its nodes in internal APIs, that are necessary for proper 
    40       layout calculations. Also it is derived from QObject and 
     39      its nodes in internal APIs, that are necessary for proper
     40      layout calculations. Also it is derived from QObject and
    4141      can't be copied like QImage/QPixmap.
    4242
    4343    QwtGraphic maps all scalable drawing primitives to a QPainterPath
    44     and stores them together with the painter state changes 
    45     ( pen, brush, transformation ... ) in a list of QwtPaintCommands. 
    46     For being a complete QPaintDevice it also stores pixmaps or images, 
    47     what is somehow against the idea of the class, because these objects 
     44    and stores them together with the painter state changes
     45    ( pen, brush, transformation ... ) in a list of QwtPaintCommands.
     46    For being a complete QPaintDevice it also stores pixmaps or images,
     47    what is somehow against the idea of the class, because these objects
    4848    can't be scaled without a loss in quality.
    4949
    5050    The main issue about scaling a QwtGraphic object are the pens used for
    51     drawing the outlines of the painter paths. While non cosmetic pens 
    52     ( QPen::isCosmetic() ) are scaled with the same ratio as the path, 
    53     cosmetic pens have a fixed width. A graphic might have paths with 
     51    drawing the outlines of the painter paths. While non cosmetic pens
     52    ( QPen::isCosmetic() ) are scaled with the same ratio as the path,
     53    cosmetic pens have a fixed width. A graphic might have paths with
    5454    different pens - cosmetic and non-cosmetic.
    5555
     
    5858    - control point rectangle\n
    5959      The control point rectangle is the bounding rectangle of all
    60       control point rectangles of the painter paths, or the target 
     60      control point rectangles of the painter paths, or the target
    6161      rectangle of the pixmaps/images.
    6262
     
    6565      what is needed for rendering the outline with an unscaled pen.
    6666
    67     Because the offset for drawing the outline depends on the shape 
    68     of the painter path ( the peak of a triangle is different than the flat side ) 
    69     scaling with a fixed aspect ratio always needs to be calculated from the 
     67    Because the offset for drawing the outline depends on the shape
     68    of the painter path ( the peak of a triangle is different than the flat side )
     69    scaling with a fixed aspect ratio always needs to be calculated from the
    7070    control point rectangle.
    7171
     
    7575{
    7676public:
    77     /*! 
     77    /*!
    7878        Hint how to render a graphic
    7979        \sa setRenderHint(), testRenderHint()
     
    8282    {
    8383        /*!
    84            When rendering a QwtGraphic a specific scaling between 
     84           When rendering a QwtGraphic a specific scaling between
    8585           the controlPointRect() and the coordinates of the target rectangle
    8686           is set up internally in render().
     
    9696    };
    9797
    98     /*! 
     98    /*!
    9999        \brief Render hints
    100100
     
    117117    void render( QPainter * ) const;
    118118
    119     void render( QPainter *, const QSizeF &, 
     119    void render( QPainter *, const QSizeF &,
    120120            Qt::AspectRatioMode = Qt::IgnoreAspectRatio  ) const;
    121121
    122     void render( QPainter *, const QRectF &, 
     122    void render( QPainter *, const QRectF &,
    123123            Qt::AspectRatioMode = Qt::IgnoreAspectRatio  ) const;
    124124
     
    126126        Qt::Alignment = Qt::AlignTop | Qt::AlignLeft ) const;
    127127
    128     QPixmap toPixmap() const; 
    129     QPixmap toPixmap( const QSize &, 
     128    QPixmap toPixmap() const;
     129    QPixmap toPixmap( const QSize &,
    130130        Qt::AspectRatioMode = Qt::IgnoreAspectRatio  ) const;
    131131
    132     QImage toImage() const; 
    133     QImage toImage( const QSize &, 
     132    QImage toImage() const;
     133    QImage toImage( const QSize &,
    134134        Qt::AspectRatioMode = Qt::IgnoreAspectRatio  ) const;
    135135
     
    144144    void setDefaultSize( const QSizeF & );
    145145    QSizeF defaultSize() const;
    146    
     146
    147147    void setRenderHint( RenderHint, bool on = true );
    148148    bool testRenderHint( RenderHint ) const;
Note: See TracChangeset for help on using the changeset viewer.