Exemplo n.º 1
0
        public ScaleAdorner3D(AdornerSet3D adornerSet, Adorner3D.TransformVia direction)
            : base(adornerSet, direction)
        {
            switch (direction)
            {
            case Adorner3D.TransformVia.XAxis:
                this.scaleAxis    = new Vector3D(1.0, 0.0, 0.0);
                this.AdornerModel = ScaleAdorner3D.xCube;
                break;

            case Adorner3D.TransformVia.YAxis:
                this.scaleAxis    = new Vector3D(0.0, 1.0, 0.0);
                this.AdornerModel = ScaleAdorner3D.yCube;
                break;

            case Adorner3D.TransformVia.ZAxis:
                this.scaleAxis    = new Vector3D(0.0, 0.0, 1.0);
                this.AdornerModel = ScaleAdorner3D.zCube;
                break;
            }
        }
Exemplo n.º 2
0
        public RotateAdorner3D(AdornerSet3D adornerSet, Adorner3D.TransformVia direction)
            : base(adornerSet, direction)
        {
            switch (direction)
            {
            case Adorner3D.TransformVia.XAxis:
                this.rotationAxis = new Vector3D(1.0, 0.0, 0.0);
                this.AdornerModel = RotateAdorner3D.xTorus;
                break;

            case Adorner3D.TransformVia.YAxis:
                this.rotationAxis = new Vector3D(0.0, 1.0, 0.0);
                this.AdornerModel = RotateAdorner3D.yTorus;
                break;

            case Adorner3D.TransformVia.ZAxis:
                this.rotationAxis = new Vector3D(0.0, 0.0, 1.0);
                this.AdornerModel = RotateAdorner3D.zTorus;
                break;
            }
        }
Exemplo n.º 3
0
        public TranslateAdorner3D(AdornerSet3D adornerSet, Adorner3D.TransformVia direction)
            : base(adornerSet, direction)
        {
            switch (direction)
            {
            case Adorner3D.TransformVia.XAxis:
                this.translationAxis = new Vector3D(1.0, 0.0, 0.0);
                this.AdornerModel    = TranslateAdorner3D.xAxisAndArrowHead;
                break;

            case Adorner3D.TransformVia.YAxis:
                this.translationAxis = new Vector3D(0.0, 1.0, 0.0);
                this.AdornerModel    = TranslateAdorner3D.yAxisAndArrowHead;
                break;

            case Adorner3D.TransformVia.ZAxis:
                this.translationAxis = new Vector3D(0.0, 0.0, 1.0);
                this.AdornerModel    = TranslateAdorner3D.zAxisAndArrowHead;
                break;
            }
        }
Exemplo n.º 4
0
 protected Adorner3D(AdornerSet3D adornerSet, Adorner3D.TransformVia direction)
     : this(adornerSet)
 {
     this.axis = direction;
 }