Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoUniformShaderParameterElement.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _SO_UNIFORM_SHADER_PARAMETER_ELEMENT_
24#define _SO_UNIFORM_SHADER_PARAMETER_ELEMENT_
25
26#include <Inventor/fields/SoMFNode.h>
27#include <Inventor/SbPList.h>
28#include <Inventor/elements/SoAccumulatedElement.h>
29
32
33/*----------------------------------------------------------------------------*/
34
46SoEXTENDER_Documented class SoUniformShaderParameterElement : public SoAccumulatedElement {
48
49public:
53 static void add( SoState* state, SoShaderParameter* param );
54
55//#if 1 /** @DEPRECATED_BEGIN */SoDEPRECATED
57 static void add( SoState* state, SoShaderParameter* param, SoMFNode* shaderObjects );
58//#endif /** @DEPRECATED_END */
59
63 virtual void push(SoState *state) ;
64
69
71 virtual void pop(SoState* state, const SoElement* prevTopElement);
72
73private:
74
76 virtual void init(SoState *state);
77
78 private:
79
80 // Initializes the SoUniformShaderParameterElement class
81 static void initClass() ;
82 static void exitClass() ;
83
85 static void getParameters(SoState* state, std::vector<SoUniformShaderParameter*>& shaderParameters);
86
87private:
88 //List of SoUniformShaderParameter
89 SoNodeList parameters;
90
92} ;
93/*----------------------------------------------------------------------------*/
94
95#endif // _SO_UNIFORM_SHADER_PARAMETER_ELEMENT_
96
97
Abstract base class for each state element whose value may be accumulated when it is set.
Abstract base class for all state elements.
Definition SoElement.h:102
Multiple-value field containing any number of nodes.
Definition SoMFNode.h:94
Maintains a list of pointers to nodes.
Definition SoNodeList.h:74
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
Traversal state.
Definition SoState.h:74
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
static const SoUniformShaderParameterElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static SoDEPRECATED void add(SoState *state, SoShaderParameter *param, SoMFNode *shaderObjects)
static void add(SoState *state, SoShaderParameter *param)
Adds a shader parameter.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Pops element.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...