MeVisLab Toolbox Reference
SoCSOTransformElement.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#pragma once
14
15#include "SoCSOSystem.h"
16
17#include <ThirdPartyWarningsDisable.h>
18#include <Inventor/elements/SoReplacedElement.h>
19#include <ThirdPartyWarningsRestore.h>
20
21class SoCSOTransform;
22
23class SOCSO_EXPORT SoCSOTransformElement : public SoReplacedElement
24{
25 SO_ELEMENT_HEADER(SoCSOTransformElement);
26
27public:
29 void init(SoState *state) override;
30
32 static void set(SoState *state, SoNode *node, SoCSOTransform *csoTransform);
33
36 static SoCSOTransform* get(SoState *state);
37
40
42 SbBool matches(const SoElement *elt) const override;
43
46 SoElement *copyMatchInfo() const override;
47
48 SoINTERNAL public:
50 static void initClass();
51
52protected:
55
58};
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition SoCSOSystem.h:21
~SoCSOTransformElement() override
Destructor.
static const SoCSOTransformElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
void init(SoState *state) override
See inventor element documentation. Not to be called directly.
SoCSOTransform * _pTransform
Pointer to the transform node.
static void set(SoState *state, SoNode *node, SoCSOTransform *csoTransform)
Sets element state. Usually called in action routines of self written inventor nodes.
SoElement * copyMatchInfo() const override
See inventor element documentation.
static SoCSOTransform * get(SoState *state)
Returns the element state.
static void initClass()
Initializes the SoCSOTransformElement class.
SbBool matches(const SoElement *elt) const override
See inventor element documentation.
Abstract Open Inventor base class for uniform shader parameter nodes.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.