| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/qwt/TeQwtPlotPicker.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraView - visualization and exploration of geographical databases
    00003 using TerraLib.
    00004 Copyright � 2001-2007 INPE and Tecgraf/PUC-Rio.
    00005 This file is part of TerraView. TerraView is free software; you can redistribute it
    00006 and/or modify it under the terms of the GNU General Public License as published by
    00007 the Free Software Foundation; either version 2 of the License, or
    00008 (at your option) any later version.
    00009
    00010 You should have received a copy of the GNU General Public License
    00011 along with TerraView.
    00012 The authors reassure the license terms regarding the warranties.
    00013 They specifically disclaim any warranties, including, but not limited to,
    00014 the implied warranties of merchantability and fitness for a particular purpose.
    00015 The software provided hereunder is on an "as is" basis, and the authors have no
    00016 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00017 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00018 indirect, special, incidental, or consequential damages arising out of the use of
    00019 this program and its documentation.
    00020 *************************************************************************************/
    00021
    00022 #ifndef TEQWTPLOTPICKER_H
    00023 #define TEQWTPLOTPICKER_H
    00024
    00025 #include "../../kernel/TeDefines.h"
    00026
    00027 #include <qwt_plot_picker.h>
    00028 #include <qpainter.h>
    00029 #include <qpixmap.h>
    00030
    00031 class TL_DLL TeQwtPlotPicker:public QwtPlotPicker
    00032 {
    00033     Q_OBJECT
    00034
    00035 public:
    00036
    00037            enum CursorMode
    00038     {
    00039         scatter,
    00040         histog
    00041            };
    00042
    00043            TeQwtPlotPicker(QwtPlotCanvas *c);
    00044            TeQwtPlotPicker(int xAxis, int yAxis, QwtPlotCanvas *c);
    00045            TeQwtPlotPicker(int xAxis, int yAxis, int selectionFlags, DisplayMode trackerMode, QwtPlotCanvas *c);
    00046
    00047            virtual ~TeQwtPlotPicker() {}
    00048
    00049            void setRect(const QRect& r) {rect_ = r;}
    00050            QRect& getRect() {return rect_;}
    00051            void setPen(QPen p) {painter_.setPen(p);}
    00052            void show(bool b);
    00053            void mode(int m);
    00054            void zoomActive(bool b) {zoomActive_ = b;}
    00055
    00056 protected:
    00057
    00058     void widgetMousePressEvent(QMouseEvent *);
    00059     void widgetMouseReleaseEvent(QMouseEvent *);
    00060     void widgetMouseMoveEvent(QMouseEvent *);
    00061
    00062            QRect rect_;
    00063     QPoint p_;
    00064            QPainter painter_;
    00065            bool restoreArea_;
    00066            bool show_;
    00067            bool zoomActive_;
    00068            int mode_;
    00069            int histoCursorH_;
    00070
    00071 signals:
    00072            void mousePressedSignal(int, int, QwtDoubleRect);
    00073 };
    00074 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines