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 
40 class SoView2D;
41 class SoSFMLImage;
42 
43 //=============================================================
46 
50 //=============================================================
52 {
53  SO_NODE_HEADER(SoOrthoView2D);
54 
55 public:
57 
60 
63 
66 
68  SoSFNode outputViewAxial;
71 
73 
75  static void initClass();
76 
79 
80 protected:
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 uses three SoView2D nodes to create a 3D ortho viewer with three 2D views.
SoOrthoView2D uses three SoView2D nodes to create a 3D ortho viewer with three 2D views.
Definition: SoOrthoView2D.h:52
mlField * getMLImageField(int viewerIndex) override
return ML image field for viewer with given viewerIndex (0,1, or 2)
virtual void useGlobalInputImageChanged()
handle changed slice in one of the SoView2Ds
SoSFNode outputViewCoronal
Definition: SoOrthoView2D.h:69
SoOrthoView2D()
constructor
SoSFNode outputViewSagittal
Definition: SoOrthoView2D.h:70
void modifyPatientOrientationMatrixCB(SoField *)
~SoOrthoView2D() override
SoSFBool applyModifyPatientOrientationMatrix
Definition: SoOrthoView2D.h:64
SoSFMLConnector inputImage
Fields.
Definition: SoOrthoView2D.h:59
void useGlobalInputImageChangedCB(SoField *)
callback which forwards to sliceChanged()
void applyModifyPatientOrientationMatrixCB(SoField *)
void * _reformat
pointer to the ML OrthoReformat3 module
Definition: SoOrthoView2D.h:95
SoSFBool useGlobalInputImage
use cache
Definition: SoOrthoView2D.h:62
static void initClass()
inventor runtime type system
SoSFNode outputViewAxial
hidden outputs containing the component views
Definition: SoOrthoView2D.h:68
SoSFMatrixd modifyPatientOrientationMatrix
Definition: SoOrthoView2D.h:65
SoSFMLConnector field is the interface used by Inventor Nodes to output input/output ML Connector Fie...
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
Definition: SoSFMLImage.h:70
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 pointer more readable.
Definition: mlAPI.h:54