view Applications/Samples/SimpleViewer/AppStatus.h @ 858:e3c56d4f863f

GuiAdapter : mouse event routing in SDL + split the undo stack from the ViewportController for multi-canvas apps + adapted the samples to this change
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 24 Jun 2019 10:31:04 +0200
parents daa04d15192c
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;
    }
  };
}