| 17 | { |
| 18 | |
| 19 | class ViewTransform::Impl |
| 20 | { |
| 21 | public: |
| 22 | std::string m_name; |
| 23 | std::string m_family; |
| 24 | std::string m_description; |
| 25 | ReferenceSpaceType m_referenceSpaceType{ REFERENCE_SPACE_SCENE }; |
| 26 | std::map<std::string, std::string> m_interchangeAttribs; |
| 27 | |
| 28 | TransformRcPtr m_toRefTransform; |
| 29 | TransformRcPtr m_fromRefTransform; |
| 30 | |
| 31 | TokensManager m_categories; |
| 32 | |
| 33 | Impl() = delete; |
| 34 | explicit Impl(ReferenceSpaceType referenceSpace) |
| 35 | : m_referenceSpaceType(referenceSpace) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | Impl(const Impl &) = delete; |
| 40 | ~Impl() = default; |
| 41 | |
| 42 | Impl & operator= (const Impl & rhs) |
| 43 | { |
| 44 | if (this != &rhs) |
| 45 | { |
| 46 | m_name = rhs.m_name; |
| 47 | m_family = rhs.m_family; |
| 48 | m_description = rhs.m_description; |
| 49 | |
| 50 | m_referenceSpaceType = rhs.m_referenceSpaceType; |
| 51 | m_interchangeAttribs = rhs.m_interchangeAttribs; |
| 52 | |
| 53 | m_toRefTransform = rhs.m_toRefTransform ? rhs.m_toRefTransform->createEditableCopy() : |
| 54 | rhs.m_toRefTransform; |
| 55 | |
| 56 | m_fromRefTransform = rhs.m_fromRefTransform ? |
| 57 | rhs.m_fromRefTransform->createEditableCopy() : |
| 58 | rhs.m_fromRefTransform; |
| 59 | |
| 60 | m_categories = rhs.m_categories; |
| 61 | } |
| 62 | return *this; |
| 63 | } |
| 64 | }; |
| 65 | |
| 66 | |
| 67 | ViewTransformRcPtr ViewTransform::Create(ReferenceSpaceType referenceSpace) |
nothing calls this directly
no test coverage detected