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 
29 public:
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 
51 protected:
53  ~SoView2DGrid() override;
54 };
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...
The Inventor module class SoView2DGrid derived from SoView2DExtension.
Definition: SoView2DGrid.h:25
SoSFFloat spacing
Definition: SoView2DGrid.h:40
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
Definition: SoView2DGrid.h:39
SoView2DGrid()
Constructor.
bool evalEvent(SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *eventContainer, View2DEventPhase eventPhase) override
Handling of events occurring in the viewer.
SoSFFloat lineWidth
Definition: SoView2DGrid.h:38
SoSFFloat alpha
! Fields
Definition: SoView2DGrid.h:37
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