Choreonoid  1.8
SceneView.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SCENE_VIEW_H
6 #define CNOID_BASE_SCENE_VIEW_H
7 
8 #include "View.h"
9 #include "exportdecl.h"
10 
11 namespace cnoid {
12 
13 class SceneWidget;
14 class SceneWidgetEventHandler;
15 class SceneBar;
16 class SgGroup;
17 class Item;
18 
19 class CNOID_EXPORT SceneView : public View
20 {
21 public:
22  static void initializeClass(ExtensionManager* ext);
23 
25  static SceneView* instance();
26 
31  static std::vector<SceneView*> instances();
32 
37  static int registerCustomMode(SceneWidgetEventHandler* modeHandler);
38 
43  static void unregisterCustomMode(int mode);
44 
45  static int customModeId(const std::string& modeName);
46 
47  static SignalProxy<void(SceneView* view)> sigLastFocusViewChanged();
48 
49  SceneView();
50  ~SceneView();
51 
52  SceneWidget* sceneWidget();
53  SgGroup* scene();
54 
55  bool setCustomMode(int mode);
56  int customMode() const;
57 
58 protected:
59  virtual void onFocusChanged(bool on) override;
60  virtual QWidget* indicatorOnInfoBar() override;
61  virtual bool storeState(Archive& archive) override;
62  virtual bool restoreState(const Archive& archive) override;
63 
64 private:
65  class Impl;
66  Impl* impl;
67 };
68 
69 }
70 
71 #endif
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::SgGroup
Definition: SceneGraph.h:220
cnoid::View
Definition: View.h:27
cnoid::Archive
Definition: Archive.h:22
cnoid::SceneWidgetEventHandler
Definition: SceneWidgetEventHandler.h:15
cnoid::SceneView
Definition: SceneView.h:19
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SignalProxy
Definition: Signal.h:470
View.h
cnoid::SceneWidget
Definition: SceneWidget.h:25