MeVisLab Toolbox Reference
SoOrthoView2D.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
15
16#pragma once
17
18#include "SoView2DSystem.h"
19#include "SoOrthoView2DBase.h"
20
21#include <Inventor/fields/SoSFBool.h>
22#include <Inventor/fields/SoSFInt32.h>
23#include <Inventor/fields/SoSFEnum.h>
24#include <Inventor/fields/SoSFTrigger.h>
25#include <Inventor/fields/SoSFFloat.h>
26#include <Inventor/fields/SoSFVec3f.h>
27#include <Inventor/fields/SoSFVec2f.h>
28#include <Inventor/fields/SoSFMatrixd.h>
29#include <Inventor/fields/SoSFColor.h>
30#include <Inventor/fields/SoSFString.h>
31#include <Inventor/fields/SoSFNode.h>
32#include <Inventor/nodes/SoSeparator.h>
33#include <Inventor/nodes/SoSwitch.h>
34#include <Inventor/nodes/SoSubNode.h>
35#include <Inventor/SbViewportRegion.h>
36#include <Inventor/sensors/SoFieldSensor.h>
37
38#include "SoSFMLConnector.h"
39
40class SoView2D;
41class SoSFMLImage;
42
43//=============================================================
46
50//=============================================================
52{
53 SO_NODE_HEADER(SoOrthoView2D);
54
55public:
57
60
63
66
71
73
75 static void initClass();
76
79
80protected:
81 ~SoOrthoView2D() override;
82
84 mlField* getMLImageField(int viewerIndex) override;
85
90
93
95 void* _reformat;
96
98 int _timePoint[3];
99};
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoOrthoView2DBase()
constructor, protected since this class is abstract.
virtual void useGlobalInputImageChanged()
handle changed slice in one of the SoView2Ds
SoSFNode outputViewCoronal
SoOrthoView2D()
constructor
SoSFNode outputViewSagittal
void modifyPatientOrientationMatrixCB(SoField *)
int _timePoint[3]
timepoints of SoView2Ds to recognize, which SoView2D timepoint has changed
~SoOrthoView2D() override
SoSFBool applyModifyPatientOrientationMatrix
SoSFMLConnector inputImage
Fields.
void useGlobalInputImageChangedCB(SoField *)
callback which forwards to sliceChanged()
void applyModifyPatientOrientationMatrixCB(SoField *)
void * _reformat
pointer to the ML OrthoReformat3 module
SoSFBool useGlobalInputImage
use cache
static void initClass()
inventor runtime type system
SoSFNode outputViewAxial
hidden outputs containing the component views
SoSFMatrixd modifyPatientOrientationMatrix
mlField * getMLImageField(int viewerIndex) override
return ML image field for viewer with given viewerIndex (0,1, or 2)
SoView2D is a 2D viewer for image data.
Definition SoView2D.h:62
#define mlField
A macro name for a void pointer to a field in the ML to make the pointer more readable.
Definition mlAPI.h:54