view Platforms/Wasm/WasmViewport.cpp @ 1260:5a2d5380148d toa2020012701

Added outlier rejection for min max computation in multiframe volume loader
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 27 Jan 2020 14:29:02 +0100
parents 4f2416d519b4
children
line wrap: on
line source

#include "WasmViewport.h"

#include <vector>
#include <memory>

std::vector<std::shared_ptr<Deprecated::WidgetViewport>> wasmViewports;

void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget) {
    std::shared_ptr<Deprecated::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
    viewport->SetCentralWidget(centralWidget);

    wasmViewports.push_back(viewport);
}