Radium Engine  1.5.0
PluginContext.hpp
1 #pragma once
2 
3 #include <PluginBase/RaPluginBase.hpp>
4 #include <QObject>
5 
6 namespace Ra {
7 namespace Engine {
8 class RadiumEngine;
9 }
10 namespace Gui {
11 class SelectionManager;
12 class Timeline;
13 } // namespace Gui
14 namespace Gui {
15 class PickingManager;
16 class Viewer;
17 } // namespace Gui
18 
19 namespace Plugins {
20 
22 class RA_PLUGINBASE_API Context : public QObject
23 {
24  Q_OBJECT
25 
26  public:
27  explicit Context( QObject* parent = nullptr ) : QObject( parent ) {}
28 
29  Engine::RadiumEngine* m_engine { nullptr };
30  Gui::SelectionManager* m_selectionManager { nullptr };
31  Gui::Timeline* m_timeline { nullptr };
32  Gui::PickingManager* m_pickingManager { nullptr };
33  Gui::Viewer* m_viewer { nullptr };
34  std::string m_exportDir { "." };
35 
36  signals:
58  void setContinuousUpdate( bool b );
59 
63  void askForUpdate();
64 };
65 } // namespace Plugins
66 } // namespace Ra
The Timeline class provides display and management of time, as well as keyframes.
Definition: Timeline.hpp:38
Data passed to the plugin constructor.
void askForUpdate()
ask for single-shot rendering update
void setContinuousUpdate(bool b)
enable continuous rendering update
Definition: Cage.cpp:3