![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/US/GlScanConversionLinearGeometricTransform.h>
A geometric transform shader include that converts image coordinates to pre-scanconverted coordinates of linear frame geometries and vice versa. More...
A geometric transform shader include that converts image coordinates to pre-scanconverted coordinates of linear frame geometries and vice versa.
Public Member Functions | |
| GlScanConversionLinearGeometricTransform (bool isTopDown, double steeringAngle, vec2 offset, vec2 imageSize, vec2i preScanSize) | |
| Creates a new GlScanConversionLinearGeometricTransform instance. | |
| int | setIncludeArguments (GL::Program &p, const std::string &prefix) const override |
| Sets all needed uniforms and input textures to be used by this OpenGL shader instance, with a given prefix to support multiple includes. | |
| Public Member Functions inherited from ImFusion::US::GlGeometricTransform | |
| GlGeometricTransform (const std::string &includePath) | |
| Instantiates a new GL::AbstractInclude using IMAGE_TRANSFORM as defineName and the given path the to retrieve the GLSL source code from. | |
| Public Member Functions inherited from ImFusion::GL::AbstractInclude | |
| AbstractInclude (const std::string &defineName, const std::string &includePath) | |
| Creates a AbstractInclude for the given define and with the corresponding GLSL file at includePath. | |
| const std::string & | defineName () const |
| Returns the name of define used by this include. | |
| const std::string & | includePath () const |
| Returns the path to the included shader file. | |
| virtual std::function< std::string(const std::string &)> | includeCodeSubstitution () const |
| Optionally the abstract include can provide a function to change the shader code. | |
| virtual std::vector< AbstractInclude * > | dependentIncludes () const |
| Returns a list of dependent abstract includes that need to be included as well. | |
| virtual Fingerprint | fingerprint () const |
| Provides a finger print of the include. | |
| Public Member Functions inherited from ImFusion::GL::MultiIncludable< GlGeometricTransform > | |
| std::shared_ptr< MultiIncludeType > | createMultiInclude (const std::string &replacementToken) |
| Instantiates a new AbstractInclude instance where all occurrences of baseToken provided during construction are replaces with replacementToken according to the specified replacementScheme. | |
| virtual int | setIncludeArguments (Program &prog, IncludeArgumentsTypes... includeArgs, const std::string &token) const=0 |
| Interface that multi includes should use to configure the shader include (such as setting uniforms, binding textures, etc). | |
Additional Inherited Members | |
| Public Types inherited from ImFusion::GL::MultiIncludable< GlGeometricTransform > | |
| using | MultiIncludeType |
| Alias for type of a multi-include instance of the original include. | |
| Static Public Member Functions inherited from ImFusion::US::GlGeometricTransform | |
| static std::string | defineName () |
| Returns "IMAGE_TRANSFORM". | |
| static std::string | defineSuffix () |
| Returns "TRANSFORM". | |
| static std::string | multiIncludeDefine (const std::string &replacementToken) |
| Returns "IMAGE_" + toUpper(replacementToken). | |
| Protected Member Functions inherited from ImFusion::GL::MultiIncludable< GlGeometricTransform > | |
| MultiIncludable (GlGeometricTransform *crtpInstance, const std::string &baseToken, Flags< ShaderTextReplacement > replacementScheme) | |
| Instantiate and configure the MultiIncludable interface. | |
| ImFusion::US::GlScanConversionLinearGeometricTransform::GlScanConversionLinearGeometricTransform | ( | bool | isTopDown, |
| double | steeringAngle, | ||
| vec2 | offset, | ||
| vec2 | imageSize, | ||
| vec2i | preScanSize ) |
Creates a new GlScanConversionLinearGeometricTransform instance.
| isTopDown | Whether the image is top-down or bottom-up. |
| steeringAngle | The steering angle of the linear geometry in degrees. |
| offset | The offset of the linear geometry in image coordinates. |
| imageSize | The size of the image in pixels. |
| preScanSize | The size of the pre-scan image in pixels. |
|
overridevirtual |
Sets all needed uniforms and input textures to be used by this OpenGL shader instance, with a given prefix to support multiple includes.
The parameters are retrieved from the class members that were assigned on construction.
Implements ImFusion::US::GlGeometricTransform.