public override string ToString(bool verbose) { string s = ""; s = "FourStarsAlignment" + Environment.NewLine; s += "\tObjects: (" + stars_[0].Name + "," + stars_[1].Name + ") - (" + stars_[2].Name + "," + stars_[3].Name + ")" + Environment.NewLine; if (verbose) { s += "\tEquatorial Angles: " + (stars_[0].EquAngle * Const.toDeg).ToString("F5") + ", " + (stars_[2].EquAngle * Const.toDeg).ToString("F5") + Environment.NewLine; s += "\tRotation: " + rotationToStand_.ToString() + Environment.NewLine; } try { ForceAlignment(); if (verbose) { if (iterationCnt_ <= 0) { s += "\tType: static" + Environment.NewLine; } else { s += "\tType: dynamic, " + iterationCnt_.ToString() + " iterations" + Environment.NewLine; } s += "\th Offset: " + (altOffset_ * Const.toDeg).ToString("F5") + Environment.NewLine; } s += "\tEquatorial Axis: " + equAxis_.ToString() + Environment.NewLine; if (verbose) { s += "\tEqu Angle Factor: " + (equHorzDiff_ / equScopeDiff_).ToString("F5") + Environment.NewLine; s += "\tReported Equ Angle Diff: " + ((stars_[2].EquAngle - stars_[0].EquAngle) * Const.toDeg).ToString("F5") + Environment.NewLine; s += "\tActual Equ Angle Diff: " + (equHorzDiff_ * Const.toDeg).ToString("F5") + Environment.NewLine; s += "\tQuality: " + quality_.ToString() + Environment.NewLine; } } catch (Exception e) { s += "\tException during alignment: " + e.Message + Environment.NewLine; } return(s); }
public override string ToString(bool verbose) { string s = "PolarCorrectedAlignment" + Environment.NewLine; if (stars_ != null && stars_.Length > 0) { s += "\tObjects: "; bool first = true; for (int i = 0; i < stars_.Length; ++i) { if (stars_[i] != null) { if (first) { first = false; } else { s += ","; } s += stars_[i].Name; } } s += Environment.NewLine; } s += "\tEquatorial Axis: " + equAxis_.ToString() + Environment.NewLine; if (verbose) { s += "\th Offset: " + (altOffset_ * Const.toDeg).ToString("F5") + Environment.NewLine; s += "\tRotation: " + rotationToStand_.ToString() + Environment.NewLine; } s += "\tCorrection: " + correction_.ToString() + Environment.NewLine; s += "\tEqu Angle Factor: " + equAngleFactor_.ToString("F5") + Environment.NewLine; return(s); }
public override string ToString(bool verbose) { string s = ""; if (stars_[0] == null || stars_[1] == null) { s += "No Alignment" + Environment.NewLine; s += "\tEquatorial Axis: " + equAxis_.ToString() + Environment.NewLine; } else { s = "TwoStarsAlignment" + Environment.NewLine; s += "\tEquatorial Axis: " + equAxis_.ToString() + Environment.NewLine; if (verbose) { s += "\tEquatorial Angle: " + (stars_[0].EquAngle * Const.toDeg).ToString("F5") + Environment.NewLine; } s += "\tObjects: " + stars_[0].Name + ", " + stars_[1].Name + Environment.NewLine; try { ForceAlignment(); if (verbose) { s += "\th Offset: " + (altOffset_ * Const.toDeg).ToString("F5") + Environment.NewLine; s += "\tRotation: " + rotationToStand_.ToString() + Environment.NewLine; s += "\tQuality: " + quality_.ToString() + Environment.NewLine; } } catch (Exception e) { s += "\tException during alignment: " + e.Message + Environment.NewLine; } } return(s); }