Esempio n. 1
0
        /// <summary>
        /// Required parameters:
        /// (Location)center_location
        /// (Location)pointing_towards
        /// (UnitVector)orthogonal_direction
        /// (double)side_length
        /// </summary>
        /// <param name='shadowObject'>
        /// Shadow object containing parameters from summary.
        /// </param>
        protected void shadowFac_Center_and_Sidelength(ShadowScientrace.ShadowObject3d shadowObject)
        {
            //User values(s)
            Scientrace.Location   center_location      = shadowObject.getLocation("center_location");
            Scientrace.Location   pointing_towards     = shadowObject.getLocation("pointing_towards");
            Scientrace.UnitVector orthogonal_direction = shadowObject.getUnitVector("orthogonal_direction");
            double side_length = shadowObject.getDouble("side_length");

            //construct!
            this.init_Center_and_Sidelength(center_location, pointing_towards, orthogonal_direction, side_length);
        }
Esempio n. 2
0
        /// <summary>
        /// Required parameters:
        /// (Location)center_location
        /// (Location)pointing_towards
        /// (UnitVector)orthogonal_direction
        /// (double)side_length
        /// </summary>
        /// <param name='shadowObject'>
        /// Shadow object containing parameters from summary.
        /// </param>
        protected void shadowFac_Loc_width_height(ShadowScientrace.ShadowObject3d shadowObject)
        {
            //User values(s)
            Scientrace.Location      corner_location = shadowObject.getLocation("corner_location");
            Scientrace.NonzeroVector width           = shadowObject.getNzVector("width");
            Scientrace.NonzeroVector height          = shadowObject.getNzVector("height");

            //construct!
            this.init_Loc_width_height(corner_location, width, height);
        }
Esempio n. 3
0
        /// <summary>
        /// Required parameters:
        /// (Location) corner_location,
        /// (NonzeroVector) length
        /// (NonzeroVector) width
        /// (NonzeroVector) height
        /// (boolean) perfect_front (default true)
        /// </summary>
        /// <param name='shadowObject'>
        /// Shadow object containing parameters from summary.
        /// </param>
        protected void shadowFac_Width_Height_And_Length(ShadowScientrace.ShadowObject3d shadowObject)
        {
            //User values(s)
            Scientrace.Location      corner_location = shadowObject.getLocation("corner_location");
            Scientrace.NonzeroVector length          = shadowObject.getNzVector("length");
            Scientrace.NonzeroVector width           = shadowObject.getNzVector("width");
            Scientrace.NonzeroVector height          = shadowObject.getNzVector("height");
            bool perfect_top = shadowObject.getBool("perfect_top") == true;

            //Derived value(s)
            //none

            //initialize!
            this.paramInit(corner_location, width, height, length);

            //add some additional parameters
            this.perfectTop = perfect_top;
        }