MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
SoMLLUTExtensionElement.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef SO_MLLUTEXTENSION_ELEMENT_H
14#define SO_MLLUTEXTENSION_ELEMENT_H
15
16
19
20//--------- disable VC++ warnings---------
21#ifdef WIN32
22#pragma warning(disable : 4355)
23#pragma warning(disable : 4275)
24#pragma warning(disable : 4251)
25#pragma warning(disable : 4138)
26#pragma warning(disable : 4800)
27#endif
28
29#include "SoUtilsSystem.h"
30
31#include <Inventor/elements/SoReplacedElement.h>
32#include <Inventor/SoLists.h>
33
35
36//=============================================================
41
42//=============================================================
43SoEXTENDER class SOUTILS_EXPORT SoMLLUTExtensionElement : public SoReplacedElement
44{
45
46 SO_ELEMENT_HEADER(SoMLLUTExtensionElement);
47
48public:
49 void init(SoState* state) override;
50
51 void pop(SoState* state, const SoElement* prevTopElement) override;
52 void push(SoState* aState) override;
53 void clearList();
54
56 static void set(SoState* state, SoNode* node, SoMLLUTExtension* newPrimitive);
57
59 static const SoNodeList* get(SoState* state);
60
63
64 SbBool matches(const SoElement* elt) const override;
65
66 SoElement* copyMatchInfo() const override;
67
68 void print(FILE* fp) const override;
69
72 static void initClass();
73
74protected:
76 {}
77
79};
80
81#endif
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
SoMLLUTExtensionElement collects a list of SoGVRExtensions while the scene graph is traversed The lis...
static void set(SoState *state, SoNode *node, SoMLLUTExtension *newPrimitive)
Set element state.
void push(SoState *aState) override
static void initClass()
Initializes the SoMLLUTExtensionElement class.
static const SoMLLUTExtensionElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
void init(SoState *state) override
static const SoNodeList * get(SoState *state)
Get list of SoGVRExtensions from current state.
SoElement * copyMatchInfo() const override
void pop(SoState *state, const SoElement *prevTopElement) override
void print(FILE *fp) const override
SbBool matches(const SoElement *elt) const override
SoMLLUTExtension is a base class to extends the SoMLLut with functionality.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.