MeVisLab Resolution Independence API
SoMLTransform.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_MLTRANSFORM_H
14#define SO_MLTRANSFORM_H
15
17
19
20#include <ThirdPartyWarningsDisable.h>
21#include <Inventor/nodes/SoSubNode.h>
22#include <Inventor/nodes/SoMatrixTransform.h>
23#include <Inventor/sensors/SoFieldSensor.h>
24#include <Inventor/fields/SoSFBool.h>
25#include <ThirdPartyWarningsRestore.h>
26
27#include "SoSFMLImage.h"
28
29//=============================================================
31
32//=============================================================
33class INVENTORWRAPPER_API SoMLTransform : public SoMatrixTransform {
34
35 SO_NODE_HEADER(SoMLTransform);
36
37 public:
39 SoSFBool inverse;
41 SoSFBool shift;
44
45 static void initClass();
46
48
49 void imageChangedCB(SoField*);
51
52 void matChangedCB(SoField*);
53 void matChanged();
54
55 private:
56 ~SoMLTransform() override;
57};
58#endif
#define INVENTORWRAPPER_API
Library initialization and export macros for platform independecy of project.
SoMLTransform applies the ML WorldToVoxel matrix to the Inventor Scene.
void imageChangedCB(SoField *)
SoSFMLImage image
input ML image
static void initClass()
void matChanged()
void imageChanged()
SoSFBool shift
shift 0.5 voxels for Renderers that render the voxel center at 0. instead of 0.5
void matChangedCB(SoField *)
SoSFBool inverse
apply the inverse of the matrix
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
Definition SoSFMLImage.h:70