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);
226 static bool hasModified();
243 static void clearSelectedComponents();
250 static Action* getAction(QString);
277 static void setTriggeredAction(
Action* action);
280 static Action* getTriggeredAction();
287 static Viewer* getViewer(QString name);
292 static Viewer* getNewViewer(QString name, QString className);
301 static bool registerViewer(
Viewer*);
346 static void showStatusBarMessage(QString msg,
int timeout = 0);
351 static void resetProgressBar();
358 static void setProgressBarValue(
int);
372 static void vtkProgressFunction(vtkObject* caller,
long unsigned int,
void*,
void*);
393 static void saveHistoryAsSXML();
402 static QString getSelectedLanguage();
438 static Action* currentAction;
443 static QList<QFileInfo> recentDocuments;
446 static QDir lastUsedDirectory;
449 static int maxRecentDocuments;
452 static QTranslator* translator;
496 static void setSelected(
Component* component,
bool isSelected);
520 static QSettings settings;
523 static void applyPropertyValues();
539 static QStack<HistoryItem>& getHistory();
555 static QMap<QString, Action*>& getActionMap();
575 static QMap<QString, Viewer*>& getViewerMap();
589 static void createProperties();
604 static void initResources();
611 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
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
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