opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
overlay_decoration_options.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <cstddef>
8#include <functional>
9#include <string_view>
10#include <unordered_map>
11
12namespace opyn
13{
15 public:
16 size_t getNumOptions() const;
17 bool getOptionValue(ptrdiff_t) const;
18 void setOptionValue(ptrdiff_t, bool);
21
22 bool getDrawXZGrid() const;
23 void setDrawXZGrid(bool);
24
25 bool getDrawXYGrid() const;
26 void setDrawXYGrid(bool);
27
28 bool getDrawYZGrid() const;
29 void setDrawYZGrid(bool);
30
31 bool getDrawAxisLines() const;
32 void setDrawAxisLines(bool);
33
34 bool getDrawAABBs() const;
35 void setDrawAABBs(bool);
36
37 bool getDrawBVH() const;
38 void setDrawBVH(bool);
39
40 void forEachOptionAsAppSettingValue(const std::function<void(std::string_view, const osc::Variant&)>&) const;
41 void tryUpdFromValues(std::string_view keyPrefix, const std::unordered_map<std::string, osc::Variant>&);
42
43 friend bool operator==(const OverlayDecorationOptions&, const OverlayDecorationOptions&) = default;
44
45 private:
47 };
48}
Definition overlay_decoration_options.h:14
void setOptionValue(ptrdiff_t, bool)
osc::CStringView getOptionLabel(ptrdiff_t) const
friend bool operator==(const OverlayDecorationOptions &, const OverlayDecorationOptions &)=default
osc::CStringView getOptionGroupLabel(ptrdiff_t) const
void forEachOptionAsAppSettingValue(const std::function< void(std::string_view, const osc::Variant &)> &) const
bool getOptionValue(ptrdiff_t) const
void tryUpdFromValues(std::string_view keyPrefix, const std::unordered_map< std::string, osc::Variant > &)
Definition c_string_view.h:12
Definition variant.h:18
Definition component_registry.h:14
OverlayDecorationOptionFlags
Definition overlay_decoration_option_flags.h:13