qwt_clipper.h
Go to the documentation of this file.
00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 #ifndef QWT_CLIPPER_H
00011 #define QWT_CLIPPER_H
00012 
00013 #include "qwt_global.h"
00014 #include "qwt_interval.h"
00015 #include <qpolygon.h>
00016 #include <qvector.h>
00017 
00018 class QRect;
00019 class QRectF;
00020 
00025 class QWT_EXPORT QwtClipper
00026 {
00027 public:
00028     static void clipPolygon( const QRect &,  
00029         QPolygon &, bool closePolygon = false );
00030     
00031     static void clipPolygon( const QRectF &, 
00032         QPolygon &, bool closePolygon = false );
00033     
00034     static void clipPolygonF( const QRectF &, 
00035         QPolygonF &, bool closePolygon = false );
00036 
00037     static QPolygon clippedPolygon( const QRect &, 
00038         const QPolygon &, bool closePolygon = false );
00039 
00040     static QPolygon clippedPolygon( const QRectF &, 
00041         const QPolygon &, bool closePolygon = false );
00042 
00043     static QPolygonF clippedPolygonF( const QRectF &, 
00044         const QPolygonF &, bool closePolygon = false );
00045 
00046     static QVector<QwtInterval> clipCircle(
00047         const QRectF &, const QPointF &, double radius );
00048 };
00049 
00050 #endif


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:04