What’s New in the Pulse Physiology Engine 4.4.0
×
SEHistogramFractionVsLength.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/properties/SEHistogram.h"
6
8{
9 friend class PBProperty;//friend the serialization class
10public:
11
14
15 void Copy(const SEHistogramFractionVsLength& s); // Copies, even if not valid
16 bool Set(const SEHistogramFractionVsLength& s); // Returns false if is not invalid (does not copy)
17
18 void Invalidate() override;
19
20 virtual double GetFractionValue(size_t index) const;
21 virtual std::vector<double>& GetFraction();
22 virtual const std::vector<double>& GetFraction() const;
23
24 virtual double GetLengthValue(size_t index, const LengthUnit& unit) const;
25 virtual std::vector<double>& GetLength();
26 virtual const std::vector<double>& GetLength() const;
27 virtual const LengthUnit* GetLengthUnit() const;
28 virtual void SetLengthUnit(const LengthUnit& unit);
29
30protected:
31 const LengthUnit* m_LengthUnit = nullptr;
32};
Definition: SEScalarLength.h:8
Definition: PBProperties.h:87
void Invalidate() override
Definition: SEFunction.cpp:50
Definition: SEHistogramFractionVsLength.h:8
Definition: SEHistogram.h:8
bool Set(const SEHistogram &s)
Definition: SEHistogram.cpp:24
void Copy(const SEHistogram &s)
Definition: SEHistogram.cpp:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.