opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
model_state_pair_info.h
Go to the documentation of this file.
1#pragma once
2
3#include <OpenSim/Common/ComponentPath.h>
5
6namespace opyn { class ModelStatePair; }
7
8namespace opyn
9{
10 // a cheap-to-copy holder for top-level model+state info
11 //
12 // handy for caches that need to check if the info has changed
13 class ModelStatePairInfo final {
14 public:
17
18 float getFixupScaleFactor() const { return m_FixupScaleFactor; }
19
20 friend bool operator==(const ModelStatePairInfo&, const ModelStatePairInfo&) = default;
21
22 private:
23 osc::UID m_ModelVersion;
24 osc::UID m_StateVersion;
25 OpenSim::ComponentPath m_Selection;
26 OpenSim::ComponentPath m_Hover;
27 float m_FixupScaleFactor = 1.0f;
28 };
29}
Definition model_state_pair_info.h:13
ModelStatePairInfo(const opyn::ModelStatePair &)
friend bool operator==(const ModelStatePairInfo &, const ModelStatePairInfo &)=default
float getFixupScaleFactor() const
Definition model_state_pair_info.h:18
Definition model_state_pair.h:19
Definition uid.h:14
Definition component_registry.h:14