MeVisLab Resolution Independence API
SoCalculatorWrapper.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_CALCULATOR_WRAPPER_H
14
#define SO_CALCULATOR_WRAPPER_H
15
17
18
#include "
SoUtilsSystem.h
"
19
#include <ThirdPartyWarningsDisable.h>
20
#include <Inventor/engines/SoSubEngine.h>
21
#include <Inventor/fields/SoSFFloat.h>
22
#include <Inventor/fields/SoSFVec3f.h>
23
#include <ThirdPartyWarningsRestore.h>
24
class
SoCalculator;
25
26
//=============================================================
29
37
//=============================================================
38
class
SoCalculatorWrapper
:
public
SoEngine {
39
40
SO_ENGINE_HEADER(
SoCalculatorWrapper
);
41
42
public
:
44
46
SoSFFloat
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
;
47
49
SoSFVec3f
va
,
vb
,
vc
,
vd
,
ve
,
vf
,
vg
,
vh
;
50
52
SoSFFloat
oa
,
ob
,
oc
,
od
;
54
SoSFVec3f
ova
,
ovb
,
ovc
,
ovd
;
55
57
SoSFString
expression
;
58
60
62
static
void
initClass
();
63
65
SoCalculatorWrapper
();
66
68
void
inputChanged
(SoField *whichField)
override
;
69
71
void
evaluate
()
override
{};
72
73
protected
:
74
~SoCalculatorWrapper
()
override
;
75
76
private
:
78
SoRef<SoCalculator> _calc;
79
};
80
81
#endif
SoUtilsSystem.h
SoCalculatorWrapper
SoCalculatorWrapper wraps the SoCalculator engine to make it usable inside of MeVisLab.
Definition
SoCalculatorWrapper.h:38
SoCalculatorWrapper::f
SoSFFloat f
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::vb
SoSFVec3f vb
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::SoCalculatorWrapper
SoCalculatorWrapper()
Constructor.
SoCalculatorWrapper::initClass
static void initClass()
inventor runtime type system init
SoCalculatorWrapper::b
SoSFFloat b
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::vd
SoSFVec3f vd
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::ve
SoSFVec3f ve
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::inputChanged
void inputChanged(SoField *whichField) override
handle input field changes and recompute output fields
SoCalculatorWrapper::h
SoSFFloat h
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::vc
SoSFVec3f vc
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::~SoCalculatorWrapper
~SoCalculatorWrapper() override
SoCalculatorWrapper::ovd
SoSFVec3f ovd
Definition
SoCalculatorWrapper.h:54
SoCalculatorWrapper::vg
SoSFVec3f vg
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::vh
SoSFVec3f vh
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::c
SoSFFloat c
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::ova
SoSFVec3f ova
output vector fields
Definition
SoCalculatorWrapper.h:54
SoCalculatorWrapper::ob
SoSFFloat ob
Definition
SoCalculatorWrapper.h:52
SoCalculatorWrapper::g
SoSFFloat g
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::expression
SoSFString expression
expression that is used to calculate the results
Definition
SoCalculatorWrapper.h:57
SoCalculatorWrapper::d
SoSFFloat d
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::vf
SoSFVec3f vf
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::evaluate
void evaluate() override
empty reimplementation of SoEngine method
Definition
SoCalculatorWrapper.h:71
SoCalculatorWrapper::va
SoSFVec3f va
input vector fields
Definition
SoCalculatorWrapper.h:49
SoCalculatorWrapper::ovc
SoSFVec3f ovc
Definition
SoCalculatorWrapper.h:54
SoCalculatorWrapper::oa
SoSFFloat oa
output float fields
Definition
SoCalculatorWrapper.h:52
SoCalculatorWrapper::e
SoSFFloat e
Definition
SoCalculatorWrapper.h:46
SoCalculatorWrapper::oc
SoSFFloat oc
Definition
SoCalculatorWrapper.h:52
SoCalculatorWrapper::od
SoSFFloat od
Definition
SoCalculatorWrapper.h:52
SoCalculatorWrapper::ovb
SoSFVec3f ovb
Definition
SoCalculatorWrapper.h:54
SoCalculatorWrapper::a
SoSFFloat a
Fields.
Definition
SoCalculatorWrapper.h:46
MeVisLab
Standard
Sources
Inventor
SoUtils
SoCalculatorWrapper.h
Generated by
1.10.0