MCPcopy Create free account
hub / github.com/MITK/MITK / WindowKindToString

Function WindowKindToString

Modules/RESTAPI/src/mitkRenderWindowBridge.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59{
60
61const char* WindowKindToString(WindowKind kind)
62{
63 switch (kind)
64 {
65 case WindowKind::TwoD: return "2d";
66 case WindowKind::ThreeD: return "3d";
67 }
68 // All enum values are handled above; a value outside the enum domain is UB.
69 // Trip an assert in debug to flag the contract break, keep a safe token in
70 // release so the bridge cannot crash callers.
71 assert(false && "WindowKindToString: value outside WindowKind enum domain");
72 return "unknown";
73}
74
75const char* AnatomicalPlaneToV2String(AnatomicalPlane plane)
76{

Calls

no outgoing calls