Choreonoid  1.5
ImageView.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_IMAGE_VIEW_H_INCLUDED
6 #define CNOID_BASE_IMAGE_VIEW_H_INCLUDED
7 
8 #include <cnoid/View>
9 #include "exportdecl.h"
10 
11 class QImage;
12 
13 namespace cnoid {
14 
15 class Image;
16 class ImageViewImpl;
17 
18 class CNOID_EXPORT ImageView : public View
19 {
20 public:
21  static void initializeClass(ExtensionManager* ext);
22 
23  ImageView();
24  ~ImageView();
25 
26  void setPixmap(const QPixmap& pixmap);
27  void setImage(const Image& image);
28  void setImage(const QImage& image);
29 
30  void setScalingEnabled(bool on);
31  bool isScalingEnabled() const;
32 
33 private:
34  ImageViewImpl* impl;
35 };
36 }
37 
38 #endif
Definition: ExtensionManager.h:26
Definition: Image.h:15
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
Definition: View.h:28
Definition: ImageView.h:18
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37