MeVisLab Toolbox Reference
SoView2DTouchControl.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3/*
4 _______________________________________________________________________
5 __________________ F R A U N H O F E R M E V I S __________________
6 |
7 | Description:
8 | SoView2DTouchControl
9 |
10 | Author(s) : Felix Ritter
11 |
12 __________________ F R A U N H O F E R M E V I S __________________
13 _______________________________________________________________________
14 */
15
16#ifndef _SoView2DTouchControl_H
17#define _SoView2DTouchControl_H
18
19#include "SoTouchControlInit.h"
20#include <SoView2DExtension.h>
21#include <Inventor/fields/SoSFFloat.h>
22
24{
25 SO_NODE_HEADER(SoView2DTouchControl);
26
27 public:
35 // Angle in radians controlled by rotate gesture
37
38 float sliceIdx;
39
42
44 bool evalEvent(SoView2D* view2d, View2DSliceList* slicelist, View2DEvent* ec, View2DEventPhase phase) override;
45
46 SoINTERNAL public:
47 static void initClass();
48
49 private:
50 double _scaleFactor;
51};
52
53#endif // _SoView2DTouchControl_H
#define TOUCHCONTROL_API
View2DEventPhase
event phase for simple extensions that grab the focus, do something (motion) and are released afterwa...
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
SoSFFloat lutV
Vertical windowing parameter.
SoSFFloat lutH
Horizontal windowing parameter.
bool evalEvent(SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) override
reimplemented from SoView2DExtension
SoView2DTouchControl()
constructor
static void initClass()
SoView2D is a 2D viewer for image data.
Definition SoView2D.h:62
View2DEvent stores all information on an event on a SoView2D.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
Target mlrange_cast(Source arg)
Generic version of checked ML casts.