public TransformationController(IMainShell windows) { this.windows = windows; translation = new TranslationGlyp(new Rectangle(0, 0, 128, 128)) { Visible = false, Alpha = 0.7f, EnablePlanes = true, Width = 5 }.Initialize() as TranslationGlyp; rotation = new RotationGlyp(new Rectangle(0, 0, 128, 128)) { MarkersAlpha = 0.8f, SphereColor = new Color4(Color3.FromArgb(System.Drawing.Color.Yellow.ToArgb()), 0.5f), Thickness = 1, Visible = false }; rotation.Initialize(); scale = new ScaleGlyp() { Visible = false }; Engine.Scene.Decals.Add(translation); Engine.Scene.Decals.Add(rotation); Engine.Scene.Decals.Add(scale); Engine.UpdateFrame += UpdateGlyps; }
public MainWindowViewModel(IMainShell windows) { this.windows = windows; LoadFileCommand = new ActionCommand(LoadFile); Service.Set(this); }