MeVisLab Toolbox Reference
SoView2DGrid.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2016, 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 <View2DSliceList.h>
20
21#include <Inventor/fields/SoSFVec3f.h>
22
25{
27 SO_NODE_HEADER(SoView2DGrid);
28
29public:
32
34 static void initClass();
35
37 SoSFFloat alpha;
38 SoSFFloat lineWidth;
39 SoSFVec3f worldPosition;
40 SoSFFloat spacing;
42
43
45 bool evalEvent(SoView2D* view2d, View2DSliceList* slicelist,
46 View2DEvent* eventContainer, View2DEventPhase eventPhase) override;
47
49 void draw(View2DSliceList* slicelist, View2DSlice* slice, int sliceZ) override;
50
51protected:
53 ~SoView2DGrid() override;
54};
View2DEventPhase
SoView2DExtension()
Constructor.
SoSFFloat spacing
static void initClass()
Initializes this class (called on DLL initialization).
~SoView2DGrid() override
Protected destructor.
void draw(View2DSliceList *slicelist, View2DSlice *slice, int sliceZ) override
Virtual method called by the SoView2D node when an image is rendered.
SoSFVec3f worldPosition
SoView2DGrid()
Constructor.
bool evalEvent(SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *eventContainer, View2DEventPhase eventPhase) override
Handling of events occurring in the viewer.
SoSFFloat lineWidth
SoSFFloat alpha
! Fields
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