25#ifndef _SO_TRANSFER_FUNCTION_ELEMENT_
26#define _SO_TRANSFER_FUNCTION_ELEMENT_
29#pragma warning( push )
30#pragma warning(disable:4251)
33#include <Inventor/nodes/SoShaderParameter.h>
35#include <Inventor/elements/SoAccumulatedElement.h>
37#include <Inventor/STL/vector>
38#include <Inventor/STL/map>
56 static void get(
SoState* state, std::vector<SoTransferFunction*>&);
70 virtual void init(
SoState* state);
73 typedef std::vector<SoTransferFunction*> TransferFunctionVector;
74 typedef TransferFunctionVector::iterator TransferFunctionVectorIt;
75 typedef std::map<int, SoTransferFunction*> TransferFunctionMap;
78 static void initClass();
79 static void exitClass();
82 static void get(
SoState* state, TransferFunctionMap& tfMap);
88 static int getMinTransferFunctionId(
SoState* state);
90 static int getMaxTransferFunctionId(
SoState* state);
99 TransferFunctionMap m_transferFunctionList;
111#pragma warning( pop )
Abstract base class for each state element whose value may be accumulated when it is set.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
virtual void push(SoState *state)
Pushes element.
static void get(SoState *state, std::vector< SoTransferFunction * > &)
Get the current list of transfer function stored in the state.
static void set(SoState *state, SoNode *node, SoTransferFunction *m_transferFunctionNode)
Sets/Gets the current volume data attributes in the state.
static void getDefault(SoTransferFunction *&m_transferFunctionNode)
Default values.
static void get(SoState *state, SoTransferFunction *&m_transferFunctionNode)
static SbBool hasTransparency(SoState *state)
returns true if one (at least) accumulated transferFuncion contains a transparency
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Describe...