99#define ZIVID_DETAIL_CAMERA_DEFAULT_VALUE(T) ZIVID_CORE_EXPORT T defaultValue(Tag<T> tag, const CameraInfo &cameraInfo);
101#define ZIVID_DETAIL_CAMERA_VALID_VALUES(T) \
102 ZIVID_DETAIL_CAMERA_DEFAULT_VALUE(T) \
103 ZIVID_CORE_EXPORT std::set<T::ValueType> validValues(Tag<T> tag, const CameraInfo &cameraInfo)
105#define ZIVID_DETAIL_CAMERA_VALID_RANGE(T) \
106 ZIVID_DETAIL_CAMERA_DEFAULT_VALUE(T) \
107 ZIVID_CORE_EXPORT Range<T::ValueType> validRange(Tag<T> tag, const CameraInfo &cameraInfo)
116 using Tag = Detail::TypeTraits::TypeIdentity<T>;
136 Settings::Processing::Filters::Experimental::ContrastDistortion::Correction::Strength);
140 Settings::Processing::Filters::Experimental::ContrastDistortion::Removal::Threshold);
161 Settings::Processing::Filters::Experimental::ContrastDistortion::Correction::Enabled);
164 Settings::Processing::Filters::Experimental::ContrastDistortion::Removal::Enabled);
176 class DefaultDataModelSetter
178 const CameraInfo &m_cameraInfo;
181 DefaultDataModelSetter(
const CameraInfo &cameraInfo)
182 : m_cameraInfo(cameraInfo)
185 DefaultDataModelSetter(
const DefaultDataModelSetter &) =
delete;
186 DefaultDataModelSetter(DefaultDataModelSetter &&) =
delete;
187 DefaultDataModelSetter &operator=(
const DefaultDataModelSetter &) =
delete;
188 DefaultDataModelSetter &operator=(DefaultDataModelSetter &&) =
delete;
191 void operator()(T &dataModelNode)
const;
194 template<typename T, typename std::enable_if<T::nodeType == DataModel::NodeType::group, bool>::type =
true>
198 group.forEach(DefaultDataModelSetter(cameraInfo));
203 void DefaultDataModelSetter::operator()(T &dataModelNode)
const
210 namespace Experimental
212 namespace SettingsInfo
226 template<
typename T,
typename Ret = Range<
typename T::ValueType>>
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
#define ZIVID_DETAIL_CAMERA_VALID_RANGE(T)
Definition: SettingsInfo.h:105
#define ZIVID_DETAIL_CAMERA_DEFAULT_VALUE(T)
Definition: SettingsInfo.h:99
#define ZIVID_DETAIL_CAMERA_VALID_VALUES(T)
Definition: SettingsInfo.h:101
Information about camera model, serial number etc.
Definition: CameraInfo.h:123
Class describing a given resolution
Definition: Resolution.h:101
Settings used when capturing with a Zivid camera
Definition: Settings.h:124
T defaultValue(const CameraInfo &cameraInfo)
Definition: SettingsInfo.h:215
ZIVID_CORE_EXPORT Resolution resolution(const CameraInfo &cameraInfo, const Settings &settings)
Ret validRange(const CameraInfo &cameraInfo)
Definition: SettingsInfo.h:227
std::set< typename T::ValueType > validValues(const CameraInfo &cameraInfo)
Definition: SettingsInfo.h:221
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99