public static void Display(SensorProfileDB db) { //var db = entity.GetDataBlob<SensorProfileDB>(); var componentInstancesDB = db.OwningEntity.GetDataBlob <ComponentInstancesDB>(); ImGui.Text("Reflected"); foreach (var kvp in db.ReflectedEMSpectra) { DisplayValues(kvp.Key, kvp.Value); } ImGui.Text("Emmitted"); foreach (var kvp in db.EmittedEMSpectra) { DisplayValues(kvp.Key, kvp.Value); } ImGui.Text("By Component:"); var emmitterComponents = componentInstancesDB.ComponentsByAttribute[typeof(SensorSignatureAtbDB)]; foreach (var component in emmitterComponents) { ImGui.Text(component.Name); ImGui.SameLine(); ImGui.Text(" (" + component.Design.TypeName + ")"); SensorSignatureAtbDB emmitterAtbs = (SensorSignatureAtbDB)component.Design.AttributesByType[typeof(SensorSignatureAtbDB)]; DisplayValues(emmitterAtbs.PartWaveForm, emmitterAtbs.PartWaveFormMag); } }
public SensorProfileDB(SensorProfileDB sensorProfileDB) { TotalCrossSection = sensorProfileDB.TotalCrossSection; ThermalSignature = sensorProfileDB.ThermalSignature; EMSignature = sensorProfileDB.EMSignature; }