MeVisLab Toolbox Reference
SoFramebufferSamplerElement.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_SAMPLER_ELEMENT_H
14#define SO_FRAMEBUFFER_SAMPLER_ELEMENT_H
15
16
18
19#include "SoShaderSystem.h"
20#include <Inventor/elements/SoReplacedElement.h>
21
23
25class INVENTOR_SHADER_API SoFramebufferSamplerElement : public SoReplacedElement
26{
27 typedef SoReplacedElement inherited;
28
29 SO_ELEMENT_HEADER(SoFramebufferSamplerElement);
30
31 public:
32
34 void init(SoState *state) override;
35
37 static void set(SoState *state, SoNode *node, SoFramebufferSampler *framebufferSampler);
40
41 SoINTERNAL public:
42
44 static void initClass();
45
46 protected:
47
50
52};
53
54#endif // _SO_FRAMEBUFFER_SAMPLER_ELEMENT_
Internal Open Inventor element not meant to be used in SDK.
static void initClass()
Initialize class with runtime type system.
static void set(SoState *state, SoNode *node, SoFramebufferSampler *framebufferSampler)
Sets the current framebuffer sampler in the state.
static SoFramebufferSampler * get(SoState *state)
Returns the current framebuffer sampler from the state.
~SoFramebufferSamplerElement() override
Destructor.
void init(SoState *state) override
Initialize element.
Abstract Open Inventor base class for sampler nodes based on a framebuffer object.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.