Computer Assited Medical Intervention Tool Kit  version 4.1
Application.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef CAMITKAPPLICATION_H
27 #define CAMITKAPPLICATION_H
28 
29 // -- Core stuff
30 #include "CamiTKAPI.h"
31 #include "InterfaceLogger.h"
32 
33 // -- QT stuff
34 #include <QApplication>
35 #include <QSettings>
36 #include <QDir>
37 #include <QFileInfo>
38 #include <QStack>
39 #include <QList>
40 #include <QTranslator>
41 
42 class vtkObject;
43 namespace camitk {
44 class MainWindow;
45 class ActionExtension;
46 class Action;
47 class HistoryItem;
48 class ComponentExtension;
49 class Property;
50 class PropertyObject;
51 
63 class CAMITK_API Application : public QApplication {
64  Q_OBJECT
65 
66 public:
67 
72  SUBFRAME
73  };
74 
75  Q_ENUMS(TargetPositionningPolicy)
76 
77 
97  Application(QString name, int& argc, char** argv, bool autoloadExtension = true, bool registerFileExtension = false);
98 
100  ~Application() override;
101 
104 
107  bool notify(QObject*, QEvent*) override;
108 
110  static QString getName();
111 
127  static QSettings& getSettings();
128 
141  static int exec();
142 
145  static const QDir getLastUsedDirectory();
146 
148  static void setLastUsedDirectory(QDir);
149 
153  static void addRecentDocument(QFileInfo);
154 
156  static const QList<QFileInfo> getRecentDocuments();
157 
159  static const int getMaxRecentDocuments();
160 
162 
165 
170  static Component* open(const QString&);
171 
176  static Component* openDirectory(const QString& dirName, const QString& pluginName);
177 
182  static bool close(Component* component);
183 
189  static bool save(Component* component);
190 
192  friend class Component;
193 
198  static const ComponentList& getTopLevelComponents();
199 
204  static const ComponentList& getAllComponents();
205 
207  static bool isAlive(Component*);
208 
210  static bool hasModified();
211 
213 
218 
222  static const ComponentList& getSelectedComponents();
223 
227  static void clearSelectedComponents();
228 
230 
233 
235  static Action* getAction(QString);
236 
238  static const ActionList getActions();
239 
241  static ActionList getActions(Component*);
242 
244  static ActionList getActions(ComponentList);
245 
247  static ActionList getActions(ComponentList, QString);
248 
252  static int registerAllActions(ActionExtension*);
253 
257  static int unregisterAllActions(ActionExtension*);
259 
262 
274  void setMainWindow(MainWindow* mw);
275 
277  static MainWindow* getMainWindow();
278 
280  static void refresh();
281 
288  static void showStatusBarMessage(QString msg, int timeout = 0);
289 
293  static void resetProgressBar();
294 
300  static void setProgressBarValue(int);
301 
314  static void vtkProgressFunction(vtkObject* caller, long unsigned int, void*, void*);
316 
319 
324  static void addHistoryItem(HistoryItem item);
325 
329  static HistoryItem removeLastHistoryItem();
330 
335  static void saveHistoryAsSXML();
336 
338 
341 
344  static QString getSelectedLanguage();
346 
349 
355  static PropertyObject* getPropertyObject();
357 
358 private slots:
359  void quitting();
360 
361 private:
363  static QString name;
364 
367 
369  static int argc;
370 
372  static char** argv;
373 
377  static QList<QFileInfo> recentDocuments;
378 
380  static QDir lastUsedDirectory;
381 
383  static int maxRecentDocuments;
384 
386  static QTranslator* translator;
388 
391 
398  static ComponentList& getTopLevelComponentList();
399 
407  static ComponentList& getAllComponentList();
408 
416  static ComponentList& getSelectedComponentList();
417 
430  static void setSelected(Component* component, bool isSelected);
431 
438  static void addComponent(Component*);
439 
446  static void removeComponent(Component*);
447 
449 
452 
454  static QSettings settings;
455 
457  static void applyPropertyValues();
459 
464 
471  static QStack<HistoryItem>& getHistory();
472 
474 
477 
484  static QMap<QString, Action*>& getActionMap();
485 
487  static ActionList sort(ActionSet);
489 
491  static void initResources();
492 
493 
496 
499  static void createProperties();
500 
512 
513 protected:
518  bool eventFilter(QObject* object, QEvent* event) override;
519 };
520 
521 
522 
523 }
524 
526 
527 #endif // CAMITKAPPLICATION_H
camitk::Application::resetProgressBar
static void resetProgressBar()
Resets the progress bar if it exists.
Definition: Application.cpp:338
camitk::Application::argv
static char ** argv
argv given from command line
Definition: Application.h:372
camitk::Application::createProperties
static void createProperties()
Create all the application properties and add them to the qApp.
Definition: Application.cpp:1267
camitk::InterfaceLogger::setTimeStampInformation
virtual void setTimeStampInformation(bool showTimeStamp)=0
By default a logger should always show the time-stamp in the form of "yyyy-MM-dd HH:mm:ss....
camitk::InterfaceLogger::setLogLevel
virtual void setLogLevel(LogLevel level)=0
Sets Current verbosity level of the log.
camitk::ComponentExtension::open
virtual Component * open(const QString &)=0
get a new instance from data stored in a file (this is the most important method to redefine in your ...
camitk::Component::getParentComponent
virtual Component * getParentComponent()
get the parent component
Definition: sdk/libraries/core/component/Component.cpp:261
camitk::Application::quitting
void quitting()
}@
Definition: Application.cpp:206
camitk::InterfaceLogger::setDebugInformation
virtual void setDebugInformation(bool)=0
Allows the logger to add debug information to the log message.
camitk::Application::save
static bool save(Component *component)
save a component to its file (as given by component->getFileName()).
Definition: Application.cpp:641
camitk::InterfaceLogger::setLogToFile
virtual bool setLogToFile(bool writeToFile)=0
Ask the logger to write to the log file.
CAMITK_WARNING_ALT
#define CAMITK_WARNING_ALT(MSG)
Definition: Log.h:264
camitk::Component::isTopLevel
bool isTopLevel() const
return true if this component is a top-level component
Definition: sdk/libraries/core/component/Component.cpp:236
camitk::HistoryItem::getInputHistoryComponents
QList< HistoryComponent > getInputHistoryComponents()
Get the input components of the history item action.
Definition: HistoryItem.cpp:70
camitk::Application::getActions
static const ActionList getActions()
get all the actions registered in the application (note: the returned ActionList is garanteed to be s...
Definition: Application.cpp:706
camitk::Application::initResources
static void initResources()
Init the application resources by loading the language associated .qm file.
Definition: Application.cpp:1246
camitk::MainWindow::redirectToConsole
virtual void redirectToConsole(bool)
use or not the application console (redirect or not standard out/err streams)
Definition: MainWindow.cpp:325
camitk::HistoryItem::getOutputHistoryComponents
QList< HistoryComponent > getOutputHistoryComponents()
Get the output components of the history item action.
Definition: HistoryItem.cpp:80
camitk::Application::getSelectedComponentList
static ComponentList & getSelectedComponentList()
get the currently selected Components.
Definition: Application.cpp:877
camitk::Application::getTopLevelComponentList
static ComponentList & getTopLevelComponentList()
get the current application wide list of instantiated top-level Components.
Definition: Application.cpp:863
camitk::Component::getHierarchy
QStringList getHierarchy() const override
Definition: sdk/libraries/core/component/Component.cpp:174
camitk::Application::getAllComponentList
static ComponentList & getAllComponentList()
get the current application wide list of all Components.
Definition: Application.cpp:870
camitk::Application::getHistory
static QStack< HistoryItem > & getHistory()
get the singleton stack of actions stored in a pipeline This is the private (intern) method.
Definition: Application.cpp:921
CamiTKAPI.h
camitk::Action::SUCCESS
@ SUCCESS
everything went according to plan
Definition: Action.h:247
camitk::Application::getSelectedLanguage
static QString getSelectedLanguage()
Returns for the current CamiTK application, the selected language (stored in its ....
Definition: Application.cpp:1232
InterfaceLogger.h
camitk::Application::getSettings
static QSettings & getSettings()
Get the Core wide settings.
Definition: Application.cpp:300
camitk::Component::getFileName
const QString getFileName() const
get the file name where the data have to be stored/were stored
Definition: sdk/libraries/core/component/Component.cpp:573
camitk::ExtensionManager::getFileExtensions
static QStringList getFileExtensions()
get the list of all the suffixes managed by registered component extensions (all possible file suffix...
Definition: ExtensionManager.cpp:367
initIcons
void initIcons()
Definition: Application.cpp:52
camitk::Application::setMainWindow
void setMainWindow(MainWindow *mw)
set the main window.
Definition: Application.cpp:245
camitk::Application::addRecentDocument
static void addRecentDocument(QFileInfo)
Add a document to the list of recent documents (e.g.
Definition: Application.cpp:379
camitk::ExtensionManager::autoload
static void autoload()
Autoload component and action extensions.
Definition: ExtensionManager.cpp:67
camitk::Application::getAllComponents
static const ComponentList & getAllComponents()
get the current application wide list of all Components.
Definition: Application.cpp:889
camitk::Application::refresh
static void refresh()
refresh the main window (this will call the refresh method of all viewers)
Definition: Application.cpp:317
camitk::Application::clearSelectedComponents
static void clearSelectedComponents()
clear all the selection, i.e call setSelected(false) for all the previously selected components and c...
Definition: Application.cpp:912
camitk::Application::removeComponent
static void removeComponent(Component *)
unregister a Component.
Definition: Application.cpp:856
camitk::Application::close
static bool close(Component *component)
Close a Component: if it has been changed, ask the user for more information, then if everything is o...
Definition: Application.cpp:603
camitk::PropertyObject::saveToSettings
void saveToSettings(const QString &settingGroupName)
save setting in the given group name using all the property values
Definition: PropertyObject.cpp:239
camitk::Application::propertyObject
static PropertyObject * propertyObject
A simple QObject that holds the CamiTK level properties of the application.
Definition: Application.h:510
CAMITK_INFO
#define CAMITK_INFO(MSG)
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for I...
Definition: Log.h:258
camitk::Application::setProgressBarValue
static void setProgressBarValue(int)
set the progress bar value, value should be in [0..100].
Definition: Application.cpp:351
camitk::InterfaceLogger::NONE
@ NONE
No message is logged.
Definition: InterfaceLogger.h:61
camitk::ComponentExtension
This class describes what is a generic Component extension. To add a ComponentExtension to CamiTK cor...
Definition: ComponentExtension.h:80
camitk::PropertyObject::loadFromSettings
void loadFromSettings(const QString &settingGroupName)
initializes all property values from setting values found in the given group name
Definition: PropertyObject.cpp:142
camitk::InterfaceLogger::ERROR
@ ERROR
Only error messages are logged.
Definition: InterfaceLogger.h:62
HistoryComponent.h
PropertyObject.h
camitk::Application::getLastUsedDirectory
static const QDir getLastUsedDirectory()
Get the last used directory (e.g.
Definition: Application.cpp:413
camitk::Application::getMaxRecentDocuments
static const int getMaxRecentDocuments()
get the maximal number of recent documents stored
Definition: Application.cpp:428
camitk::Application::sort
static ActionList sort(ActionSet)
sort an ActionSet by action's name
Definition: Application.cpp:753
camitk::Application::unregisterAllActions
static int unregisterAllActions(ActionExtension *)
unregister all actions from the given ActionExtension
Definition: Application.cpp:735
camitk::Action::getName
QString getName() const
get the name of the action
Definition: Action.h:334
camitk::HistoryComponent
HistoryComponent class describes the component information (name, type) stored in the history.
Definition: HistoryComponent.h:82
camitk::Application::name
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications)
Definition: Application.h:363
Action.h
camitk::Application::addHistoryItem
static void addHistoryItem(HistoryItem item)
Add the history item to the application history.
Definition: Application.cpp:928
camitk::Application::Application
Application(QString name, int &argc, char **argv, bool autoloadExtension=true, bool registerFileExtension=false)
Initializes the window system and constructs a CamiTK application object with argc command line argum...
Definition: Application.cpp:71
camitk::ActionList
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
camitk::Application::getSelectedComponents
static const ComponentList & getSelectedComponents()
get the currently selected Components.
Definition: Application.cpp:894
camitk::Application::lastUsedDirectory
static QDir lastUsedDirectory
last used directory
Definition: Application.h:380
camitk::actionLessThan
bool actionLessThan(const camitk::Action *a1, const camitk::Action *a2)
Definition: Application.cpp:747
camitk::Action::getExtensionName
QString getExtensionName() const
the name of the extension in the family in which this action is associated
Definition: Action.cpp:149
camitk::Application::maxRecentDocuments
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:383
camitk::Property
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:314
Log.h
camitk::ExtensionManager::getComponentExtension
static ComponentExtension * getComponentExtension(QString)
get the plugin corresponding to a given extension or name.
Definition: ExtensionManager.cpp:327
camitk::Core::getCurrentWorkingDir
static const QString getCurrentWorkingDir()
get the current working directory (during dev, this should be the build directory,...
Definition: Core.cpp:359
camitk::Core::getTestDataDir
static const QString getTestDataDir()
Get a valid camitk test data directory name.
Definition: Core.cpp:298
camitk::Action::getFamily
QString getFamily() const
the name of the family in which this action is associated
Definition: Action.h:349
camitk::Action
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:230
camitk::Log::getLogger
static InterfaceLogger * getLogger()
get the current application logger
Definition: Log.cpp:73
camitk::ExtensionManager::getDataDirectoryComponentExtension
static ComponentExtension * getDataDirectoryComponentExtension(QString)
get the plugin corresponding to a given data directory component extension's name.
Definition: ExtensionManager.cpp:315
Property.h
MainWindow
Definition: canvas_typed/mainwindow.h:69
camitk::Application::showStatusBarMessage
static void showStatusBarMessage(QString msg, int timeout=0)
Set a message to the status bar.
Definition: Application.cpp:322
camitk::Action::getDescription
QString getDescription() const
the description of the action
Definition: Action.h:339
camitk::Application
The generic/default application. Once this class is intanciated in the main, everything is setup....
Definition: Application.h:63
camitk::ActionSet
QSet< Action * > ActionSet
A set of Action.
Definition: CamiTKAPI.h:92
camitk::HistoryItem
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:84
camitk::Application::openDirectory
static Component * openDirectory(const QString &dirName, const QString &pluginName)
load a directory and returns the corresponding Component (return NULL if an error occurs)
Definition: Application.cpp:531
camitk::AbortException
Exception class to handle abortion in component instantiation. Particularly useful to handle construc...
Definition: AbortException.h:66
camitk::Application::setLastUsedDirectory
static void setLastUsedDirectory(QDir)
set (force) the last used directory
Definition: Application.cpp:418
CAMITK_ERROR
#define CAMITK_ERROR(MSG)
Log for error verbosity (the minimum verbosity) Will always appear.
Definition: Log.h:273
camitk::Application::vtkProgressFunction
static void vtkProgressFunction(vtkObject *caller, long unsigned int, void *, void *)
Observer function to be called by vtkFilters and to update progress bar Example of use:
Definition: Application.cpp:364
camitk::MainWindow::show
void show()
inherited from QWidget, just to refresh all viewers
Definition: MainWindow.cpp:357
camitk::Application::open
static Component * open(const QString &)
load the filename and returns the corresponding top level Component (return NULL if an error occurs)
Definition: Application.cpp:433
camitk::Component::setSelected
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:558
camitk::ComponentExtension::save
virtual bool save(Component *component) const
save a given Component (does not have to be top-level) into one of the currently managed format (chec...
Definition: ComponentExtension.cpp:62
camitk::InterfaceLogger::INFO
@ INFO
information, warning and error messages are logged
Definition: InterfaceLogger.h:64
camitk::Application::saveHistoryAsSXML
static void saveHistoryAsSXML()
Save the history as an SCXML file, stored using.
Definition: Application.cpp:938
camitk::Application::~Application
~Application() override
destructor
Definition: Application.cpp:188
camitk::Component::getName
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:849
camitk::InterfaceLogger::LogLevel
LogLevel
Definition: InterfaceLogger.h:60
camitk::Application::getMainWindow
static MainWindow * getMainWindow()
get the main window
Definition: Application.cpp:291
camitk::AbortException::what
const char * what() const noexcept
get the detailed reason from the exception
Definition: AbortException.h:99
camitk::Application::SAME_TRANSFORMATION
@ SAME_TRANSFORMATION
New component has no parent frame (parent frame is set to nullptr), and its frame is copied from its ...
Definition: Application.h:70
camitk::Application::getPropertyObject
static PropertyObject * getPropertyObject()
Get the property object of the application.
Definition: Application.cpp:1325
camitk::ComponentList
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:89
camitk::Core::getComponentDirectories
static const QStringList getComponentDirectories()
get all the component directories.
Definition: Core.cpp:293
camitk::Application::mainWindow
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:366
camitk::HistoryComponent::IMAGE_COMPONENT
@ IMAGE_COMPONENT
this Component represents a volumic image and its subcomponents can be displayed as slices.
Definition: HistoryComponent.h:120
camitk::Application::applyPropertyValues
static void applyPropertyValues()
Apply all the property values to update the model (e.g., use the logLevel to modify the actual log le...
Definition: Application.cpp:1350
MainWindow.h
camitk::Application::translator
static QTranslator * translator
Provide internationalization support for text output.
Definition: Application.h:386
camitk::Q_ENUMS
Q_ENUMS(ControlMode CameraOrientation)
RendererWidget implements all support methods to use camiTK with Qt interface.
camitk::MainWindow::getProgressBar
QProgressBar * getProgressBar()
similar as statusBar() from QMainWindow but for the progress bar
Definition: MainWindow.cpp:319
camitk::InterfaceLogger::WARNING
@ WARNING
Only Warning and Error messages are logged.
Definition: InterfaceLogger.h:63
camitk::InterfaceLogger::setMessageBoxLevel
virtual void setMessageBoxLevel(LogLevel level)=0
Set the lowest log level that will open modal message box for messages instead of (silently/undisrupt...
camitk::Application::isAlive
static bool isAlive(Component *)
does this Component still exists?
Definition: Application.cpp:828
camitk::Application::getAction
static Action * getAction(QString)
get a registered action given its name
Definition: Application.cpp:762
camitk::Application::getName
static QString getName()
get the application name
Definition: Application.cpp:201
camitk::MainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: MainWindow.h:85
camitk::Application::notify
bool notify(QObject *, QEvent *) override
reimplemented from QApplication to catch all exception from external libs used in CEP (e....
Definition: Application.cpp:219
camitk::Action::getTag
QStringList getTag() const
the name of the tag called this action
Definition: Action.h:357
camitk::Application::getActionMap
static QMap< QString, Action * > & getActionMap()
all the registered actions, this is a QMap as actions are mainly sort/compared/process by name (key).
Definition: Application.cpp:699
camitk::ActionExtension
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:82
camitk::Application::registerAllActions
static int registerAllActions(ActionExtension *)
register all actions from the given ActionExtension
Definition: Application.cpp:711
camitk::Application::eventFilter
bool eventFilter(QObject *object, QEvent *event) override
Event filter of this class instance to watch its properties instances.
Definition: Application.cpp:1330
camitk::Application::hasModified
static bool hasModified()
Return true if at least one of the opened components has been modified, false otherwise.
Definition: Application.cpp:833
camitk::HistoryComponent::MESH_COMPONENT
@ MESH_COMPONENT
this Component represent a 3D mesh, it has a 3D representation which can be displayed in the 3D viewe...
Definition: HistoryComponent.h:121
camitk::Application::getRecentDocuments
static const QList< QFileInfo > getRecentDocuments()
Get the list of recent documents.
Definition: Application.cpp:423
camitk::InterfaceLogger::setLogToStandardOutput
virtual void setLogToStandardOutput(bool writeToStdOut)=0
Allows the logger to write on std::cout.
CAMITK_INFO_ALT
#define CAMITK_INFO_ALT(MSG)
Definition: Log.h:259
camitk::Application::TargetPositionningPolicy
TargetPositionningPolicy
Definition: Application.h:69
camitk::Log::getLevelAsString
static QString getLevelAsString(InterfaceLogger::LogLevel level)
get the enum value as a text
Definition: Log.cpp:82
camitk::Application::addComponent
static void addComponent(Component *)
register a new component either in the full component list, or in the full list and in the top-level ...
Definition: Application.cpp:845
CAMITK_ERROR_ALT
#define CAMITK_ERROR_ALT(MSG)
Definition: Log.h:274
camitk::ActionExtension::getActions
const ActionList & getActions()
get the list of actions registered y this extension
Definition: ActionExtension.cpp:105
camitk::Application::getTopLevelComponents
static const ComponentList & getTopLevelComponents()
get the current application wide list of instantiated top-level Components.
Definition: Application.cpp:884
camitk::InterfaceLogger::TRACE
@ TRACE
all types of messages are logged
Definition: InterfaceLogger.h:65
camitk::Application::exec
static int exec()
Overriden from QApplication: Enters the main event loop and waits until exit() is called,...
Definition: Application.cpp:305
camitk::Application::removeLastHistoryItem
static HistoryItem removeLastHistoryItem()
Remove the last pushed actions in the history of the current pipeline.
Definition: Application.cpp:933
camitk::refresh
void refresh()
refresh the display
camitk::HistoryItem::getName
QString getName()
Get the name of the corresponding action in the pipeline.
Definition: HistoryItem.cpp:59
camitk::Core::version
static const char * version
Definition: Core.h:173
camitk::ExtensionManager::unloadAllActionExtensions
static void unloadAllActionExtensions()
unload all action extensions and delete instantiated actions
Definition: ExtensionManager.cpp:398
camitk::HistoryComponent::OTHER
@ OTHER
this Component has no defined representation.
Definition: HistoryComponent.h:122
Core.h
camitk::HistoryComponent::getType
Type getType() const
Get the Type of the Component associated to this item.
Definition: HistoryComponent.cpp:53
camitk::Application::recentDocuments
static QList< QFileInfo > recentDocuments
Definition: Application.h:377
camitk::PropertyObject::addProperty
virtual bool addProperty(Property *)
Tag a new CamiTK property to this object.
Definition: PropertyObject.cpp:76
camitk::Application::settings
static QSettings settings
global settings for CamiTK application
Definition: Application.h:454
ExtensionManager.h
camitk::ExtensionManager::registerFileExtension
static void registerFileExtension(QString fileExtension)
Register the file extension with the current application for opening This function is called by regis...
Definition: ExtensionManager.cpp:407
camitk::MainWindow::aboutToShow
virtual void aboutToShow()
this method is automatically called by Application before the first time show() is called.
Definition: MainWindow.cpp:369
camitk::Application::argc
static int argc
argc given from command line
Definition: Application.h:369
camitk::HistoryComponent::getName
QString getName() const
Get the the name of the Component associated to this item.
Definition: HistoryComponent.cpp:48
camitk::PropertyObject
This class describes a property object.
Definition: PropertyObject.h:94
camitk::Application::setSelected
static void setSelected(Component *component, bool isSelected)
insert/remove one specific Component to the selection (at the end).
Definition: Application.cpp:899
ImageComponent.h
camitk::Action::getComponent
QString getComponent() const
the name of the component class that can be used by this action
Definition: Action.h:344
camitk::MainWindow::refresh
virtual void refresh()
Definition: MainWindow.cpp:304
camitk::ComponentExtension::getName
virtual QString getName() const =0
camitk::Component
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
camitk::Component::getModified
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:887
CAMITK_WARNING_IF_ALT
#define CAMITK_WARNING_IF_ALT(COND, MSG)
Definition: Log.h:317
Application.h
camitk::Application::NO_TRANSFORMATION
@ NO_TRANSFORMATION
New component has no parent frame (parent frame is therefore set to nullptr) and transform is Id.
Definition: Application.h:71
CAMITK_API
#define CAMITK_API
Definition: CamiTKAPI.h:49
camitk
Definition: Action.cpp:36