Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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();
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
 /// <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;
 }
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 /// <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;
 }
Esempio n. 8
0
 /// <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;
 }