Inviwo  0.9.10.1
Inviwo documentation
inviwo::InviwoApplicationQt Class Reference
+ Inheritance diagram for inviwo::InviwoApplicationQt:

Public Member Functions

 InviwoApplicationQt (const std::string &displayName="Inviwo")
 
 InviwoApplicationQt (int &argc, char **argv, const std::string &displayName)
 
virtual void registerFileObserver (FileObserver *fileObserver) override
 
virtual void unRegisterFileObserver (FileObserver *fileObserver) override
 
virtual void startFileObservation (std::string fileName) override
 
virtual void stopFileObservation (std::string fileName) override
 
virtual void closeInviwoApplication () override
 
virtual void playSound (Message soundID) override
 
virtual std::locale getUILocale () const override
 Get locale object for determining parsing and formatting of data. More...
 
void setMainWindow (QMainWindow *mainWindow)
 Set the main window used by the application. The widget object name will be set to "InviwoMainWindow". Other widgets can thereby find the main window in QApplication. More...
 
QMainWindow * getMainWindow ()
 
virtual bool event (QEvent *e) override
 
virtual bool notify (QObject *receiver, QEvent *e) override
 
void setUndoTrigger (std::function< void()> func)
 
virtual void resizePool (size_t newSize) override
 
virtual void printApplicationInfo () override
 
void setStyleSheetFile (QString file)
 
- Public Member Functions inherited from inviwo::InviwoApplication
 InviwoApplication (std::string displayName)
 
 InviwoApplication (int argc, char **argv, std::string displayName)
 
 InviwoApplication (const InviwoApplication &rhs)=delete
 
InviwoApplicationoperator= (const InviwoApplication &that)=delete
 
virtual void registerModules (std::vector< std::unique_ptr< InviwoModuleFactoryObject >> modules)
 Registers modules from factories and takes ownership of input module factories. Module is registered if dependencies exist and they have correct version.
 
virtual void registerModules (RuntimeModuleLoading)
 Load modules from dynamic library files in the regular search paths. More...
 
std::string getBasePath () const
 
std::string getPath (PathType pathType, const std::string &suffix="", const bool &createFolder=false)
 
ModuleManagergetModuleManager ()
 
const ModuleManagergetModuleManager () const
 
const std::vector< std::unique_ptr< InviwoModule > > & getModules () const
 
template<class T >
T * getModuleByType () const
 
InviwoModulegetModuleByIdentifier (const std::string &identifier) const
 
ProcessorNetworkgetProcessorNetwork ()
 
ProcessorNetworkEvaluatorgetProcessorNetworkEvaluator ()
 
WorkspaceManagergetWorkspaceManager ()
 
PropertyPresetManagergetPropertyPresetManager ()
 
PortInspectorManagergetPortInspectorManager ()
 
DataVisualizerManagergetDataVisualizerManager ()
 
CommandLineParsergetCommandLineParser ()
 
const CommandLineParsergetCommandLineParser () const
 
virtual void addCallbackAction (ModuleCallbackAction *callbackAction)
 Add an action that can be shown in for example property widget context menu. Will be shown when right clicking on a property in the NetworkEditor. Added callbacks will be removed in ~InviwoModule when your module is destroyed. Example if you want to do it earlier: More...
 
virtual std::vector< std::unique_ptr< ModuleCallbackAction > > & getCallbackActions ()
 Get list of ModuleCallbackAction shown in for example property widget context menu. Do not keep references to elements in the list around since you cannot be notified when they will be removed. More...
 
std::vector< Settings * > getModuleSettings ()
 
SystemSettingsgetSystemSettings ()
 
template<class T >
T * getSettingsByType ()
 
std::vector< Capabilities * > getModuleCapabilities ()
 
SystemCapabilitiesgetSystemCapabilities ()
 
template<class T >
T * getCapabilitiesByType ()
 
template<class F , class... Args>
auto dispatchPool (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type >
 
template<class F , class... Args>
auto dispatchFront (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type >
 
void dispatchFrontAndForget (std::function< void()> fun)
 
virtual void processFront ()
 
size_t getPoolSize () const
 
void waitForPool ()
 
void setPostEnqueueFront (std::function< void()> func)
 
void setProgressCallback (std::function< void(std::string)> progressCallback)
 
ResourceManagergetResourceManager ()
 
TimerThreadgetTimerThread ()
 
const std::string & getDisplayName () const
 
void postProgress (std::string progress)
 
UsageMode getApplicationUsageMode () const
 
void setApplicationUsageMode (UsageMode mode)
 
virtual void onResourceManagerEnableStateChanged () override
 
CameraFactorygetCameraFactory () const
 
DataReaderFactorygetDataReaderFactory () const
 
DataWriterFactorygetDataWriterFactory () const
 
DialogFactorygetDialogFactory () const
 
MeshDrawerFactorygetMeshDrawerFactory () const
 
MetaDataFactorygetMetaDataFactory () const
 
InportFactorygetInportFactory () const
 
OutportFactorygetOutportFactory () const
 
PortInspectorFactorygetPortInspectorFactory () const
 
ProcessorFactorygetProcessorFactory () const
 
ProcessorWidgetFactorygetProcessorWidgetFactory () const
 
PropertyConverterManagergetPropertyConverterManager () const
 
PropertyFactorygetPropertyFactory () const
 
PropertyWidgetFactorygetPropertyWidgetFactory () const
 
template<typename BaseRepr >
RepresentationFactory< BaseRepr > * getRepresentationFactory () const
 
RepresentationMetaFactorygetRepresentationMetaFactory () const
 
template<typename BaseRepr >
RepresentationConverterFactory< BaseRepr > * getRepresentationConverterFactory () const
 
RepresentationConverterMetaFactorygetRepresentationConverterMetaFactory () const
 
- Public Member Functions inherited from inviwo::Singleton< InviwoApplication >
 Singleton (Singleton< InviwoApplication > const &)=delete
 
void operator= (Singleton< InviwoApplication > const &)=delete
 
- Public Member Functions inherited from inviwo::ResourceManagerObserver
virtual void onResourceAdded (const std::string &, const std::type_index &, Resource *)
 
virtual void onResourceRemoved (const std::string &, const std::type_index &, Resource *)
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 

Additional Inherited Members

- Public Types inherited from inviwo::InviwoApplication
enum  Message { Ok, Error }
 
- Static Public Member Functions inherited from inviwo::Singleton< InviwoApplication >
static void init ()
 
static void init (InviwoApplication *instance)
 
static InviwoApplicationgetPtr ()
 
static void deleteInstance ()
 
static bool isInitialized ()
 
- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 
- Protected Attributes inherited from inviwo::InviwoApplication
std::string displayName_
 
CommandLineParser commandLineParser_
 
std::shared_ptr< ConsoleLoggerconsoleLogger_
 
std::shared_ptr< FileLoggerfilelogger_
 
std::function< void(std::string)> progressCallback_
 
ThreadPool pool_
 
Queue queue_
 
util::OnScopeExit clearAllSingeltons_
 
std::unique_ptr< ResourceManagerresourceManager_
 
std::unique_ptr< CameraFactorycameraFactory_
 
std::unique_ptr< DataReaderFactorydataReaderFactory_
 
std::unique_ptr< DataWriterFactorydataWriterFactory_
 
std::unique_ptr< DialogFactorydialogFactory_
 
std::unique_ptr< MeshDrawerFactorymeshDrawerFactory_
 
std::unique_ptr< MetaDataFactorymetaDataFactory_
 
std::unique_ptr< OutportFactoryoutportFactory_
 
std::unique_ptr< InportFactoryinportFactory_
 
std::unique_ptr< PortInspectorFactoryportInspectorFactory_
 
std::unique_ptr< DataVisualizerManagerdataVisualizerManager_
 
std::unique_ptr< ProcessorFactoryprocessorFactory_
 
std::unique_ptr< ProcessorWidgetFactoryprocessorWidgetFactory_
 
std::unique_ptr< PropertyConverterManagerpropertyConverterManager_
 
std::unique_ptr< PropertyFactorypropertyFactory_
 
std::unique_ptr< PropertyWidgetFactorypropertyWidgetFactory_
 
std::unique_ptr< RepresentationMetaFactoryrepresentationMetaFactory_
 
std::unique_ptr< RepresentationConverterMetaFactoryrepresentationConverterMetaFactory_
 
std::unique_ptr< SystemSettingssystemSettings_
 
std::unique_ptr< SystemCapabilitiessystemCapabilities_
 
std::vector< std::unique_ptr< ModuleCallbackAction > > moduleCallbackActions_
 
ModuleManager moduleManager_
 
std::unique_ptr< ProcessorNetworkprocessorNetwork_
 
std::unique_ptr< ProcessorNetworkEvaluatorprocessorNetworkEvaluator_
 
std::unique_ptr< WorkspaceManagerworkspaceManager_
 
std::unique_ptr< PropertyPresetManagerpropertyPresetManager_
 
std::unique_ptr< PortInspectorManagerportInspectorManager_
 
WorkspaceManager::ClearHandle networkClearHandle_
 
WorkspaceManager::SerializationHandle networkSerializationHandle_
 
WorkspaceManager::DeserializationHandle networkDeserializationHandle_
 
WorkspaceManager::ClearHandle presetsClearHandle_
 
WorkspaceManager::SerializationHandle presetsSerializationHandle_
 
WorkspaceManager::DeserializationHandle presetsDeserializationHandle_
 
std::unique_ptr< TimerThreadtimerThread_
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Member Function Documentation

◆ getUILocale()

std::locale inviwo::InviwoApplicationQt::getUILocale ( ) const
overridevirtual

Get locale object for determining parsing and formatting of data.

Returns
std::locale acquired during construction.

Reimplemented from inviwo::InviwoApplication.

◆ resizePool()

void inviwo::InviwoApplicationQt::resizePool ( size_t  newSize)
overridevirtual

Set the number of worker threads in the thread pool. This will block for working threads to finish

Reimplemented from inviwo::InviwoApplication.

◆ setMainWindow()

void inviwo::InviwoApplicationQt::setMainWindow ( QMainWindow *  mainWindow)

Set the main window used by the application. The widget object name will be set to "InviwoMainWindow". Other widgets can thereby find the main window in QApplication.

See also
utilqt::getApplicationMainWindow()
Parameters
mainWindowThe main window of the application.

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