#include <qSlicerCoreApplication.h>
Reimplemented in qSlicerApplication.
References autoSlicerTracto2regions::d, QCTK_D, and QCTK_INIT_PRIVATE.
| qSlicerCoreApplication::~qSlicerCoreApplication | ( | ) | [virtual] |
| qSlicerCoreApplication * qSlicerCoreApplication::application | ( | ) | [static] |
Return a reference to the application singleton
Reimplemented in qSlicerApplication.
References NodeSelector::app.
Referenced by qSlicerCoreCommandOptions::disableCurrentSettings(), qSlicerCLILoadableModuleFactoryItem::instanciator(), qSlicerModuleManager::loadModule(), qSlicerLoadableModuleFactoryPrivate::modulePaths(), qSlicerCLIModuleFactoryHelper::modulePaths(), qSlicerPythonManager::preInitialization(), qSlicerPythonManager::pythonPaths(), qSlicerCamerasModuleTest1(), qSlicerCamerasModuleWidgetTest1(), qSlicerCoreApplicationTest1(), qSlicerTransformsModuleTest1(), and qSlicerTransformsModuleWidgetTest1().
| vtkSlicerApplicationLogic* qSlicerCoreApplication::appLogic | ( | ) | const |
Get application logic.
Referenced by qSlicerCoreApplicationTest1(), and qSlicerTransformsModuleTest1().
| void qSlicerCoreApplication::clearSettings | ( | ) |
Clear application settings.
References autoSlicerTracto2regions::d, and QCTK_D.
| qSlicerCoreCommandOptions * qSlicerCoreApplication::coreCommandOptions | ( | ) | const |
Get coreCommandOptions
Referenced by qSlicerApplication::commandOptions(), handleCommandLineArguments(), handlePreApplicationCommandLineArguments(), qSlicerCamerasModuleTest1(), qSlicerCoreApplicationTest1(), and qSlicerTransformsModuleTest1().
| qSlicerCoreIOManager * qSlicerCoreApplication::coreIOManager | ( | ) | const |
Get the IO manager
Referenced by qSlicerApplication::ioManager(), and qSlicerCoreApplicationTest1().
| void qSlicerCoreApplication::currentMRMLSceneChanged | ( | vtkMRMLScene * | mrmlScene | ) | [signal] |
Referenced by setMRMLScene().
| void qSlicerCoreApplication::disableSettings | ( | ) |
Disable application settings Instanciate a new empty qCTKSettings object and associate it with this instance. Note that the original settings won't deleted.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qSlicerCoreCommandOptions::disableCurrentSettings().
| void qSlicerCoreApplication::handleCommandLineArguments | ( | ) | [protected, virtual, slot] |
References coreCommandOptions().
| void qSlicerCoreApplication::handlePreApplicationCommandLineArguments | ( | ) | [protected, virtual] |
References coreCommandOptions(), autoSlicerTracto2regions::d, qSlicerCoreCommandOptions::displayHomePathAndExit(), qSlicerCoreCommandOptions::displayProgramPathAndExit(), qSlicerCoreCommandOptions::displayVersionAndExit(), qVTKCommandOptions::help(), qVTKCommandOptions::helpSelected(), qVTKCommandOptions::ignoredArguments(), qVTKCommandOptions::ignoreRest(), QCTK_D, and slicerHome().
| void qSlicerCoreApplication::initialize | ( | bool & | exitWhenDone | ) |
Instantiate MRMLScene and Application logic.
Reimplemented in qSlicerApplication.
References autoSlicerTracto2regions::d, QCTK_D, vtkMRMLScene::SetActiveScene(), and setMRMLScene().
Referenced by qSlicerApplication::initialize(), qSlicerCamerasModuleTest1(), qSlicerCoreApplicationTest1(), qSlicerModuleManagerTest1(), and qSlicerTransformsModuleTest1().
| bool qSlicerCoreApplication::initialized | ( | ) | const |
Return true if the application has been initialized Note: initialize() should be called only one time.
| QString qSlicerCoreApplication::intDir | ( | ) | const |
If any, this method return the build intermediate directory See on http://msdn.microsoft.com/en-us/library/c02as0cs%28VS.71%29.aspx
Referenced by qSlicerLoadableModuleFactoryPrivate::modulePaths(), qSlicerCLIModuleFactoryHelper::modulePaths(), and qSlicerPythonManager::pythonPaths().
| bool qSlicerCoreApplication::isInstalled | ( | ) |
Return true is this instance of Slicer is running from an installed directory
References slicerHome().
Referenced by qSlicerPythonManager::pythonPaths(), and qSlicerCoreApplicationTest1().
| qSlicerModuleManager * qSlicerCoreApplication::moduleManager | ( | ) | const |
Get the module manager
Referenced by qSlicerModulePanel::addModule(), qSlicerModuleSelectorWidgetPrivate::addModules(), main(), qSlicerBaseQTBasePythonQtDecorators::moduleManager(), qSlicerModuleSelectorWidgetPrivate::onComboBoxActivated(), vtkSlicerModuleChooseGUI::Populate(), qSlicerCoreApplicationTest1(), qSlicerMainWindowCore::qSlicerMainWindowCore(), vtkSlicerModuleChooseGUI::RaiseModule(), qSlicerModuleSelectorWidgetPrivate::removeModule(), qSlicerModulePanel::removeModule(), vtkSlicerModuleChooseGUI::SelectModule(), vtkSlicerApplicationGUI::SetCurrentQtModule(), qSlicerModulePanel::setModule(), and Slicer3_main().
| vtkMRMLScene* qSlicerCoreApplication::mrmlScene | ( | ) | const |
Get MRML Scene
Referenced by qSlicerMainWindowCore::onEditRedoActionTriggered(), qSlicerMainWindowCore::onEditUndoActionTriggered(), and qSlicerCoreApplicationTest1().
| qSlicerCoreApplication::QCTK_DECLARE_PRIVATE | ( | qSlicerCoreApplication | ) | [private] |
Reimplemented in qSlicerApplication.
| void qSlicerCoreApplication::setCoreCommandOptions | ( | qSlicerCoreCommandOptions * | options | ) |
Set coreCommandOptions Note that qSlicerCoreApplication takes ownership of the object
Referenced by qSlicerApplication::initialize(), qSlicerCamerasModuleTest1(), qSlicerCoreApplicationTest1(), and qSlicerTransformsModuleTest1().
| void qSlicerCoreApplication::setCoreIOManager | ( | qSlicerCoreIOManager * | ioManager | ) |
Set the IO manager Note that qSlicerCoreApplication takes ownership of the object
Referenced by qSlicerCoreApplicationTest1().
| void qSlicerCoreApplication::setMRMLScene | ( | vtkMRMLScene * | scene | ) |
Set MRML Scene DEPRECATED: This method was used by the KWWidgests GUI only and it will be moved as a protected member.
References currentMRMLSceneChanged(), autoSlicerTracto2regions::d, and QCTK_D.
Referenced by initialize(), qSlicerCoreApplicationTest1(), and Slicer3_main().
| void qSlicerCoreApplication::setSlicerHome | ( | const QString & | slicerHome | ) |
Convenient method to set slicer home directory Note: SlicerHome should be auto-discovered. See implementation details.
Referenced by qSlicerCoreApplicationTest1().
| qCTKSettings * qSlicerCoreApplication::settings | ( | ) |
Get application settings Note that his method will also instanciate a qCTKSettings object if required.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qSlicerApplication::initialize(), qSlicerCamerasModuleTest1(), qSlicerCoreApplicationTest1(), and qSlicerTransformsModuleTest1().
| QString qSlicerCoreApplication::slicerHome | ( | ) | const |
Get slicer home directory
Referenced by handlePreApplicationCommandLineArguments(), isInstalled(), qSlicerLoadableModuleFactoryPrivate::modulePaths(), qSlicerCLIModuleFactoryHelper::modulePaths(), qSlicerPythonManager::preInitialization(), qSlicerPythonManager::pythonPaths(), and qSlicerCoreApplicationTest1().
1.6.1