public ShieldPropertiesViewModel( TreeViewViewModel treeParent, CompoundObjectViewModel parentVm, MainViewModel mainVm, ShieldProperties modelObject, CoSystemViewModel systemViewModel) : base(treeParent, parentVm, mainVm, modelObject, systemViewModel) { }
public SystemViewModelBase( TreeViewViewModel treeParent, CompoundObjectViewModel parentVm, MainViewModel mainVm, CoSystemViewModel systemViewModel, bool enabled = true) : base(treeParent, parentVm, mainVm, enabled) { _systemViewModel = systemViewModel; }
public ReentryFlameEmitterPropertiesViewModel( TreeViewViewModel treeParent, CompoundObjectViewModel parentVm, MainViewModel mainVm, ReentryFlameEmitterProperties modelObject, CoSystemViewModel systemViewModel) : base(treeParent, parentVm, mainVm, systemViewModel) { _modelObject = modelObject; }
public BodyOriginSystemViewModel( TreeViewViewModel treeParent, CompoundObjectViewModel parentVm, MainViewModel mainVm, BodyOriginSystem modelObject, CoSystemViewModel systemViewModel) : base(treeParent, parentVm, mainVm, systemViewModel) { _modelObject = modelObject; }
private StateSystemCollectionViewModel SetSystems(CompoundObject co, bool enabledChildren = true) { StateSystemCollectionViewModel systems = new StateSystemCollectionViewModel(this, this, MainVm, enabledChildren); foreach (CoSystem s in co.Systems) { CoSystemViewModel svm = new CoSystemViewModel(systems, this, MainVm, s, enabledChildren); systems.Systems.Add(svm); } return(systems); }
public void AddChildShapesToGlobalCollection(ref CompositeCollection coll, bool showJoints, bool showSystems, bool showBackgrounds) { if (CompObj != null) { foreach (Object o in CompObj.ShapeCollection.Shapes) { if (o is LfShapeViewModel) { LfShapeViewModel svm = o as LfShapeViewModel; coll.Add(svm); } } if (showJoints) { foreach (Object o in CompObj.JointCollection.Joints) { if (o is WeldJointViewModel) { WeldJointViewModel wjvm = o as WeldJointViewModel; coll.Add(wjvm); } } } if (showSystems) { foreach (Object o in CompObj.SystemCollection.Systems) { if (o is CoSystemViewModel) { CoSystemViewModel svm = o as CoSystemViewModel; coll.Add(svm); } } } if (CompObj != MainVm.EditedCpVm) { foreach (ChildObjectViewModel covm in CompObj.ChildObjectCollection.Children) { covm.AddChildShapesToGlobalCollection(ref coll, showJoints, showSystems, showBackgrounds); } } } }
public ObjectFactoryPropertiesViewModel( TreeViewViewModel treeParent, CompoundObjectViewModel parentVm, MainViewModel mainVm, ObjectFactoryProperties modelObject, CoSystemViewModel systemViewModel) : base(treeParent, parentVm, mainVm, systemViewModel) { _modelObject = modelObject; if (_modelObject != null) { _bodyObject = ParentVm.FindBodyObject(_modelObject.Body); } foreach (SpawnObject so in LocalModelObject.SpawnObjects) { SpawnObjectViewModel sovm = new SpawnObjectViewModel(this, parentVm, mainVm, this, so); SpawnObjects.Add(sovm); } UpdateCornerPoints(); }