MeVisLab Toolbox Reference
SoView2DCurrentState.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2013, 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_VIEW2_DCURRENT_STATE_H
14 #define SO_VIEW2_DCURRENT_STATE_H
15 
16 #include "SoView2DExtension.h"
17 
18 #include <Inventor/fields/SoSFVec2f.h>
19 #include <Inventor/fields/SoSFVec3f.h>
20 
23 {
25  SO_NODE_HEADER(SoView2DCurrentState);
26 
27 public:
30 
32  static void initClass();
33 
35  SoSFFloat pixelSpacingX;
36 
38  SoSFFloat pixelSpacingY;
39 
40  SoSFVec2f visibleDeviceRect0;
41  SoSFVec2f visibleDeviceRect1;
42 
43  SoSFVec2f imageDeviceRect0;
44  SoSFVec2f imageDeviceRect1;
45 
46  SoSFVec3f visibleWorldRect0;
47  SoSFVec3f visibleWorldRect1;
48 
49 protected:
51  void draw(View2DSliceList *slicelist, View2DSlice* slice, int sliceZ) override;
52 
53 };
54 
55 #endif
implements additional features for SyngoVia-like annotations
SoSFFloat pixelSpacingX
the horizontal spacing of rendered pixels in world coordinates (mm)
static void initClass()
Initializes this class (called on dll initialization).
void draw(View2DSliceList *slicelist, View2DSlice *slice, int sliceZ) override
overridden to extract state
SoSFFloat pixelSpacingY
the vertical spacing of rendered pixels in world coordinates (mm)
SoView2DCurrentState()
Constructor.
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Definition: View2DSlice.h:48