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

#include <entryexitcomponent.h>

+ Inheritance diagram for inviwo::EntryExitComponent:

Public Member Functions

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 &cont) override
 Called from Processor::process Override to set uniforms, bind textures etc.
 
virtual std::vector< std::tuple< Inport *, std::string > > getInports () override
 Return all Inports and their port groups 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.
 
- Public Member Functions inherited from inviwo::ShaderComponent
virtual void initializeResources (Shader &shader)
 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 ()
 Return all Properties This gets called in Processor::registerComponents which will add them to the processor.
 

Detailed Description

Adds an entry and an exit Image port. Binds the images into samplers entryColor, entryDepth, exitColor, and exitDepth and set the entryParameters and exitParamters uniforms. The entryPoint, exitPoint, entryPointDepth, and exitPointDepth will be sampled in the setup and the rayLength and rayDirection calculated. If the entry port has an extra color layer with surface normals, the surfaceNormal will be set and useSurfaceNormals will be true.

Member Function Documentation

◆ getInports()

virtual std::vector< std::tuple< Inport *, std::string > > inviwo::EntryExitComponent::getInports ( )
overridevirtual

Return all Inports and their port groups This gets called in Processor::registerComponents which will add them to the processor.

Reimplemented from inviwo::ShaderComponent.

◆ getName()

virtual std::string_view inviwo::EntryExitComponent::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.

◆ getSegments()

virtual std::vector< Segment > inviwo::EntryExitComponent::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.

◆ process()

virtual void inviwo::EntryExitComponent::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: