MeVisLab Toolbox Reference
SoFramebufferSampler3D.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_FRAMEBUFFER_SAMPLER3_D_H
14 #define SO_FRAMEBUFFER_SAMPLER3_D_H
15 
16 
18 
19 #include "SoShaderSystem.h"
21 #include <Inventor/fields/SoSFVec3s.h>
22 
24 class INVENTOR_SHADER_API SoFramebufferSampler3D : public SoFramebufferSampler
25 {
27 
28  SO_NODE_HEADER(SoFramebufferSampler3D);
29 
30  public:
31 
33  SoSFVec3s size;
34 
36  SoSFEnum wrapR;
37 
40 
41  protected:
42 
43  SbVec3s _fldValSize;
44  SbVec3s _size;
45 
48 
49  SoEXTENDER public:
50 
52  void updatePreparation(SoState *state) override;
53 
55  void updateParameter(SoUniformParameterBase *, SoState *) override;
56 
57  SoINTERNAL public:
58 
60  static void initClass();
61 };
62 
63 #endif // _SO_FRAMEBUFFER_SAMPLER_3D_
Open Inventor sampler node that gets it's 3D image from a framebuffer object.
void updatePreparation(SoState *state) override
Render children to framebuffer object.
SoSFEnum wrapR
Wrapping mode.
~SoFramebufferSampler3D() override
Destructor.
SoSFVec3s size
Texture size. Default is 64 x 64 x 64.
static void initClass()
Initialize class with runtime type system.
void updateParameter(SoUniformParameterBase *, SoState *) override
Update sampler uniform to inform shader about fbo texture.
SoFramebufferSampler3D()
Constructor.
Abstract Open Inventor base class for sampler nodes based on a framebuffer object.
Abstract Open Inventor base class for sampler nodes.
Definition: SoSampler.h:30
Base class for uniform shader parameters.