Developer Documentation
DataControlPlugin Class Reference

#include <Plugin-Datacontrol/DataControlPlugin.hh>

Inheritance diagram for DataControlPlugin:
PythonInterface LoadSaveInterface ScriptInterface ContextMenuInterface INIInterface LoggingInterface KeyInterface ToolboxInterface BaseInterface

Public Slots

QString version ()
 

Signals

void updateView ()
 
void updatedObject (int _it, const UpdateType &_type)
 
void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 
void log (Logtype _type, QString _message)
 
void log (QString _message)
 
void addContextMenuItem (QAction *_action, ContextMenuType _type)
 
void addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type)
 
void deleteObject (int _id)
 
void emptyObjectAdded (int _id)
 
void copyObject (int _oldId, int &_newId)
 
void addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget)
 
void objectsGrouped (IdList)
 
- 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 ToolboxInterface
virtual void addToolbox (QString _name, QWidget *_widget)
 Add a toolbox widget to the gui with the given name. More...
 
- Signals inherited from KeyInterface
virtual void registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
 Register a key-combination for your plugin. More...
 
- Signals inherited from LoggingInterface
virtual void log (Logtype _type, QString _message)=0
 
virtual void log (QString _message)=0
 
- Signals inherited from ContextMenuInterface
virtual void addContextMenuItem (QAction *_action, ContextMenuType _type)
 Add an entry for a context Menu. More...
 
- Signals inherited from ScriptInterface
virtual void scriptInfo (QString _functionWithParameters)
 Emit this signal if a scriptable function is executed. More...
 
virtual void getScriptingEngine (QScriptEngine *&_engine)
 
virtual void executeScript (QString _script)
 
virtual void getAvailableFunctions (QStringList &_functions)
 
- Signals inherited from LoadSaveInterface
virtual void save (int _id, QString _filename)
 Save object to a file. More...
 
virtual void load (QString _filename, DataType _type, int &_id)
 Load object from file with a specific DataType. More...
 

Public Member Functions

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

Private Slots

void initializePlugin ()
 
void pluginsInitialized ()
 Plugin initialization. More...
 
void slotVisibilityChanged (int _identifier)
 Update the model if the visibility of an object changed. More...
 
void slotObjectSelectionChanged (int _identifier)
 update drawing of objects when the active object changed More...
 
void slotObjectPropertiesChanged (int _identifier)
 Update the model if properties of an object changed. More...
 
void slotObjectUpdated (int _identifier, const UpdateType &_type)
 
void slotKeyEvent (QKeyEvent *_event)
 a key event occurred More...
 
void loadIniFileOptionsLast (INIFile &_ini)
 Load Groups from ini file. More...
 
void saveIniFileOptions (INIFile &_ini)
 Save groups to ini file. More...
 
void saveOnExit (INIFile &_ini)
 Save settings before application is closed. More...
 
void fileOpened (int _id)
 Update the model if a file has been opened. More...
 
void addedEmptyObject (int _id)
 Update the model if an empty object has been added. More...
 
void objectDeleted (int _id)
 an object was deleted. delete it internally More...
 
void noguiSupported ()
 
- Private Slots inherited from BaseInterface
virtual void exit ()
 
virtual QString version ()
 Return a version string for your plugin. More...
 
- Private Slots inherited from KeyInterface
virtual void slotKeyEvent (QKeyEvent *_event)
 Key Event from Main App. More...
 

Private Member Functions

void slotObjectsGrouped (IdList _lst)
 update objects when they have been grouped More...
 
- Private Member Functions inherited from BaseInterface
virtual void noguiSupported ()
 
virtual ~BaseInterface ()
 Destructor.
 
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 ToolboxInterface
virtual ~ToolboxInterface ()
 Destructor.
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon)
 Add a toolbox widget to the gui with the given name and an icon. More...
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget)
 Add a toolbox widget to the gui with the given name, icon and header area widget. More...
 
- Private Member Functions inherited from KeyInterface
virtual void slotKeyReleaseEvent (QKeyEvent *_event)
 Key Release Event from Main App. More...
 
virtual ~KeyInterface ()
 Destructor.
 
- Private Member Functions inherited from LoggingInterface
virtual ~LoggingInterface ()
 Destructor.
 
- Private Member Functions inherited from INIInterface
virtual ~INIInterface ()
 Destructor.
 
- Private Member Functions inherited from ContextMenuInterface
virtual ~ContextMenuInterface ()
 Destructor.
 
virtual void addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type)
 Add an entry for a context Menu. More...
 
virtual void hideContextMenu ()
 hide the main context menu
 
- Private Member Functions inherited from ScriptInterface
virtual ~ScriptInterface ()
 Destructor.
 
virtual void executeFileScript (QString _filename)
 
virtual void getDescription (QString _function, QString &_description, QStringList &_parameters, QStringList &_descriptions)
 
- Private Member Functions inherited from LoadSaveInterface
virtual ~LoadSaveInterface ()
 Destructor.
 
virtual void addEmptyObject (DataType _type, int &_id)
 
virtual void copyObject (int _oldId, int &_newId)
 
virtual void emptyObjectAdded (int _id)
 DEPRECATED HERE (Moved to Type Interface)! Emit this signal if an empty object has been created. More...
 
virtual void deleteObject (int _id)
 Delete an object
This signal can be called from any thread.
. More...
 
virtual void deleteAllObjects ()
 Delete all Objects. More...
 
virtual void getAllFileFilters (QStringList &_filters)
 Get all file filters that are registered. More...
 
- Private Member Functions inherited from PythonInterface
virtual ~PythonInterface ()
 Destructor.
 

Private Attributes

DatacontrolToolboxWidgettool_
 Widget for Toolbox.
 
QIcon * toolIcon_
 
QGridLayout * MeshDialogLayout_
 Layout for Toolbox.
 
QTableWidget * objectList_
 Table containing Mesh information and status.
 
bool locked
 Flag set to true if meshlist is updated, preventing signal for list udate to be called.
 
TreeModelmodel_
 The Treemodel organizing the data.
 
QTreeView * view_
 Tree view.
 
QHeaderView * viewHeader_
 Pointer to the header to the view widget.
 
DefaultObjectMarker objectMarker
 Default marker to visualize "source" and "target" object flags.
 

Slots which are called if data changed

int onlyDown_
 Gets called when the data in the table has changed. More...
 
int onlyUp_
 Gets called when the data in the table has changed. More...
 
int columnFromGUI_
 Gets called when the data in the table has changed. More...
 
void slotDataChanged (int _id, int _column, const QVariant &_value)
 Gets called when the data in the table has changed. More...
 
void slotMoveBaseObject (int _id, int _newParentId)
 Gets called when an object was moved via drag n drop. More...
 
void propagateDownwards (BaseObject *_obj, int _column)
 Recursively update a column up to the root of the tree. More...
 
void propagateUpwards (BaseObject *_obj, int _column)
 Recursively update a column up to the root of the tree. More...
 

Popup Menu related

QModelIndex popupIndex_
 Index where a popup has been opened.
 
int headerPopupType_
 Defines the section of the Popup.
 
void slotCustomContextMenuRequested (const QPoint &_pos)
 Display a custom context window for the TreeView. More...
 
void slotPopupRemove ()
 Called by the popup menu to remove an object/group. More...
 
void slotUngroup ()
 Called by the popup menu to ungroup items. More...
 
void slotGroup ()
 Called by the popup menu to group items. More...
 
void slotCopy ()
 Called by the popup menu to copy items. More...
 
void slotRename ()
 Called by the popup menu to rename items. More...
 
void slotZoomTo ()
 Called by the popup menu to zoom to an object. More...
 
void slotSwitchLight ()
 Called by the popup menu in order to turn lights on/off. More...
 
void slotEditLight ()
 Called by the popup menu in order to edit lights. More...
 
void slotMaterialProperties ()
 Called by the popup menu to set material properties.
 
void slotCopyMaterialToTargeted ()
 Called by the popup menu to copy material properties. More...
 
void slotCopyMaterialToClipboard ()
 Called by the popup menu to copy material properties to clipboard.
 
void slotPasteMaterialFromClipboard ()
 Called by the popup menu to paste material properties from clipboard.
 
void slotNodeChanged (ACG::SceneGraph::BaseNode *_node)
 Called when the material properties were changed inside the material dialog. More...
 
void slotShowLightSources (bool _state)
 Hide/Show all light sources if checkbox has been checked.
 
void slotShowLightSources ()
 Index where a popup has been opened.
 
void slotHeaderCustomContextMenuRequested (const QPoint &_pos)
 Display a custom context window for the TreeViews header. More...
 

GL Area Context Menu related slots

QAction * targetAction_
 Hide an object.
 
QAction * sourceAction_
 Hide an object.
 
QAction * removeAction_
 Hide an object.
 
QToolButton * advancedSettingsBtn_
 Hide an object.
 
void slotContextMenuHide ()
 Hide an object.
 
void slotContextMenuTarget ()
 Target Selection.
 
void slotContextMenuSource ()
 Source Selection.
 
void slotContextMenuRemove ()
 Remove Selected Item.
 
void slotUpdateContextMenu (int _objectId)
 Update the context Menus for the given id.
 

Bounding box related slots/functions

void slotBoundingBoxChange ()
 Bounding box selection changed. More...
 
void updateBoundingBox (BaseObjectData *_obj)
 Updates bounding box. More...
 

Scripting functions

void setDescriptions ()
 
QString getObjectName (int objectId)
 Get the Objects name from the id. More...
 
void objectDelete (int objectId)
 Delete the given object. More...
 
int copyObject (int objectId)
 Creates an object copy. More...
 
int getObject (QString _name)
 Get the id of an object by its name. More...
 
DataType dataType (int objectId)
 Get the DataType of a given object.
 
void hideObject (int objectId)
 Hide the given Object. More...
 
void showObject (int objectId)
 Show the given Object. More...
 
void setTarget (int objectId, bool _target)
 set the given Object as target More...
 
void setSource (int objectId, bool _source)
 set the given Object as source More...
 
void setObjectName (int objectId, QString _name)
 set the name of the given object More...
 
void setAllTarget ()
 Makes all available objects target. More...
 
void setAllSource ()
 Makes all available objects source. More...
 
void clearAllTarget ()
 Unselect all objects. More...
 
void clearAllSource ()
 remove source selection from all objects More...
 
void showAll ()
 Shows all objects. More...
 
void hideAll ()
 Hides all objects. More...
 
int addEmptyGroup (QString _groupName="", int _parentGroupId=0)
 Create new empty group. More...
 
int groupObjects (IdList _objectIDs, QString _groupName="")
 Group given Objects together. More...
 
bool addObjectToGroup (int _objectId, int _groupId)
 add an object to an existing group More...
 
bool unGroupObject (int _id)
 
IdList getTargetObjects (DataType _type)
 Get all target objects of given type. More...
 
IdList getSourceObjects (DataType _type)
 Get all source objects of given type. More...
 
unsigned int groupCount () const
 Returns the number of groups. More...
 
QString availableDataTypeNames () const
 Returns a list of all available DataTypes. More...
 
void printObjectInfoToLog ()
 Print information about all open objects to the console. More...
 
IdList getGroupElements (int _groupId)
 Get all elements of the given group. More...
 
void showReducedUi (bool reduced)
 Show or hide the extended ui interface in the datacontrol toolbox.
 

Detailed Description

Plugin for controlling the Object data structures (Show,hide Object, Target, Source selection

Definition at line 70 of file DataControlPlugin.hh.

Member Function Documentation

◆ addedEmptyObject

void DataControlPlugin::addedEmptyObject ( int  _id)
privateslot

Update the model if an empty object has been added.

Parameters
_idid of an object

Definition at line 437 of file DataControlPlugin.cc.

◆ addEmptyGroup

int DataControlPlugin::addEmptyGroup ( QString  _groupName = "",
int  _parentGroupId = 0 
)
slot

Create new empty group.

Create and add an empty group.

Parameters
_groupNameName of the new group. If it is an empty string, a default name based on group id will be generated.
_parentGroupIdParent object under which the new group is created. If _parentGroupId is zero, the corresponding object does not exist or it is not a group, the new group is created as toplevel.
_groupNamename of the new group
_parentGroupIdid of the parent. -1, if the new group will have no parent

Definition at line 328 of file DataControlPluginScripting.cc.

◆ addObjectToGroup

bool DataControlPlugin::addObjectToGroup ( int  _objectId,
int  _groupId 
)
slot

add an object to an existing group

add the object with _objectId to the group with _groupId

Returns
success

Definition at line 660 of file DataControlPluginScripting.cc.

◆ availableDataTypeNames

QString DataControlPlugin::availableDataTypeNames ( ) const
slot

Returns a list of all available DataTypes.

Return available dataType.

Returns a space separated list of all available DataTypes

Returns
List of available data types

Definition at line 643 of file DataControlPluginScripting.cc.

◆ clearAllSource

void DataControlPlugin::clearAllSource ( )
slot

remove source selection from all objects

Clear Source Selection for all objects.

Definition at line 510 of file DataControlPluginScripting.cc.

◆ clearAllTarget

void DataControlPlugin::clearAllTarget ( )
slot

Unselect all objects.

Clear Target Selection for all objects.

Definition at line 489 of file DataControlPluginScripting.cc.

◆ copyObject

int DataControlPlugin::copyObject ( int  objectId)
slot

Creates an object copy.

Generate a copy of an object.

Parameters
objectIdid of an object
Returns
id of the generated object

Definition at line 173 of file DataControlPluginScripting.cc.

◆ fileOpened

void DataControlPlugin::fileOpened ( int  _id)
privateslot

Update the model if a file has been opened.

Parameters
_idid of an object

Definition at line 412 of file DataControlPlugin.cc.

◆ getGroupElements

IdList DataControlPlugin::getGroupElements ( int  _groupId)
slot

Get all elements of the given group.

get all objects of an given group

get all objects of an given group with id _groupId

Returns
id list of group elements

Definition at line 694 of file DataControlPluginScripting.cc.

◆ getObject

int DataControlPlugin::getObject ( QString  _name)
slot

Get the id of an object by its name.

Returns the id of an object with given name.

Parameters
_namename of an object
Returns
the id

Definition at line 155 of file DataControlPluginScripting.cc.

◆ getObjectName

QString DataControlPlugin::getObjectName ( int  objectId)
slot

Get the Objects name from the id.

Returns the name of an object with given id.

Parameters
objectIdid of an object
Returns
name of the given object

Definition at line 190 of file DataControlPluginScripting.cc.

◆ getSourceObjects

IdList DataControlPlugin::getSourceObjects ( DataType  _type)
slot

Get all source objects of given type.

Definition at line 596 of file DataControlPluginScripting.cc.

◆ getTargetObjects

IdList DataControlPlugin::getTargetObjects ( DataType  _type)
slot

Get all target objects of given type.

Definition at line 580 of file DataControlPluginScripting.cc.

◆ groupCount

unsigned int DataControlPlugin::groupCount ( ) const
slot

Returns the number of groups.

get number of groups

Returns the number of groups that are in the scene

Returns
Number of groups

Definition at line 627 of file DataControlPluginScripting.cc.

◆ groupObjects

int DataControlPlugin::groupObjects ( IdList  _objectIDs,
QString  _groupName = "" 
)
slot

Group given Objects together.

Group objects together

Returns
object id of new group or -1 if failed
Parameters
_objectIDslist of object ids
_groupNamethe name of the new group

Definition at line 362 of file DataControlPluginScripting.cc.

◆ hideAll

void DataControlPlugin::hideAll ( )
slot

Hides all objects.

Hide all objects.

Definition at line 531 of file DataControlPluginScripting.cc.

◆ hideObject

void DataControlPlugin::hideObject ( int  objectId)
slot

Hide the given Object.

Hide object with the given id.

Parameters
objectIdid of an object

Definition at line 221 of file DataControlPluginScripting.cc.

◆ loadIniFileOptionsLast

void DataControlPlugin::loadIniFileOptionsLast ( INIFile _ini)
privateslot

Load Groups from ini file.

Parameters
_inian ini file

Definition at line 590 of file DataControlPlugin.cc.

◆ objectDelete

void DataControlPlugin::objectDelete ( int  objectId)
slot

Delete the given object.

Delete an object.

Parameters
objectIdid of the object that should be deleted

Definition at line 289 of file DataControlPluginScripting.cc.

◆ objectDeleted

void DataControlPlugin::objectDeleted ( int  _id)
privateslot

an object was deleted. delete it internally

Parameters
_idid of the object

Definition at line 447 of file DataControlPlugin.cc.

◆ pluginsInitialized

void DataControlPlugin::pluginsInitialized ( )
privateslot

Plugin initialization.

Definition at line 89 of file DataControlPlugin.cc.

◆ printObjectInfoToLog

void DataControlPlugin::printObjectInfoToLog ( )
slot

Print information about all open objects to the console.

Prints information about all open objects to the Log.

Definition at line 612 of file DataControlPluginScripting.cc.

◆ propagateDownwards()

void DataControlPlugin::propagateDownwards ( BaseObject _obj,
int  _column 
)
private

Recursively update a column up to the root of the tree.

Parameters
_objobject to start with
_columnColumn to be propagated

Definition at line 818 of file DataControlPlugin.cc.

◆ propagateUpwards()

void DataControlPlugin::propagateUpwards ( BaseObject _obj,
int  _column 
)
private

Recursively update a column up to the root of the tree.

Parameters
_objObject to start with
_columnColumn to propagate

Definition at line 754 of file DataControlPlugin.cc.

◆ saveIniFileOptions

void DataControlPlugin::saveIniFileOptions ( INIFile _ini)
privateslot

Save groups to ini file.

Parameters
_inian ini file

Definition at line 679 of file DataControlPlugin.cc.

◆ saveOnExit

void DataControlPlugin::saveOnExit ( INIFile _ini)
privateslot

Save settings before application is closed.

Parameters
_inireference to ini file

Definition at line 907 of file DataControlPlugin.cc.

◆ setAllSource

void DataControlPlugin::setAllSource ( )
slot

Makes all available objects source.

Set Source Selection for all objects.

Definition at line 468 of file DataControlPluginScripting.cc.

◆ setAllTarget

void DataControlPlugin::setAllTarget ( )
slot

Makes all available objects target.

Set Target Selection for all objects.

Definition at line 447 of file DataControlPluginScripting.cc.

◆ setDescriptions

void DataControlPlugin::setDescriptions ( )
privateslot

This function sets the slot descriptions for this plugin which will be visible in the script editor

Definition at line 52 of file DataControlPluginScripting.cc.

◆ setObjectName

void DataControlPlugin::setObjectName ( int  objectId,
QString  _name 
)
slot

set the name of the given object

set the name of the given Object

Parameters
objectIdid of an object
_namenew name

Definition at line 274 of file DataControlPluginScripting.cc.

◆ setSource

void DataControlPlugin::setSource ( int  objectId,
bool  _source 
)
slot

set the given Object as source

Parameters
objectIdid of an object
_sourceset object as source?

Definition at line 257 of file DataControlPluginScripting.cc.

◆ setTarget

void DataControlPlugin::setTarget ( int  objectId,
bool  _target 
)
slot

set the given Object as target

Parameters
objectIdid of an object
_targetset object as target?

Definition at line 241 of file DataControlPluginScripting.cc.

◆ showAll

void DataControlPlugin::showAll ( )
slot

Shows all objects.

Show all objects.

Definition at line 556 of file DataControlPluginScripting.cc.

◆ showObject

void DataControlPlugin::showObject ( int  objectId)
slot

Show the given Object.

Show object with the given id.

Parameters
objectIdid of an object

Definition at line 308 of file DataControlPluginScripting.cc.

◆ slotBoundingBoxChange

void DataControlPlugin::slotBoundingBoxChange ( )
privateslot

Bounding box selection changed.

Bounding box visibility selection changed.

Definition at line 864 of file DataControlPlugin.cc.

◆ slotCopy

void DataControlPlugin::slotCopy ( )
privateslot

Called by the popup menu to copy items.

Slot for Copy action in ContextMenu.

Definition at line 122 of file Popup.cc.

◆ slotCopyMaterialToTargeted

void DataControlPlugin::slotCopyMaterialToTargeted ( )
privateslot

Called by the popup menu to copy material properties.

show the material properties dialog

Definition at line 445 of file Popup.cc.

◆ slotCustomContextMenuRequested

void DataControlPlugin::slotCustomContextMenuRequested ( const QPoint &  _pos)
privateslot

Display a custom context window for the TreeView.

ContextMenu requested - creates the contextMenu.

Parameters
_posPosition where it was requested

Definition at line 179 of file Popup.cc.

◆ slotDataChanged

void DataControlPlugin::slotDataChanged ( int  _id,
int  _column,
const QVariant &  _value 
)
privateslot

Gets called when the data in the table has changed.

emit the right updates when the model changed

Parameters
_idObject id that was changed
_columnWhich column changed
_valueWhat is the new value?

Definition at line 493 of file DataControlPlugin.cc.

◆ slotEditLight

void DataControlPlugin::slotEditLight ( )
privateslot

Called by the popup menu in order to edit lights.

Edit the light source's parameters.

Definition at line 664 of file Popup.cc.

◆ slotGroup

void DataControlPlugin::slotGroup ( )
privateslot

Called by the popup menu to group items.

Slot for Group action in ContextMenu.

Definition at line 152 of file Popup.cc.

◆ slotHeaderCustomContextMenuRequested

void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint &  _pos)
privateslot

Display a custom context window for the TreeViews header.

Generate a ContextMenu for the header of the TreeView.

Parameters
_posPosition where the Menu has to be created

Definition at line 313 of file Popup.cc.

◆ slotKeyEvent

void DataControlPlugin::slotKeyEvent ( QKeyEvent *  _event)
privateslot

a key event occurred

Parameters
_eventthe event that occurred

Definition at line 461 of file DataControlPlugin.cc.

◆ slotMoveBaseObject

void DataControlPlugin::slotMoveBaseObject ( int  _id,
int  _newParentId 
)
privateslot

Gets called when an object was moved via drag n drop.

Parameters
_idid of the object
_newParentIdid of the new parent

Definition at line 539 of file DataControlPlugin.cc.

◆ slotNodeChanged

void DataControlPlugin::slotNodeChanged ( ACG::SceneGraph::BaseNode _node)
privateslot

Called when the material properties were changed inside the material dialog.

Parameters
_nodeunused

Definition at line 625 of file Popup.cc.

◆ slotObjectPropertiesChanged

void DataControlPlugin::slotObjectPropertiesChanged ( int  _identifier)
privateslot

Update the model if properties of an object changed.

Parameters
_identifierid of an object

Definition at line 397 of file DataControlPlugin.cc.

◆ slotObjectSelectionChanged

void DataControlPlugin::slotObjectSelectionChanged ( int  _identifier)
privateslot

update drawing of objects when the active object changed

Definition at line 264 of file DataControlPlugin.cc.

◆ slotObjectsGrouped()

void DataControlPlugin::slotObjectsGrouped ( IdList  _lst)
private

update objects when they have been grouped

Definition at line 243 of file DataControlPlugin.cc.

◆ slotPopupRemove

void DataControlPlugin::slotPopupRemove ( )
privateslot

Called by the popup menu to remove an object/group.

Slot for Remove action in ContextMenu.

Definition at line 62 of file Popup.cc.

◆ slotRename

void DataControlPlugin::slotRename ( )
privateslot

Called by the popup menu to rename items.

show a rename dialog for object names

Definition at line 415 of file Popup.cc.

◆ slotSwitchLight

void DataControlPlugin::slotSwitchLight ( )
privateslot

Called by the popup menu in order to turn lights on/off.

Switch light source on or off.

Definition at line 634 of file Popup.cc.

◆ slotUngroup

void DataControlPlugin::slotUngroup ( )
privateslot

Called by the popup menu to ungroup items.

Slot for Ungroup action in ContextMenu.

Definition at line 105 of file Popup.cc.

◆ slotVisibilityChanged

void DataControlPlugin::slotVisibilityChanged ( int  _identifier)
privateslot

Update the model if the visibility of an object changed.

Parameters
_identifierid of an object

Definition at line 334 of file DataControlPlugin.cc.

◆ slotZoomTo

void DataControlPlugin::slotZoomTo ( )
privateslot

Called by the popup menu to zoom to an object.

Zoom to an object.

Definition at line 692 of file Popup.cc.

◆ unGroupObject

bool DataControlPlugin::unGroupObject ( int  _id)
slot

remove an object from its group and place it at the toplevel group

Returns
successfull

Definition at line 414 of file DataControlPluginScripting.cc.

◆ updateBoundingBox()

void DataControlPlugin::updateBoundingBox ( BaseObjectData _obj)
private

Updates bounding box.

Update state of bounding box node.

Parameters
_objobject

Definition at line 879 of file DataControlPlugin.cc.

Member Data Documentation

◆ columnFromGUI_

int DataControlPlugin::columnFromGUI_
private

Gets called when the data in the table has changed.

emit the right updates when the model changed

Parameters
_idObject id that was changed
_columnWhich column changed
_valueWhat is the new value?

Definition at line 201 of file DataControlPlugin.hh.

◆ onlyDown_

int DataControlPlugin::onlyDown_
private

Gets called when the data in the table has changed.

emit the right updates when the model changed

Parameters
_idObject id that was changed
_columnWhich column changed
_valueWhat is the new value?

Definition at line 197 of file DataControlPlugin.hh.

◆ onlyUp_

int DataControlPlugin::onlyUp_
private

Gets called when the data in the table has changed.

emit the right updates when the model changed

Parameters
_idObject id that was changed
_columnWhich column changed
_valueWhat is the new value?

Definition at line 198 of file DataControlPlugin.hh.


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