14 #ifndef __CONVOLUTIONFILTERSHADER_H__
15 #define __CONVOLUTIONFILTERSHADER_H__
90 virtual void onValueChange(
const int &new_value ){
98 Inst< SFNode > _metadata = 0,
99 Inst< SFBool > _isSelected = 0,
100 Inst< SFBool > _isValid = 0,
101 Inst< SFBool > _activate = 0,
102 Inst< SFString > _language = 0,
103 Inst< MFShaderPart > _parts = 0,
104 Inst< SFBool > _suppressUniformWarnings = 0,
105 Inst< MFString > _fragmentShaderString = 0,
106 Inst< MFString > _vertexShaderString = 0,
107 Inst< SFTexture2DNode > _texture = 0,
108 Inst< SFString > _type = 0,
109 Inst< MFFloat > _weights = 0,
110 Inst< SFInt32 > _kernelSize = 0,
111 Inst< SFFloat > _pixelStepOffset = 0,
112 Inst< SFInt32> _width = 0,
113 Inst< SFInt32> _height = 0,
114 Inst< TextureMonitor> _widthInUse = 0,
115 Inst< TextureMonitor> _heightInUse = 0 );
205 virtual bool canBuildShader();
208 virtual void buildShader();
217 virtual string getFragmentShaderString();
Contains different templates to modify field behaviour.
Header file for H3DGeneratedFragmentShaderNode.
Contains the MFFloat field class.
The ComposedShader node defines a shader where the individual source files are not individually progr...
Definition: ComposedShader.h:77
The ConvolutionFilterShader node generates a shader that applies a convolution filter kernel to the i...
Definition: ConvolutionFilterShader.h:75
virtual string getVertexShaderHeader()
Use version 150 compatibility for ConvolutionFilterShader.
Definition: ConvolutionFilterShader.h:225
H3DUniquePtr< SFFloat > pixelStepOffset
The pixelStepOffset is used to add customized offset to the pixel step using in convolving,...
Definition: ConvolutionFilterShader.h:172
H3DUniquePtr< SFInt32 > kernelSize
The kernelSize field specifies the size convolution kernel.
Definition: ConvolutionFilterShader.h:159
H3DUniquePtr< MFFloat > weights
The weight field specifies the values in the convolution kernel.
Definition: ConvolutionFilterShader.h:150
virtual string getFragmentShaderHeader()
Return a string that is placed at the beginning of a fragment shader to specify minimum required vers...
Definition: ConvolutionFilterShader.h:222
H3DUniquePtr< TextureMonitor > heightInUse
Actual height used in convolution filter shader.
Definition: ConvolutionFilterShader.h:193
DependentSFNode< H3DSingleTextureNode, FieldRef< H3DDisplayListObject, H3DDisplayListObject::DisplayList, &H3DDisplayListObject::displayList >, true > SFTexture2DNode
The SFTexture2DNode field is dependent on the displayList field of the containing X3DTexture2DNode no...
Definition: ConvolutionFilterShader.h:85
H3DUniquePtr< SFTexture2DNode > texture
The texture field contains the texture on which to apply the filter kernel.
Definition: ConvolutionFilterShader.h:122
H3DUniquePtr< SFInt32 > width
The height of the window size this shader is going to apply to.
Definition: ConvolutionFilterShader.h:179
H3DUniquePtr< SFInt32 > height
The width of the window size this shader is going to apply to.
Definition: ConvolutionFilterShader.h:187
H3DUniquePtr< TextureMonitor > widthInUse
Actual width used in convolution filter shader.
Definition: ConvolutionFilterShader.h:190
H3DUniquePtr< SFString > type
Some kernels(e.g.
Definition: ConvolutionFilterShader.h:141
virtual void buildShader()
Overriding buildShader to only build the shader if canBuildShader is true.
Definition: ConvolutionFilterShader.cpp:145
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: ConvolutionFilterShader.h:199
DependentSFNode are modified TypedSFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:294
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
We use the Field's lazy evaluation mechanisms to manage the GL display lists for rendering,...
Definition: H3DDisplayListObject.h:60
This abstract interface class is the base class for all node types that wants to create an OpenGL dis...
Definition: H3DDisplayListObject.h:54
H3DUniquePtr< DisplayList > displayList
The DisplayList instance handling the OpenGL caching of this object.
Definition: H3DDisplayListObject.h:256
The H3DGeneratedFragmentShaderNode node is the base class for shader generator nodes that specify a f...
Definition: H3DGeneratedFragmentShaderNode.h:44
This abstract node type is the base type for all texture nodes that is defined by a single texture.
Definition: H3DSingleTextureNode.h:45
Template for adding the virtual function onValueChange that can be overridden in subclasses in order ...
Definition: FieldTemplates.h:49
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194