opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
open_sim_decoration_options.h
Go to the documentation of this file.
1#pragma once
2
10
11#include <cstddef>
12#include <functional>
13#include <optional>
14#include <string>
15#include <string_view>
16#include <unordered_map>
17
18namespace osc { class AppSettingValue; }
19
20namespace opyn
21{
23 public:
25
28
31
34
37
38 // the ones below here are toggle-able options with user-facing strings etc
39 size_t getNumOptions() const;
40 bool getOptionValue(ptrdiff_t) const;
41 void setOptionValue(ptrdiff_t, bool);
43 std::optional<osc::CStringView> getOptionDescription(ptrdiff_t) const;
44
47
50
53
56
59
62
65
68
71
74
77
80
82
83 void forEachOptionAsAppSettingValue(const std::function<void(std::string_view, const osc::Variant&)>&) const;
84 void tryUpdFromValues(std::string_view keyPrefix, const std::unordered_map<std::string, osc::Variant>&);
85
86 friend bool operator==(const OpenSimDecorationOptions&, const OpenSimDecorationOptions&) = default;
87
88 private:
89 MuscleDecorationStyle m_MuscleDecorationStyle;
90 MuscleColorSource m_MuscleColorSource;
91 MuscleSizingStyle m_MuscleSizingStyle;
92 MuscleColorSourceScaling m_MuscleColourSourceScaling;
94 };
95}
Definition open_sim_decoration_options.h:22
bool getShouldShowContactForces() const
MuscleSizingStyle getMuscleSizingStyle() const
void setShouldShowScholz2015ObstacleContactHints(bool)
bool getShouldShowEffectiveMuscleLineOfActionForInsertion() const
bool getOptionValue(ptrdiff_t) const
void tryUpdFromValues(std::string_view keyPrefix, const std::unordered_map< std::string, osc::Variant > &)
void setShouldShowForceLinearComponent(bool)
bool getShouldShowPointToPointSprings() const
void setShouldShowAnatomicalMuscleLineOfActionForInsertion(bool)
bool getShouldShowScholz2015ObstacleContactHints() const
MuscleDecorationStyle getMuscleDecorationStyle() const
bool getShouldShowForceAngularComponent() const
void setShouldShowEffectiveMuscleLineOfActionForInsertion(bool)
bool getShouldShowAnatomicalMuscleLineOfActionForOrigin() const
std::optional< osc::CStringView > getOptionDescription(ptrdiff_t) const
void setShouldShowForceAngularComponent(bool)
bool getShouldShowAnatomicalMuscleLineOfActionForInsertion() const
friend bool operator==(const OpenSimDecorationOptions &, const OpenSimDecorationOptions &)=default
void setShouldShowPointToPointSprings(bool)
bool getShouldShowForceLinearComponent() const
void setMuscleColorSourceScaling(MuscleColorSourceScaling)
void setMuscleDecorationStyle(MuscleDecorationStyle)
void forEachOptionAsAppSettingValue(const std::function< void(std::string_view, const osc::Variant &)> &) const
bool getShouldShowCentersOfMass() const
osc::CStringView getOptionLabel(ptrdiff_t) const
void setMuscleSizingStyle(MuscleSizingStyle)
void setShouldShowEffectiveMuscleLineOfActionForOrigin(bool)
MuscleColorSourceScaling getMuscleColorSourceScaling() const
void setOptionValue(ptrdiff_t, bool)
void setMuscleColorSource(MuscleColorSource)
MuscleColorSource getMuscleColorSource() const
bool getShouldShowEffectiveMuscleLineOfActionForOrigin() const
void setShouldShowAnatomicalMuscleLineOfActionForOrigin(bool)
Definition c_string_view.h:12
Definition variant.h:18
Definition component_registry.h:14
MuscleSizingStyle
Definition muscle_sizing_style.h:10
MuscleColorSourceScaling
Definition muscle_color_source_scaling.h:10
MuscleColorSource
Definition muscle_color_source.h:10
MuscleDecorationStyle
Definition muscle_decoration_style.h:10
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56