MCPcopy Create free account
hub / github.com/Kitware/VTK / DeepCopy

Method DeepCopy

IO/Image/vtkMedicalImageProperties.cxx:361–404  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

359
360//------------------------------------------------------------------------------
361void vtkMedicalImageProperties::DeepCopy(vtkMedicalImageProperties* p)
362{
363 if (p == nullptr)
364 {
365 return;
366 }
367
368 this->Clear();
369
370 this->SetStudyDate(p->GetStudyDate());
371 this->SetAcquisitionDate(p->GetAcquisitionDate());
372 this->SetStudyTime(p->GetStudyTime());
373 this->SetAcquisitionTime(p->GetAcquisitionTime());
374 this->SetConvolutionKernel(p->GetConvolutionKernel());
375 this->SetEchoTime(p->GetEchoTime());
376 this->SetEchoTrainLength(p->GetEchoTrainLength());
377 this->SetExposure(p->GetExposure());
378 this->SetExposureTime(p->GetExposureTime());
379 this->SetGantryTilt(p->GetGantryTilt());
380 this->SetImageDate(p->GetImageDate());
381 this->SetImageNumber(p->GetImageNumber());
382 this->SetImageTime(p->GetImageTime());
383 this->SetInstitutionName(p->GetInstitutionName());
384 this->SetKVP(p->GetKVP());
385 this->SetManufacturerModelName(p->GetManufacturerModelName());
386 this->SetManufacturer(p->GetManufacturer());
387 this->SetModality(p->GetModality());
388 this->SetPatientAge(p->GetPatientAge());
389 this->SetPatientBirthDate(p->GetPatientBirthDate());
390 this->SetPatientID(p->GetPatientID());
391 this->SetPatientName(p->GetPatientName());
392 this->SetPatientSex(p->GetPatientSex());
393 this->SetRepetitionTime(p->GetRepetitionTime());
394 this->SetSeriesDescription(p->GetSeriesDescription());
395 this->SetSeriesNumber(p->GetSeriesNumber());
396 this->SetSliceThickness(p->GetSliceThickness());
397 this->SetStationName(p->GetStationName());
398 this->SetStudyDescription(p->GetStudyDescription());
399 this->SetStudyID(p->GetStudyID());
400 this->SetXRayTubeCurrent(p->GetXRayTubeCurrent());
401 this->SetDirectionCosine(p->GetDirectionCosine());
402
403 this->Internals->DeepCopy(p->Internals);
404}
405
406//------------------------------------------------------------------------------
407int vtkMedicalImageProperties::AddWindowLevelPreset(double w, double l)

Callers

nothing calls this directly

Calls 10

ClearMethod · 0.95
SetImageNumberMethod · 0.80
GetImageNumberMethod · 0.80
SetModalityMethod · 0.80
GetModalityMethod · 0.80
SetPatientIDMethod · 0.80
GetPatientIDMethod · 0.80
SetPatientNameMethod · 0.80
GetStudyIDMethod · 0.80
GetPatientNameMethod · 0.45

Tested by

no test coverage detected