Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoVolumeTransformElement.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Sep 2008)
22**=======================================================================*/
23
24
25#ifndef _SO_VOLUME_TRANSFORM_ELEMENT_
26#define _SO_VOLUME_TRANSFORM_ELEMENT_
27
28#ifdef _MSC_VER
29#pragma warning( push )
30#pragma warning(disable:4251)
31#endif
32
34
36#include <Inventor/STL/vector>
37
51{
53
54public:
58 static void set(SoState* state, SoNode *node, SoVolumeTransform *m_volumeTransformNode);
59
63 static void get(SoState* state, SoVolumeTransform *&m_volumeTransformNode);
64
68 static void get(SoState* state, std::vector<SoVolumeTransform*>&);
69
71 virtual void push(SoState *state) ;
72
73private:
74
76 virtual void init(SoState* state);
77
78private:
79 // Initializes the class
80 static void initClass();
81 static void exitClass();
82
83 // Default values
84 static void getDefault(SoVolumeTransform *&m_volumeTransformNode);
85
86private:
87
88 //List of transfer function.
89 //Each compute function is stored at cf->volumeTransformId entry in this array
90 //If volumeTransformId are different, transfer functions are accumulated else replaced
91 std::vector<SoVolumeTransform*> m_volumeTransformList;
92
93 SoVolumeTransform *m_volumeTransformNode;
94
95 virtual void setElt( SoVolumeTransform *m_volumeTransformNode );
96
98};
99
100#ifdef _MSC_VER
101#pragma warning( pop )
102#endif
103
104#endif // _SO_VOLUME_TRANSFORM_ELEMENT_
105
106
#define SoEXTENDER_Documented
static void init()
#define SO_ELEMENT_HEADER(className)
Abstract base class for each state element whose value may be accumulated when it is set.
Abstract base class for all database nodes.
Definition SoNode.h:145
Traversal state.
Definition SoState.h:74
Stores the current volume transform(s).
static void get(SoState *state, std::vector< SoVolumeTransform * > &)
Get the current list of transform functions stored in the state.
static void set(SoState *state, SoNode *node, SoVolumeTransform *m_volumeTransformNode)
Add a volume transform to the state.
static void get(SoState *state, SoVolumeTransform *&m_volumeTransformNode)
Returns most recently traversed volume transform from the state.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Transform data before...