26#ifndef CAMITKAPPLICATION_H
27#define CAMITKAPPLICATION_H
34#include <QApplication>
50class ComponentExtension;
94 Q_ENUM(TargetPositionningPolicy)
116 Application(QString name,
int& argc,
char** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
126 bool notify(QObject*, QEvent*)
override;
129 static QString getName();
146 static QSettings& getSettings();
164 static const QDir getLastUsedDirectory();
167 static void setLastUsedDirectory(QDir);
172 static void addRecentDocument(QFileInfo);
175 static const QList<QFileInfo> getRecentDocuments();
178 static const int getMaxRecentDocuments();
195 static Component* openDirectory(
const QString& dirName,
const QString& pluginName);
229 static bool hasModified();
246 static void clearSelectedComponents();
253 static Action* getAction(QString);
280 static void setTriggeredAction(
Action* action);
283 static Action* getTriggeredAction();
290 static Viewer* getViewer(QString name);
295 static Viewer* getNewViewer(QString name, QString className);
304 static bool registerViewer(
Viewer*);
349 static void showStatusBarMessage(QString msg,
int timeout = 0);
354 static void resetProgressBar();
361 static void setProgressBarValue(
int);
375 static void vtkProgressFunction(vtkObject* caller,
long unsigned int,
void*,
void*);
396 static void saveHistoryAsSXML();
405 static QString getSelectedLanguage();
493 static void setSelected(
Component* component,
bool isSelected);
520 static void applyPropertyValues();
536 static QStack<HistoryItem>& getHistory();
552 static QMap<QString, Action*>& getActionMap();
576 static QMap<QString, Viewer*>& getViewerMap();
587 static void createProperties();
602 static void initResources();
609 bool eventFilter(QObject*
object, QEvent* event)
override;
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: canvas_typed/mainwindow.h:69
This class describes what is a generic Action extension.
Definition: ActionExtension.h:57
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:208
The generic/default application.
Definition: Application.h:82
TargetPositionningPolicy
: Policy to determine how a newly instantiated component's frame should be initialized regarding of i...
Definition: Application.h:88
@ SAME_TRANSFORMATION
New component has no parent frame (parent frame is set to nullptr), and its frame is copied from its ...
Definition: Application.h:89
@ NO_TRANSFORMATION
New component has no parent frame (parent frame is therefore set to nullptr) and transform is Id.
Definition: Application.h:90
static QList< QFileInfo > recentDocuments
Definition: Application.h:440
static Action * currentAction
Definition: Application.h:435
static char ** argv
argv given from command line
Definition: Application.h:433
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:427
static int argc
argc given from command line
Definition: Application.h:430
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications)
Definition: Application.h:424
static PropertyObject * propertyObject
A simple QObject that holds the CamiTK level properties of the application.
Definition: Application.h:598
static QSettings settings
global settings for CamiTK application
Definition: Application.h:517
static QDir lastUsedDirectory
last used directory
Definition: Application.h:443
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:446
static QTranslator * translator
Provide internationalization support for text output.
Definition: Application.h:449
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
This class is the base class for your application.
Definition: MainWindow.h:66
This class describes a property object.
Definition: PropertyObject.h:71
This class describes what is a generic Action extension.
Definition: ViewerExtension.h:85
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
Definition: Action.cpp:35
QList< Viewer * > ViewerList
A list of Viewer.
Definition: CamiTKAPI.h:139
QSet< Action * > ActionSet
A set of Action.
Definition: CamiTKAPI.h:130
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:136
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
QSet< Viewer * > ViewerSet
A set of Viewer.
Definition: CamiTKAPI.h:133
void refresh()
refresh the display