public ModelViewerInstance(ModelViewerView v, String modelName)
            : base("ModelViewer")
        {
            view = v;

            v.setModelViewerInstance(this);

            call("initModelViewer",  modelName, view.renderPanel.Handle);
            flush();
        }
示例#2
0
        internal void createModelViewer(string file)
        {
            ModelViewerView mvw = new ModelViewerView();
            mvw.Show();
            ModelViewerInstance mvi = new ModelViewerInstance(mvw, file);

            nativeInstances.Add(mvi);
        }