AnimatLab  2
Test
M110Actuator.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace HybridInterfaceGUI
7 {
8  namespace RobotIOControls
9  {
10  public class M110Actuator : AnimatGUI.DataObjects.Robotics.MotorControlSystem
11  {
12 
13  public override string Description {get {return "Controls a M110 Piezo motor actuator";}set { }}
14  public override string WorkspaceImageName { get { return "HybridInterfaceGUI.Graphics.M110_Small.gif"; } }
15  public override string ButtonImageName { get { return "HybridInterfaceGUI.Graphics.M110_Large.gif"; } }
16  public override string PartType {get { return "M110Actuator"; }}
17  public override string ModuleName { get { return "HybridInterfaceSim"; } }
18  protected override System.Type GetLinkedPartDropDownTreeType() { return typeof(AnimatGUI.TypeHelpers.DropDownTreeEditorNoFirstSelect); }
19 
20 
21  public M110Actuator(AnimatGUI.Framework.DataObject doParent)
22  : base(doParent)
23  {
24  m_strName = "M110 Actuator";
25 
26  m_aryCompatiblePartTypes.Clear();
27  m_aryCompatiblePartTypes.Add(typeof(AnimatGUI.DataObjects.Physical.Bodies.Line));
28  }
29 
30  public override AnimatGUI.Framework.DataObject Clone(AnimatGUI.Framework.DataObject doParent, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
31  {
32  M110Actuator doController = new M110Actuator(doParent);
33  return doController;
34  }
35 
36  protected override void CloneInternal(AnimatGUI.Framework.DataObject doOriginal, bool bCutData, AnimatGUI.Framework.DataObject doRoot)
37  {
38  base.CloneInternal(doOriginal, bCutData, doRoot);
39 
40  M110Actuator part = (M110Actuator)doOriginal;
41 
42  }
43 
44  public override void BuildProperties(ref AnimatGuiCtrls.Controls.PropertyTable propTable)
45  {
46  base.BuildProperties(ref propTable);
47 
48  }
49 
50  public override void LoadData(ManagedAnimatInterfaces.IStdXml oXml)
51  {
52  base.LoadData(oXml);
53 
54  oXml.IntoElem();
55  oXml.OutOfElem();
56  }
57 
58  public override void SaveData(ManagedAnimatInterfaces.IStdXml oXml)
59  {
60  base.SaveData(oXml);
61 
62  oXml.IntoElem();
63  oXml.OutOfElem();
64  }
65 
66  public override void SaveSimulationXml(ManagedAnimatInterfaces.IStdXml oXml, ref AnimatGUI.Framework.DataObject nmParentControl, string strName = "")
67  {
68  base.SaveSimulationXml(oXml, ref nmParentControl, strName);
69 
70  oXml.IntoElem();
71  oXml.OutOfElem();
72  }
73 
74  }
75  }
76 }