You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Color bgcolor = Color::White();/**< Background color to use for the View. **/
44
+
int width = 0;/**< Width of window, set to 0 to use default width. **/
45
+
int height = 0;/**< Height of window, set to 0 to use default height. **/
46
+
std::optional<int> timeout;/**< Milliseconds until closing window automatically. If not setm the window will not automatically close. **/
47
+
bool renderToImage = false;/**< If set to true, the data is rendered to an Image and returned, instead of displaying it using a window. **/
48
+
bool returnWindow = false;/**< If set to true, the window is returned by the function, else display2D will call run on the window and return nothing. **/
49
+
std::variant<std::monostate, std::vector<QWidget*>, std::map<WidgetPosition, std::vector<QWidget*>>> widgets;/**< Widgets to attach to window. **/
44
50
};
45
51
46
52
/**
@@ -54,39 +60,42 @@ struct Display2DArgs {
54
60
* @param args See the Display2DArgs struct
55
61
* @return A variant which is either empty, Window or Image depending on the choice of Display2DArgs.returnWindow
std::variant<std::monostate, std::shared_ptr<Image>, std::shared_ptr<ProcessObject>> image;/**< Source of Image data to display (optional) **/
84
+
std::variant<std::monostate, std::shared_ptr<Image>, std::shared_ptr<ProcessObject>> segmentation;/**< Source of segmentation Image data to display (optional) **/
85
+
std::optional<float> intensityLevel;/**< Intensity level used by ImageRenderer. Only used with DisplayType::SLICER **/
86
+
std::optional<float> intensityWindow;/**< Intensity window used by ImageRenderer. Only used with DisplayType::SLICER **/
78
87
LabelColors segmentationColors;
79
88
float segmentationOpacity = 0.5f;
80
89
float segmentationBorderOpacity = -1.0f;
81
90
int segmentationBorderRadius = 1;
82
-
TransferFunction transferFunction;
91
+
TransferFunction transferFunction;/**< Transfer function to use by AlphaBlendingVolumeRenderer when displayType == DisplayType::ALPHA_BLENDING **/
Color bgcolor = Color::White();/**< Background color to use for the View. **/
94
+
int width = 0;/**< Width of window, set to 0 to use default width. **/
95
+
int height = 0;/**< Height of window, set to 0 to use default height. **/
96
+
std::optional<int> timeout;/**< Milliseconds until closing window automatically. If not setm the window will not automatically close. **/
97
+
bool returnWindow = false;/**< If set to true, the window is returned by the function, else display2D will call run on the window and return nothing. **/
98
+
std::variant<std::monostate, std::vector<QWidget*>, std::map<WidgetPosition, std::vector<QWidget*>>> widgets;/**< Widgets to attach to window. **/
90
99
};
91
100
92
101
/**
@@ -103,6 +112,7 @@ struct Display3DArgs {
103
112
*
104
113
* @param args See the Display3DArgs struct
105
114
* @return A variant which is either empty or a Window depending on whether Display3DArgs.returnWindow is set to true or not.
0 commit comments