MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoMultiPassFramebufferSampler.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_MULTI_PASS_FRAMEBUFFER_SAMPLER_H
14
#define SO_MULTI_PASS_FRAMEBUFFER_SAMPLER_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include "
Inventor/nodes/SoFramebufferSampler2D.h
"
21
#include <Inventor/fields/SoSFUInt32.h>
22
#include <Inventor/fields/SoSFFloat.h>
23
#include <Inventor/fields/SoSFBool.h>
24
#include <Inventor/SbLinear.h>
25
26
class
SoGLFramebufferObject;
27
class
SoGLTexture;
28
30
class
INVENTOR_SHADER_API
SoMultiPassFramebufferSampler
:
public
SoFramebufferSampler2D
31
{
32
typedef
SoFramebufferSampler2D
inherited;
33
34
SO_NODE_HEADER(
SoMultiPassFramebufferSampler
);
35
36
public
:
38
SoSFUInt32
numPasses
;
39
41
SoSFFloat
epsilon
;
42
44
SoSFFloat
value
;
45
47
SoSFUInt32
id
;
48
50
SoSFBool
initSamplerCopy
;
51
53
SoMultiPassFramebufferSampler
();
54
55
SoINTERNAL public :
56
58
static
void
initClass
();
59
61
unsigned
int
curPass
()
62
{
63
return
_curPass
;
64
}
65
66
SoEXTENDER public :
67
68
SoGLTexture*
69
getCopyColorBuffer
()
const
70
{
71
return
_copyColorBuffer;
72
}
73
74
protected
:
75
unsigned
int
_curPass
;
76
SbVec2s
_prevSize
;
77
uint32_t
_prevFormat
;
78
80
~SoMultiPassFramebufferSampler
()
override
;
81
83
void
applyRenderAction
(SoState*)
override
;
84
85
private
:
86
SoGLFramebufferObject* _copyFramebufferObject;
87
SoGLTexture* _copyColorBuffer;
88
};
89
90
#endif
// _SO_MULTIPASS_FRAMEBUFFER_SAMPLER_
SoFramebufferSampler2D.h
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoFramebufferSampler2D::SoFramebufferSampler2D
SoFramebufferSampler2D()
Constructor.
SoMultiPassFramebufferSampler::getCopyColorBuffer
SoGLTexture * getCopyColorBuffer() const
Definition
SoMultiPassFramebufferSampler.h:69
SoMultiPassFramebufferSampler::applyRenderAction
void applyRenderAction(SoState *) override
Function applies render action to children multiple times.
SoMultiPassFramebufferSampler::epsilon
SoSFFloat epsilon
Smallest value that keeps the node still iterating.
Definition
SoMultiPassFramebufferSampler.h:41
SoMultiPassFramebufferSampler::id
SoSFUInt32 id
Id that is used to identify this node if nested.
Definition
SoMultiPassFramebufferSampler.h:47
SoMultiPassFramebufferSampler::_curPass
unsigned int _curPass
Definition
SoMultiPassFramebufferSampler.h:75
SoMultiPassFramebufferSampler::curPass
unsigned int curPass()
Current render pass, starting with '0'. Only valid if read by child nodes!
Definition
SoMultiPassFramebufferSampler.h:61
SoMultiPassFramebufferSampler::_prevSize
SbVec2s _prevSize
Definition
SoMultiPassFramebufferSampler.h:76
SoMultiPassFramebufferSampler::_prevFormat
uint32_t _prevFormat
Definition
SoMultiPassFramebufferSampler.h:77
SoMultiPassFramebufferSampler::~SoMultiPassFramebufferSampler
~SoMultiPassFramebufferSampler() override
Destructor.
SoMultiPassFramebufferSampler::SoMultiPassFramebufferSampler
SoMultiPassFramebufferSampler()
Constructor.
SoMultiPassFramebufferSampler::initClass
static void initClass()
Initialize class with runtime type system.
SoMultiPassFramebufferSampler::value
SoSFFloat value
Value to compare against 'epsilon'.
Definition
SoMultiPassFramebufferSampler.h:44
SoMultiPassFramebufferSampler::initSamplerCopy
SoSFBool initSamplerCopy
Initialize the copy FBO texture with all zero.
Definition
SoMultiPassFramebufferSampler.h:50
SoMultiPassFramebufferSampler::numPasses
SoSFUInt32 numPasses
Number of times to traverse the subgraph below.
Definition
SoMultiPassFramebufferSampler.h:38
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoMultiPassFramebufferSampler.h
Generated by
1.18.0