- Main Page
- Classes
- Files

- File List

# Visualizer.h

    00001 #ifndef VISUALIZER_H
    00002 #define VISUALIZER_H
    00003
    00004 #include <QObject>
    00005 #include <QtOpenGL>
    00006
    00010 class Visualizer : public QObject
    00011 {
    00012     Q_OBJECT
    00013
    00014 private:
    00015
    00017
    00018
    00019     enum TRenderMode
    00020     {
    00021         SLICE = 0,
    00022         RAYTRACE = 1,
    00023     };
    00024
    00026
    00027
    00030         TRenderMode         m_tMode;        //which rendermode?
    00031         unsigned int        m_nSlice;       //which slide should be rendered?
    00032         int                 m_iRotateX;     //Rotation around x-axis
    00033         int                 m_iRotateY;     //Rotation around y-axis
    00034         int                 m_iRotateZ;     //Rotation around z-axis
    00035         float               m_fZoom;
    00037
    00040         void ItlRenderWireBox();
    00042
    00043 public:
    00044
    00045     Visualizer();
    00047     static Visualizer *instance();
    00048
    00049     void initialize();
    00050     void render();
    00051
    00052 public slots:
    00055         void setRotationX(int iRotationAngle);
    00056         void setRotationY(int iRotationAngle);
    00057         void setRotationZ(int iRotationAngle);
    00058         void setZoom(int iZoom);
    00059         void setRenderMode(int iMode);
    00061 };
    00062
    00063 #endif // VISUALIZER_H