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

Function IsValidStandardViewName

Modules/RESTAPI/src/mitkRenderingController.cpp:675–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673 }
674
675 bool IsValidStandardViewName(const std::string& v)
676 {
677 // Restricted to the six values CameraController::StandardView exposes.
678 return v == "anterior" || v == "posterior" ||
679 v == "left" || v == "right" ||
680 v == "cranial" || v == "caudal";
681 }
682
683 // Read a JSON array of exactly 3 numbers into `out`. Returns nullopt on OK,
684 // or a diagnostic fragment (appended by the caller to the field name) on failure.

Callers 1

ParseCameraPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected