Isis 3 Programmer Reference
QtImporter.h
Go to the documentation of this file.
1 #ifndef QtImporter_h
2 #define QtImporter_h
3 
27 #include "ImageImporter.h"
28 
29 class QImage;
30 
31 namespace Isis {
55  class QtImporter : public ImageImporter {
56  public:
57  QtImporter(FileName inputName);
58  virtual ~QtImporter();
59 
60  virtual bool isGrayscale() const;
61  virtual bool isRgb() const;
62  virtual bool isArgb() const;
63 
64  protected:
65  virtual void updateRawBuffer(int line, int band) const;
66  virtual int getPixel(int s, int l) const;
67 
68  virtual int getGray(int pixel) const;
69  virtual int getRed(int pixel) const;
70  virtual int getGreen(int pixel) const;
71  virtual int getBlue(int pixel) const;
72  virtual int getAlpha(int pixel) const;
73 
74  private:
76  QImage *m_qimage;
77  };
78 };
79 
80 
81 #endif
QImage * m_qimage
Structure holding all input image data in memory.
Definition: QtImporter.h:76
File name manipulation and expansion.
Definition: FileName.h:116
virtual int getBlue(int pixel) const
Retrieves the blue component of the given pixel.
Definition: QtImporter.cpp:144
virtual void updateRawBuffer(int line, int band) const
Does nothing as Qt reads the entire input image into memory, and therefore does not need to be update...
Definition: QtImporter.cpp:82
virtual int getGray(int pixel) const
Retrieves the gray component of the given pixel.
Definition: QtImporter.cpp:108
virtual int getAlpha(int pixel) const
Retrieves the alpha component of the given pixel.
Definition: QtImporter.cpp:156
virtual bool isArgb() const
Tests to see if the input image is has an alpha channel, implying RGBA.
Definition: QtImporter.cpp:70
virtual bool isRgb() const
Tests to see if the input image is neither grayscale nor has an alpha channel, implying RGB (no alpha...
Definition: QtImporter.cpp:60
QtImporter(FileName inputName)
Construct the importer.
Definition: QtImporter.cpp:18
virtual int getRed(int pixel) const
Retrieves the red component of the given pixel.
Definition: QtImporter.cpp:120
Imports a series of standard image formats with Qt facilities.
Definition: QtImporter.h:55
virtual ~QtImporter()
Destruct the importer.
Definition: QtImporter.cpp:38
virtual bool isGrayscale() const
Tests to see if the input image is grayscale (no RGB/A).
Definition: QtImporter.cpp:49
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Imports images with standard formats into Isis as cubes.
Definition: ImageImporter.h:55
virtual int getPixel(int s, int l) const
Returns a representation of a pixel for the input format that can then be broken down into specific g...
Definition: QtImporter.cpp:96
virtual int getGreen(int pixel) const
Retrieves the green component of the given pixel.
Definition: QtImporter.cpp:132