Example #1
0
 public NFFLineworkPolyLineVertexEntity(NFFLineworkEntity parent,
                                        double x, double y, double z, double chainage) : this(parent)
 {
     X        = x;
     Y        = y;
     Z        = z;
     Chainage = chainage;
 }
Example #2
0
        // Assign could be public, but only used by Clone method at this point, so hide.
        public virtual void Assign(NFFLineworkPolyLineVertexEntity VertexEntity)
        {
            X               = VertexEntity.X;
            Y               = VertexEntity.Y;
            Z               = VertexEntity.Z;
            Chainage        = VertexEntity.Chainage;
            LeftCrossSlope  = VertexEntity.LeftCrossSlope;
            RightCrossSlope = VertexEntity.RightCrossSlope;

            Parent = VertexEntity.Parent;
        }
Example #3
0
        public NFFLineworkPolyLineVertexEntity()
        {
            Parent = null;

            X        = Consts.NullDouble;
            Y        = Consts.NullDouble;
            Z        = Consts.NullDouble;
            Chainage = Consts.NullDouble;

            LeftCrossSlope  = Consts.NullDouble;
            RightCrossSlope = Consts.NullDouble;
        }
Example #4
0
        private void AddEntityToGeometry(NFFLineworkEntity nffEntity)
        {
            switch (nffEntity.ElementType)
            {
            case NFFLineWorkElementType.kNFFLineWorkPolyLineElement:
                ExportNFFPolyLineEntityToGeometry(nffEntity as NFFLineworkPolyLineEntity);
                break;

            case NFFLineWorkElementType.kNFFLineWorkSmoothedPolyLineElement:
                ExportNFFSmoothedPolyLineEntityToGeometry((NFFLineworkSmoothedPolyLineEntity)nffEntity);
                break;

            case NFFLineWorkElementType.kNFFLineWorkArcElement:
                ExportNFFArcToGeometry(nffEntity as NFFLineworkArcEntity);
                break;
            }
        }
Example #5
0
        public override void Assign(NFFLineworkEntity Entity)
        {
            base.Assign(Entity);

            var ArcEty = Entity as NFFLineworkArcEntity;

            X1 = ArcEty.X1;
            Y1 = ArcEty.Y1;
            Z1 = ArcEty.Z1;
            X2 = ArcEty.X2;
            Y2 = ArcEty.Y2;
            Z2 = ArcEty.Z2;
            CX = ArcEty.CX;
            CY = ArcEty.CY;
            //  CZ                   = ArcEty.CZ;
            WasClockWise         = ArcEty.WasClockWise;
            SingleArcEdgePoint   = ArcEty.SingleArcEdgePoint;
            StartLeftCrossSlope  = ArcEty.StartLeftCrossSlope;
            StartRightCrossSlope = ArcEty.StartRightCrossSlope;
            EndLeftCrossSlope    = ArcEty.EndLeftCrossSlope;
            EndRightCrossSlope   = ArcEty.EndRightCrossSlope;

            TransitDirection = ArcEty.TransitDirection;
        }
Example #6
0
 public NFFLineworkPolyLineVertexEntity(NFFLineworkEntity parent) : this()
 {
     Parent = parent;
 }
Example #7
0
        public override void Assign(NFFLineworkEntity Entity)
        {
            base.Assign(Entity);

            _guidanceID = (Entity as NFFGuidableLineworkEntity).GuidanceID;
        }
Example #8
0
        /*
         * function GetVertexLeftCrossSlope(VertexNum: Integer): Double; Virtual;
         * procedure SetVertexLeftCrossSlope(VertexNum: Integer;
         * const Value: Double); Virtual;
         *
         * function GetVertexRightCrossSlope(VertexNum: Integer): Double; Virtual;
         * procedure SetVertexRightCrossSlope(VertexNum: Integer;
         * const Value: Double); Virtual;
         */

        // public
        public override void Assign(NFFLineworkEntity Entity)
        {
            base.Assign(Entity);

            StartStation = (Entity as NFFStationedLineworkEntity).StartStation;
        }
Example #9
0
        //  private fVertexRedundant: Boolean;

        public NFFLineworkSmoothedPolyLineVertexEntity(NFFLineworkEntity AParent,
                                                       double AX, double AY, double AZ, double AChainage, double ATrailingAzimuth) : base(AParent, AX, AY, AZ, AChainage)
        {
            TrailingAzimuth = ATrailingAzimuth;
        }