Developer Documentation
VsiPlugin Class Reference

#include <Plugin-VSI/vsiPlugin.hh>

Inheritance diagram for VsiPlugin:
BaseInterface MenuInterface RPCInterface LoggingInterface PythonInterface

Public Slots

QString askForInputs (QString _element, QString _inputs)
 Scripting function, that allows to ask the user for inputs during script execution. More...
 
void messageBox (QString _message)
 Scripting function, that displays a message box. More...
 
bool questionBox (QString _message)
 Scripting function, that displays a Yes/No message box. More...
 
bool continueBox (QString _message)
 Shows a non blocking stop box for use inside loops. More...
 
QString version ()
 

Signals

void getMenubarMenu (QString _name, QMenu *&_menu, bool _create)
 
void pluginExists (QString _pluginName, bool &_exists)
 
void functionExists (QString _pluginName, QString _functionName, bool &_exists)
 
void log (Logtype _type, QString _message)
 
void log (QString _message)
 
void executePythonScript (QString _script)
 
void openPythonScriptInEditor (QString _script)
 
- Signals inherited from BaseInterface
virtual void updateView ()
 Update current view in Main Application. More...
 
virtual void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 Set a description for a public slot. More...
 
virtual void setRenderer (unsigned int _viewer, QString _rendererName)
 Set a renderer for the given viewer. More...
 
- Signals inherited from MenuInterface
virtual void getMenubarMenu (QString _name, QMenu *&_menu, bool _create)
 Get a existing top level menu pointer or create a new one. More...
 
- Signals inherited from RPCInterface
virtual void pluginExists (QString _pluginName, bool &_exists)
 
- Signals inherited from LoggingInterface
virtual void log (Logtype _type, QString _message)=0
 
virtual void log (QString _message)=0
 
- Signals inherited from PythonInterface
virtual void executePythonScript (QString _script)
 

Public Member Functions

 VsiPlugin ()
 Constructor. More...
 
 ~VsiPlugin ()
 Destructor. More...
 
QString name ()
 Name of the Plugin. More...
 
QString description ()
 Description of the Plugin. More...
 

Private Slots

void pluginsInitialized ()
 Register in menubar. More...
 
void noguiSupported ()
 
- Private Slots inherited from BaseInterface
virtual void exit ()
 
virtual QString version ()
 Return a version string for your plugin. More...
 

Private Member Functions

void showScriptEditor ()
 Shows visual script editor. More...
 
void showInScriptEditor (const QString &_script)
 Opens the text based script editor with the given script. More...
 
void initContext ()
 initalisation More...
 
- Private Member Functions inherited from BaseInterface
virtual void noguiSupported ()
 
virtual ~BaseInterface ()
 Destructor. More...
 
virtual void blockScenegraphUpdates (bool _block)
 Tell the core to prevent scenegraph updates. More...
 
virtual void updatedObject (int _objectId)
 An object has been changed or added by this plugin. More...
 
virtual void updatedObject (int _identifier, const UpdateType &_type)
 An object has been changed or added by this plugin. More...
 
virtual void nodeVisibilityChanged (int _identifier)
 A scenegraph node has been shown or hidden. More...
 
virtual void getCurrentRenderer (unsigned int _viewer, QString &_rendererName)
 Get the current renderer for the given viewer. More...
 
- Private Member Functions inherited from MenuInterface
virtual ~MenuInterface ()
 Destructor. More...
 
virtual void addMenubarAction (QAction *_action, QString _name)
 Adds an action to the menubar. More...
 
virtual void addMenubarActions (std::vector< QAction * > &_actions, QString _name)
 Add multiple actions to the menu bar. More...
 
- Private Member Functions inherited from RPCInterface
virtual ~RPCInterface ()
 Destructor. More...
 
virtual void functionExists (QString _pluginName, QString _functionName, bool &_exists)
 
- Private Member Functions inherited from LoggingInterface
virtual ~LoggingInterface ()
 Destructor. More...
 
- Private Member Functions inherited from PythonInterface
virtual void openPythonScriptInEditor (QString _script)
 
virtual ~PythonInterface ()
 Destructor. More...
 

Private Attributes

VSI::Contextcontext_
 
VSI::BaseWidgetbaseWidget_
 

Detailed Description

Plugin that provides a visual scripting interface

Definition at line 71 of file vsiPlugin.hh.

Constructor & Destructor Documentation

◆ VsiPlugin()

VsiPlugin::VsiPlugin ( )

Constructor.

Definition at line 69 of file vsiPlugin.cc.

◆ ~VsiPlugin()

VsiPlugin::~VsiPlugin ( )

Destructor.

Definition at line 78 of file vsiPlugin.cc.

Member Function Documentation

◆ askForInputs

QString VsiPlugin::askForInputs ( QString  _element,
QString  _inputs 
)
slot

Scripting function, that allows to ask the user for inputs during script execution.

Gererates a dialog for the given element inputs.

Definition at line 169 of file vsiPlugin.cc.

◆ continueBox

bool VsiPlugin::continueBox ( QString  _message)
slot

Shows a non blocking stop box for use inside loops.

Non blocking box which can be used inside scripting loops to stop on clicks.

Definition at line 267 of file vsiPlugin.cc.

◆ description()

QString VsiPlugin::description ( )
inlinevirtual

Description of the Plugin.

Implements BaseInterface.

Definition at line 111 of file vsiPlugin.hh.

◆ initContext()

void VsiPlugin::initContext ( )
private

initalisation

initalize context

Definition at line 125 of file vsiPlugin.cc.

◆ messageBox

void VsiPlugin::messageBox ( QString  _message)
slot

Scripting function, that displays a message box.

Definition at line 244 of file vsiPlugin.cc.

◆ name()

QString VsiPlugin::name ( void  )
inlinevirtual

Name of the Plugin.

Implements BaseInterface.

Definition at line 108 of file vsiPlugin.hh.

◆ noguiSupported

void VsiPlugin::noguiSupported ( )
inlineprivateslot

Definition at line 132 of file vsiPlugin.hh.

◆ pluginsInitialized

void VsiPlugin::pluginsInitialized ( )
privateslot

Register in menubar.

Definition at line 89 of file vsiPlugin.cc.

◆ questionBox

bool VsiPlugin::questionBox ( QString  _message)
slot

Scripting function, that displays a Yes/No message box.

Definition at line 254 of file vsiPlugin.cc.

◆ showInScriptEditor()

void VsiPlugin::showInScriptEditor ( const QString &  _script)
private

Opens the text based script editor with the given script.

shows the given script in the textual script editor

Definition at line 226 of file vsiPlugin.cc.

◆ showScriptEditor()

void VsiPlugin::showScriptEditor ( )
private

Shows visual script editor.

Show visual script editor.

Definition at line 111 of file vsiPlugin.cc.

◆ version

QString VsiPlugin::version ( )
inlineslot

Definition at line 127 of file vsiPlugin.hh.

Member Data Documentation

◆ baseWidget_

VSI::BaseWidget* VsiPlugin::baseWidget_
private

Definition at line 148 of file vsiPlugin.hh.

◆ context_

VSI::Context* VsiPlugin::context_
private

Definition at line 147 of file vsiPlugin.hh.


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