Radium Engine  1.5.0
Ra::Plugins::Context Class Reference

Data passed to the plugin constructor. More...

#include <PluginBase/PluginContext.hpp>

Inherits QObject.

+ Collaboration diagram for Ra::Plugins::Context:

Signals

void setContinuousUpdate (bool b)
 enable continuous rendering update More...
 
void askForUpdate ()
 ask for single-shot rendering update More...
 

Public Member Functions

 Context (QObject *parent=nullptr)
 

Public Attributes

Engine::RadiumEnginem_engine { nullptr }
 
Gui::SelectionManager * m_selectionManager { nullptr }
 
Gui::Timelinem_timeline { nullptr }
 
Gui::PickingManager * m_pickingManager { nullptr }
 
Gui::Viewerm_viewer { nullptr }
 
std::string m_exportDir { "." }
 

Detailed Description

Data passed to the plugin constructor.

Definition at line 22 of file PluginContext.hpp.

Member Function Documentation

◆ askForUpdate

void Ra::Plugins::Context::askForUpdate ( )
signal

ask for single-shot rendering update

See also
BaseApplication::askForUpdate
setContinuousUpdate for usage example

◆ setContinuousUpdate

void Ra::Plugins::Context::setContinuousUpdate ( bool  b)
signal

enable continuous rendering update

See also
BaseApplication::setContinuousUpdate

Usage: in your plugin, declare signals, and connect them to the PluginContext signals for forwarding:

class MyPlugin : public QObject, Ra::Plugins::RadiumPluginInterface
{
void MyPlugin::registerPlugin( const Ra::Plugins::Context& context ) {
connect( this, &MyPlugin::askForUpdate, &context, &Ra::Plugins::Context::askForUpdate );
connect( this, &MyPlugin::setContinuousUpdate, &context,
}
signals:
void setContinuousUpdate( bool b );
void askForUpdate();
};
Data passed to the plugin constructor.
void askForUpdate()
ask for single-shot rendering update
void setContinuousUpdate(bool b)
enable continuous rendering update
Interface class for Radiums plugins.

The documentation for this class was generated from the following file: