Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
namespace MikroPic.EdaTools.v1.Panel.Model.Items {
using System;
using MikroPic.EdaTools.v1.Base.Geometry;
public sealed class EdaPcbItem: EdaPanelItem {
private EdaPoint _position;
private EdaSize _size;
private EdaAngle _rotation;
private readonly string _fileName;
/// <summary>
/// Constructor de l'objecte.
/// </summary>
/// <param name="fileName">Nom del fitxer de la placa.</param>
///
public EdaPcbItem(string fileName) :
base() {
if (String.IsNullOrEmpty(fileName))
throw new ArgumentNullException(nameof(fileName));
_fileName = fileName;
}
/// <summary>
/// Constructor de l'objecte.
/// </summary>
/// <param name="fileName">Nom del fitxer de la placa.</param>
/// <param name="position">Posicio de la placa d'ins del panell.</param>
/// <param name="size">Tamany de la envolvent de la placa.</param>
/// <param name="rotation">Angle de rotacio de la placa centrat en la posicio.</param>
///
public EdaPcbItem(string fileName, EdaPoint position, EdaSize size, EdaAngle rotation) {
if (String.IsNullOrEmpty(fileName))
throw new ArgumentNullException(nameof(fileName));
_position = position;
_size = size;
_rotation = rotation;
_fileName = fileName;
}
public override void AcceptVisitor(IEdaPanelVisitor visitor) {
visitor.Visit(this);
}
/// <summary>
/// Obte el nom del fitxer de la placa.
/// </summary>
///
public string FileName => _fileName;
/// <summary>
/// Obte o asigna la posicio.
/// </summary>
///
public EdaPoint Position {
set {
_position = value;
}
get {
return _position;
}
}
/// <summary>
/// Obte o asigna el tamany de la envolvent..
/// </summary>
///
public EdaSize Size {
set {
_size = value;
}
get {
return _size;
}
}
/// <summary>
/// Obte o asigna la rotacio.
/// </summary>
///
public EdaAngle Rotation {
set {
_rotation = value;
}
get {
return _rotation;
}
}
}
}
1de7a351fThis file is pinned to the selected release. Download the original to open it in your design tool.