202class QTreeWidgetItem;
271 EVENT_SELECTIONTREE_CHANGED = 1,
276 EVENT_REFERENCE_PICKED = 3,
277 EVENT_REFERENCE_RELEASED = 4,
278 EVENT_TOOL_MODIFIED = 5,
279 EVENT_CREATED_ISOCUBE = 6,
280 EVENT_SELECTION3D_CHANGED = 7,
281 EVENT_VIEWPOSE_CHANGED = 8,
282 EVENT_ROBOT_MOVED = 9,
284 EVENT_ITEM_MOVED_POSE = 11,
285 EVENT_COLLISIONMAP_RESET = 12,
286 EVENT_COLLISIONMAP_TOO_LARGE = 13,
287 EVENT_CALIB_MEASUREMENT = 14,
327 virtual QString
PluginLoad(QMainWindow *mw, QMenuBar *menubar, QStatusBar *statusbar,
IRoboDK *rdk,
const QString &settings=
"")
405Q_DECLARE_INTERFACE(
IAppRoboDK,
"RoboDK.IAppRoboDK")
Interface to RoboDK. Each plugin must implement this class to establish the interface to RoboDK....
virtual bool PluginItemClickMulti(QList< Item > &item_list, QMenu *menu, TypeClick click_type)
This function is called every time a new context menu is created for a list of items.
virtual bool PluginItemClick(Item item, QMenu *menu, TypeClick click_type)
This function is called every time a new context menu is created for an item.
@ EVENT_PROGSLIDER_CHANGED
A program slider was opened, changed, or closed (RoboDK 5.6.4 required).
@ EVENT_ITEM_MOVED
Obsolete after RoboDK 4.2.0. Use EVENT_ITEM_MOVED_POSE instead.
@ EVENT_PROGSLIDER_SET
The index of a program slider changed (RoboDK 5.6.4 required).
@ EVENT_RENAME
The name of an item changed (RoboDK 5.6.3 required).
@ EVENT_STATIONCHANGED
A new robodk station was loaded (RoboDK 5.6.3 required).
@ EVENT_SETVISIBLE
The visibility state of an item changed (RoboDK 5.6.3 required).
@ EVENT_LICENSEUPDATED
The license that applies to the current user changed (RoboDK 5.9.4.25487 required).
@ EVENT_SELECTION3D_CLICK
An object in the 3D view was clicked on (right click, left click or double click),...
virtual QString PluginLoad(QMainWindow *mw, QMenuBar *menubar, QStatusBar *statusbar, IRoboDK *rdk, const QString &settings="")
Load the plugin. This function is called only once when the plugin is loaded (or RoboDK is started wi...
virtual void PluginUnload()
This function is called once only when the plugin is being unloaded.
virtual void PluginLoadToolbar(QMainWindow *mw, int iconsize)
This function is called every time the toolbar is set up. This function is called at least once right...
TypeEvent
Event types for PluginEvent function.
@ EventAbout2ChangeStation
The current RoboDK station is about to loose focus because the user requested to open a new station (...
@ EventAbout2CloseStation
@ EventChangedStation
This event is triggered when we change the active station and a new station gains focus (IRoboDK::get...
@ EventMoved
Moved event: Something has moved, such as a robot, reference frame, object or tool....
virtual void PluginEvent(TypeEvent event_type)
This function is called every time there is a new RoboDK event such as rendering the screen,...
virtual QString PluginName()=0
Return the plugin name. Try to be creative and make sure the name is unique.
virtual QString PluginCommand(const QString &command, const QString &value)
Specific commands can be passed from the RoboDK API. For example, a parent application can rely on a ...
TypeClick
Types of clicks for PluginItemClick function.
@ ClickCtrlLeft
Ctrl Left click.
@ ClickDouble
Double click.
The Item class represents an item in RoboDK station. An item can be a robot, a frame,...
This class is the iterface to the RoboDK API. With the RoboDK API you can automate certain tasks and ...