Eneboo - Documentación para desarrolladores
|
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_array.h" 00015 #include "qwt_polygon.h" 00016 #include "qwt_double_rect.h" 00017 #include "qwt_double_interval.h" 00018 00019 class QRect; 00020 00025 class QWT_EXPORT QwtClipper 00026 { 00027 public: 00028 static QwtPolygon clipPolygon(const QRect &, const QwtPolygon &); 00029 static QwtPolygonF clipPolygonF(const QwtDoubleRect &, const QwtPolygonF &); 00030 00031 #if QT_VERSION >= 0x040000 00032 static QwtArray<QwtDoubleInterval> clipCircle( 00033 const QwtDoubleRect &, const QwtDoublePoint &, double radius); 00034 #endif 00035 }; 00036 00037 #endif