arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TFView.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     6-20-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 
00019 ///TFView.h
00020 ///  simianUI
00021 
00022 
00023 #ifndef __SIMIAN_UI_TF_VIEW_DOT_H
00024 #define __SIMIAN_UI_TF_VIEW_DOT_H
00025 
00026 #include <qcanvas.h>
00027 #include "TFItem.h"
00028 
00029 class TFView : public QCanvasView {
00030    Q_OBJECT
00031 public:
00032    TFView(QCanvas *canvas, QWidget *parent=0, const char *name=0, WFlags wf =0);
00033    virtual ~TFView();
00034 
00035    void setTF(TFBaseSP tf);
00036 
00037 public slots:
00038    virtual void setVolume(VolumeSP vol);
00039 
00040 signals:
00041    void tfChanged();
00042 
00043 protected:
00044 
00045    virtual void resizeEvent(QResizeEvent *re);
00046 
00047    virtual void contentsMousePressEvent(QMouseEvent*);
00048    virtual void contentsMouseMoveEvent(QMouseEvent*);
00049 
00050    QCanvasItem* _picked;
00051    QPoint       _lastPoint;
00052 
00053    TFItemVec    _items;
00054    TFBaseSP     _tf;
00055 };
00056 
00057 #endif
00058 

Send questions, comments, and bug reports to:
jmk