Пример #1
0
        /// <summary>
        /// Factories the specified unique name.
        /// </summary>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="nodeI">The node i.</param>
        /// <param name="nodeJ">The node j.</param>
        /// <param name="storyName">Name of the story.</param>
        /// <param name="angle">The angle.</param>
        /// <param name="pointIOffset">The point i offset.</param>
        /// <param name="pointJOffset">The point j offset.</param>
        /// <param name="cardinalInsertionPoint">The cardinal insertion point.</param>
        /// <param name="section">The section.</param>
        /// <returns>Frame.</returns>
        public static Frame Factory(string uniqueName, Node nodeI, Node nodeJ,
                                    string storyName           = "",
                                    double angle               = 0,
                                    Displacements pointIOffset = new Displacements(),
                                    Displacements pointJOffset = new Displacements(),
                                    eCardinalInsertionPoint cardinalInsertionPoint = eCardinalInsertionPoint.Centroid,
                                    FrameSection section = null)
        {
            if (Registry.Frames.Keys.Contains(uniqueName))
            {
                return(Registry.Frames[uniqueName]);
            }

            Frame frame = new Frame(nodeI, nodeJ, uniqueName)
            {
                Story                  = storyName,
                Angle                  = angle,
                PointIOffset           = pointIOffset,
                PointJOffset           = pointJOffset,
                CardinalInsertionPoint = cardinalInsertionPoint,
                Section                = section
            };

            Registry.Frames.Add(uniqueName, frame);
            return(Registry.Frames[uniqueName]);
        }
Пример #2
0
 public void GetInsertionPoint(string name,
                               ref Displacements offsetDistancesI,
                               ref Displacements offsetDistancesJ,
                               ref eCardinalInsertionPoint cardinalPoint,
                               ref bool isMirroredLocal2,
                               ref bool isStiffnessTransformed,
                               ref string coordinateSystem)
 {
 }
Пример #3
0
 public void SetInsertionPoint(string name,
                               Displacements offsetDistancesI,
                               Displacements offsetDistancesJ,
                               eCardinalInsertionPoint cardinalPoint,
                               bool isMirroredLocal2,
                               bool isStiffnessTransformed,
                               string coordinateSystem = CoordinateSystems.Global,
                               eItemType itemType      = eItemType.Object)
 {
 }