/// <summary> /// Default Constructor. /// </summary> public CompositePattern() { _patternA = null; _patternB = null; _rotation_BRelativeA = 180.0; _translationX = 0; _translationY = 0; _translationZ = 0; _transformationBToA = Matrix.Identity(4, 4); _logger = LogManager.GetLogger(typeof(CompositePattern)); }
/// <summary> /// Deserialization constructor. /// </summary> /// <param name="info"></param> /// <param name="context"></param> public CompositePattern(SerializationInfo info, StreamingContext context) { _patternA = (CalibrationPattern)info.GetValue("patternA", typeof(CalibrationPattern)); _patternB = (CalibrationPattern)info.GetValue("patternB", typeof(CalibrationPattern)); _rotation_BRelativeA = (double)info.GetValue("rotationBA", typeof(double)); _translationX = (double)info.GetValue("translationX", typeof(double)); _translationY = (double)info.GetValue("translationY", typeof(double)); _translationZ = (double)info.GetValue("translationZ", typeof(double)); SetTransformationMatrixBA(); _logger = LogManager.GetLogger(typeof(CompositePattern)); }