Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::DataVisualizerManager Class Reference

#include <datavisualizermanager.h>

Public Member Functions

 DataVisualizerManager (const DataVisualizerManager &)=delete
 
 DataVisualizerManager (DataVisualizerManager &&)=default
 
DataVisualizerManageroperator= (const DataVisualizerManager &that)=delete
 
DataVisualizerManageroperator= (DataVisualizerManager &&that)=default
 
void registerObject (DataVisualizer *visualizer)
 
void unRegisterObject (DataVisualizer *visualizer)
 
std::vector< FileExtensiongetSupportedFileExtensions () const
 
std::vector< DataVisualizer * > getDataVisualizersForFile (const std::filesystem::path &pathOrExtension) const
 Get a list of Data Visualizers supporting the file extension of the supplied string.
 
std::vector< DataVisualizer * > getDataVisualizersForOutport (const Outport *port) const
 

Detailed Description

The Data Visualizer Manager keeps track of all registered Data Visualizers. One can ask the Data Visualizer Manager for all Data Visualizer supporting a file extension or an Outport type.

See also
DataVisualizer

Member Function Documentation

◆ getDataVisualizersForFile()

std::vector< DataVisualizer * > inviwo::DataVisualizerManager::getDataVisualizersForFile ( const std::filesystem::path & pathOrExtension) const

Get a list of Data Visualizers supporting the file extension of the supplied string.

Parameters
pathOrExtensionPath to file, or simply the extension.

◆ getDataVisualizersForOutport()

std::vector< DataVisualizer * > inviwo::DataVisualizerManager::getDataVisualizersForOutport ( const Outport * port) const

Get a list of Data Visualizers supporting the supplied outport.

◆ getSupportedFileExtensions()

std::vector< FileExtension > inviwo::DataVisualizerManager::getSupportedFileExtensions ( ) const

Return a list of all supported file extensions from all Data Visualizers

◆ registerObject()

void inviwo::DataVisualizerManager::registerObject ( DataVisualizer * visualizer)

Register a Data Visualizer, does not take ownership. One would usually not call this function manually. Instead use the functionality of InviwoModule::registerDataVisualizer which will call registerObject and the unRegisterObject automatically.

See also
InviwoModule

◆ unRegisterObject()

void inviwo::DataVisualizerManager::unRegisterObject ( DataVisualizer * visualizer)

Unregister a Data Visualizer. This is usually called by InviwoModule.

See also
InviwoModule

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