protected private override void SetProps(object spiral)
 {
     base.SetProps(spiral);
     AlignmentSpiralConstraintType = GetConstraint2(spiral);
     A         = ReflectionSupport.GetProperty(spiral, "A", double.NaN);
     K         = ReflectionSupport.GetProperty(spiral, "K", double.NaN);
     P         = ReflectionSupport.GetProperty(spiral, "P", double.NaN);
     Compound  = ReflectionSupport.GetProperty(spiral, "Compound", false);
     CurveType = ReflectionSupport.GetProperty
                     (spiral, "CurveType", C3dDb.SpiralCurveType.InCurve).ToString();
     Direction = ReflectionSupport.GetProperty
                     (spiral, "Direction", C3dDb.SpiralDirectionType.DirectionRight).ToString();
     ShortTangent            = ReflectionSupport.GetProperty(spiral, "ShortTangent", double.NaN);
     LongTangent             = ReflectionSupport.GetProperty(spiral, "LongTangent", double.NaN);
     MinimumTransitionLength = ReflectionSupport.GetProperty
                                   (spiral, "MinimumTransitionLength", double.NaN);
     _radialPoint = PointData.FromPointObject
                        (ReflectionSupport.GetProperty(spiral, "RadialPoint", null));
     RadiusIn  = ReflectionSupport.GetProperty(spiral, "RadiusIn", double.NaN);
     RadiusOut = ReflectionSupport.GetProperty(spiral, "RadiusOut", double.NaN);
     SPIAngle  = ReflectionSupport.GetProperty(spiral, "SPIAngle", double.NaN);
     _sPIPoint = PointData.FromPointObject
                     (ReflectionSupport.GetProperty(spiral, "SPIPoint", null));
     SpiralDefinition = ReflectionSupport.GetProperty
                            (spiral, "SpiralDefinition", C3d.SpiralType.Clothoid).ToString();
     SPIStation = ReflectionSupport.GetProperty(spiral, "SPIStation", double.NaN);
     TotalX     = ReflectionSupport.GetProperty(spiral, "TotalX", double.NaN);
     TotalY     = ReflectionSupport.GetProperty(spiral, "TotalY", double.NaN);
 }
Example #2
0
 protected private override void SetProps(object curve)
 {
     base.SetProps(curve);
     StartDirection = ReflectionSupport
                      .GetProperty(curve, "StartDirection", double.NaN);
     EndDirection = ReflectionSupport
                    .GetProperty(curve, "EndDirection", double.NaN);
     Delta = ReflectionSupport.GetProperty(curve, "Delta", double.NaN);
 }
 protected private override void SetProps(object line)
 {
     base.SetProps(line);
     Direction = ReflectionSupport.GetProperty(line, "Direction", double.NaN);
     _midPoint = PointData.FromPointObject
                     (ReflectionSupport.GetProperty(line, "MidPoint", null));
     Length = _startPoint.DistanceTo(_endPoint);
     AlignmentLineConstraintType = GetConstraint2(line);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="arc"></param>
 protected private override void SetProps(object arc)
 {
     base.SetProps(arc);
     _centerPoint = PointData.FromPointObject
                        (ReflectionSupport.GetProperty(arc, "CenterPoint", null));
     ChordDirection             = ReflectionSupport.GetProperty(arc, "ChordDirection", double.NaN);
     ChordLength                = ReflectionSupport.GetProperty(arc, "ChordLength", double.NaN);
     Clockwise                  = ReflectionSupport.GetProperty(arc, "Clockwise", false);
     AlignmentArcConstraintType = GetConstraint2(arc);
     DeflectedAngle             = ReflectionSupport.GetProperty(arc, "DeflectedAngle", double.NaN);
     ExternalSecant             = ReflectionSupport.GetProperty(arc, "ExternalSecant", double.NaN);
     ExternalTangent            = ReflectionSupport.GetProperty(arc, "ExternalTangent", double.NaN);
     GreaterThan180             = ReflectionSupport.GetProperty(arc, "GreaterThan180", false);
     MidOrdinate                = ReflectionSupport.GetProperty(arc, "MidOrdinate", double.NaN);
     MinimumRadius              = ReflectionSupport.GetProperty(arc, "MinimumRadius", double.NaN);
     PIStation                  = ReflectionSupport.GetProperty(arc, "PIStation", double.NaN);
     Radius       = ReflectionSupport.GetProperty(arc, "Radius", double.NaN);
     ReverseCurve = ReflectionSupport.GetProperty(arc, "ReverseCurve", false);
 }
 internal AlignmentArc(C3dDb.AlignmentSubEntityArc subEntityArc) : base(subEntityArc)
 {
     _pIPoint = PointData.FromPointObject
                    (ReflectionSupport.GetProperty(subEntityArc, "PIPoint", null));
 }