コード例 #1
0
ファイル: Aperture3R.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Create new Aperture for fotometry.
 /// </summary>
 /// <param name="radius1">
 /// Radius of circle to measure signal of star (and background).
 /// </param>
 /// <param name="radius2">
 /// Inner radius of ring to measure background.
 /// </param>
 /// <param name="radius3">
 /// Outer radius of ring to measure background.
 /// </param>
 /// <param name="star">
 /// Measured star.
 /// </param>
 public Aperture3R(float radius1, float radius2, float radius3, IStarTracker star)
 {
     _radius1 = radius1;
     _radius2 = radius2;
     _radius3 = radius3;
     _star = star;
 }
コード例 #2
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax for static object(star) with default Tolerance.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 /// <param name="reference">
 /// Reference star in tracking, null means no reference.
 /// </param>
 public StarTrackerByMax(Vector2D position, IStarTracker reference)
 {
     _position = position;
     _tolerance = 10.0f;
     _reference = reference;
     _movable = false;
     if (_reference != null)
         _relPosition = _position - _reference.Position;
 }
コード例 #3
0
ファイル: ImageForm.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Add star, that will be marked on image.
 /// </summary>
 /// <param name="star">
 /// A star that will be marked on image.
 /// </param>
 public void AddStar(IStarTracker star)
 {
     _stars.Add(star);
     Refresh();
 }
コード例 #4
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax with no Reference.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 /// <param name="tolerance">
 /// Tolerance in star tracking.
 /// </param>
 public StarTrackerByMax(Vector2D position, float tolerance)
 {
     _position = position;
     _tolerance = tolerance;
     _reference = null;
 }
コード例 #5
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax with no Reference and default Tolerance.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 public StarTrackerByMax(Vector2D position)
 {
     _position = position;
     _tolerance = 10.0f;
     _reference = null;
 }
コード例 #6
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 /// <param name="tolerance">
 /// Tolerance in star tracking.
 /// </param>
 /// <param name="reference">
 /// Reference star in tracking, null means no reference.
 /// </param>
 /// <param name="movable">
 /// Flag sets for movable object (planetoids, minor planets) and clear for static objects (stars).
 /// </param>
 /// <param name="relPosition">
 /// Position relative to reference star.
 /// </param>
 public StarTrackerByMax(Vector2D position, float tolerance, IStarTracker reference, bool movable, Vector2D relPosition)
 {
     _position = position;
     _tolerance = tolerance;
     _reference = reference;
     _movable = movable;
     _relPosition = relPosition;
 }
コード例 #7
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax for static object(star) with default Tolerance.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 /// <param name="reference">
 /// Reference star in tracking, null means no reference.
 /// </param>
 /// <param name="relPosition">
 /// Position relative to reference star.
 /// </param>
 public StarTrackerByMax(Vector2D position, IStarTracker reference, Vector2D relPosition)
 {
     _position = position;
     _tolerance = 10.0f;
     _reference = reference;
     _movable = false;
     _relPosition = relPosition;
 }
コード例 #8
0
ファイル: StarTrackerByMax.cs プロジェクト: poles-p/SARA
 /// <summary>
 /// Creates StarTrackerByMax.
 /// </summary>
 /// <param name="position">
 /// Initial position of tracked object.
 /// </param>
 /// <param name="tolerance">
 /// Tolerance in star tracking.
 /// </param>
 /// <param name="reference">
 /// Reference star in tracking, null means no reference.
 /// </param>
 /// <param name="movable">
 /// Flag sets for movable object (planetoids, minor planets) and clear for static objects (stars)
 /// </param>
 public StarTrackerByMax(Vector2D position, float tolerance, IStarTracker reference, bool movable)
 {
     _position = position;
     _tolerance = tolerance;
     _reference = reference;
     _movable = movable;
     if (_reference != null)
         _relPosition = _position - _reference.Position;
 }