MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoSFMLConnector.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_SFMLCONNECTOR_H
14
#define SO_SFMLCONNECTOR_H
15
18
19
#include "
InventorWrapperDllInit.h
"
20
21
#include <ThirdPartyWarningsDisable.h>
22
#include <Inventor/fields/SoSubField.h>
23
#include <Inventor/SbLinear.h>
24
#include <ThirdPartyWarningsRestore.h>
25
26
#include <mlDataTypes.h>
27
28
29
//=============================================================
32
33
/* This class is merely a wrapper around a void* that can
34
be passed to the outside world.
35
Notification is currently not supported, so
36
the field has to be setup in the constructor of the
37
class using this field.
38
It may be used in nodes that have internal ML modules
39
and want to output the inputs/outputs of those modules
40
in a MeVisLab network (e.g., see the SoExaminerViewer or the SoOrthoView2D)
41
*/
42
//=============================================================
43
class
INVENTORWRAPPER_API
SoSFMLConnector
:
public
SoSField
44
{
45
46
// use standard field stuff
47
SO_SFIELD_CONSTRUCTOR_HEADER(
SoSFMLConnector
);
48
SO_SFIELD_REQUIRED_HEADER(
SoSFMLConnector
);
49
50
public
:
52
static
void
initClass
();
53
55
virtual
void
setValue
(
void
* mlFieldPtr);
56
virtual
void
*
getValue
()
57
{
58
return
_mlFieldPtr
;
59
};
60
SbBool
readValue
(SoInput* in)
override
;
61
void
writeValue
(SoOutput* out)
const override
;
63
64
protected
:
66
void
*
_mlFieldPtr
;
67
};
68
69
70
#endif
InventorWrapperDllInit.h
INVENTORWRAPPER_API
#define INVENTORWRAPPER_API
Library initialization and export macros for platform independecy of project.
Definition
InventorWrapperDllInit.h:21
SoSFMLConnector
Definition
SoSFMLConnector.h:44
SoSFMLConnector::initClass
static void initClass()
Initializes field class, setting up runtime type info.
SoSFMLConnector::getValue
virtual void * getValue()
Definition
SoSFMLConnector.h:56
SoSFMLConnector::setValue
virtual void setValue(void *mlFieldPtr)
Field access.
SoSFMLConnector::readValue
SbBool readValue(SoInput *in) override
SoSFMLConnector::writeValue
void writeValue(SoOutput *out) const override
SoSFMLConnector::_mlFieldPtr
void * _mlFieldPtr
Pointer to internal field.
Definition
SoSFMLConnector.h:66
MeVis
Foundation
Sources
MLInventorBinding
SoSFMLConnector.h
Generated by
1.18.0