SoShaderStateMatrixParameter(3)
| SoShaderStateMatrixParameter(3) | Coin | SoShaderStateMatrixParameter(3) |
NAME
SoShaderStateMatrixParameter - The SoShaderStateMatrixParameter class is used to define a matrix as shader parameter whose content is derived from the traversal state.
SYNOPSIS
#include <Inventor/nodes/SoShaderParameter.h>
Inherits SoUniformShaderParameter.
Public Types
enum MatrixType { MODELVIEW, PROJECTION,
TEXTURE, MODELVIEW_PROJECTION }
enum MatrixTransform { IDENTITY, TRANSPOSE,
INVERSE, INVERSE_TRANSPOSE }
Public Member Functions
virtual SoType getTypeId (void) const
Returns the type identification of an object derived from a class inheriting
SoBase. This is used for run-time type checking and 'downward'
casting. virtual void updateParameter (SoGLShaderObject
*shaderObject)
Updates the shader parameter in the OpenGL state with the content of the value
field. virtual void updateValue (SoState *state)
Static Public Member Functions
static SoType getClassTypeId (void)
static void initClass (void)
Public Attributes
SoSFEnum matrixType
SoSFEnum matrixTransform
Protected Member Functions
virtual const SoFieldData * getFieldData (void)
const
Static Protected Member Functions
static const SoFieldData ** getFieldDataPtr (void)
Protected Attributes
SbMatrix value
Additional Inherited Members
Detailed Description
The SoShaderStateMatrixParameter class is used to define a matrix as shader parameter whose content is derived from the traversal state.
Unlike other parameter classes, SoShaderStateMatrixParameter does not have a value field. The value member is protected and updated automatically from the traversal state.
Member Enumeration Documentation
enum SoShaderStateMatrixParameter::MatrixType
Defines the different matrix types.
enum SoShaderStateMatrixParameter::MatrixTransform
Defines different transformations that can be applied to a matrix.
Member Function Documentation
SoType SoShaderStateMatrixParameter::getTypeId (void) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
}
For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.
For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
Reimplemented from SoUniformShaderParameter.
const SoFieldData * SoShaderStateMatrixParameter::getFieldData (void) const [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.
Reimplemented from SoUniformShaderParameter.
void SoShaderStateMatrixParameter::updateValue (SoState * state) [virtual]
Updates matrix value from state
Member Data Documentation
SoSFEnum SoShaderStateMatrixParameter::matrixType
Defines the matrix type value for the uniform shader variable.
SoSFEnum SoShaderStateMatrixParameter::matrixTransform
Defines a transformation that is applied to the matrix value. The default value of IDENTITY keeps the value unchanged.
Author
Generated automatically by Doxygen for Coin from the source code.
| Mon May 31 2021 | Version 4.0.0 |
