Ejemplo n.º 1
0
        //public ActionPipe3D(int NumSides, string text, double textheight, gPoint reference, vdLayout layout,gPoint endPoint)
        //    : base(reference, layout)
        public ActionPipe3D(int NumSides, double height, gPoint reference, vdLayout layout, gPoint endPoint)
            : base(reference, layout)
        {
            ValueTypeProp |= valueType.DISTANCE;
            figure         = new Pipe3D();
            figure.SetUnRegisterDocument(layout.Document);
            figure.setDocumentDefaults();
            figure.Origin = reference;
            figure.Radius = 0.0d;
            //figure.TextHeight = textheight;
            //figure.TextString = text;
            figure.NumSides   = NumSides;
            figure.PipeHeight = height;

            // Chiranjit 11/08/2009
            figure.StartPoint = reference;
            figure.EndPoint   = endPoint;
        }
Ejemplo n.º 2
0
        public override void MatchProperties(VectorDraw.Professional.vdObjects.vdPrimary _from, VectorDraw.Professional.vdObjects.vdDocument thisdocument)
        {
            base.MatchProperties(_from, thisdocument);
            Pipe3D from = _from as Pipe3D;

            if (from == null)
            {
                return;
            }
            gpStartPoint = from.gpStartPoint;
            gpEndPoint   = from.gpEndPoint;
            dPipeHeight  = from.dPipeHeight;
            cirStart     = from.cirStart;
            cirEnd       = from.cirEnd;


            TextString = from.TextString;
            NumSides   = from.NumSides;
            Radius     = from.Radius;
            TextStyle  = from.TextStyle;
            TextHeight = from.TextHeight;
        }