qwt_pixel_matrix.cpp
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #include "qwt_pixel_matrix.h"
11 
17 QwtPixelMatrix::QwtPixelMatrix( const QRect& rect ):
18  QBitArray( qMax( rect.width() * rect.height(), 0 ) ),
19  d_rect( rect )
20 {
21 }
22 
25 {
26 }
27 
35 void QwtPixelMatrix::setRect( const QRect& rect )
36 {
37  if ( rect != d_rect )
38  {
39  d_rect = rect;
40  const int sz = qMax( rect.width() * rect.height(), 0 );
41  resize( sz );
42  }
43 
44  fill( false );
45 }
46 
48 QRect QwtPixelMatrix::rect() const
49 {
50  return d_rect;
51 }
QRect rect() const
QwtPixelMatrix(const QRect &rect)
Constructor.
void setRect(const QRect &rect)
~QwtPixelMatrix()
Destructor.
FMT_NOINLINE OutputIt fill(OutputIt it, size_t n, const fill_t< Char > &fill)
Definition: format.h:1483


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10