Mercurial > hg > orthanc-stone
view Applications/Samples/Deprecated/SimpleViewer/AppStatus.h @ 1391:32272ecfc6c2
Drilled a hole through the abstractions to be able to match
an SdlViewport with its SDL window ID to support dispatching
event loop SDL events as viewport/controller/compositor
method calls.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 28 Apr 2020 13:26:41 +0200 |
parents | bfd77672d825 |
children |
line wrap: on
line source
#pragma once #include <string> namespace SimpleViewer { struct AppStatus { std::string patientId; std::string studyDescription; std::string currentInstanceIdInMainViewport; // note: if you add members here, update the serialization code below and deserialization in simple-viewer.ts -> onAppStatusUpdated() AppStatus() { } void ToJson(Json::Value &output) const { output["patientId"] = patientId; output["studyDescription"] = studyDescription; output["currentInstanceIdInMainViewport"] = currentInstanceIdInMainViewport; } }; }