Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoUniformGridClippingElement.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24
25#ifndef SO_UNIFORM_GRID_CLIPPING_ELEMENT
26#define SO_UNIFORM_GRID_CLIPPING_ELEMENT
27
28#include <Inventor/SbPList.h>
29#include <Inventor/elements/SoAccumulatedElement.h>
30#include <Inventor/STL/vector>
31
32#ifdef _WIN32
33#pragma warning( push )
34#pragma warning(disable:4251)
35#endif
36
38
42SoEXTENDER_Documented class SoUniformGridClippingElement : public SoAccumulatedElement {
43 SO_ELEMENT_HEADER(SoUniformGridClippingElement) ;
44
45 public:
46
48 static void set(SoState *state, SoNode *node) ;
49
51 virtual void push(SoState *state) ;
52
54 virtual void pop(SoState *, const SoElement *prevTopElement) ;
55
60 static const std::vector<SoUniformGridClipping *> *get(SoState *state);
61
65 static void get(SoState *state, SoUniformGridClipping *&grid);
66
67private:
68
70 virtual void commonInit();
71
73 virtual void init(SoState *state);
74
75 private:
76
77 // Initializes the SoUniformGridClippingElement class
78 static void initClass() ;
79 static void exitClass() ;
80
81 private:
82 // Sets the element
83 virtual void setElt(SoNode *node) ;
84
86
87private:
88 std::vector<SoUniformGridClipping *> m_grids;
89 size_t m_startIndex;
90} ;
91/*----------------------------------------------------------------------------*/
92
93#ifdef _WIN32
94#pragma warning( pop )
95#endif
96
97#endif
98
99
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
Abstract base class for all database nodes.
Definition SoNode.h:145
Traversal state.
Definition SoState.h:74
virtual void pop(SoState *, const SoElement *prevTopElement)
Pop method.
static const std::vector< SoUniformGridClipping * > * get(SoState *state)
Returns all the grids.
static void get(SoState *state, SoUniformGridClipping *&grid)
Returns the first grid.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
static void set(SoState *state, SoNode *node)
Sets the current texture unit.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Clips a volume using ...