예제 #1
0
        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;
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
파일: Gizmo.cs 프로젝트: limrzx/Dynamo
        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;
        }