Open Inventor
Release 2023.2.3
Loading...
Searching...
No Matches
SoInt32ListElement.h
Go to the documentation of this file.
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-2018 BY FEI S.A.S, ***
17
*** BORDEAUX, FRANCE ***
18
*** ALL RIGHTS RESERVED ***
19
**=======================================================================*/
20
/*=======================================================================
21
** Author(s) : VSG (MMM YYYY)
22
**=======================================================================*/
23
24
25
#ifndef _SO_INT32_LIST_ELEMENT
26
#define _SO_INT32_LIST_ELEMENT
27
40
#include <
Inventor/elements/SoSubElement.h
>
41
42
SoEXTENDER_Documented
class
SoInt32ListElement
:
public
SoElement
43
{
44
SO_ELEMENT_ABSTRACT_HEADER
(
SoInt32ListElement
);
45
46
private
:
47
51
virtual
SbBool
matches(
const
SoElement
* elt)
const
;
52
54
virtual
SoElement
* copyMatchInfo()
const
;
55
56
private
:
57
// Initializes the SoInt32ListElement class
58
static
void
initClass();
59
static
void
exitClass();
60
61
// Set value. Derived classes have static inline methods
62
// that pass in the stack index and cast their type into a int32_t.
63
// This just gets an appropriate instance and calls the virtual
64
// set.
65
//static void set(int stackIndex, SoState *state, int32_t value);
66
static
void
set(
const
SoType
& type,
int
stackIndex,
SoState
* state,
SbIntList
& value);
67
68
static
void
set(
const
SoType
& type,
int
stackIndex,
SoState
* state,
SoNode
*,
SbIntList
value)
69
{ set(type, stackIndex, state, value); }
70
71
// Virtual set that subclasses can override to implement
72
// side-effect behaviors.
73
virtual
void
setElt(
SbIntList
& value);
74
75
// Get value. Derived classes have static inline methods to pass
76
// in the stackIndex and cast the returned value to the right type.
77
//static SbIntList get(int stackIndex, SoState *state)
78
//{ return getConstElement(state, stackIndex)->data; }
79
80
static
const
SbIntList
& get(
const
SoType
& type,
int
stackIndex,
SoState
* state)
81
{
return
(
static_cast<
const
SoInt32ListElement
*
>
(getConstElement(state, type, stackIndex)))->data; }
82
83
private
:
84
// Storage for data.
85
SbIntList
data;
86
87
virtual
~SoInt32ListElement
();
88
};
89
90
#endif
// _SO_INT32_LIST_ELEMENT
91
92
SoEXTENDER_Documented
#define SoEXTENDER_Documented
Definition
MxMeshVizXLM.h:52
SbIntList
SbIntList(int initSize)
Maintains a list of integer (int) values.
SoSubElement.h
SO_ELEMENT_ABSTRACT_HEADER
#define SO_ELEMENT_ABSTRACT_HEADER(className)
Definition
SoSubElement.h:75
SoElement
Abstract base class for all state elements.
Definition
SoElement.h:102
SoInt32ListElement
Stores a list of int32_t, int, or enum values.
Definition
SoInt32ListElement.h:43
SoNode
Abstract base class for all database nodes.
Definition
SoNode.h:145
SoState
Traversal state.
Definition
SoState.h:74
SoType
Stores runtime type information.
Definition
SoType.h:98
SbBool
int SbBool
Boolean type.
Definition
SbBase.h:87
Inventor
elements
SoInt32ListElement.h
Generated by
1.9.8