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

Public Member Functions

 VolumeSliceVisualizer (InviwoApplication *app)
 
virtual std::string getName () const override
 
virtual Document getDescription () const override
 
virtual std::vector< FileExtensiongetSupportedFileExtensions () const override
 
virtual bool isOutportSupported (const Outport *port) const override
 
virtual bool hasSourceProcessor () const override
 
virtual bool hasVisualizerNetwork () const override
 
virtual std::pair< Processor *, Outport * > addSourceProcessor (const std::string &filename, ProcessorNetwork *network) const override
 
virtual std::vector< Processor * > addVisualizerNetwork (Outport *outport, ProcessorNetwork *network) const override
 
virtual std::vector< Processor * > addSourceAndVisualizerNetwork (const std::string &filename, ProcessorNetwork *network) const override
 

Member Function Documentation

◆ addSourceAndVisualizerNetwork()

std::vector< Processor * > inviwo::VolumeSliceVisualizer::addSourceAndVisualizerNetwork ( const std::string &  filename,
ProcessorNetwork network 
) const
overridevirtual

Adds a source processor with the requested file and a set of processors visualizing the data. Nothing will be added to the network if outport is not supported (isOutportSupported returns false). Only source processor will be added if hasVisualizationNetwork returns false.

Parameters
filenameThe file to load in the source processor. The extension of the filename should be in the list of extensions returned by getSupportedFileExtensions.
networkThe network to add the processor to.
Returns
A list of added processors.

Implements inviwo::DataVisualizer.

◆ addSourceProcessor()

std::pair< Processor *, Outport * > inviwo::VolumeSliceVisualizer::addSourceProcessor ( const std::string &  filename,
ProcessorNetwork network 
) const
overridevirtual

Adds a source processor with the requested file to the network. hasSourceProcessor should return true for this function to be called.

Parameters
filenameThe file to load in the source processor. The extension of the filename should be in the list of extensions returned by getSupportedFileExtensions.
networkThe network to add the processor to.
Returns
The added source processor and the outport in the source processor containing data from the given file.

Implements inviwo::DataVisualizer.

◆ addVisualizerNetwork()

std::vector< Processor * > inviwo::VolumeSliceVisualizer::addVisualizerNetwork ( Outport outport,
ProcessorNetwork network 
) const
overridevirtual

Adds a set of processors visualizing the data in the given outport. Nothing will be added to the network if outport is not supported (isOutportSupported returns false). hasVisualizationNetwork should return true for this function to be called.

Parameters
outportThe port to get data from. It will be connected to the added network.
networkThe network to add the Visualizer Network into.
Returns
A list of added processors.

Implements inviwo::DataVisualizer.

◆ getDescription()

Document inviwo::VolumeSliceVisualizer::getDescription ( ) const
overridevirtual

A detailed description

Implements inviwo::DataVisualizer.

◆ getName()

std::string inviwo::VolumeSliceVisualizer::getName ( ) const
overridevirtual

A descriptive name of the visualizer

Implements inviwo::DataVisualizer.

◆ getSupportedFileExtensions()

std::vector< FileExtension > inviwo::VolumeSliceVisualizer::getSupportedFileExtensions ( ) const
overridevirtual

A list of file formats that the visualizer can open

Implements inviwo::DataVisualizer.

◆ hasSourceProcessor()

bool inviwo::VolumeSliceVisualizer::hasSourceProcessor ( ) const
overridevirtual

Does the visualizer provide a source processor

Implements inviwo::DataVisualizer.

◆ hasVisualizerNetwork()

bool inviwo::VolumeSliceVisualizer::hasVisualizerNetwork ( ) const
overridevirtual

Does the visualizer provide a visualization network

Implements inviwo::DataVisualizer.

◆ isOutportSupported()

bool inviwo::VolumeSliceVisualizer::isOutportSupported ( const Outport port) const
overridevirtual

Test if the visualizer can be connected to the given outport

Implements inviwo::DataVisualizer.


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