public static ImageMapControl FillWithWpfControls(
            LogInstance log,
            object opackage, object osm,
            ImageMapOptions options,
            PluginEventStack eventStack,
            object masterDockPanel)
        {
            // access
            var package = opackage as AdminShellPackageEnv;
            var sm      = osm as AdminShell.Submodel;
            var master  = masterDockPanel as DockPanel;

            if (package == null || sm == null || master == null)
            {
                return(null);
            }

            // the Submodel elements need to have parents
            sm.SetAllParents();

            // create TOP control
            var imgMapCntl = new ImageMapControl();

            imgMapCntl.Start(log, package, sm, options, eventStack);
            master.Children.Add(imgMapCntl);

            // return shelf
            return(imgMapCntl);
        }
예제 #2
0
        /// <summary>
        /// Create a set of minimal options
        /// </summary>
        public static ImageMapOptions CreateDefault()
        {
            var rec = new ImageMapOptionsOptionsRecord();

            rec.AllowSubmodelSemanticId.Add(
                AasxPredefinedConcepts.ImageMap.Static.SEM_ImageMapSubmodel.GetAsExactlyOneKey());

            var opt = new ImageMapOptions();

            opt.Records.Add(rec);

            return(opt);
        }
 public void Start(
     LogInstance log,
     AdminShellPackageEnv thePackage,
     AdminShell.Submodel theSubmodel,
     ImageMapOptions theOptions,
     PluginEventStack eventStack)
 {
     this.Log           = log;
     this.thePackage    = thePackage;
     this.theSubmodel   = theSubmodel;
     this.theOptions    = theOptions;
     this.theEventStack = eventStack;
 }