ACF $AcfVersion:0$
IUnitInfo.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7
8// ACF includes
9#include <istd/IChangeable.h>
10#include <istd/TRange.h>
11#include <imath/IDoubleManip.h>
12
13
14namespace imath
15{
16
17
21class IUnitInfo: virtual public istd::IChangeable
22{
23public:
50
54 virtual int GetUnitType() const = 0;
55
59 virtual QString GetUnitName() const = 0;
60
64 virtual double GetDisplayMultiplicationFactor() const = 0;
65
70 virtual istd::CRange GetValueRange() const = 0;
71
75 virtual const imath::IDoubleManip& GetValueManip() const = 0;
76};
77
78
79} // namespace imath
80
81
Interface for all manipulation using values represent as double.
Common interface to get information about a measurement unit.
Definition IUnitInfo.h:22
virtual double GetDisplayMultiplicationFactor() const =0
Get multiplication factor used to calculate user input values.
virtual const imath::IDoubleManip & GetValueManip() const =0
Return number manipulator object for numeric value.
virtual QString GetUnitName() const =0
Get name of unit.
UnitType
General type of unit.
Definition IUnitInfo.h:28
@ UT_TECHNICAL
Technical unit without physical dimension like pixel.
Definition IUnitInfo.h:40
@ UT_UNKNOWN
Unit type is unknown.
Definition IUnitInfo.h:32
@ UT_COUNTER
Integer number counter, it represents number of occurence of something.
Definition IUnitInfo.h:48
@ UT_PHYSICAL
Physical unit like volt or amper.
Definition IUnitInfo.h:36
@ UT_RELATIVE
Unit relative to something others (for example %).
Definition IUnitInfo.h:44
virtual istd::CRange GetValueRange() const =0
Get range of possible values.
virtual int GetUnitType() const =0
Get type of unit.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
Package with mathematical functions and algebraical primitives.