internal Gizmo(NodeManipulator manipulator) { this.manipulator = manipulator; // Append node AST identifier to gizmo name // so that it gets added to package description Name = manipulator.Node.AstIdentifierBase; BackgroundPreviewViewModel.ViewCameraChanged += OnViewCameraChanged; cameraPosition = manipulator.CameraPosition; }
/// <summary> /// Constructs planar gizmo, can be manipulated in two directions. /// </summary> /// <param name="manipulator"></param> /// <param name="axis1">First axis of freedom</param> /// <param name="axis2">Second axis of freedom</param> /// <param name="size">Visual size of the Gizmo</param> public TranslationGizmo(NodeManipulator manipulator, Vector axis1, Vector axis2, double size) : base(manipulator) { ReferenceCoordinateSystem = CoordinateSystem.Identity(); UpdateGeometry(axis1, axis2, null, size); }