Skip to content

Commit

Permalink
Update display settings in CziCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
soyers committed Aug 9, 2024
1 parent 1dd4751 commit e09a949
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Src/CZICmd/DisplaySettingsHelper.h
Original file line number Diff line number Diff line change
@@ -90,6 +90,18 @@ class ChannelDisplaySettingsWrapper :public libCZI::IChannelDisplaySetting

return false;
}

bool TryGetChannelIdAndName(std::tuple<std::string, std::tuple<bool, std::string>>* channelIdAndName) const override
{
if (channelIdAndName != nullptr)
{
*channelIdAndName = this->chDisplSettings.channelIdAndName;

return true;
}

return false;
}
};

class CDisplaySettingsWrapper : public libCZI::IDisplaySettings
1 change: 1 addition & 0 deletions Src/CZICmd/cmdlineoptions.h
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ struct ChannelDisplaySettings

float gamma;
std::vector<std::tuple<double, double>> splinePoints;
std::tuple<std::string, std::tuple<bool, std::string>> channelIdAndName;

bool IsGammaValid() const
{

0 comments on commit e09a949

Please sign in to comment.