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 
21 class SoCSOTransform;
22 
23 class SOCSO_EXPORT SoCSOTransformElement : public SoReplacedElement
24 {
25  SO_ELEMENT_HEADER(SoCSOTransformElement);
26 
27 public:
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 
39  static const SoCSOTransformElement * getInstance(SoState *state);
40 
42  SbBool matches(const SoElement *elt) const override;
43 
46  SoElement *copyMatchInfo() const override;
47 
48  SoINTERNAL public:
50  static void initClass();
51 
52 protected:
55 
57  ~SoCSOTransformElement() override {}
58 };
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition: SoCSOSystem.h:21
~SoCSOTransformElement() override
Destructor.
void init(SoState *state) override
See inventor element documentation. Not to be called directly.
static SoCSOTransform * get(SoState *state)
Returns the element state.
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.
static void initClass()
Initializes the SoCSOTransformElement class.
static const SoCSOTransformElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
SbBool matches(const SoElement *elt) const override
See inventor element documentation.
SoElement * copyMatchInfo() const override
See inventor element documentation.
Abstract Open Inventor base class for uniform shader parameter nodes.