MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
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:
48 static void initClass(void);
49
52
57 void draw(View2DSliceList* dsl, View2DSlice* dslice, int slice) override;
58
59
62
63 // //! input style palette
64 // SoSFMLBase stylePalette;
65
68
71
74
77
80
83
86
87 /*//! The point color;
88 SoSFColor midpointColor;
89
91 SoSFFloat midpointSize;
92
94 SoSFUInt32 midpointSegments;
95
97 SoSFBool midpointAbsoluteSize;
98
101 SoSFFloat vectorWidth;
102
104 SoSFFloat vectorLength;
105
107 SoSFBool vectorAbsoluteSize;
108
109
110
112 SoSFBool drawArrowTips;
113
115 SoSFColor arrowTipColor;
116
118 SoSFFloat arrowTipWidth;
119
121 SoSFFloat arrowTipHeight;
122
124 SoSFBool normalizeVectors;*/
126};
#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.