MeVisLab Toolbox Reference
SoCSOVisualizationSettings.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2012, 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 <SoCSOSystem.h>
19 #include <SoCSODefines.h>
20 
22 
24 
26 {
27  SbColor color;
28  float alpha;
29  float lineWidth;
31  unsigned short stipplePattern;
32 };
33 
35 
36 class SoCSOVisualizationSettings : public SoNode
37 {
38  SO_NODE_HEADER(SoCSOVisualizationSettings);
39 
40 public:
41 
44 
46  static void initClass();
47 
49 
50  // Output settings
52  // Optional input: style palette
54 
55  SoSFBool autoApply;
56  SoSFTrigger apply;
57 
58  // global settings
60  SoSFFloat globalAlphaFactor;
61 
62  // time points
66 
67  // parallel to slice
71 
72  // ghosting
74  SoSFInt32 voxelSlabAugment;
75 
76  // shadow
78 
79  SoSFColor shadowColor;
80  SoSFFloat shadowAlpha;
81  SoSFFloat shadowLineWidth;
82 
85 
86  // seed points
92 
98 
104 
110 
116 
122 
128 
129  // path points
133 
138 
143 
148 
153 
158 
163 
164  // selection style
166 
174 
182 
183  // mouse over style
185 
193 
201 
202  // visibility filtering
203  SoSFEnum visibleByMode;
204  SoSFString visibleIdList;
207 
208 protected:
209 
212 
213 private:
214 
215  SoNodeSensor* _nodeSensor;
216  static void nodeChangedCB(void *data, SoDataSensor* a);
217  void nodeChanged(SoDataSensor* sensor);
218 
219  void _applyFieldChangedCB(SoField*);
220 
221  void setSettingsToFieldValues();
222 
223  ml::CSOVisualizationSettingsWithStylePalette _visualizationSettings;
224 };
225 
~SoCSOVisualizationSettings() override
Destructor.
SoCSOVisualizationSettings()
Constructor.
static void initClass()
Initialize inventor stuff.
The SoSFMLBase field is the interface used by Inventor Nodes to output ML Base objects to the outside...
Definition: SoSFMLBase.h:45
Class for setting visualization parameters for CSO editors.