Ejemplo n.º 1
0
 public ManualContourDTO(string _DICOMid, string _tag, List <Line> _lines, int _width, int _height, StatisticsResult _statistics,
                         List <Point> _centralPoints, string _pixelSpacing)
 {
     guid          = Guid.NewGuid();
     dicomid       = _DICOMid;
     tag           = _tag;
     lines         = new List <Line>(_lines);
     width         = _width;
     height        = _height;
     statistics    = _statistics;
     centralPoints = new List <Point>(_centralPoints);
     pixelSpacing  = _pixelSpacing;
 }
 /// <summary>
 /// Constructor for result of semi-automatic calculations, contour.
 /// Good for editing exisiting contour
 /// </summary>
 /// <param name="_guid"> Guid in situation, when this one contour exists and we want to edit </param>
 /// <param name="_DICOMid"> DICOMId,to which one this contour is referenced </param>
 /// <param name="_tag"> User text, for example "Bone" or "Neoplastic changes" </param>
 /// <param name="_lines"> List of lines, must exists at least one line </param>
 /// <param name="_width"> Canvas width, currently not used </param>
 /// <param name="_height"> Canvas height, currently not used </param>
 /// <param name="_statistics"> Statistics of contour, counting after creating the contour by semi-automatic </param>
 /// <param name="_centralPoints"> List of central points, must exists at least one Point </param>
 public SemiAutomaticContourDTO(Guid _guid, string _DICOMid, string _tag, List <LinePointsAndPixels> _lines, int _width, int _height,
                                StatisticsResult _statistics, List <Point> _centralPoints, string _pixelSpacing)
 {
     guid       = _guid;
     dicomid    = _DICOMid;
     tag        = _tag;
     lines      = new List <LinePointsAndPixels>(_lines);
     width      = _width;
     height     = _height;
     statistics = _statistics;
     if (_centralPoints != null)
     {
         centralPoints = new List <Point>(_centralPoints);
     }
     pixelSpacing = _pixelSpacing;
 }