MeVisLab Toolbox Reference
SoView2DBorderHighlight.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 "SoView2DBorder.h"
19 
20 #include <Inventor/fields/SoSFFloat.h>
21 #include <Inventor/fields/SoSFInt32.h>
22 
25 
26  SO_NODE_HEADER(SoView2DBorderHighlight);
27 
28 public:
29  static void initClass();
30 
32 
34  void draw (View2DSliceList *dsl, View2DSlice* dslice, int slice) override;
35 
37  void updateValues() override;
38 
40  SoSFFloat alphaFactor;
41 
43  SoSFFloat lineWidth;
44 
46  SoSFInt32 startSlice;
47 
49  SoSFInt32 numSlices;
50 };
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2D extension that draws a border around a selected range of slices.
SoSFInt32 startSlice
Start index of slices to highlight.
SoSFInt32 numSlices
Number of slices to highlight.
SoSFFloat alphaFactor
Alpha value (in [0..1])
static void initClass()
SoSFFloat lineWidth
Line width.
void updateValues() override
Update fields to local variables.
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
draws a border on the given slice
SoView2D extension that draws a border with variable width and highlighting of focused viewport.
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