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

#include <raycastingcomponent.h>

+ Inheritance diagram for inviwo::MultiRaycastingComponent:

Public Member Functions

 MultiRaycastingComponent (std::string_view volume, std::array< std::reference_wrapper< IsoTFProperty >, 4 > isotfs)
 
virtual std::string_view getName () const override
 The name of the ShaderComponent. Will show up as the source of the line in the shaderwidget when the file is preprocessed and in error messages.
 
virtual void process (Shader &shader, TextureUnitContainer &) override
 Called from Processor::process Override to set uniforms, bind textures etc.
 
virtual void initializeResources (Shader &shader) override
 Called from Processor::initializeResources Override to set defines in the shader. This function will be called before the shader is compiled.
 
virtual std::vector< Property * > getProperties () override
 Return all Properties This gets called in Processor::registerComponents which will add them to the processor.
 
virtual std::vector< SegmentgetSegments () override
 Return all Segments to be injected into the shader. This gets called in VolumeRaycasterBase::initializeResources after the call to RaycasterComponent::initializeResources.
 
bool setUsedChannels (size_t channels)
 
- Public Member Functions inherited from inviwo::ShaderComponent
virtual std::vector< std::tuple< Inport *, std::string > > getInports ()
 Return all Inports and their port groups This gets called in Processor::registerComponents which will add them to the processor.
 

Detailed Description

The voxel data from each channel in <volume>Voxel will be classified using the transferfunction and isovalues from the corresponding IsoTFProperty, and composited into result.

Member Function Documentation

◆ getName()

virtual std::string_view inviwo::MultiRaycastingComponent::getName ( ) const
overridevirtual

The name of the ShaderComponent. Will show up as the source of the line in the shaderwidget when the file is preprocessed and in error messages.

Implements inviwo::ShaderComponent.

◆ getProperties()

virtual std::vector< Property * > inviwo::MultiRaycastingComponent::getProperties ( )
overridevirtual

Return all Properties This gets called in Processor::registerComponents which will add them to the processor.

Reimplemented from inviwo::ShaderComponent.

◆ getSegments()

virtual std::vector< Segment > inviwo::MultiRaycastingComponent::getSegments ( )
overridevirtual

Return all Segments to be injected into the shader. This gets called in VolumeRaycasterBase::initializeResources after the call to RaycasterComponent::initializeResources.

Reimplemented from inviwo::ShaderComponent.

◆ initializeResources()

virtual void inviwo::MultiRaycastingComponent::initializeResources ( Shader & shader)
overridevirtual

Called from Processor::initializeResources Override to set defines in the shader. This function will be called before the shader is compiled.

Parameters
shaderin current use

Reimplemented from inviwo::ShaderComponent.

◆ process()

virtual void inviwo::MultiRaycastingComponent::process ( Shader & shader,
TextureUnitContainer & container )
overridevirtual

Called from Processor::process Override to set uniforms, bind textures etc.

Parameters
shaderin current use
containeradd any used TextureUnits here

Reimplemented from inviwo::ShaderComponent.


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