MeVisLab Toolbox Reference
SoView2DDeformationGridView.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
16
17// TODO:
18// * Set absolute vector width (currently 1 by default).
19// * Enable StylePalette input.
20
21#pragma once
22
23#include "SoView2DSystem.h"
24#include "SoView2DExtension.h"
25
26#include <Inventor/fields/SoFields.h>
27
28#include "SoSFMLBase.h"
29#include "SoSFMLImage.h"
30
31#include "mlStylePalette.h"
32
33//----------------------------------------------------------------------------------
35//----------------------------------------------------------------------------------
37{
41 SO_NODE_HEADER(SoView2DDeformationGridView);
42
43public:
44
49 static void initClass(void);
50
53
58 void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override;
59
60
63
64 // //! input style palette
65 // SoSFMLBase stylePalette;
66
69
72
75
78
81
84
87
88 /*//! The point color;
89 SoSFColor midpointColor;
90
92 SoSFFloat midpointSize;
93
95 SoSFUInt32 midpointSegments;
96
98 SoSFBool midpointAbsoluteSize;
99
102 SoSFFloat vectorWidth;
103
105 SoSFFloat vectorLength;
106
108 SoSFBool vectorAbsoluteSize;
109
110
111
113 SoSFBool drawArrowTips;
114
116 SoSFColor arrowTipColor;
117
119 SoSFFloat arrowTipWidth;
120
122 SoSFFloat arrowTipHeight;
123
125 SoSFBool normalizeVectors;*/
127};
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DExtension for displaying a vector field.
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
Virtual method called by the SoView2D node.
SoSFBool gridPointAbsoluteSize
Draw absolute grid point size?
SoSFFloat gridPointSize
The scale of the grid points.
SoSFUInt32 gridPointSegments
The number of grid point segments.
static void initClass(void)
Initialization function of this class.
SoSFBool drawGridPoints
Optional drawing of the center points.
SoSFUInt32 stepWidth
Step width between shown vectors.
SoSFColor gridPointColor
The grid color.
SoView2DDeformationGridView(void)
Creates a detail viewer for voxels.
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
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.