• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

slicingview.h

Go to the documentation of this file.
00001 #ifndef SLICINGVIEW_H
00002 #define SLICINGVIEW_H
00003 
00004 #include <QtGui>
00005 #include "Volume.h"
00006 
00007 class SlicingView : public QWidget
00008 {
00009 public:
00010     SlicingView();
00011     SlicingView(QGroupBox*& gb);
00012     virtual ~SlicingView();
00013 
00014     virtual void paintEvent(QPaintEvent* event);
00015 
00016     inline void setVolume(Volume *volume) { this->volume = volume; }
00017     inline void setDirection(int direction) { this->direction = direction; }
00018     inline void setPosition(int position) { this->position = position; }
00019 
00020     enum {
00021         DIRECTION_X,
00022         DIRECTION_Y,
00023         DIRECTION_Z
00024     };
00025 
00026 private:
00027     Volume *volume;
00028     int direction;
00029     int position;
00030     QImage* image;
00031 };
00032 
00033 #endif

Generated on Mon Dec 6 2010 12:10:16 for LU Visualisierung WS2010 - Beispiel 1 by  doxygen 1.7.2