Ejemplo n.º 1
0
 /// <summary>
 /// Constructor, takes care of calculations
 /// </summary>
 /// <param name="inputDataChart">Data for chart</param>
 /// <param name="lunarNode">True if lunarnode should be used</param>
 /// <param name="nodeType">Type of node (mean or oscillating)</param>
 /// <param name="houseSystem">Indication of housesystem</param>
 public PositionSet(InputDataChart inputDataChart, Boolean lunarNode, int nodeType, char houseSystem)
 {
     this.status = Constants.C_RADIXSTATUS_UNFINISHED;
     try {
         PlanetaryPositionsBuilder pb = new PlanetaryPositionsBuilder(inputDataChart.jdnr, lunarNode, nodeType);
         planetaryPositions = pb.planetaryPositionList;
         HousePositionsBuilder hb = new HousePositionsBuilder(inputDataChart.jdnr, inputDataChart.latitude,
                                                              inputDataChart.longitude, houseSystem);
         housePositionSet = hb.housePositionSet;
         this.status      = Constants.C_RADIXSTATUS_CALCULATED;
     }
     catch {
         this.status = Constants.C_RADIXSTATUS_ERROR;
     }
 }
Ejemplo n.º 2
0
        private void calcIt(Boolean lunarNode, int nodeType)
        {
            PlanetaryPositionsBuilder ppb = new PlanetaryPositionsBuilder(inputDataProg.jdnr, lunarNode, nodeType);
            int id = -1;

            for (int i = 0; i < ppb.planetaryPositionList.Count; i++)
            {
                id = ((PlanetaryPosition)ppb.planetaryPositionList[i]).planetId;
                if ((id != Constants.SE_MOON || inputDataProg.useMoon4Transits) &&
                    (id > Constants.SE_VENUS || inputDataProg.useInnerPlanets4Transits))
                {
                    this.planetaryPositions.Add((PlanetaryPosition)ppb.planetaryPositionList[i]);
                }
            }
        }
Ejemplo n.º 3
0
        private void calcIt(Boolean lunarNode, int nodeType)
        {
            // define jd for secundary positions
            double timeSpanYears = inputDataProg.jdnr - radixJD;
            double timeSpanDays  = timeSpanYears / 365.24;  // mean tropical year
            double progrJD       = radixJD + timeSpanDays;

            PlanetaryPositionsBuilder ppb = new PlanetaryPositionsBuilder(progrJD, lunarNode, nodeType);
            int id = -1;

            for (int i = 0; i < ppb.planetaryPositionList.Count; i++)
            {
                id = ((PlanetaryPosition)ppb.planetaryPositionList[i]).planetId;
                if (id <= Constants.SE_SATURN)
                {
                    this.planetaryPositions.Add((PlanetaryPosition)ppb.planetaryPositionList[i]);
                }
            }
        }