MeVisLab Toolbox Reference
SoView2DMagnifyController.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 <SoView2DExtension.h>
19#include <View2DSlice.h>
20#include <View2DSliceList.h>
21
22#include <Inventor/fields/SoSFFloat.h>
23#include <Inventor/fields/SoSFVec2f.h>
24#include <Inventor/fields/SoSFInt32.h>
25#include <Inventor/fields/SoSFVec3f.h>
26#include <Inventor/fields/SoSFTrigger.h>
27#include <Inventor/sensors/SoFieldSensor.h>
28#include <SoSFMLImage.h>
29
View2DEventPhase
event phase for simple extensions that grab the focus, do something (motion) and are released afterwa...
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
Definition SoSFMLImage.h:70
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
The Inventor module class SoView2DMagnifyController derived from SoView2DExtension.
bool evalEvent(SoView2D *view2d, View2DSliceList *list, View2DEvent *event, View2DEventPhase phase) override
Handling of events occurring in the viewer.
void updateInplace(View2DSliceList *list, View2DEvent *ec)
SoView2DMagnifyController()
Constructor.
void windowCurrentPositionChanged(SoField *field=nullptr)
Called when field windowCurrentPosition changed.
~SoView2DMagnifyController() override
Protected destructor.
void draw(View2DSliceList *list, View2DSlice *slice, int z) override
Virtual method called by the SoView2D node when an image is rendered.
static void initClass()
Initializes this class (called on dll initialization).
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
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Definition View2DSlice.h:48
Target mlrange_cast(Source arg)
Generic version of checked ML casts.