~ubuntu-branches/ubuntu/vivid/luminance-hdr/vivid-proposed

« back to all changes in this revision

Viewing changes to src/Viewers/GenericViewer.h

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2012-11-03 09:09:25 UTC
  • mfrom: (3.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121103090925-6b12x4a4cpqd3u4q
Tags: 2.3.0-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <QGraphicsScene>
33
33
#include <QGraphicsPixmapItem>
34
34
 
 
35
#include "Common/FloatRgbToQRgb.h"
 
36
 
35
37
// Forward declaration
36
38
namespace pfs {
37
39
    class Frame;            // #include "Libpfs/frame.h"
46
48
{
47
49
    Q_OBJECT
48
50
public:
 
51
 
49
52
    //! \brief Enum containing the list of possible view mode
50
 
    enum ViewerMode {
 
53
    enum ViewerMode
 
54
    {
51
55
        FIT_WINDOW = 0,
52
56
        FILL_WINDOW = 1,
53
57
        NORMAL_SIZE = 2
115
119
 
116
120
    //! \brief This function syncronizes scrollbars position and zoom mode
117
121
    //! \param[src] GenericViewer to syncronize with
118
 
    void syncViewer(GenericViewer *src);
 
122
    void syncViewer(GenericViewer* src);
119
123
 
120
124
    //! \brief tells is the viewer holds an LDR or an HDR frame
121
125
    virtual bool isHDR() = 0;
126
130
    //! \brief returns min value of the handled frame
127
131
    virtual float getMinLuminanceValue() = 0;
128
132
 
 
133
    //! \brief returns the mapping method
 
134
    virtual LumMappingMethod getLuminanceMappingMethod()
 
135
    {
 
136
        return MAP_LINEAR;
 
137
    }
 
138
 
129
139
    //! \brief returns a filename postfix based on the viewer's content
130
140
    virtual QString getFileNamePostFix() = 0;
131
141
 
157
167
    //! \brief Update viewer's pixmap when a new frame is set by setFrame()
158
168
    virtual void updatePixmap() = 0;
159
169
 
 
170
        void startDragging();
 
171
 
160
172
protected:
161
173
 
162
174
        virtual void retranslateUi();