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
 
InviwoApplication & operator= (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)
 
ModuleManager & getModuleManager ()
 
const ModuleManager & getModuleManager () const
 
const std::vector< std::unique_ptr< InviwoModule > > & getModules () const
 
template<class T >
T * getModuleByType () const
 
InviwoModule * getModuleByIdentifier (const std::string &identifier) const
 
ProcessorNetwork * getProcessorNetwork ()
 
ProcessorNetworkEvaluator * getProcessorNetworkEvaluator ()
 
WorkspaceManager * getWorkspaceManager ()
 
PropertyPresetManager * getPropertyPresetManager ()
 
PortInspectorManager * getPortInspectorManager ()
 
DataVisualizerManager * getDataVisualizerManager ()
 
CommandLineParser & getCommandLineParser ()
 
const CommandLineParser & getCommandLineParser () 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 ()
 
SystemSettings & getSystemSettings ()
 
template<class T >
T * getSettingsByType ()
 
std::vector< Capabilities * > getModuleCapabilities ()
 
SystemCapabilities & getSystemCapabilities ()
 
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)
 
ResourceManager * getResourceManager ()
 
TimerThread & getTimerThread ()
 
const std::string & getDisplayName () const
 
void postProgress (std::string progress)
 
UsageMode getApplicationUsageMode () const
 
void setApplicationUsageMode (UsageMode mode)
 
virtual void onResourceManagerEnableStateChanged () override
 
CameraFactory * getCameraFactory () const
 
DataReaderFactory * getDataReaderFactory () const
 
DataWriterFactory * getDataWriterFactory () const
 
DialogFactory * getDialogFactory () const
 
MeshDrawerFactory * getMeshDrawerFactory () const
 
MetaDataFactory * getMetaDataFactory () const
 
InportFactory * getInportFactory () const
 
OutportFactory * getOutportFactory () const
 
PortInspectorFactory * getPortInspectorFactory () const
 
ProcessorFactory * getProcessorFactory () const
 
ProcessorWidgetFactory * getProcessorWidgetFactory () const
 
PropertyConverterManager * getPropertyConverterManager () const
 
PropertyFactory * getPropertyFactory () const
 
PropertyWidgetFactory * getPropertyWidgetFactory () const
 
template<typename BaseRepr >
RepresentationFactory< BaseRepr > * getRepresentationFactory () const
 
RepresentationMetaFactory * getRepresentationMetaFactory () const
 
template<typename BaseRepr >
RepresentationConverterFactory< BaseRepr > * getRepresentationConverterFactory () const
 
RepresentationConverterMetaFactory * getRepresentationConverterMetaFactory () 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)
 
Observer & operator= (Observer &&other)
 
Observer & operator= (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 InviwoApplication * getPtr ()
 
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< ConsoleLogger > consoleLogger_
 
std::shared_ptr< FileLogger > filelogger_
 
std::function< void(std::string)> progressCallback_
 
ThreadPool pool_
 
Queue queue_
 
util::OnScopeExit clearAllSingeltons_
 
std::unique_ptr< ResourceManager > resourceManager_
 
std::unique_ptr< CameraFactory > cameraFactory_
 
std::unique_ptr< DataReaderFactory > dataReaderFactory_
 
std::unique_ptr< DataWriterFactory > dataWriterFactory_
 
std::unique_ptr< DialogFactory > dialogFactory_
 
std::unique_ptr< MeshDrawerFactory > meshDrawerFactory_
 
std::unique_ptr< MetaDataFactory > metaDataFactory_
 
std::unique_ptr< OutportFactory > outportFactory_
 
std::unique_ptr< InportFactory > inportFactory_
 
std::unique_ptr< PortInspectorFactory > portInspectorFactory_
 
std::unique_ptr< DataVisualizerManager > dataVisualizerManager_
 
std::unique_ptr< ProcessorFactory > processorFactory_
 
std::unique_ptr< ProcessorWidgetFactory > processorWidgetFactory_
 
std::unique_ptr< PropertyConverterManager > propertyConverterManager_
 
std::unique_ptr< PropertyFactory > propertyFactory_
 
std::unique_ptr< PropertyWidgetFactory > propertyWidgetFactory_
 
std::unique_ptr< RepresentationMetaFactory > representationMetaFactory_
 
std::unique_ptr< RepresentationConverterMetaFactory > representationConverterMetaFactory_
 
std::unique_ptr< SystemSettings > systemSettings_
 
std::unique_ptr< SystemCapabilities > systemCapabilities_
 
std::vector< std::unique_ptr< ModuleCallbackAction > > moduleCallbackActions_
 
ModuleManager moduleManager_
 
std::unique_ptr< ProcessorNetwork > processorNetwork_
 
std::unique_ptr< ProcessorNetworkEvaluator > processorNetworkEvaluator_
 
std::unique_ptr< WorkspaceManager > workspaceManager_
 
std::unique_ptr< PropertyPresetManager > propertyPresetManager_
 
std::unique_ptr< PortInspectorManager > portInspectorManager_
 
WorkspaceManager::ClearHandle networkClearHandle_
 
WorkspaceManager::SerializationHandle networkSerializationHandle_
 
WorkspaceManager::DeserializationHandle networkDeserializationHandle_
 
WorkspaceManager::ClearHandle presetsClearHandle_
 
WorkspaceManager::SerializationHandle presetsSerializationHandle_
 
WorkspaceManager::DeserializationHandle presetsDeserializationHandle_
 
std::unique_ptr< TimerThread > timerThread_
 
- 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: