| | 1 | | using System; |
| | 2 | |
|
| | 3 | | namespace ReFlex.Core.Common.Components |
| | 4 | | { |
| | 5 | | [Serializable] |
| | 6 | | public class Point3Indexed |
| | 7 | | { |
| | 8 | | /// <inheritdoc /> |
| | 9 | | /// <summary> |
| | 10 | | /// Gets or sets the x value. |
| | 11 | | /// </summary> |
| | 12 | | /// <value> |
| | 13 | | /// The x value. |
| | 14 | | /// </value> |
| 0 | 15 | | public float X { get; set; } |
| | 16 | |
|
| | 17 | | /// <inheritdoc /> |
| | 18 | | /// <summary> |
| | 19 | | /// Gets or sets the y value. |
| | 20 | | /// </summary> |
| | 21 | | /// <value> |
| | 22 | | /// The y value. |
| | 23 | | /// </value> |
| 0 | 24 | | public float Y { get; set; } |
| | 25 | |
|
| | 26 | | /// <inheritdoc /> |
| | 27 | | /// <summary> |
| | 28 | | /// Gets or sets the z value. |
| | 29 | | /// </summary> |
| | 30 | | /// <value> |
| | 31 | | /// The z value. |
| | 32 | | /// </value> |
| 0 | 33 | | public float Z { get; set; } |
| | 34 | |
|
| 0 | 35 | | public int Column { get; set; } |
| | 36 | |
|
| 0 | 37 | | public int Row { get; set; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// Returns true if ... is valid. |
| | 41 | | /// </summary> |
| | 42 | | /// <value> |
| | 43 | | /// <c>true</c> if this instance is valid; otherwise, <c>false</c>. |
| | 44 | | /// </value> |
| 0 | 45 | | public bool IsValid { get; set; } = true; |
| | 46 | |
|
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Returns true if the point is excluded by a filter. |
| | 50 | | /// </summary> |
| | 51 | | /// <value> |
| | 52 | | /// <c>true</c> if this instance is removed by a filtered, otherwise <c>false</c>. |
| | 53 | | /// </value> |
| 0 | 54 | | public bool IsFiltered { get; set; } = false; |
| | 55 | |
|
| 0 | 56 | | public Point3Indexed(Point3 point, int col, int row) |
| 0 | 57 | | { |
| 0 | 58 | | X = point.X; |
| 0 | 59 | | Y = point.Y; |
| 0 | 60 | | Z = point.Z; |
| 0 | 61 | | IsValid = point.IsValid; |
| 0 | 62 | | IsFiltered = point.IsFiltered; |
| 0 | 63 | | Column = col; |
| 0 | 64 | | Row = row; |
| 0 | 65 | | } |
| | 66 | |
|
| | 67 | | } |
| | 68 | | } |