MeVisLab Toolbox Reference
SoView2DCine.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2017, 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 "SoView2DExtension.h"
19 
20 #include <Inventor/fields/SoFields.h>
21 
22 class View2DCine;
23 
24 
26 {
27  SO_NODE_HEADER(SoView2DCine);
28 
29 public:
31  static void initClass();
32 
35 
37 
39  SoSFTrigger start;
41  SoSFTrigger stop;
42 
44  SoSFInt32 minSlice;
46  SoSFInt32 maxSlice;
48  SoSFInt32 sliceIncrement;
50  SoSFInt32 slice;
51 
53  SoSFInt32 minTimePoint;
55  SoSFInt32 maxTimePoint;
57  SoSFInt32 timePointIncrement;
59  SoSFInt32 timePoint;
60 
62  SoSFEnum mode;
64  SoSFEnum direction;
66  SoSFEnum repeat;
68  SoSFFloat speed;
69 
72  SoSFBool resetOnStart;
73 
75  SoSFBool active;
76 
78 
79 
80 private:
82  ~SoView2DCine() override;
83 
85  void endDrawing(View2DSliceList *slicelist) override;
86 
88  void startCB(SoField*);
90  void stopCB(SoField*);
91 
93  void parametersChangedCB(SoField*);
94 
96  void updateParameters();
97 
98 
99  View2DCine* _cine;
100 };
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoSFTrigger stop
stop the cine mode
Definition: SoView2DCine.h:41
static void initClass()
inventor runtime type system
SoSFInt32 minTimePoint
the minimum timepoint
Definition: SoView2DCine.h:53
SoSFFloat speed
speed of the cine mode (in seconds), minimum cine speed is fixed to one repaint per image
Definition: SoView2DCine.h:68
SoSFInt32 maxTimePoint
the maximum timepoint
Definition: SoView2DCine.h:55
SoView2DCine()
Constructor.
SoSFEnum direction
direction of cine mode (loop or ping-pong)
Definition: SoView2DCine.h:64
SoSFInt32 sliceIncrement
the slice increment
Definition: SoView2DCine.h:48
SoSFInt32 minSlice
the minimum slice
Definition: SoView2DCine.h:44
SoSFTrigger start
Fields.
Definition: SoView2DCine.h:39
SoSFBool active
read-only flag indicating whether cine mode is active or not
Definition: SoView2DCine.h:75
SoSFBool resetOnStart
Always reset to minimum slice/time point and forward direction on start press (start with current pos...
Definition: SoView2DCine.h:72
SoSFEnum mode
mode of the cine mode (Z,T,ZT)
Definition: SoView2DCine.h:62
SoSFInt32 timePointIncrement
the timepoint increment
Definition: SoView2DCine.h:57
SoSFEnum repeat
flag to indicated if cine mode should automatically stop after the first cycle
Definition: SoView2DCine.h:66
SoSFInt32 timePoint
the current timepoint
Definition: SoView2DCine.h:59
SoSFInt32 maxSlice
the maximum slice
Definition: SoView2DCine.h:46
SoSFInt32 slice
the current slice
Definition: SoView2DCine.h:50
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
virtual void endDrawing(View2DSliceList *)
a list that holds all View2DSlice objects (lazily created) of a SoView2D