Developer Documentation
Core Class Reference

#include <OpenFlipper/Core/Core.hh>

Inheritance diagram for Core:

Public Slots

scriptable slots

Get a Pointer to the Plugin with given _name (if it is loaded)

void updateView ()
 Called when a plugin requests an update in the viewer. More...
 
void blockScenegraphUpdates (bool _block)
 Called when a plugin wants to lock or unlock scenegraph updates. More...
 
void updateUI ()
 process events during script execution to keep the ui alive More...
 
void clearAll ()
 Clear all data objects. More...
 
void deleteObject (int _id)
 Called to delete an object. More...
 
void setObjectComment (int objId, QString key, QString comment)
 Called when a plugin requests an update in the viewer. More...
 
void clearObjectComment (int objId, QString key)
 Called when a plugin requests an update in the viewer. More...
 
void clearAllComments (int objId)
 Called when a plugin requests an update in the viewer. More...
 
void fullscreen (bool _state)
 set fullscreen mode More...
 
void showViewModeControls (bool _show)
 Show or Hide the viewmode control widget. More...
 
void loggerState (int _state)
 Change the logging window state. More...
 
void enableOpenMeshErrorLog (bool _state)
 Enable or disable OpenMesh error logging. More...
 
void showToolbox (bool _state)
 Show or hide toolbox. More...
 
void showStatusBar (bool _state)
 Show or hide Status Bar. More...
 
void multiViewMode (int _mode)
 Switch the multiView Mode. More...
 
void restrictFrameRate (bool _enable)
 Enable or disable framerate restriction. More...
 
void setMaxFrameRate (int _rate)
 set the maximal framerate ( automatically enables framerate restriction ) More...
 
void snapshotBaseFileName (QString _fname, unsigned int _viewerId=0)
 
void snapshotFileType (QString _type, unsigned int _viewerId=0)
 Set the file type for snapshots. More...
 
void snapshotCounterStart (const int _counter, unsigned int _viewerId=0)
 Set the start index for the snapshot counter. More...
 
void snapshot (unsigned int _viewerId=0, int _width=0, int _height=0, bool _alpha=false, bool _hideCoordsys=false, int _numSamples=1)
 
void applicationSnapshot ()
 Take a snapshot from the whole app. More...
 
void applicationSnapshotName (QString _name)
 Set the baseName for the application snapshot. More...
 
void viewerSnapshot ()
 Take a snapshot from all viewers. More...
 
void viewerSnapshot (QString file_name, bool store_comments, bool comments_visible_only, bool comments_targeted_only, bool store_material_info, int snapshot_width, int snapshot_height, bool snapshot_transparent, bool hide_coord_sys, int snapshot_multisampling, bool store_view)
 Scriptable snapshot method offering full control. More...
 
void resizeViewers (int _width, int _height)
 resize the examinerViewer More...
 
void resizeApplication (int _width, int _height)
 resize the whole Application More...
 
void writeVersionNumbers (QString _filename)
 write the current versions of all plugins to ini file More...
 
QList< int > objectList (QString _selection, QStringList _types)
 return the list of available object that has the given selection and type More...
 
void blockSceneGraphUpdates ()
 Block the scenegraph updates. More...
 
void unblockSceneGraphUpdates ()
 Unblock the scenegraph updates. More...
 
void setView (QString view)
 Called when a plugin requests an update in the viewer. More...
 
void setViewAndWindowGeometry (QString view)
 Called when a plugin requests an update in the viewer. More...
 
Scripting functions for controlling view modes
void addViewModeToolboxes (QString _modeName, QString _toolboxList)
 Scripting function to set toolboxes in a view mode. More...
 
void addViewModeToolbars (QString _modeName, QString _toolbarList)
 Scripting function to set toolbars in a view mode. More...
 
void addViewModeContextMenus (QString _modeName, QString _contextMenuList)
 Scripting function to set context menus in a view mode. More...
 
void addViewModeIcon (QString _modeName, QString _iconName)
 Scripting function to set an icon for a view mode. More...
 
void setToolBoxSide (QString _side)
 Scripting function to set the side of the main window on which the toolbox should be displayed. More...
 
void setToolBoxActive (QString _toolBoxName, bool _active)
 Scripting function to activate or deactivate a toolbox. More...
 
Load / Save slots
bool saveObject (int _id, QString _filename)
 Save an object. More...
 
void saveObject (int _id, QString _filename, int _pluginID)
 
void saveObjects (IdList _ids, QString _filename, int _pluginID)
 
bool saveObjectTo (int _id, QString _filename)
 
bool saveObjectsTo (IdList _ids, QString _filename)
 
void saveAllObjects ()
 Slot for saving objects from Menu. More...
 
void saveAllObjectsTo ()
 Slot for saving objects to a new location. More...
 
void saveSettings ()
 Save current status to a settings file. Solicit file name through dialog. More...
 
void saveSettings (QString filePath, bool is_saveObjectInfo, bool is_targetOnly, bool is_saveAll, bool is_askOverwrite, bool is_saveProgramSettings, bool is_savePluginSettings)
 Save current status to a the provided settings file. More...
 
void loadObject ()
 Open Load Widget. More...
 
void loadSettings ()
 Load status from file. More...
 
void loadSettings (QString _filename)
 Load status from file. More...
 
int getObjectId (QString _filename)
 Get object id from filename. More...
 
void deserializeMaterialProperties (int _objId, QString _props)
 Serialize material properties. More...
 
QString serializeMaterialProperties (int _objId)
 Serialize material properties. More...
 
Exit functions
void exitApplication ()
 exit the current application More...
 
void exitFailure ()
 Aborts the application with an error code. More...
 
void finishSplash ()
 exit the current application More...
 

Signals

Signals send to Plugins
void allCleared ()
 Signal send to plugins when whole scene is cleared.
 
void signalObjectUpdated (int)
 When this Signal is emitted all Plugins are informed that the object list changed.
 
void signalObjectUpdated (int, const UpdateType &)
 When this Signal is emitted all Plugins are informed that some type of update was performed on an object.
 
void PluginWheelEvent (QWheelEvent *, const std::string &)
 When this Signal is emitted when a Wheel Event occures.
 
void PluginMouseEvent (QMouseEvent *)
 When this Signal is emitted when a Mouse Event occures.
 
void PluginMouseEventLight (QMouseEvent *)
 Emitted when an light event occurs.
 
void objectSelectionChanged (int)
 This signal is emitted if the object has been changed (source/target)
 
void pluginViewChanged ()
 This signal is emitted if one of the viewers updated its view.
 
void pluginSceneDrawn ()
 This signal is emitted after the scene has been drawn.
 
void addTexture (QString, QString, uint, int)
 The texture with the given name and filename has been added.
 
void addTexture (QString, QImage, uint, int)
 The texture with the given name and image has been added.
 
void addTexture (QString, QString, uint)
 The texture with the given name and filename has been added.
 
void addTexture (QString, QImage, uint)
 The texture with the given name and image has been added.
 
void addMultiTexture (QString _textureGroup, QString _name, QString _filename, int _id, int &_textureId)
 The texture with the given name and filename has been added.
 
void addMultiTexture (QString _textureGroup, QString _name, QImage _image, int _id, int &_textureId)
 The texture with the given name and image has been added.
 
void updateTexture (QString, int)
 Tell the plugins to update the given texture.
 
void updateAllTextures ()
 Update all textures in the plugins.
 
void updatedTextures (QString, int)
 This Signal is send to the plugins if a texture has been updated.
 
void setTextureMode (QString _textureName, QString _mode, int _id)
 A texture mode should be changed.
 
void setTextureMode (QString _textureName, QString _mode)
 A texture mode should be changed.
 
void switchTexture (QString, int)
 Switch Texture Plugins to a given Mode.
 
void switchTexture (QString)
 Switch Texture Plugins to a given Mode.
 
void textureChangeImage (QString _textureName, QImage &_image)
 Change the image for a given texture.
 
void textureChangeImage (QString _textureName, QImage &_image, int _id)
 Change the image for a given texture.
 
void textureGetImage (QString _textureName, QImage &_image)
 fetch texture image
 
void textureGetImage (QString _textureName, QImage &_image, int _id)
 fetch texture image
 
void textureIndex (QString _textureName, int _id, int &_index)
 get the texture index
 
void textureIndexPropertyName (int _id, QString &_propertyName)
 get the texture index property name
 
void textureName (int _id, int _textureIndex, QString &_textureName)
 get the texture name
 
void textureFilename (int _id, QString _textureName, QString &_textureFilename)
 get the texture's filename
 
void getCurrentTexture (int _id, QString &_textureName)
 get current texture
 
void getSubTextures (int _id, QString _multiTextureName, QStringList &_subTextures)
 get a multi-texture's sub textures
 
void addSelectionEnvironment (QString _modeName, QString _description, QString _icon, QString &_handleName)
 SelectionInterface: This signal is emitted when a new toolbutton should be added.
 
void registerType (QString _handleName, DataType _type)
 SelectionInterface: This signal is emitted when a data type should be registered for a selection mode.
 
void addPrimitiveType (QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType &_typeHandle)
 SelectionInterface: This signal is emitted when a selection plugin should handle a new primitive type.
 
void addCustomSelectionMode (QString _handleName, QString _modeName, QString _description, QString _icon, SelectionInterface::PrimitiveType _associatedTypes, QString &_customIdentifier)
 SelectionInterface: This signal is emitted when a custom selection mode is added.
 
void addCustomSelectionMode (QString _handleName, QString _modeName, QString _description, QString _icon, SelectionInterface::PrimitiveType _associatedTypes, QString &_customIdentifier, DataType _objectTypeRestriction)
 Signal send to plugins when whole scene is cleared.
 
void addSelectionOperations (QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type)
 SelectionInterface: This signal is used to add non-interactive operations for a specific primitive type.
 
void addSelectionParameters (QString _handleName, QWidget *_widget, QString _category, SelectionInterface::PrimitiveType _type)
 SelectionInterface: This signal is used to add interactive selection parameters for a specific primitive type.
 
void selectionOperation (QString _operation)
 SelectionInterface: This signal is emitted when a non-interactive operation has been performed.
 
void showToggleSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard toggle selection is required.
 
void showLassoSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard lasso selection is required.
 
void showVolumeLassoSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard volume lasso selection is required.
 
void showSurfaceLassoSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard surface lasso selection is required.
 
void showSphereSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard sphere selection is required.
 
void showClosestBoundarySelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard closest boundary selection is required.
 
void showFloodFillSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard flood fill selection is required.
 
void showComponentsSelectionMode (QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: This signal is emitted when standard connected components selection is required.
 
void toggleSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard toggle selection has been performed.
 
void lassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard lasso selection has been performed.
 
void volumeLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard volume lasso selection has been performed.
 
void surfaceLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard surface lasso selection has been performed.
 
void sphereSelection (QMouseEvent *_event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard sphere selection has been performed.
 
void closestBoundarySelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard closest boundary selection has been performed.
 
void floodFillSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard flood fill selection has been performed.
 
void componentsSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: This signal is emitted when standard connected components selection has been performed.
 
void customSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, QString _customIdentifier, bool _deselect)
 SelectionInterface: This signal is emitted when a custom selection operation has been performed.
 
void getActiveDataTypes (SelectionInterface::TypeList &_types)
 SelectionInterface: This signal is emitted when the active (selected) data types should be fetched.
 
void getActivePrimitiveType (SelectionInterface::PrimitiveType &_type)
 SelectionInterface: This signal is emitted when the active (selected) primitive type should be fetched.
 
void targetObjectsOnly (bool &_targetsOnly)
 SelectionInterface: This signal is emitted if the current target restriction state is requested.
 
void loadSelection (const INIFile &_file)
 SelectionInterface: This signal is emitted when a selection should be loaded from a file.
 
void saveSelection (INIFile &_file)
 SelectionInterface: This signal is emitted when a selection should be written into a file.
 
void registerKeyShortcut (int _key, Qt::KeyboardModifiers _modifiers)
 SelectionInterface: This signal is emitted when a type selection plugin wants to listen to a key event.
 
void keyShortcutEvent (int _key, Qt::KeyboardModifiers _modifiers=Qt::NoModifier)
 SelectionInterface: This signal is emitted when a key shortcut has been pressed.
 
void iniLoad (INIFile &, int)
 If an ini File is opened, this signal is send to Plugins capable of handling ini files.
 
void iniSave (INIFile &_ini, int _id)
 This signal is used to tell the plugins to save the data of _id to the given file.
 
void iniSaveOptions (INIFile &_ini)
 This signal is used to tell the plugins to save their current status.
 
void iniLoadOptions (INIFile &_ini)
 This signal is used to tell the plugins to load their new status.
 
void iniLoadOptionsLast (INIFile &_ini)
 This signal is used to tell the plugins to load their new status after objects are loaded.
 
void saveOnExit (INIFile &_ini)
 This signal is emitted before the core deletes its data and exits.
 
void createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL)
 Tell backup-plugin to create a backup.
 
void createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types)
 Signal send to plugins when whole scene is cleared.
 
void undo (int _objectid)
 Tell backup-plugin to undo/redo.
 
void redo (int _objectid)
 Signal send to plugins when whole scene is cleared.
 
void undo ()
 Signal send to plugins when whole scene is cleared.
 
void redo ()
 Signal send to plugins when whole scene is cleared.
 
void aboutToRestore (int _objectId)
 Backup Plugin tells other Plugins that a restore will happen.
 
void restored (int _objectId)
 Backup Plugin tells other Plugins that a restore has happened.
 
void openedFile (int _id)
 Tell the plugins that a file has been opened ( -> Database)
 
void emptyObjectAdded (int _id)
 Tell the plugins that an empty object has been added.
 
void pluginsInitialized ()
 Called after all plugins are loaded.
 
void pluginsInitialized (QVector< QPair< QString, QString > > const &)
 Called after all plugins are loaded and additionally passes command line plugin options.
 
void visibilityChanged (int _id)
 Tell plugins that the visibility of an object has changed.
 
void objectPropertiesChanged (int _id)
 Tell plugins that object properties such as object names have been changed.
 
void objectDeleted (int)
 Called after an object has been deleted.
 

Public Member Functions

 Core ()
 constructor More...
 
void init ()
 Second initialization stage. More...
 
 ~Core ()
 destructor More...
 
bool add_sync_host (const QString &_name)
 Synchronise two viewers.
 

Private Slots

void slotMouseEventIdentify (QMouseEvent *_event)
 Handle Mouse events when in Identifier mode. More...
 
void slotMouseEventLight (QMouseEvent *_event)
 Handle Mouse events when in Light mode. More...
 
RPC ( Remote procedure Call) support
void slotPluginExists (const QString &_pluginName, bool &_exists)
 Check if a plugin exists. More...
 
void slotFunctionExists (const QString &_pluginName, const QString &_functionName, bool &_exists)
 Check if a function exists. More...
 
void slotCall (const QString &_pluginName, const QString &_functionName, bool &_success)
 
void slotCall (const QString &_expression, bool &_success)
 
void slotGetValue (const QString &_expression, QVariant &_result)
 
PythonInterface
void slotExecutePythonScript (const QString &_script)
 
void slotOpenPythonScriptInEditor (QString _script)
 
Object Manager
void newObject (int _objectId)
 This slot is called by the object manager when a new object is created. More...
 
void deletedObject (int _objectId)
 This slot is called by the object manager when an object is deleted. More...
 

Private Member Functions

bool checkOpenGLCapabilities ()
 OpenGL capability check. More...
 
bool checkLibraryVersions ()
 Checks for library inconsistencies. More...
 
void hookUpEventFilter (QWidget *widget)
 
Signal and Slot processing for Plugins
bool checkSlot (QObject *_plugin, const char *_slotSignature)
 Check if a plugin has a slot. More...
 
bool checkSignal (QObject *_plugin, const char *_signalSignature)
 Check if a plugin has a signal. More...
 

Private Attributes

int nextBackupId_
 Id for the next backup. More...
 
int nextBackupGroupId_
 Id for the next backup group. More...
 
std::vector< PluginLogger * > loggers_
 Logger interfaces between plugins and core logger. More...
 
std::vector< dataTypessupportedDataTypes_
 Type-Plugins. More...
 
BaseObjectobjectRoot_
 Pointer to the data rootNode;. More...
 
CoreWidgetcoreWidget_
 The main applications widget ( only created in gui mode ) More...
 
QSplashScreen * splash_
 SplashScreen, only used in gui mode. More...
 
QString splashMessage_
 Last Splash message;. More...
 
QVector< ViewMode * > viewModes_
 List of available draw modes. More...
 
QTimer * redrawTimer_
 If enabled, this timer will block screen refresh if done more then 30 times per second. More...
 
SpinBoxEventFilter spinBoxEventFilter_
 
Scenegraph
SeparatorNoderoot_node_scenegraph_
 Scenegraphs root node. More...
 
SeparatorNoderoot_node_scenegraph_global_
 Seperator node for global nodes. More...
 
SeparatorNodecore_nodes_
 Separator Node holding all core scenegraph nodes. More...
 
SeparatorNodedataSeparatorNode_
 Toplevel Nodes for data objects. More...
 
SeparatorNodedataRootNode_
 Root Node for data objects. More...
 
ACG::SceneGraph::MaterialNodecoordsysMaterialNode_
 Node for coordsys Material. More...
 
ACG::SceneGraph::CoordsysNodecoordsysNode_
 Node for the coordinate system. More...
 

Basic functions

std::vector< std::pair< QString, bool > > commandLineFileNames_
 Vector storing filenames from commandline to be opened after application startup (objects) More...
 
std::vector< QString > commandLineScriptNames_
 Vector storing filenames from commandline to be opened after application startup (script files) More...
 
void commandLineOpen (const QString &_filename, bool _asPolyMesh)
 Load an object from the commandline on application start. More...
 
void commandLineScript (const QString &_filename)
 Load a script from the commandline on application start. More...
 
int addEmptyObject (DataType _type)
 
int loadObject (DataType _type, QString _filename)
 Load object of the given Type with given filename. More...
 
void loadObjectFinished (const QString &_filename)
 Vector storing filenames from commandline to be opened after application startup (objects) More...
 
void resetScenegraph (bool _resetTrackBall)
 
void slotExecuteAfterStartup ()
 Executed after loading core completly to load files from commandline. More...
 
int loadObject (QString _filename)
 Load a new Object ( this may also be an ini or ofs file ) More...
 

Video Stream creation

QTimer videoTimer_
 Slot called everytime the view is updated. More...
 
QElapsedTimer lastVideoTime_
 Slot called everytime the view is updated. More...
 
int captureType_
 Slot called everytime the view is updated. More...
 
bool capture_
 Slot called everytime the view is updated. More...
 
int lastWidth_
 Slot called everytime the view is updated. More...
 
int lastHeight_
 Slot called everytime the view is updated. More...
 
void viewUpdated ()
 Slot called everytime the view is updated. More...
 
void captureVideo ()
 Function called for every frame when capturing video. More...
 
void startVideoCapture (const QString &_baseName, int _fps, bool _captureViewers)
 Start video capturing. More...
 
void stopVideoCapture ()
 Stop video capturing. More...
 

Logging

QTextStream * logStream_
 stream for logging to file More...
 
QFile * logFile_
 logfile More...
 
void scriptLogFunction (const QString &_output)
 stream for logging to file More...
 
void slotLog (Logtype _type, QString _message)
 Console logger. More...
 
void slotLogToFile (Logtype _type, QString _message)
 log to file More...
 
void log (Logtype _type, QString _message)
 Logg with OUT,WARN or ERR as type.
 
void log (QString _message)
 Default logging as OUT.
 
void scriptLog (QString _message)
 Logging signal for ScriptEngine.
 
void externalLog (Logtype _type, QString _message)
 This signal is emitted to send log data to a plugin.
 

Plugin Management

int toolboxindex_
 Index of Plugins toolbox widget. More...
 
std::vector< PluginInfo > & plugins ()
 Index of Plugins toolbox widget. More...
 
void slotShowPlugins ()
 Show Plugins Dialog. More...
 
void loadPlugin (const QString &_filename, const bool _silent, QString &_licenseErrors, QObject *_plugin=0)
 Function for loading Plugins. More...
 
void slotLoadPlugin ()
 Load Plugins from menu. More...
 
void slotBlockPlugin (const QString &_rpcName)
 Function for Blocking Plugins. Blocked plugins will unloaded and not loaded wthin the next starts. More...
 
void slotUnBlockPlugin (const QString &_rpcName)
 Function for UnBlocking Plugins. Plugins will not loaded automatically. More...
 
void loadPlugins ()
 Load all plugins from default plugin directory and from INI-File. More...
 
void printPluginLoadLog (const QString &errors, const QString &warnings)
 Print all info collected about plugin during loading. More...
 

Scripting support

QScriptEngine scriptEngine_
 Core scripting engine. More...
 
std::vector< ScriptingWrapper * > scriptingWrappers_
 Wrappers for plugin scripting. More...
 
QStringList scriptingFunctions_
 List of all registered scripting functions. More...
 
prototypeVec3d vec3dPrototype_
 Prototype for the Vector type. More...
 
prototypeVec4d vec4dPrototype_
 Prototype for the Vector type. More...
 
prototypeDataType DataTypePrototype_
 Prototype for the DataType. More...
 
prototypeMatrix4x4 matrix4x4Prototype_
 Prototype for the Matrix type. More...
 
QList< SlotInfocoreSlots_
 Core scripting engine. More...
 
QList< SlotInfoglobalFunctions_
 Core scripting engine. More...
 
void slotScriptInfo (const QString &_pluginName, const QString &_functionName)
 Core scripting engine. More...
 
void slotExecuteScript (const QString &_script)
 
void slotGetScriptingEngine (QScriptEngine *&_engine)
 Core scripting engine. More...
 
void slotExecuteFileScript (const QString &_filename)
 
void slotShowScriptInEditor (const QString &_filename)
 
void slotGetAllAvailableFunctions (QStringList &_functions)
 Core scripting engine. More...
 
void slotSetSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 set a description for one of the plugin's public slots More...
 
void slotSetSlotDescriptionGlobalFunction (QString _functionName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 set a description for a global scripting function More...
 
void slotScriptError (const QScriptValue &error)
 Core scripting engine. More...
 
void scriptInfo (QString _pluginName, QString _functionName)
 Core scripting engine.
 
void executeScript (QString _script)
 Core scripting engine.
 
void executeFileScript (QString _filename)
 Core scripting engine.
 
void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 Core scripting engine.
 
void createWidget (const QString &_objectName, const QString &_uiFilename, bool _show=true)
 Create an script object from a ui file. More...
 
void setViewMode (QString _viewMode)
 Set the active ViewMode. More...
 
QString getCurrentViewMode ()
 Get current view mode. More...
 
void setViewModeIcon (QString _mode, QString _iconName)
 Set the icon of a viewMode. More...
 
void moveToolBoxToTop (QString _name)
 Move selected toolbox to top of side area. More...
 
void moveToolBoxToBottom (QString _name)
 Move selected toolbox to bottom of side area. More...
 
void showReducedMenuBar (bool reduced)
 Core scripting engine. More...
 
void executePythonScriptFile (QString _filename)
 Open the given file and execute its contents as a python script. More...
 
void executePythonScript (const QString &_script)
 execute the given string as a python script More...
 
void slotGetDescription (QString _function, QString &_fnDescription, QStringList &_parameters, QStringList &_descriptions)
 get available descriptions for a given public slot More...
 
void setDescriptions ()
 set the descriptions for scriptable slots of the core More...
 

Scenegraph redraw handling

QTimer * scenegraphCheckTimer_
 Timer that starts scenegraph check. More...
 
QElapsedTimer * redrawTime_
 Holds the time since last redraw. More...
 
void checkScenegraphDirty ()
 Called to check if the scenegraph needs to be redrawn. More...
 

Process Interface and Controls

QList< JobInfocurrentJobs
 A job has been started by a plugin. More...
 
ProcessManagerWidgetprocessManager_
 A job has been started by a plugin. More...
 
void slotStartJob (QString _jobId, QString _description, int _min, int _max, bool _blocking)
 A job has been started by a plugin. More...
 
void slotSetJobState (QString _jobId, int _value)
 A job state has been updated by a plugin. More...
 
void slotSetJobName (QString _jobId, QString _name)
 A job's widget caption has been updated by a plugin. More...
 
void slotSetJobDescription (QString _jobId, QString _text)
 A job's widget's status text has been updated by a plugin. More...
 
void slotCancelJob (QString _jobId)
 A job state has been canceled by a plugin. More...
 
void slotFinishJob (QString _jobId)
 A job state has been finished by a plugin. More...
 
void slotJobCancelRequested (const QString &_jobId)
 Called by dialogs if cancel button is pressed. More...
 
void jobCanceled (QString _jobId)
 A job has been started by a plugin.
 
bool getJob (QString _jobId, int &_index)
 Find a job in the jobslist. More...
 

Slots called by the plugins

void slotVisibilityChanged (int _id)
 Called when a plugin changes the visibility of an object. More...
 
void slotObjectPropertiesChanged (int _id)
 Called by plugins if object properties like names have changed. More...
 
void slotObjectSelectionChanged (int _id)
 Called by Plugins if they changed the active object. More...
 
void slotAddPickMode (const std::string &_mode)
 Add a new picking mode to the examiner_widget_. More...
 
void slotAddHiddenPickMode (const std::string &_mode)
 Add a new and invisible picking mode to the examiner_widget_. More...
 
void slotAddTexture (QString _textureName, QString _filename, uint _dimension, int _id)
 Called by a plugin if it creates a texture. More...
 
void slotAddTexture (QString _textureName, QImage _image, uint _dimension, int _id)
 Called by a plugin if it creates a texture. More...
 
void slotAddTexture (QString _textureName, QString _filename, uint _dimension)
 Called by a plugin if it creates a texture. More...
 
void slotAddTexture (QString _textureName, QImage _image, uint _dimension)
 Called by a plugin if it creates a texture. More...
 
void slotMultiTextureAdded (QString _textureGroup, QString _name, QString _filename, int _id, int &_textureId)
 Called by a plugin if it creates a multitexture. More...
 
void slotMultiTextureAdded (const QString &_textureGroup, const QString &_name, const QString &_filename, int _id, int *_textureId)
 Called when a plugin changes the visibility of an object. More...
 
void slotMultiTextureAdded (QString _textureGroup, QString _name, QImage _image, int _id, int &_textureId)
 Called by a plugin if it creates a multitexture. More...
 
void slotUpdateTexture (const QString &_name, int _identifier)
 Tell the plugins to update the given texture. More...
 
void slotUpdateAllTextures ()
 Update all textures in the plugins. More...
 
void slotTextureUpdated (const QString &_textureName, int _identifier)
 A Texture has been updated. More...
 
void slotSetTextureMode (const QString &_textureName, const QString &_mode, int _id)
 A texture mode should be changed. More...
 
void slotSetTextureMode (const QString &_textureName, const QString &_mode)
 A texture mode should be changed. More...
 
void slotSwitchTexture (const QString &_textureName, int _id)
 Tells Plugins to switch to the given Texture. More...
 
void slotSwitchTexture (const QString &_textureName)
 Tells Plugins to switch to the given Texture. More...
 
void slotTextureChangeImage (const QString &_textureName, QImage &_image)
 Called by plugins if texture image should be changed. More...
 
void slotTextureChangeImage (const QString &_textureName, QImage &_image, int _id)
 Called by plugins if texture image should be changed. More...
 
void slotTextureGetImage (const QString &_textureName, QImage &_image)
 Called by plugins if texture image should be fetched. More...
 
void slotTextureGetImage (const QString &_textureName, QImage &_image, int _id)
 Called by plugins if texture image should be fetched. More...
 
void slotTextureIndex (const QString &_textureName, int _id, int &_index)
 Called by plugins if texture index should be fetched. More...
 
void slotTextureIndexPropertyName (int _id, QString &_propertyName)
 Called by plugins if texture index property name should be fetched. More...
 
void slotTextureName (int _id, int _textureIndex, QString &_textureName)
 Called by plugins if texture name should be fetched. More...
 
void slotTextureFilename (int _id, const QString &_textureName, QString &_textureFilename)
 Called by plugins if texture name should be fetched. More...
 
void slotGetCurrentTexture (int _id, QString &_textureName)
 Called by plugins if current texture should be retrieved. More...
 
void slotGetSubTextures (int _id, const QString &_multiTextureName, QStringList &_subTextures)
 Called by plugins if a multi-texture's sub textures should be fetched. More...
 
void slotLoad (QString _filename, DataType _type, int &_id)
 A plugin wants to load a given file. More...
 
void slotLoad (QStringList _filenames, IdList _pluginIDs)
 the load widget wants to load a given file More...
 
void slotFileOpened (int _id)
 Called when a file has been opened. More...
 
void slotEmptyObjectAdded (int _id)
 Called when an empty object has been Added. More...
 
void slotAddSelectionEnvironment (const QString &_modeName, const QString &_description, const QString &_icon, QString &_handleName)
 SelectionInterface: Called when a new selection type button should be added to the toolbar. More...
 
void slotRegisterType (const QString &_handleName, DataType _type)
 SelectionInterface: Called when a data type is added for a specific selection type. More...
 
void slotAddPrimitiveType (const QString &_handleName, const QString &_name, const QString &_icon, SelectionInterface::PrimitiveType &_typeHandle)
 SelectionInterface: Called when a new, non-standard primitive type should be handled. More...
 
void slotAddCustomSelectionMode (const QString &_handleName, const QString &_modeName, const QString &_description, const QString &_icon, SelectionInterface::PrimitiveType _associatedTypes, QString &_customIdentifier)
 SelectionInterface: Add new selection mode for specified type. More...
 
void slotAddCustomSelectionMode (const QString &_handleName, const QString &_modeName, const QString &_description, const QString &_icon, SelectionInterface::PrimitiveType _associatedTypes, QString &_customIdentifier, DataType _objectTypeRestriction)
 SelectionInterface: Add new selection mode for specified type. More...
 
void slotAddSelectionOperations (const QString &_handleName, const QStringList &_operationsList, const QString &_category, SelectionInterface::PrimitiveType _type)
 SelectionInterface: Called in order to add non-interactive operations for a specific primitive type. More...
 
void slotAddSelectionParameters (const QString &_handleName, QWidget *_widget, const QString &_category, SelectionInterface::PrimitiveType _type)
 SelectionInterface: Called in order to add interactive parameters for a specific primitive type. More...
 
void slotSelectionOperation (const QString &_operation)
 SelectionInterface: Called when a non-interactive operation has been performed. More...
 
void slotShowToggleSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide toggle selection operation for specific selection mode. More...
 
void slotShowLassoSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide lasso selection operation for specific selection mode. More...
 
void slotShowVolumeLassoSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide volume lasso selection operation for specific selection mode. More...
 
void slotShowSurfaceLassoSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide surface lasso selection operation for specific selection mode. More...
 
void slotShowSphereSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide sphere selection operation for specific selection mode. More...
 
void slotShowClosestBoundarySelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide closest boundary selection operation for specific selection mode. More...
 
void slotShowFloodFillSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide flood fill selection operation for specific selection mode. More...
 
void slotShowComponentsSelectionMode (const QString &_handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes)
 SelectionInterface: Provide connected components selection operation for specific selection mode. More...
 
void slotToggleSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when toggle selection operation has been performed. More...
 
void slotLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when lasso selection operation has been performed. More...
 
void slotVolumeLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when volume lasso selection operation has been performed. More...
 
void slotSurfaceLassoSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when surface lasso selection operation has been performed. More...
 
void slotSphereSelection (QMouseEvent *_event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when sphere selection operation has been performed. More...
 
void slotClosestBoundarySelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when closest boundary selection operation has been performed. More...
 
void slotFloodFillSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when flood fill selection operation has been performed. More...
 
void slotComponentsSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect)
 SelectionInterface: Called when connected components selection operation has been performed. More...
 
void slotCustomSelection (QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, const QString &_customIdentifier, bool _deselect)
 SelectionInterface: Called when custom selection operation has been performed. More...
 
void slotGetActiveDataTypes (SelectionInterface::TypeList &_types)
 SelectionInterface: Called when active (selected) data types should be fetched. More...
 
void slotGetActivePrimitiveType (SelectionInterface::PrimitiveType &_type)
 SelectionInterface: Called when active primitive type should be fetched. More...
 
void slotTargetObjectsOnly (bool &_targetsOnly)
 SelectionInterface: Called when target restriction state should be fetched. More...
 
void slotLoadSelection (const INIFile &_file)
 SelectionInterface: Called when a selection should be loaded from a file. More...
 
void slotSaveSelection (INIFile &_file)
 SelectionInterface: Called when a selection should be stored into a file. More...
 
void slotRegisterKeyShortcut (int _key, Qt::KeyboardModifiers _modifiers)
 SelectionInterface: Called when a key shortcut is to be registered. More...
 
void slotKeyShortcutEvent (int _key, Qt::KeyboardModifiers _modifiers)
 SelectionInterface: Called when a key event occurred. More...
 
void slotGetAllFilters (QStringList &_list)
 Called when a plugin requests a list of file-filters. More...
 
void slotDeleteAllObjects ()
 Called when a plugin wants to delete all objects. More...
 
void slotCrossPluginConnect (const QString &_pluginName1, const char *_signal, const QString &_pluginName2, const char *_slot)
 Called to create inter plugin connections. More...
 
void slotCrossPluginConnectQueued (const QString &_pluginName1, const char *_signal, const QString &_pluginName2, const char *_slot)
 Called to create inter plugin connections. More...
 
void slotSetRenderer (unsigned int _viewer, QString _rendererName)
 called to switch the renderer for a specific viewer More...
 
void slotGetCurrentRenderer (unsigned int _viewer, QString &_rendererName)
 called to get the currently active renderer renderer for a specific viewer More...
 
void slotObjectUpdated (int _identifier, const UpdateType &_type=UPDATE_ALL)
 Called by the plugins if they changed something in the object list (deleted, added, or other property changes) More...
 

Basic slots

void slotMouseEvent (QMouseEvent *_event)
 Gets called by examiner widget when mouse is moved in picking mode. More...
 
void slotWheelEvent (QWheelEvent *_event, const std::string &_mode)
 Gets called by examiner widget when Wheel is moved in picking mode. More...
 
void slotAddEmptyObjectMenu ()
 Open the add Empty dialog. More...
 
void slotAddEmptyObject (DataType _type, int &_id)
 Slot adding empty object of a given type. More...
 
void slotAddEmptyObject (DataType _type, int *_id)
 Gets called by examiner widget when mouse is moved in picking mode. More...
 
void slotCopyObject (int _oldId, int &_newId)
 Slot copying an object. More...
 
void slotExit ()
 Exit Application. More...
 
void slotRecentOpen (QAction *_action)
 Open Recent file. More...
 
void slotGenerateBackup (int _id, QString _name, UpdateType _type)
 Slot for generating type specific backups. More...
 
void addToolbox (const QString &_name, QWidget *_widget)
 Add a Toolbox from a plugin or from scripting. More...
 
void addToolbox (const QString &_name, QWidget *_widget, QIcon *_icon)
 Add a Toolbox from a plugin or from scripting (with icon) More...
 
void addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget)
 Add a Toolbox from a plugin or from scripting (with icon) More...
 
QWidget * getToolbox (const QString &_pluginName, const QString &_toolboxName)
 
void activateToolbox (QString _pluginName, QString _toolboxName, bool activate)
 expand or collapse a toolbox More...
 

Metadata support

void slotMetadataDeserialized (const QVector< QPair< QString, QString > > &data)
 
void genericMetadataDeserialized (QString key, QString value)
 
void objectMetadataDeserialized (QString object_name, QString value)
 
void objectMetadataDeserializedJson (QString object_name, QJsonDocument value)
 

IniFile and Options Handling

void saveOptions ()
 Save the current options to the standard ini file. More...
 
void applyOptions ()
 after ini-files have been loaded and core is up or if options have been changed -> apply Options More...
 
void openIniFile (QString _filename, bool _coreSettings, bool _perPluginSettings, bool _loadObjects)
 Load information from an ini file. More...
 
void setupOptions ()
 Get all ini files and set basic paths and options. More...
 
void readGUIOptions (INIFile &_ini)
 Read Options that needs the GUI to be set up completely.
 
void readApplicationOptions (INIFile &_ini)
 Get and set Application options from ini file. More...
 
void writeApplicationOptions (INIFile &_ini)
 Write Application options to ini file. More...
 
void restoreKeyBindings ()
 Restore key assignments from configs files. More...
 
void writeIniFile (QString _filename, bool _relativePaths, bool _targetOnly, bool _saveSystemSettings, bool _savePluginSettings, bool _saveObjectInfo, std::map< int, QString > &_fileMapping)
 Write current status to ini file (Application and File Options) More...
 
void writeObjFile (QString _filename, bool _relativePaths, bool _targetOnly, std::map< int, QString > &_fileMapping)
 Write current status to obj file (Application and File Options) More...
 
void writeOnExit ()
 Called if app is closed and writes all information to ini file. More...
 

Detailed Description

Core Widget of the Application

Definition at line 132 of file Core.hh.

Constructor & Destructor Documentation

◆ Core()

Core::Core ( )

constructor

Constuctor for the Core Widget ( This is stage 1 , call init for stage 2)

Initialization is working the following way:

  • Setup basic paths
  • Get Options from Option files ( While skipping the OpenFiles Sections as Core is not running )
  • Jump back ( Stage two is done by calling init from main ) so CALL init!!
  • This Two stage system allows using commandline options which override Option Files

Definition at line 107 of file Core.cc.

◆ ~Core()

Core::~Core ( )

destructor

Definition at line 752 of file Core.cc.

Member Function Documentation

◆ activateToolbox

void Core::activateToolbox ( QString  _pluginName,
QString  _toolboxName,
bool  activate 
)
slot

expand or collapse a toolbox

Parameters
_pluginNameTo which plugin does the toolbox belong
_toolboxNameName of the toolbox
activateExpand or collapse?

Definition at line 294 of file scripting.cc.

◆ addEmptyObject()

int Core::addEmptyObject ( DataType  _type)

Add an empty Object of the given Type

Returns
id of the new object or -1 if unsupported

Definition at line 513 of file openFunctions.cc.

◆ addToolbox [1/3]

void Core::addToolbox ( const QString &  _name,
QWidget *  _widget 
)
slot

Add a Toolbox from a plugin or from scripting.

Definition at line 299 of file scripting.cc.

◆ addToolbox [2/3]

void Core::addToolbox ( const QString &  _name,
QWidget *  _widget,
QIcon *  _icon 
)
slot

Add a Toolbox from a plugin or from scripting (with icon)

Definition at line 303 of file scripting.cc.

◆ addToolbox [3/3]

void Core::addToolbox ( QString  _name,
QWidget *  _widget,
QIcon *  _icon,
QWidget *  _headerAreaWidget 
)
slot

Add a Toolbox from a plugin or from scripting (with icon)

Definition at line 307 of file scripting.cc.

◆ addViewModeContextMenus

void Core::addViewModeContextMenus ( QString  _modeName,
QString  _contextMenuList 
)
slot

Scripting function to set context menus in a view mode.

Parameters
_modeNameName of the View Mode
_contextMenuList; separated list of context menus in the view mode

Definition at line 251 of file scripting.cc.

◆ addViewModeIcon

void Core::addViewModeIcon ( QString  _modeName,
QString  _iconName 
)
slot

Scripting function to set an icon for a view mode.

Parameters
_modeNameName of the View Mode
_iconNameName of the Icon File. Will be taken from OpenFlippers Icon directory

Definition at line 257 of file scripting.cc.

◆ addViewModeToolbars

void Core::addViewModeToolbars ( QString  _modeName,
QString  _toolbarList 
)
slot

Scripting function to set toolbars in a view mode.

Parameters
_modeNameName of the View Mode
_toolbarList; separated list of toolbars in the view mode

Definition at line 243 of file scripting.cc.

◆ addViewModeToolboxes

void Core::addViewModeToolboxes ( QString  _modeName,
QString  _toolboxList 
)
slot

Scripting function to set toolboxes in a view mode.

Parameters
_modeNameName of the View Mode
_toolboxList; separated list of toolboxes in the view mode

Definition at line 235 of file scripting.cc.

◆ applicationSnapshot

void Core::applicationSnapshot ( )
slot

Take a snapshot from the whole app.

Definition at line 1538 of file Core.cc.

◆ applicationSnapshotName

void Core::applicationSnapshotName ( QString  _name)
slot

Set the baseName for the application snapshot.

Definition at line 1544 of file Core.cc.

◆ applyOptions

void Core::applyOptions ( )
slot

after ini-files have been loaded and core is up or if options have been changed -> apply Options

Definition at line 63 of file optionHandling.cc.

◆ blockSceneGraphUpdates

void Core::blockSceneGraphUpdates ( )
slot

Block the scenegraph updates.

Definition at line 360 of file scripting.cc.

◆ blockScenegraphUpdates

void Core::blockScenegraphUpdates ( bool  _block)
slot

Called when a plugin wants to lock or unlock scenegraph updates.

Definition at line 1023 of file Core.cc.

◆ captureVideo

void Core::captureVideo ( )
privateslot

Function called for every frame when capturing video.

Definition at line 92 of file Video.cc.

◆ checkLibraryVersions()

bool Core::checkLibraryVersions ( )
private

Checks for library inconsistencies.

Checks if the used libraries are consistent

Definition at line 1947 of file Core.cc.

◆ checkOpenGLCapabilities()

bool Core::checkOpenGLCapabilities ( )
private

OpenGL capability check.

Checks if the OpenGL Capabilities of the graphics card are sufficient and prints an error message if not.

Definition at line 2011 of file Core.cc.

◆ checkScenegraphDirty

void Core::checkScenegraphDirty ( )
privateslot

Called to check if the scenegraph needs to be redrawn.

Check if scenegraph is dirty and initiate redraw

Definition at line 1034 of file Core.cc.

◆ checkSignal()

bool Core::checkSignal ( QObject *  _plugin,
const char *  _signalSignature 
)
private

Check if a plugin has a signal.

Definition at line 260 of file PluginLoader.cc.

◆ checkSlot()

bool Core::checkSlot ( QObject *  _plugin,
const char *  _slotSignature 
)
private

Check if a plugin has a slot.

Definition at line 254 of file PluginLoader.cc.

◆ clearAll

void Core::clearAll ( )
slot

Clear all data objects.

@TODO: Check this for QT6

Definition at line 1066 of file Core.cc.

◆ clearAllComments

void Core::clearAllComments ( int  objId)
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 1907 of file Core.cc.

◆ clearObjectComment

void Core::clearObjectComment ( int  objId,
QString  key 
)
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 1894 of file Core.cc.

◆ commandLineOpen()

void Core::commandLineOpen ( const QString &  _filename,
bool  _asPolyMesh 
)

Load an object from the commandline on application start.

This function is called before the event queue is executed. The filename and parameters are stored. After the event queue is started, all files in this list will be opened. This is necessary as the event queue has to run to schedule the events emitted during open operations.

Parameters
_filenamefilename of the file to be opened. If it does not contain a full path, the current path will be prepended.
_asPolyMeshLoad as a polymesh ( yes/no)

Definition at line 98 of file openFunctions.cc.

◆ commandLineScript()

void Core::commandLineScript ( const QString &  _filename)

Load a script from the commandline on application start.

This function is called before the event queue is executed. The filename is stored. After the event queue is started, all files in this list will be opened. This is necessary as the event queue has to run to schedule the events emitted during open operations.

Parameters
_filenamefilename of the script to be opened. If it does not contain a full path, the current path will be prepended.

Definition at line 113 of file openFunctions.cc.

◆ createWidget

void Core::createWidget ( const QString &  _objectName,
const QString &  _uiFilename,
bool  _show = true 
)
slot

Create an script object from a ui file.

This function will load an ui file, set up a qwidget from that and makes it available under _objectName for scripting.

Parameters
_objectNameThe name in scripting environment used for the new object
_uiFilenameui file to load

Definition at line 134 of file scripting.cc.

◆ deletedObject

void Core::deletedObject ( int  _objectId)
privateslot

This slot is called by the object manager when an object is deleted.

This slot is called by the object manager when a object is deleted.

Definition at line 514 of file PluginCommunication.cc.

◆ deleteObject

void Core::deleteObject ( int  _id)
slot

Called to delete an object.

Definition at line 1813 of file Core.cc.

◆ deserializeMaterialProperties

void Core::deserializeMaterialProperties ( int  _objId,
QString  _props 
)
slot

Serialize material properties.

Parameters
_objIdId of the object where the material should be deserialized into
_propsA QString containing the serialized material

Definition at line 1842 of file Core.cc.

◆ enableOpenMeshErrorLog

void Core::enableOpenMeshErrorLog ( bool  _state)
slot

Enable or disable OpenMesh error logging.

Definition at line 1121 of file Core.cc.

◆ executePythonScript

void Core::executePythonScript ( const QString &  _script)
slot

execute the given string as a python script

Parameters
_scriptPython script

Definition at line 493 of file scripting.cc.

◆ executePythonScriptFile

void Core::executePythonScriptFile ( QString  _filename)
slot

Open the given file and execute its contents as a python script.

Parameters
_filenameName of the python script

Definition at line 469 of file scripting.cc.

◆ exitApplication

void Core::exitApplication ( )
slot

exit the current application

Definition at line 1083 of file Core.cc.

◆ exitFailure

void Core::exitFailure ( )
slot

Aborts the application with an error code.

Use this function in unit tests, if you detected a failure. Therefore the test functions will recognize that something went wrong.

Definition at line 1295 of file Core.cc.

◆ finishSplash

void Core::finishSplash ( )
slot

exit the current application

Definition at line 2090 of file Core.cc.

◆ fullscreen

void Core::fullscreen ( bool  _state)
slot

set fullscreen mode

Definition at line 1095 of file Core.cc.

◆ getCurrentViewMode

QString Core::getCurrentViewMode ( )
slot

Get current view mode.

Definition at line 191 of file scripting.cc.

◆ getJob()

bool Core::getJob ( QString  _jobId,
int &  _index 
)
private

Find a job in the jobslist.

Definition at line 124 of file process.cc.

◆ getObjectId

int Core::getObjectId ( QString  _filename)
slot

Get object id from filename.

Definition at line 176 of file scripting.cc.

◆ getToolbox

QWidget * Core::getToolbox ( const QString &  _pluginName,
const QString &  _toolboxName 
)
slot

Get a toolbox.

Parameters
_pluginNameThe plugin which the requested toolbox belongs to.
_toolboxNameThe name of the requested toolbox.
Returns
A pointer to the requested toolbox widget if it was found, nullptr, otherwise.

Definition at line 276 of file scripting.cc.

◆ init()

void Core::init ( )

Second initialization stage.

This Stage does the following :

  • Create the Core GUI Elements (Examiner, Toolbox,...)
  • Create the MenuBar
  • load the Plugins
  • connect the Mouse slots
  • Load all ini files (This includes the Global Option files)

Skip all signals for function calls

Definition at line 192 of file Core.cc.

◆ loadObject [1/3]

void Core::loadObject ( )
slot

Open Load Widget.

Open Load-Object Widget.

Definition at line 919 of file openFunctions.cc.

◆ loadObject() [2/3]

int Core::loadObject ( DataType  _type,
QString  _filename 
)

Load object of the given Type with given filename.

Function for loading a given file.

This function should not be used anymore.
The extension is now used to check for the plugin handling the given types.

Returns
id of the new object or -1 if unsupported
Todo:
this function has to be checked. test for the plugin which can handle the given file and then use it.

Definition at line 387 of file openFunctions.cc.

◆ loadObject [3/3]

int Core::loadObject ( QString  _filename)
slot

Load a new Object ( this may also be an ini or ofs file )

This function tries to get the type of data to be loaded from the filename and then load the file.

Parameters
_filenameFilename of the data
Returns
id of object otherwise -1
Todo:
Check if this function is ok. It should check all plugins for the given files and do not depend on Triangle meshes only! Rewrite function to get the plugin only and then open the file. So iterate over all plugins and find the matching ones. open it with this plugin.

Definition at line 281 of file openFunctions.cc.

◆ loadObjectFinished

void Core::loadObjectFinished ( const QString &  _filename)
privateslot

Vector storing filenames from commandline to be opened after application startup (objects)

Definition at line 244 of file openFunctions.cc.

◆ loadPlugin

void Core::loadPlugin ( const QString &  _filename,
const bool  _silent,
QString &  _licenseErrors,
QObject *  _plugin = 0 
)
privateslot

Function for loading Plugins.

Load a Plugin with given filename.

Parameters
_filenamecomplete path + filename of the plugin
_silentif 'true': user isn't asked what to do if a plugin is already loaded
_licenseErrorsString will be epty when no license issues occured, otherwise it contains the required information for obtaining a license
_pluginYou can provide a preloaded plugin here. If this is 0 the filename will be used to load the plugin.

Skip all signals for function calls

Skip all signals for function calls

Definition at line 714 of file PluginLoader.cc.

◆ loadPlugins()

void Core::loadPlugins ( )
private

Load all plugins from default plugin directory and from INI-File.

Load plugins from dir Plugins. The plugin information gets stored, toolbox and menu entries are created and the required signals and slots are connected.

Definition at line 268 of file PluginLoader.cc.

◆ loadSettings [1/2]

void Core::loadSettings ( )
slot

Load status from file.

Load settings from file.

Definition at line 942 of file openFunctions.cc.

◆ loadSettings [2/2]

void Core::loadSettings ( QString  _filename)
slot

Load status from file.

Load settings from file.

Definition at line 1030 of file openFunctions.cc.

◆ loggerState

void Core::loggerState ( int  _state)
slot

Change the logging window state.

Definition at line 1110 of file Core.cc.

◆ moveToolBoxToBottom

void Core::moveToolBoxToBottom ( QString  _name)
slot

Move selected toolbox to bottom of side area.

Definition at line 226 of file scripting.cc.

◆ moveToolBoxToTop

void Core::moveToolBoxToTop ( QString  _name)
slot

Move selected toolbox to top of side area.

Definition at line 217 of file scripting.cc.

◆ multiViewMode

void Core::multiViewMode ( int  _mode)
slot

Switch the multiView Mode.

Definition at line 1158 of file Core.cc.

◆ newObject

void Core::newObject ( int  _objectId)
privateslot

This slot is called by the object manager when a new object is created.

Definition at line 498 of file PluginCommunication.cc.

◆ objectList

QList< int > Core::objectList ( QString  _selection,
QStringList  _types 
)
slot

return the list of available object that has the given selection and type

Definition at line 1619 of file Core.cc.

◆ openIniFile

void Core::openIniFile ( QString  _filename,
bool  _coreSettings,
bool  _perPluginSettings,
bool  _loadObjects 
)
slot

Load information from an ini file.

This function will open an ini file and load the information in it.

Parameters
_filenameName of the ini file
_coreSettingsLoad core settings from the file
_perPluginSettingsLoad per plugin settings from the file
_loadObjectsLoad objects defined in the ini file

Definition at line 400 of file ParseIni.cc.

◆ plugins()

std::vector< PluginInfo > & Core::plugins ( )

Index of Plugins toolbox widget.

Definition at line 770 of file Core.cc.

◆ printPluginLoadLog()

void Core::printPluginLoadLog ( const QString &  errors,
const QString &  warnings 
)
private

Print all info collected about plugin during loading.

Definition at line 702 of file PluginLoader.cc.

◆ readApplicationOptions()

void Core::readApplicationOptions ( INIFile _ini)
private

Get and set Application options from ini file.

Load the standard options from the given Ini File

Parameters
_iniInifile to use

Definition at line 72 of file ParseIni.cc.

◆ resetScenegraph

void Core::resetScenegraph ( bool  _resetTrackBall)
privateslot

Do a reset of the scenegraph (bounding box update,...)

Parameters
_resetTrackBallShould the rotation center of the trackball be reset to the scene center?

Definition at line 62 of file openFunctions.cc.

◆ resizeApplication

void Core::resizeApplication ( int  _width,
int  _height 
)
slot

resize the whole Application

Definition at line 1582 of file Core.cc.

◆ resizeViewers

void Core::resizeViewers ( int  _width,
int  _height 
)
slot

resize the examinerViewer

Definition at line 1571 of file Core.cc.

◆ restoreKeyBindings()

void Core::restoreKeyBindings ( )
private

Restore key assignments from configs files.

restore key Assignments that were saved in config files

Definition at line 206 of file optionHandling.cc.

◆ restrictFrameRate

void Core::restrictFrameRate ( bool  _enable)
slot

Enable or disable framerate restriction.

Definition at line 1049 of file Core.cc.

◆ saveAllObjects

void Core::saveAllObjects ( )
slot

Slot for saving objects from Menu.

Save changes for all target objects (slot is called from CoreWidget's File-Menu)

Definition at line 266 of file saveFunctions.cc.

◆ saveAllObjectsTo

void Core::saveAllObjectsTo ( )
slot

Slot for saving objects to a new location.

Save all target objects under new name (slot is called from CoreWidget's File-Menu)

Definition at line 291 of file saveFunctions.cc.

◆ saveObject [1/2]

bool Core::saveObject ( int  _id,
QString  _filename 
)
slot

Save an object.

Save object with given id

Parameters
_idid of the object

Get object with given id, find a plugin to save dataType, save

Note
Existing files will be overwritten
Parameters
_idId of the object that should be saved
_filenameFilename to save to
Returns
Successful

Definition at line 65 of file saveFunctions.cc.

◆ saveObject [2/2]

void Core::saveObject ( int  _id,
QString  _filename,
int  _pluginID 
)
slot

Save an object get object with given id, find a plugin to save dataType, save! (existing files will be overwritten)

Definition at line 124 of file saveFunctions.cc.

◆ saveObjects

void Core::saveObjects ( IdList  _ids,
QString  _filename,
int  _pluginID 
)
slot

Save multiple objects to one file get object with given id, find a plugin to save dataType, save! (existing files will be overwritten)

Definition at line 165 of file saveFunctions.cc.

◆ saveObjectsTo

bool Core::saveObjectsTo ( IdList  _ids,
QString  _filename 
)
slot

Save multiple objects to a new location Show the save-widget to determine a filename, the widget calls slotSave to save the objects

Definition at line 239 of file saveFunctions.cc.

◆ saveObjectTo

bool Core::saveObjectTo ( int  _id,
QString  _filename 
)
slot

Show dialog for saving an object to a new location

Parameters
_idid of the object
_filenamecurrent filename of the object

Save an object to a new location Show the save-widget to determine a filename, the widget calls slotSave to save the object

Definition at line 211 of file saveFunctions.cc.

◆ saveOptions

void Core::saveOptions ( )
slot

Save the current options to the standard ini file.

Definition at line 149 of file optionHandling.cc.

◆ saveSettings [1/2]

void Core::saveSettings ( )
slot

Save current status to a settings file. Solicit file name through dialog.

Save Settings (slot is called from CoreWidget's File-Menu)

Definition at line 53 of file saveSettings.cc.

◆ saveSettings [2/2]

void Core::saveSettings ( QString  filePath,
bool  is_saveObjectInfo,
bool  is_targetOnly,
bool  is_saveAll,
bool  is_askOverwrite,
bool  is_saveProgramSettings,
bool  is_savePluginSettings 
)
slot

Save current status to a the provided settings file.

Definition at line 164 of file saveSettings.cc.

◆ scriptLogFunction()

void Core::scriptLogFunction ( const QString &  _output)

stream for logging to file

Definition at line 130 of file scripting.cc.

◆ serializeMaterialProperties

QString Core::serializeMaterialProperties ( int  _objId)
slot

Serialize material properties.

Parameters
_objIdId of the object where the material should be serialized
Returns
A Qstring containing the serialized material

Definition at line 1861 of file Core.cc.

◆ setDescriptions()

void Core::setDescriptions ( )
private

set the descriptions for scriptable slots of the core

Definition at line 1641 of file Core.cc.

◆ setMaxFrameRate

void Core::setMaxFrameRate ( int  _rate)
slot

set the maximal framerate ( automatically enables framerate restriction )

Definition at line 1055 of file Core.cc.

◆ setObjectComment

void Core::setObjectComment ( int  objId,
QString  key,
QString  comment 
)
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 1881 of file Core.cc.

◆ setToolBoxActive

void Core::setToolBoxActive ( QString  _toolBoxName,
bool  _active 
)
slot

Scripting function to activate or deactivate a toolbox.

Parameters
_toolBoxNameName of the toolbox to manipulate
_activeActivate or deactivate

Definition at line 352 of file scripting.cc.

◆ setToolBoxSide

void Core::setToolBoxSide ( QString  _side)
slot

Scripting function to set the side of the main window on which the toolbox should be displayed.

Parameters
_sideThe desired side (either "left" or "right")

Definition at line 263 of file scripting.cc.

◆ setupOptions()

void Core::setupOptions ( )
private

Get all ini files and set basic paths and options.

Definition at line 168 of file optionHandling.cc.

◆ setView

void Core::setView ( QString  view)
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 369 of file scripting.cc.

◆ setViewAndWindowGeometry

void Core::setViewAndWindowGeometry ( QString  view)
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 373 of file scripting.cc.

◆ setViewMode

void Core::setViewMode ( QString  _viewMode)
slot

Set the active ViewMode.

Definition at line 183 of file scripting.cc.

◆ setViewModeIcon

void Core::setViewModeIcon ( QString  _mode,
QString  _iconName 
)
slot

Set the icon of a viewMode.

Definition at line 197 of file scripting.cc.

◆ showReducedMenuBar

void Core::showReducedMenuBar ( bool  reduced)
slot

Core scripting engine.

Definition at line 2086 of file Core.cc.

◆ showStatusBar

void Core::showStatusBar ( bool  _state)
slot

Show or hide Status Bar.

Definition at line 1151 of file Core.cc.

◆ showToolbox

void Core::showToolbox ( bool  _state)
slot

Show or hide toolbox.

Definition at line 1144 of file Core.cc.

◆ showViewModeControls

void Core::showViewModeControls ( bool  _show)
slot

Show or Hide the viewmode control widget.

Definition at line 1102 of file Core.cc.

◆ slotAddCustomSelectionMode [1/2]

void Core::slotAddCustomSelectionMode ( const QString &  _handleName,
const QString &  _modeName,
const QString &  _description,
const QString &  _icon,
SelectionInterface::PrimitiveType  _associatedTypes,
QString &  _customIdentifier 
)
privateslot

SelectionInterface: Add new selection mode for specified type.

Parameters
_handleNameHandle of the selection mode
_modeNameUser visible name of the selection mode
_descriptionDescription of the mode
_iconIcon displayed in the selection toolbar
_associatedTypesprimitive types supported by this mode
_customIdentifierIdentifier of this mode

Definition at line 71 of file SelectionCommunication.cc.

◆ slotAddCustomSelectionMode [2/2]

void Core::slotAddCustomSelectionMode ( const QString &  _handleName,
const QString &  _modeName,
const QString &  _description,
const QString &  _icon,
SelectionInterface::PrimitiveType  _associatedTypes,
QString &  _customIdentifier,
DataType  _objectTypeRestriction 
)
privateslot

SelectionInterface: Add new selection mode for specified type.

Parameters
_handleNameHandle of the selection mode
_modeNameUser visible name of the selection mode
_descriptionDescription of the mode
_iconIcon displayed in the selection toolbar
_associatedTypesprimitive types supported by this mode
_customIdentifierIdentifier of this mode
_objectTypeRestrictionObject types supported by this mode

Definition at line 76 of file SelectionCommunication.cc.

◆ slotAddEmptyObject [1/2]

void Core::slotAddEmptyObject ( DataType  _type,
int &  _id 
)
privateslot

Slot adding empty object of a given type.

Definition at line 538 of file openFunctions.cc.

◆ slotAddEmptyObject [2/2]

void Core::slotAddEmptyObject ( DataType  _type,
int *  _id 
)
privateslot

Gets called by examiner widget when mouse is moved in picking mode.

Definition at line 533 of file openFunctions.cc.

◆ slotAddEmptyObjectMenu

void Core::slotAddEmptyObjectMenu ( )
privateslot

Open the add Empty dialog.

Opens AddEmpty-Object widget.

This slot shows the addEmpty dialog which is used to add empty objects of supported dataTypes

Definition at line 835 of file openFunctions.cc.

◆ slotAddHiddenPickMode

void Core::slotAddHiddenPickMode ( const std::string &  _mode)
privateslot

Add a new and invisible picking mode to the examiner_widget_.

Definition at line 955 of file Core.cc.

◆ slotAddPickMode

void Core::slotAddPickMode ( const std::string &  _mode)
privateslot

Add a new picking mode to the examiner_widget_.

Definition at line 946 of file Core.cc.

◆ slotAddPrimitiveType

void Core::slotAddPrimitiveType ( const QString &  _handleName,
const QString &  _name,
const QString &  _icon,
SelectionInterface::PrimitiveType &  _typeHandle 
)
privateslot

SelectionInterface: Called when a new, non-standard primitive type should be handled.

Definition at line 67 of file SelectionCommunication.cc.

◆ slotAddSelectionEnvironment

void Core::slotAddSelectionEnvironment ( const QString &  _modeName,
const QString &  _description,
const QString &  _icon,
QString &  _handleName 
)
privateslot

SelectionInterface: Called when a new selection type button should be added to the toolbar.

Definition at line 59 of file SelectionCommunication.cc.

◆ slotAddSelectionOperations

void Core::slotAddSelectionOperations ( const QString &  _handleName,
const QStringList &  _operationsList,
const QString &  _category,
SelectionInterface::PrimitiveType  _type 
)
privateslot

SelectionInterface: Called in order to add non-interactive operations for a specific primitive type.

Definition at line 82 of file SelectionCommunication.cc.

◆ slotAddSelectionParameters

void Core::slotAddSelectionParameters ( const QString &  _handleName,
QWidget *  _widget,
const QString &  _category,
SelectionInterface::PrimitiveType  _type 
)
privateslot

SelectionInterface: Called in order to add interactive parameters for a specific primitive type.

Definition at line 86 of file SelectionCommunication.cc.

◆ slotAddTexture [1/4]

void Core::slotAddTexture ( QString  _textureName,
QImage  _image,
uint  _dimension 
)
privateslot

Called by a plugin if it creates a texture.

Called by a plugin if it created a texture. The information is passed to all plugins. If a texture control plugin is available it has to react on the signal.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 258 of file PluginCommunication.cc.

◆ slotAddTexture [2/4]

void Core::slotAddTexture ( QString  _textureName,
QImage  _image,
uint  _dimension,
int  _id 
)
privateslot

Called by a plugin if it creates a texture.

Called by a plugin if it created a texture. The information is passed to all plugins. If a texture control plugin is available it has to react on the signal.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 206 of file PluginCommunication.cc.

◆ slotAddTexture [3/4]

void Core::slotAddTexture ( QString  _textureName,
QString  _filename,
uint  _dimension 
)
privateslot

Called by a plugin if it creates a texture.

Called by a plugin if it created a texture. The information is passed to all plugins. If a texture control plugin is available it has to react on the signal.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 232 of file PluginCommunication.cc.

◆ slotAddTexture [4/4]

void Core::slotAddTexture ( QString  _textureName,
QString  _filename,
uint  _dimension,
int  _id 
)
privateslot

Called by a plugin if it creates a texture.

Called by a plugin if it created a texture. The information is passed to all plugins. If a texture control plugin is available it has to react on the signal.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 180 of file PluginCommunication.cc.

◆ slotBlockPlugin

void Core::slotBlockPlugin ( const QString &  _rpcName)
privateslot

Function for Blocking Plugins. Blocked plugins will unloaded and not loaded wthin the next starts.

Definition at line 677 of file PluginLoader.cc.

◆ slotCall [1/2]

void Core::slotCall ( const QString &  _expression,
bool &  _success 
)
privateslot

This slot executes the given expression. No checks are performed if the remote function is available.

Parameters
_expressioncommand to execute
_successsuccessfull execution?

Definition at line 132 of file RPC.cc.

◆ slotCall [2/2]

void Core::slotCall ( const QString &  _pluginName,
const QString &  _functionName,
bool &  _success 
)
privateslot

This slot executes a function of a plugin. If it does not exist, _success will be false

Parameters
_pluginNamePlugin where the function is implemented
_functionNamename of the function ( Standard name, no parameters allowed!)
_successsuccessfull execution?

Definition at line 95 of file RPC.cc.

◆ slotCancelJob

void Core::slotCancelJob ( QString  _jobId)
privateslot

A job state has been canceled by a plugin.

Definition at line 212 of file process.cc.

◆ slotClosestBoundarySelection

void Core::slotClosestBoundarySelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when closest boundary selection operation has been performed.

Definition at line 146 of file SelectionCommunication.cc.

◆ slotComponentsSelection

void Core::slotComponentsSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when connected components selection operation has been performed.

Definition at line 154 of file SelectionCommunication.cc.

◆ slotCopyObject

void Core::slotCopyObject ( int  _oldId,
int &  _newId 
)
privateslot

Slot copying an object.

Slot creating a copy of an existing object.

Definition at line 563 of file openFunctions.cc.

◆ slotCrossPluginConnect

void Core::slotCrossPluginConnect ( const QString &  _pluginName1,
const char *  _signal,
const QString &  _pluginName2,
const char *  _slot 
)
privateslot

Called to create inter plugin connections.

Definition at line 554 of file PluginCommunication.cc.

◆ slotCrossPluginConnectQueued

void Core::slotCrossPluginConnectQueued ( const QString &  _pluginName1,
const char *  _signal,
const QString &  _pluginName2,
const char *  _slot 
)
privateslot

Called to create inter plugin connections.

Definition at line 558 of file PluginCommunication.cc.

◆ slotCustomSelection

void Core::slotCustomSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
const QString &  _customIdentifier,
bool  _deselect 
)
privateslot

SelectionInterface: Called when custom selection operation has been performed.

Definition at line 158 of file SelectionCommunication.cc.

◆ slotDeleteAllObjects

void Core::slotDeleteAllObjects ( )
privateslot

Called when a plugin wants to delete all objects.

Definition at line 1921 of file Core.cc.

◆ slotEmptyObjectAdded

void Core::slotEmptyObjectAdded ( int  _id)
privateslot

Called when an empty object has been Added.

Slot gets called after a file-plugin has opened an object.

Todo:
: set a default path for new objects

Definition at line 798 of file openFunctions.cc.

◆ slotExecuteAfterStartup

void Core::slotExecuteAfterStartup ( )
privateslot

Executed after loading core completly to load files from commandline.

This slot is automatically called after application startup. All files from the commandline will be loaded by this slot. This is required as the core and the event queue need to be running to emit the required signals to the plugins.

Definition at line 128 of file openFunctions.cc.

◆ slotExecuteFileScript

void Core::slotExecuteFileScript ( const QString &  _filename)
privateslot

Core slot, executes the given script text via scripting plugin or python scripting (depending on the file extension)

Parameters
_filenameFilename of the script

Definition at line 83 of file scripting.cc.

◆ slotExecutePythonScript

void Core::slotExecutePythonScript ( const QString &  _script)
privateslot

Definition at line 502 of file scripting.cc.

◆ slotExecuteScript

void Core::slotExecuteScript ( const QString &  _script)
privateslot

Core slot, executes the given script text via scripting plugin

Parameters
_scriptScript as QString

Definition at line 71 of file scripting.cc.

◆ slotExit

void Core::slotExit ( )
privateslot

Exit Application.

Definition at line 1240 of file Core.cc.

◆ slotFileOpened

void Core::slotFileOpened ( int  _id)
privateslot

Called when a file has been opened.

Slot gets called after a file-plugin has opened an object.

Definition at line 732 of file openFunctions.cc.

◆ slotFinishJob

void Core::slotFinishJob ( QString  _jobId)
privateslot

A job state has been finished by a plugin.

Definition at line 238 of file process.cc.

◆ slotFloodFillSelection

void Core::slotFloodFillSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when flood fill selection operation has been performed.

Definition at line 150 of file SelectionCommunication.cc.

◆ slotFunctionExists

void Core::slotFunctionExists ( const QString &  _pluginName,
const QString &  _functionName,
bool &  _exists 
)
privateslot

Check if a function exists.

Parameters
_pluginNameName of the plugin to check
_functionNameName of the function inside the plugin
_existsReturns if the function was found in the plugin

Definition at line 75 of file RPC.cc.

◆ slotGenerateBackup

void Core::slotGenerateBackup ( int  _id,
QString  _name,
UpdateType  _type 
)
privateslot

Slot for generating type specific backups.

Definition at line 67 of file BackupCommunication.cc.

◆ slotGetActiveDataTypes

void Core::slotGetActiveDataTypes ( SelectionInterface::TypeList &  _types)
privateslot

SelectionInterface: Called when active (selected) data types should be fetched.

Definition at line 162 of file SelectionCommunication.cc.

◆ slotGetActivePrimitiveType

void Core::slotGetActivePrimitiveType ( SelectionInterface::PrimitiveType &  _type)
privateslot

SelectionInterface: Called when active primitive type should be fetched.

Definition at line 166 of file SelectionCommunication.cc.

◆ slotGetAllAvailableFunctions

void Core::slotGetAllAvailableFunctions ( QStringList &  _functions)
privateslot

Core scripting engine.

Definition at line 126 of file scripting.cc.

◆ slotGetAllFilters

void Core::slotGetAllFilters ( QStringList &  _list)
privateslot

Called when a plugin requests a list of file-filters.

This function collects all available load filters from the file Plugins. It is normally called via the Load/Save interface ( LoadSaveInterface ).

Parameters
_listReturns a list of all available file load filters
Todo:
check why the supported Type is used here!

Definition at line 88 of file openFunctions.cc.

◆ slotGetCurrentRenderer

void Core::slotGetCurrentRenderer ( unsigned int  _viewer,
QString &  _rendererName 
)
privateslot

called to get the currently active renderer renderer for a specific viewer

Definition at line 569 of file PluginCommunication.cc.

◆ slotGetCurrentTexture

void Core::slotGetCurrentTexture ( int  _id,
QString &  _textureName 
)
privateslot

Called by plugins if current texture should be retrieved.

Called by plugins if current texture name should be returned

Definition at line 483 of file PluginCommunication.cc.

◆ slotGetDescription

void Core::slotGetDescription ( QString  _function,
QString &  _fnDescription,
QStringList &  _parameters,
QStringList &  _descriptions 
)
slot

get available descriptions for a given public slot

get available Descriptions for a scriptable slot

Definition at line 1416 of file Core.cc.

◆ slotGetScriptingEngine

void Core::slotGetScriptingEngine ( QScriptEngine *&  _engine)
privateslot

Core scripting engine.

Definition at line 76 of file scripting.cc.

◆ slotGetSubTextures

void Core::slotGetSubTextures ( int  _id,
const QString &  _multiTextureName,
QStringList &  _subTextures 
)
privateslot

Called by plugins if a multi-texture's sub textures should be fetched.

Called by plugins if texture image should be fetched

Definition at line 489 of file PluginCommunication.cc.

◆ slotGetValue

void Core::slotGetValue ( const QString &  _expression,
QVariant &  _result 
)
inlineprivateslot

This slot executes the given expression and returns the result No checks are performed if the remote function is available. if an error occurs the result contains an invalid QVariant

ex. getValue("databaseplugin.tableExists(\"meshes\")", result) ) result.toBool() == true

Parameters
_expressioncommand to execute
_resultThe return value of the command

Definition at line 1478 of file Core.hh.

◆ slotJobCancelRequested

void Core::slotJobCancelRequested ( const QString &  _jobId)
privateslot

Called by dialogs if cancel button is pressed.

Definition at line 268 of file process.cc.

◆ slotKeyShortcutEvent

void Core::slotKeyShortcutEvent ( int  _key,
Qt::KeyboardModifiers  _modifiers 
)
privateslot

SelectionInterface: Called when a key event occurred.

Definition at line 186 of file SelectionCommunication.cc.

◆ slotLassoSelection

void Core::slotLassoSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when lasso selection operation has been performed.

Definition at line 130 of file SelectionCommunication.cc.

◆ slotLoad [1/2]

void Core::slotLoad ( QString  _filename,
DataType  _type,
int &  _id 
)
privateslot

A plugin wants to load a given file.

Slot for loading a given file.

Definition at line 721 of file openFunctions.cc.

◆ slotLoad [2/2]

void Core::slotLoad ( QStringList  _filenames,
IdList  _pluginIDs 
)
privateslot

the load widget wants to load a given file

Function for loading multiple files.

Definition at line 604 of file openFunctions.cc.

◆ slotLoadPlugin

void Core::slotLoadPlugin ( )
privateslot

Load Plugins from menu.

slot for loading Plugins

Definition at line 567 of file PluginLoader.cc.

◆ slotLoadSelection

void Core::slotLoadSelection ( const INIFile _file)
privateslot

SelectionInterface: Called when a selection should be loaded from a file.

Definition at line 174 of file SelectionCommunication.cc.

◆ slotLog

void Core::slotLog ( Logtype  _type,
QString  _message 
)
privateslot

Console logger.

Slot writing everything to the Logger widget.

This slot has to be called by all loggers. It is used to serialize and color the Output.

Parameters
_typeLogtype (defines the color of the output)
_messageThe message for output

Definition at line 90 of file Logging.cc.

◆ slotLogToFile

void Core::slotLogToFile ( Logtype  _type,
QString  _message 
)
privateslot

log to file

Definition at line 1318 of file Core.cc.

◆ slotMetadataDeserialized

void Core::slotMetadataDeserialized ( const QVector< QPair< QString, QString > > &  data)
privateslot

Definition at line 573 of file PluginCommunication.cc.

◆ slotMouseEvent

void Core::slotMouseEvent ( QMouseEvent *  _event)
privateslot

Gets called by examiner widget when mouse is moved in picking mode.

Definition at line 860 of file Core.cc.

◆ slotMouseEventIdentify

void Core::slotMouseEventIdentify ( QMouseEvent *  _event)
privateslot

Handle Mouse events when in Identifier mode.

Definition at line 777 of file Core.cc.

◆ slotMouseEventLight

void Core::slotMouseEventLight ( QMouseEvent *  _event)
privateslot

Handle Mouse events when in Light mode.

Definition at line 828 of file Core.cc.

◆ slotMultiTextureAdded [1/3]

void Core::slotMultiTextureAdded ( const QString &  _textureGroup,
const QString &  _name,
const QString &  _filename,
int  _id,
int *  _textureId 
)
privateslot

Called when a plugin changes the visibility of an object.

Definition at line 298 of file PluginCommunication.cc.

◆ slotMultiTextureAdded [2/3]

void Core::slotMultiTextureAdded ( QString  _textureGroup,
QString  _name,
QImage  _image,
int  _id,
int &  _textureId 
)
privateslot

Called by a plugin if it creates a multitexture.

Definition at line 325 of file PluginCommunication.cc.

◆ slotMultiTextureAdded [3/3]

void Core::slotMultiTextureAdded ( QString  _textureGroup,
QString  _name,
QString  _filename,
int  _id,
int &  _textureId 
)
privateslot

Called by a plugin if it creates a multitexture.

Definition at line 302 of file PluginCommunication.cc.

◆ slotObjectPropertiesChanged

void Core::slotObjectPropertiesChanged ( int  _id)
privateslot

Called by plugins if object properties like names have changed.

Definition at line 167 of file PluginCommunication.cc.

◆ slotObjectSelectionChanged

void Core::slotObjectSelectionChanged ( int  _id)
privateslot

Called by Plugins if they changed the active object.

This function is called if the active object has changed. The information is passed to all plugins.

Definition at line 156 of file PluginCommunication.cc.

◆ slotObjectUpdated

void Core::slotObjectUpdated ( int  _identifier,
const UpdateType _type = UPDATE_ALL 
)
slot

Called by the plugins if they changed something in the object list (deleted, added, or other property changes)

Handle object updates by plugins.

This function is called by a plugin if it changed something in the object list (source,target, or other properties ). The information is passed to all plugins.

Parameters
_identifierId of the updated object
_typeWhat part of the object has been updated

Definition at line 75 of file PluginCommunication.cc.

◆ slotOpenPythonScriptInEditor

void Core::slotOpenPythonScriptInEditor ( QString  _script)
privateslot

Definition at line 506 of file scripting.cc.

◆ slotPluginExists

void Core::slotPluginExists ( const QString &  _pluginName,
bool &  _exists 
)
privateslot

Check if a plugin exists.

Parameters
_pluginNameName of the plugin to check
_existsReturns if the function was found in the plugin

Definition at line 63 of file RPC.cc.

◆ slotRecentOpen

void Core::slotRecentOpen ( QAction *  _action)
privateslot

Open Recent file.

Definition at line 1172 of file Core.cc.

◆ slotRegisterKeyShortcut

void Core::slotRegisterKeyShortcut ( int  _key,
Qt::KeyboardModifiers  _modifiers 
)
privateslot

SelectionInterface: Called when a key shortcut is to be registered.

Definition at line 182 of file SelectionCommunication.cc.

◆ slotRegisterType

void Core::slotRegisterType ( const QString &  _handleName,
DataType  _type 
)
privateslot

SelectionInterface: Called when a data type is added for a specific selection type.

Definition at line 63 of file SelectionCommunication.cc.

◆ slotSaveSelection

void Core::slotSaveSelection ( INIFile _file)
privateslot

SelectionInterface: Called when a selection should be stored into a file.

Definition at line 178 of file SelectionCommunication.cc.

◆ slotScriptError

void Core::slotScriptError ( const QScriptValue &  error)
privateslot

Core scripting engine.

Definition at line 383 of file scripting.cc.

◆ slotScriptInfo

void Core::slotScriptInfo ( const QString &  _pluginName,
const QString &  _functionName 
)
privateslot

Core scripting engine.

Definition at line 67 of file scripting.cc.

◆ slotSelectionOperation

void Core::slotSelectionOperation ( const QString &  _operation)
privateslot

SelectionInterface: Called when a non-interactive operation has been performed.

Definition at line 90 of file SelectionCommunication.cc.

◆ slotSetJobDescription

void Core::slotSetJobDescription ( QString  _jobId,
QString  _text 
)
privateslot

A job's widget's status text has been updated by a plugin.

Definition at line 188 of file process.cc.

◆ slotSetJobName

void Core::slotSetJobName ( QString  _jobId,
QString  _name 
)
privateslot

A job's widget caption has been updated by a plugin.

Definition at line 165 of file process.cc.

◆ slotSetJobState

void Core::slotSetJobState ( QString  _jobId,
int  _value 
)
privateslot

A job state has been updated by a plugin.

Definition at line 141 of file process.cc.

◆ slotSetRenderer

void Core::slotSetRenderer ( unsigned int  _viewer,
QString  _rendererName 
)
privateslot

called to switch the renderer for a specific viewer

Definition at line 565 of file PluginCommunication.cc.

◆ slotSetSlotDescription

void Core::slotSetSlotDescription ( QString  _slotName,
QString  _slotDescription,
QStringList  _parameters,
QStringList  _descriptions 
)
privateslot

set a description for one of the plugin's public slots

set descriptions for a scriptable slot

Definition at line 1364 of file Core.cc.

◆ slotSetSlotDescriptionGlobalFunction

void Core::slotSetSlotDescriptionGlobalFunction ( QString  _functionName,
QString  _slotDescription,
QStringList  _parameters,
QStringList  _descriptions 
)
privateslot

set a description for a global scripting function

set descriptions for a scriptable slot

Definition at line 1403 of file Core.cc.

◆ slotSetTextureMode [1/2]

void Core::slotSetTextureMode ( const QString &  _textureName,
const QString &  _mode 
)
privateslot

A texture mode should be changed.

Called by a plugin if the parameters of a texture should be changed. The information is passed to all plugins. A Texturecontrol plugin should react on this event.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 375 of file PluginCommunication.cc.

◆ slotSetTextureMode [2/2]

void Core::slotSetTextureMode ( const QString &  _textureName,
const QString &  _mode,
int  _id 
)
privateslot

A texture mode should be changed.

Called by a plugin if the parameters of a texture should be changed. The information is passed to all plugins. A Texturecontrol plugin should react on this event.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 358 of file PluginCommunication.cc.

◆ slotShowClosestBoundarySelectionMode

void Core::slotShowClosestBoundarySelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide closest boundary selection operation for specific selection mode.

Definition at line 114 of file SelectionCommunication.cc.

◆ slotShowComponentsSelectionMode

void Core::slotShowComponentsSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide connected components selection operation for specific selection mode.

Definition at line 122 of file SelectionCommunication.cc.

◆ slotShowFloodFillSelectionMode

void Core::slotShowFloodFillSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide flood fill selection operation for specific selection mode.

Definition at line 118 of file SelectionCommunication.cc.

◆ slotShowLassoSelectionMode

void Core::slotShowLassoSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide lasso selection operation for specific selection mode.

Definition at line 98 of file SelectionCommunication.cc.

◆ slotShowPlugins

void Core::slotShowPlugins ( )
privateslot

Show Plugins Dialog.

slot for showing loaded Plugins

Definition at line 652 of file PluginLoader.cc.

◆ slotShowScriptInEditor

void Core::slotShowScriptInEditor ( const QString &  _filename)
privateslot

Core slot, shows the given script in the python editor and shows it.

Parameters
_filenameFilename of the script

Definition at line 107 of file scripting.cc.

◆ slotShowSphereSelectionMode

void Core::slotShowSphereSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide sphere selection operation for specific selection mode.

Definition at line 110 of file SelectionCommunication.cc.

◆ slotShowSurfaceLassoSelectionMode

void Core::slotShowSurfaceLassoSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide surface lasso selection operation for specific selection mode.

Definition at line 106 of file SelectionCommunication.cc.

◆ slotShowToggleSelectionMode

void Core::slotShowToggleSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide toggle selection operation for specific selection mode.

Definition at line 94 of file SelectionCommunication.cc.

◆ slotShowVolumeLassoSelectionMode

void Core::slotShowVolumeLassoSelectionMode ( const QString &  _handleName,
bool  _show,
SelectionInterface::PrimitiveType  _associatedTypes 
)
privateslot

SelectionInterface: Provide volume lasso selection operation for specific selection mode.

Definition at line 102 of file SelectionCommunication.cc.

◆ slotSphereSelection

void Core::slotSphereSelection ( QMouseEvent *  _event,
double  _radius,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when sphere selection operation has been performed.

Definition at line 142 of file SelectionCommunication.cc.

◆ slotStartJob

void Core::slotStartJob ( QString  _jobId,
QString  _description,
int  _min,
int  _max,
bool  _blocking 
)
privateslot

A job has been started by a plugin.

Definition at line 64 of file process.cc.

◆ slotSurfaceLassoSelection

void Core::slotSurfaceLassoSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when surface lasso selection operation has been performed.

Definition at line 138 of file SelectionCommunication.cc.

◆ slotSwitchTexture [1/2]

void Core::slotSwitchTexture ( const QString &  _textureName)
privateslot

Tells Plugins to switch to the given Texture.

Called by plugins if texture mode should be switched

Definition at line 420 of file PluginCommunication.cc.

◆ slotSwitchTexture [2/2]

void Core::slotSwitchTexture ( const QString &  _textureName,
int  _id 
)
privateslot

Tells Plugins to switch to the given Texture.

Called by plugins if texture mode should be switched

Definition at line 406 of file PluginCommunication.cc.

◆ slotTargetObjectsOnly

void Core::slotTargetObjectsOnly ( bool &  _targetsOnly)
privateslot

SelectionInterface: Called when target restriction state should be fetched.

Definition at line 170 of file SelectionCommunication.cc.

◆ slotTextureChangeImage [1/2]

void Core::slotTextureChangeImage ( const QString &  _textureName,
QImage &  _image 
)
privateslot

Called by plugins if texture image should be changed.

Called by plugins if texture image should be changed

Definition at line 435 of file PluginCommunication.cc.

◆ slotTextureChangeImage [2/2]

void Core::slotTextureChangeImage ( const QString &  _textureName,
QImage &  _image,
int  _id 
)
privateslot

Called by plugins if texture image should be changed.

Called by plugins if texture image should be changed

Definition at line 441 of file PluginCommunication.cc.

◆ slotTextureFilename

void Core::slotTextureFilename ( int  _id,
const QString &  _textureName,
QString &  _textureFilename 
)
privateslot

Called by plugins if texture name should be fetched.

Called by plugins if texture filename should be fetched

Definition at line 477 of file PluginCommunication.cc.

◆ slotTextureGetImage [1/2]

void Core::slotTextureGetImage ( const QString &  _textureName,
QImage &  _image 
)
privateslot

Called by plugins if texture image should be fetched.

Called by plugins if texture image should be fetched

Definition at line 447 of file PluginCommunication.cc.

◆ slotTextureGetImage [2/2]

void Core::slotTextureGetImage ( const QString &  _textureName,
QImage &  _image,
int  _id 
)
privateslot

Called by plugins if texture image should be fetched.

Called by plugins if texture image should be fetched

Definition at line 453 of file PluginCommunication.cc.

◆ slotTextureIndex

void Core::slotTextureIndex ( const QString &  _textureName,
int  _id,
int &  _index 
)
privateslot

Called by plugins if texture index should be fetched.

Called by plugins if texture index should be fetched

Definition at line 459 of file PluginCommunication.cc.

◆ slotTextureIndexPropertyName

void Core::slotTextureIndexPropertyName ( int  _id,
QString &  _propertyName 
)
privateslot

Called by plugins if texture index property name should be fetched.

Called by plugins if texture index property name should be fetched

Definition at line 465 of file PluginCommunication.cc.

◆ slotTextureName

void Core::slotTextureName ( int  _id,
int  _textureIndex,
QString &  _textureName 
)
privateslot

Called by plugins if texture name should be fetched.

Called by plugins if texture name should be fetched

Definition at line 471 of file PluginCommunication.cc.

◆ slotTextureUpdated

void Core::slotTextureUpdated ( const QString &  _textureName,
int  _identifier 
)
privateslot

A Texture has been updated.

Called by a plugin if it updated a texture. The information is passed to all plugins. If a texture control plugin is available it has to react on the signal and update the visualization of the texture.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 392 of file PluginCommunication.cc.

◆ slotToggleSelection

void Core::slotToggleSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when toggle selection operation has been performed.

Definition at line 126 of file SelectionCommunication.cc.

◆ slotUnBlockPlugin

void Core::slotUnBlockPlugin ( const QString &  _rpcName)
privateslot

Function for UnBlocking Plugins. Plugins will not loaded automatically.

Definition at line 690 of file PluginLoader.cc.

◆ slotUpdateAllTextures

void Core::slotUpdateAllTextures ( )
privateslot

Update all textures in the plugins.

Called by a plugin if all textures should be updated. The information is passed to all plugins. All plugins providing textures should react on this event.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 351 of file PluginCommunication.cc.

◆ slotUpdateTexture

void Core::slotUpdateTexture ( const QString &  _name,
int  _identifier 
)
privateslot

Tell the plugins to update the given texture.

Called by a plugin if a texture has to be updated. The information is passed to all plugins. The Plugin providing the given Texture should react on this event.
See in the documentation of the texture plugin interfaces for further detail.

Definition at line 284 of file PluginCommunication.cc.

◆ slotVisibilityChanged

void Core::slotVisibilityChanged ( int  _id)
privateslot

Called when a plugin changes the visibility of an object.

Definition at line 143 of file PluginCommunication.cc.

◆ slotVolumeLassoSelection

void Core::slotVolumeLassoSelection ( QMouseEvent *  _event,
SelectionInterface::PrimitiveType  _currentType,
bool  _deselect 
)
privateslot

SelectionInterface: Called when volume lasso selection operation has been performed.

Definition at line 134 of file SelectionCommunication.cc.

◆ slotWheelEvent

void Core::slotWheelEvent ( QWheelEvent *  _event,
const std::string &  _mode 
)
privateslot

Gets called by examiner widget when Wheel is moved in picking mode.

Definition at line 914 of file Core.cc.

◆ snapshot

void Core::snapshot ( unsigned int  _viewerId = 0,
int  _width = 0,
int  _height = 0,
bool  _alpha = false,
bool  _hideCoordsys = false,
int  _numSamples = 1 
)
slot

Trigger a snapshot and increase the snapshot counter. Save snapshot to file determined by snapshotBaseFileName() and the current snapshot counter. The back buffer will be saved. The id of the current viewer is 0 (default).

Definition at line 1525 of file Core.cc.

◆ snapshotBaseFileName

void Core::snapshotBaseFileName ( QString  _fname,
unsigned int  _viewerId = 0 
)
slot

set the baseFilename for snapshots (a counter is automatically increased when snapshot() is called)

Definition at line 1485 of file Core.cc.

◆ snapshotCounterStart

void Core::snapshotCounterStart ( const int  _counter,
unsigned int  _viewerId = 0 
)
slot

Set the start index for the snapshot counter.

Definition at line 1512 of file Core.cc.

◆ snapshotFileType

void Core::snapshotFileType ( QString  _type,
unsigned int  _viewerId = 0 
)
slot

Set the file type for snapshots.

Definition at line 1498 of file Core.cc.

◆ startVideoCapture

void Core::startVideoCapture ( const QString &  _baseName,
int  _fps,
bool  _captureViewers 
)
slot

Start video capturing.

Definition at line 63 of file Video.cc.

◆ stopVideoCapture

void Core::stopVideoCapture ( )
slot

Stop video capturing.

Definition at line 109 of file Video.cc.

◆ unblockSceneGraphUpdates

void Core::unblockSceneGraphUpdates ( )
slot

Unblock the scenegraph updates.

Definition at line 365 of file scripting.cc.

◆ updateUI

void Core::updateUI ( )
slot

process events during script execution to keep the ui alive

Definition at line 1017 of file Core.cc.

◆ updateView

void Core::updateView ( )
slot

Called when a plugin requests an update in the viewer.

Update the view in the examiner widget

Definition at line 966 of file Core.cc.

◆ viewerSnapshot [1/2]

void Core::viewerSnapshot ( )
slot

Take a snapshot from all viewers.

Definition at line 1550 of file Core.cc.

◆ viewerSnapshot [2/2]

void Core::viewerSnapshot ( QString  file_name,
bool  store_comments,
bool  comments_visible_only,
bool  comments_targeted_only,
bool  store_material_info,
int  snapshot_width,
int  snapshot_height,
bool  snapshot_transparent,
bool  hide_coord_sys,
int  snapshot_multisampling,
bool  store_view 
)
slot

Scriptable snapshot method offering full control.

Definition at line 1556 of file Core.cc.

◆ viewUpdated

void Core::viewUpdated ( )
privateslot

Slot called everytime the view is updated.

Definition at line 123 of file Video.cc.

◆ writeApplicationOptions()

void Core::writeApplicationOptions ( INIFile _ini)
private

Write Application options to ini file.

Write the standard options to the given Ini File

Parameters
_iniInifile to use

Definition at line 285 of file ParseIni.cc.

◆ writeIniFile()

void Core::writeIniFile ( QString  _filename,
bool  _relativePaths,
bool  _targetOnly,
bool  _saveSystemSettings,
bool  _savePluginSettings,
bool  _saveObjectInfo,
std::map< int, QString > &  _fileMapping 
)
private

Write current status to ini file (Application and File Options)

Writes the complete status to an ini file ( All open objects and their Information )

Parameters
_filenameFilename of the ini file to write with full path
_relativePathsThis defines if the paths to the objects should be made relative
_targetOnlySelect if we want all open objects or only the ones which are selected as target.
_saveSystemSettingsChoose if you also want to save system settings into the ini file.
_savePluginSettingsChoose if you want to save per Plugin global settings into the ini file.
_saveObjectInfoIf you want to store information about all open objects this has to be true
_fileMappingIf multiple files have the same name, all duplicates get renamed. Mapping: Id -> new file name.

Definition at line 540 of file ParseIni.cc.

◆ writeObjFile()

void Core::writeObjFile ( QString  _filename,
bool  _relativePaths,
bool  _targetOnly,
std::map< int, QString > &  _fileMapping 
)
private

Write current status to obj file (Application and File Options)

Writes the complete status to an obj file ( All open objects and their Information )

Todo:
After obj writing to one file is implemented in obj plugin, remove this Function and the whole File!

Definition at line 65 of file ParseObj.cc.

◆ writeOnExit()

void Core::writeOnExit ( )
private

Called if app is closed and writes all information to ini file.

Definition at line 1203 of file Core.cc.

◆ writeVersionNumbers

void Core::writeVersionNumbers ( QString  _filename)
slot

write the current versions of all plugins to ini file

Definition at line 1592 of file Core.cc.

Member Data Documentation

◆ capture_

bool Core::capture_
private

Slot called everytime the view is updated.

Definition at line 936 of file Core.hh.

◆ captureType_

int Core::captureType_
private

Slot called everytime the view is updated.

Definition at line 934 of file Core.hh.

◆ commandLineFileNames_

std::vector< std::pair < QString , bool > > Core::commandLineFileNames_
private

Vector storing filenames from commandline to be opened after application startup (objects)

Definition at line 888 of file Core.hh.

◆ commandLineScriptNames_

std::vector< QString > Core::commandLineScriptNames_
private

Vector storing filenames from commandline to be opened after application startup (script files)

Definition at line 891 of file Core.hh.

◆ coordsysMaterialNode_

ACG::SceneGraph::MaterialNode* Core::coordsysMaterialNode_
private

Node for coordsys Material.

Definition at line 1095 of file Core.hh.

◆ coordsysNode_

ACG::SceneGraph::CoordsysNode* Core::coordsysNode_
private

Node for the coordinate system.

Definition at line 1098 of file Core.hh.

◆ core_nodes_

SeparatorNode* Core::core_nodes_
private

Separator Node holding all core scenegraph nodes.

Definition at line 1085 of file Core.hh.

◆ coreSlots_

QList< SlotInfo > Core::coreSlots_
private

Core scripting engine.

Definition at line 1423 of file Core.hh.

◆ coreWidget_

CoreWidget* Core::coreWidget_
private

The main applications widget ( only created in gui mode )

Definition at line 1652 of file Core.hh.

◆ currentJobs

QList< JobInfo > Core::currentJobs
private

A job has been started by a plugin.

Definition at line 1543 of file Core.hh.

◆ dataRootNode_

SeparatorNode* Core::dataRootNode_
private

Root Node for data objects.

Definition at line 1092 of file Core.hh.

◆ dataSeparatorNode_

SeparatorNode* Core::dataSeparatorNode_
private

Toplevel Nodes for data objects.

Definition at line 1089 of file Core.hh.

◆ DataTypePrototype_

prototypeDataType Core::DataTypePrototype_
private

Prototype for the DataType.

Definition at line 1362 of file Core.hh.

◆ globalFunctions_

QList< SlotInfo > Core::globalFunctions_
private

Core scripting engine.

Definition at line 1424 of file Core.hh.

◆ lastHeight_

int Core::lastHeight_
private

Slot called everytime the view is updated.

Definition at line 939 of file Core.hh.

◆ lastVideoTime_

QElapsedTimer Core::lastVideoTime_
private

Slot called everytime the view is updated.

Definition at line 932 of file Core.hh.

◆ lastWidth_

int Core::lastWidth_
private

Slot called everytime the view is updated.

Definition at line 938 of file Core.hh.

◆ logFile_

QFile* Core::logFile_
private

logfile

Definition at line 1210 of file Core.hh.

◆ loggers_

std::vector<PluginLogger*> Core::loggers_
private

Logger interfaces between plugins and core logger.

Definition at line 1642 of file Core.hh.

◆ logStream_

QTextStream* Core::logStream_
private

stream for logging to file

Definition at line 1207 of file Core.hh.

◆ matrix4x4Prototype_

prototypeMatrix4x4 Core::matrix4x4Prototype_
private

Prototype for the Matrix type.

Definition at line 1365 of file Core.hh.

◆ nextBackupGroupId_

int Core::nextBackupGroupId_
private

Id for the next backup group.

Definition at line 1639 of file Core.hh.

◆ nextBackupId_

int Core::nextBackupId_
private

Id for the next backup.

Definition at line 1636 of file Core.hh.

◆ objectRoot_

BaseObject* Core::objectRoot_
private

Pointer to the data rootNode;.

Definition at line 1649 of file Core.hh.

◆ processManager_

ProcessManagerWidget* Core::processManager_
private

A job has been started by a plugin.

Definition at line 1545 of file Core.hh.

◆ redrawTime_

QElapsedTimer* Core::redrawTime_
private

Holds the time since last redraw.

Definition at line 1531 of file Core.hh.

◆ redrawTimer_

QTimer* Core::redrawTimer_
private

If enabled, this timer will block screen refresh if done more then 30 times per second.

Definition at line 1664 of file Core.hh.

◆ root_node_scenegraph_

SeparatorNode* Core::root_node_scenegraph_
private

Scenegraphs root node.

Definition at line 1079 of file Core.hh.

◆ root_node_scenegraph_global_

SeparatorNode* Core::root_node_scenegraph_global_
private

Seperator node for global nodes.

Definition at line 1082 of file Core.hh.

◆ scenegraphCheckTimer_

QTimer* Core::scenegraphCheckTimer_
private

Timer that starts scenegraph check.

Definition at line 1528 of file Core.hh.

◆ scriptEngine_

QScriptEngine Core::scriptEngine_
private

Core scripting engine.

Definition at line 1344 of file Core.hh.

◆ scriptingFunctions_

QStringList Core::scriptingFunctions_
private

List of all registered scripting functions.

Definition at line 1352 of file Core.hh.

◆ scriptingWrappers_

std::vector<ScriptingWrapper*> Core::scriptingWrappers_
private

Wrappers for plugin scripting.

Definition at line 1347 of file Core.hh.

◆ spinBoxEventFilter_

SpinBoxEventFilter Core::spinBoxEventFilter_
private

Definition at line 1666 of file Core.hh.

◆ splash_

QSplashScreen* Core::splash_
private

SplashScreen, only used in gui mode.

Definition at line 1655 of file Core.hh.

◆ splashMessage_

QString Core::splashMessage_
private

Last Splash message;.

Definition at line 1658 of file Core.hh.

◆ supportedDataTypes_

std::vector<dataTypes> Core::supportedDataTypes_
private

Type-Plugins.

Definition at line 1645 of file Core.hh.

◆ toolboxindex_

int Core::toolboxindex_
private

Index of Plugins toolbox widget.

Definition at line 1243 of file Core.hh.

◆ vec3dPrototype_

prototypeVec3d Core::vec3dPrototype_
private

Prototype for the Vector type.

Definition at line 1356 of file Core.hh.

◆ vec4dPrototype_

prototypeVec4d Core::vec4dPrototype_
private

Prototype for the Vector type.

Definition at line 1359 of file Core.hh.

◆ videoTimer_

QTimer Core::videoTimer_
private

Slot called everytime the view is updated.

Definition at line 931 of file Core.hh.

◆ viewModes_

QVector<ViewMode*> Core::viewModes_
private

List of available draw modes.

Definition at line 1661 of file Core.hh.


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