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 <Inventor/SbLinear.h>
18
#include <Inventor/elements/SoAccumulatedElement.h>
19
20
#include <vector>
21
22
class
SoCSOTransform
;
23
class
SOCSO_EXPORT
SoCSOTransformElement
:
public
SoAccumulatedElement
24
{
25
26
SO_ELEMENT_HEADER(
SoCSOTransformElement
);
27
28
public
:
30
void
init
(
SoState
* state)
override
;
31
33
static
void
add
(
SoState
* state,
SoCSOTransform
* node);
34
36
void
push
(
SoState
* state)
override
;
37
39
static
const
SoCSOTransformElement
*
getInstance
(
SoState
* state);
40
41
int
get
(std::vector<SoCSOTransform*>&
allTransforms
)
const
;
42
43
44
SoINTERNAL
public
:
46
static
void
initClass
();
47
48
protected
:
49
std::vector<SoCSOTransform*>
_csoTransforms
;
50
52
virtual
void
addToElt
(
SoCSOTransform
* node);
53
54
virtual
~SoCSOTransformElement
();
55
};
SoCSOSystem.h
SOCSO_EXPORT
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition
SoCSOSystem.h:21
SoCSOTransformElement
Definition
SoCSOTransformElement.h:24
SoCSOTransformElement::push
void push(SoState *state) override
Overrides push() method to copy values from next instance in the stack.
SoCSOTransformElement::getInstance
static const SoCSOTransformElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
SoCSOTransformElement::init
void init(SoState *state) override
Initializes element.
SoCSOTransformElement::_csoTransforms
std::vector< SoCSOTransform * > _csoTransforms
Definition
SoCSOTransformElement.h:49
SoCSOTransformElement::add
static void add(SoState *state, SoCSOTransform *node)
Adds a transform node to the current set in the state.
SoCSOTransformElement::get
int get(std::vector< SoCSOTransform * > &allTransforms) const
SoCSOTransformElement::initClass
static void initClass()
Initializes the SoCSOTransformElement class.
SoCSOTransformElement::addToElt
virtual void addToElt(SoCSOTransform *node)
Adds a transform node to an instance.
SoCSOTransformElement::~SoCSOTransformElement
virtual ~SoCSOTransformElement()
SoCSOTransform
Abstract Open Inventor base class for uniform shader parameter nodes.
Definition
SoCSOTransform.h:26
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:332
MeVisLab
Standard
Sources
Inventor
SoCSO
Inventor
elements
SoCSOTransformElement.h
Generated by
1.10.0