Improve plotting
This commit is contained in:
+12
-10
@@ -111,7 +111,18 @@ DatasetSettings &DatasetSettings::Compression(CompressionAlgorithm input) {
|
||||
}
|
||||
|
||||
DatasetSettings &DatasetSettings::SetUnitCell(const std::optional<UnitCell> &cell) {
|
||||
unit_cell = cell;
|
||||
if (cell && (cell->a * cell->b * cell->c * cell->alpha * cell->beta * cell->gamma != 0.0)) {
|
||||
|
||||
check_min("Angle alpha", cell->alpha, 0);
|
||||
check_min("Angle beta", cell->beta, 0);
|
||||
check_min("Angle gamma", cell->gamma, 0);
|
||||
|
||||
check_max("Angle alpha", cell->alpha, 360);
|
||||
check_max("Angle beta", cell->beta, 360);
|
||||
check_max("Angle gamma", cell->gamma, 360);
|
||||
unit_cell = cell;
|
||||
} else
|
||||
unit_cell.reset();
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -185,11 +196,6 @@ DatasetSettings &DatasetSettings::ImageAppendix(const std::string &input) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
DatasetSettings &DatasetSettings::ROISummation(const std::optional<ROIRectangle> &input) {
|
||||
roi_sum = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
DatasetSettings &DatasetSettings::PhotonEnergyMultiplayer(float input) {
|
||||
check_finite("Photon energy multiplier", input);
|
||||
check_min("Photon energy multiplier", input, 1/64.f);
|
||||
@@ -254,10 +260,6 @@ std::string DatasetSettings::GetImageAppendix() const {
|
||||
return image_appendix;
|
||||
}
|
||||
|
||||
std::optional<ROIRectangle> DatasetSettings::GetROISummation() const {
|
||||
return roi_sum;
|
||||
}
|
||||
|
||||
float DatasetSettings::GetPhotonEnergyMultiplier() const {
|
||||
return photon_energy_multiplier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user