Inviwo 0.9.12-pre
Inviwo documentation
|
#include <timecomponent.h>
Public Member Functions | |
TimeComponent (std::string_view name, std::function< void(InvalidationLevel)> invalidate) | |
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 std::vector< Segment > | getSegments () override |
Return all Segments to be injected into the shader. This gets called in VolumeRaycasterBase::initializeResources after the call to RaycasterComponent::initializeResources. | |
virtual std::vector< Property * > | getProperties () override |
Return all Properties This gets called in Processor::registerComponents which will add them to the processor. | |
void | start () |
void | stop () |
void | setRunning (bool run) |
bool | getRunning () const |
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< 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. | |
Adds a ´<name>´ float uniform to the shader with the current "time" in milliseconds, it gets updated using a timer every 33ms.
|
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.
|
overridevirtual |
Return all Properties This gets called in Processor::registerComponents which will add them to the processor.
Reimplemented from inviwo::ShaderComponent.
|
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.
|
overridevirtual |
Called from Processor::process Override to set uniforms, bind textures etc.
shader | in current use |
container | add any used TextureUnits here |
Reimplemented from inviwo::ShaderComponent.