MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoShaderParameterPlane.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2007, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef SO_SHADER_PARAMETER_PLANE_H
14
#define SO_SHADER_PARAMETER_PLANE_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include "
Inventor/nodes/SoUniformShaderParameter.h
"
21
#include <Inventor/fields/SoSFPlane.h>
22
#include <Inventor/fields/SoSFBool.h>
23
25
class
INVENTOR_SHADER_API
SoShaderParameterPlane
:
public
SoUniformShaderParameter
26
{
27
typedef
SoUniformShaderParameter
inherited;
28
29
SO_NODE_HEADER(
SoShaderParameterPlane
);
30
31
public
:
33
SoSFPlane
value
;
34
36
SoSFBool
transformToEyeCoordinates
;
37
39
SoShaderParameterPlane
();
40
41
SoINTERNAL public :
42
43
void
44
GLRender
(SoGLRenderAction* action)
override
;
45
46
void
updatePreparation
(SoState*)
override
;
47
49
static
void
initClass
();
50
52
void
updateParameter
(
SoUniformParameterBase
* uniformBase, SoState* state)
override
;
53
54
private
:
55
SbMatrix _lastModelView;
56
};
57
58
#endif
// _SO_SHADER_PARAMETER_4F_
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoUniformShaderParameter.h
SoShaderParameterPlane::updatePreparation
void updatePreparation(SoState *) override
SoShaderParameterPlane::SoShaderParameterPlane
SoShaderParameterPlane()
Constructor.
SoShaderParameterPlane::initClass
static void initClass()
Initialize class with runtime type system.
SoShaderParameterPlane::transformToEyeCoordinates
SoSFBool transformToEyeCoordinates
Optional on-the-fly transformation of the plane into eye coordinates.
Definition
SoShaderParameterPlane.h:36
SoShaderParameterPlane::GLRender
void GLRender(SoGLRenderAction *action) override
SoShaderParameterPlane::value
SoSFPlane value
The parameter's value.
Definition
SoShaderParameterPlane.h:33
SoShaderParameterPlane::updateParameter
void updateParameter(SoUniformParameterBase *uniformBase, SoState *state) override
Assigns or updates the parameter's value.
SoUniformParameterBase
Base class for uniform shader parameters.
Definition
SoUniformParameterBase.h:30
SoUniformShaderParameter::SoUniformShaderParameter
SoUniformShaderParameter()
Constructor.
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoShaderParameterPlane.h
Generated by
1.18.0