Choreonoid  1.8
DSMediaView.h
Go to the documentation of this file.
1 
2 #ifndef CNOID_MEDIAPLUGIN_DS_MEDIA_VIEW_H_INCLUDED
3 #define CNOID_MEDIAPLUGIN_DS_MEDIA_VIEW_H_INCLUDED
4 
5 #include <cnoid/View>
6 #include <QEvent>
7 
8 namespace cnoid {
9 
10 class DSMediaViewImpl;
11 
12 class DSMediaView : public View
13 {
14 public:
15  static bool initialize(ExtensionManager* ext);
16  static void finalize();
17 
18  DSMediaView();
19  ~DSMediaView();
20 
21  virtual bool storeState(Archive& archive);
22  virtual bool restoreState(const Archive& archive);
23 
24 protected:
25  //virtual bool event(QEvent* event);
26  virtual void resizeEvent(QResizeEvent* event);
27  virtual void paintEvent(QPaintEvent* event);
28  virtual QPaintEngine* paintEngine () const;
29  virtual void onActivated();
30  virtual void onDeactivated();
31 
32 private:
33  DSMediaViewImpl* impl;
34 };
35 }
36 
37 #endif
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::View
Definition: View.h:27
cnoid::Archive
Definition: Archive.h:22
cnoid::DSMediaView::finalize
static void finalize()
Definition: DSMediaView.cpp:136
cnoid::DSMediaView::initialize
static bool initialize(ExtensionManager *ext)
Definition: DSMediaView.cpp:103
cnoid::DSMediaView::onActivated
virtual void onActivated()
Definition: DSMediaView.cpp:300
cnoid::DSMediaView::paintEngine
virtual QPaintEngine * paintEngine() const
Definition: DSMediaView.cpp:293
cnoid::DSMediaView::~DSMediaView
~DSMediaView()
Definition: DSMediaView.cpp:202
cnoid::DSMediaView::onDeactivated
virtual void onDeactivated()
Definition: DSMediaView.cpp:309
cnoid::DSMediaView::storeState
virtual bool storeState(Archive &archive)
Definition: DSMediaView.cpp:726
cnoid::DSMediaView::restoreState
virtual bool restoreState(const Archive &archive)
Definition: DSMediaView.cpp:743
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::DSMediaView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: DSMediaView.cpp:266
cnoid::DSMediaView::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: DSMediaView.cpp:278
cnoid::DSMediaView
Definition: DSMediaView.h:12
cnoid::DSMediaView::DSMediaView
DSMediaView()
Definition: DSMediaView.cpp:148