Home
last modified time | relevance | path

Searched refs:LengthUnit (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/dports/science/axom/axom-0.6.1/src/axom/klee/tests/
H A Dklee_units.cpp25 LengthUnit units;
74 EXPECT_DOUBLE_EQ(10, getConversionFactor(LengthUnit::m, LengthUnit::dm)); in TEST()
75 EXPECT_DOUBLE_EQ(10, getConversionFactor(LengthUnit::dm, LengthUnit::cm)); in TEST()
76 EXPECT_DOUBLE_EQ(10, getConversionFactor(LengthUnit::cm, LengthUnit::mm)); in TEST()
97 EXPECT_TRUE(areEquivalent({1, LengthUnit::km}, {1000, LengthUnit::m})); in TEST()
98 EXPECT_TRUE(areEquivalent({1, LengthUnit::m}, {10, LengthUnit::dm})); in TEST()
99 EXPECT_TRUE(areEquivalent({1, LengthUnit::dm}, {10, LengthUnit::cm})); in TEST()
100 EXPECT_TRUE(areEquivalent({1, LengthUnit::cm}, {10, LengthUnit::mm})); in TEST()
101 EXPECT_TRUE(areEquivalent({1, LengthUnit::mm}, {1000, LengthUnit::um})); in TEST()
102 EXPECT_TRUE(areEquivalent({1, LengthUnit::um}, {1000, LengthUnit::nm})); in TEST()
[all …]
H A Dklee_geometry_operators_io.cpp220 readOperators({Dimensions::Two, LengthUnit::cm}, R"( in TEST()
361 readOperators({Dimensions::Three, LengthUnit::cm}, R"( in TEST()
472 {Dimensions::Three, LengthUnit::cm})); in TEST()
501 {Dimensions::Three, LengthUnit::cm})); in TEST()
530 {Dimensions::Three, LengthUnit::cm})); in TEST()
645 readOperators({Dimensions::Three, LengthUnit::cm}, R"( in TEST()
660 readOperators({Dimensions::Two, LengthUnit::cm}, R"( in TEST()
704 std::make_shared<UnitConverter>(LengthUnit::mm, in SetUp()
736 EXPECT_EQ(LengthUnit::mm, in TEST_F()
769 EXPECT_EQ(LengthUnit::inches, in TEST_F()
[all …]
H A Dklee_geometry_operators.cpp87 LengthUnit::mm}; in TEST()
114 Translation translation {offset, {dims, LengthUnit::cm}}; in TEST()
205 {Dimensions::Three, LengthUnit::cm}}; in TEST()
249 Scale scale {2, 3, 4, {Dimensions::Three, LengthUnit::cm}}; in TEST()
257 Scale scale {2, 3, 4, {Dimensions::Three, LengthUnit::cm}}; in TEST()
265 Scale scale {1, 2, 3, {Dimensions::Three, LengthUnit::cm}}; in TEST()
273 UnitConverter converter {LengthUnit::m, {Dimensions::Three, LengthUnit::cm}}; in TEST()
282 UnitConverter converter {LengthUnit::m, {Dimensions::Three, LengthUnit::cm}}; in TEST()
290 UnitConverter converter {LengthUnit::m, {Dimensions::Three, LengthUnit::cm}}; in TEST()
298 CompositeOperator op {{Dimensions::Three, LengthUnit::cm}}; in TEST()
[all …]
/dports/science/axom/axom-0.6.1/src/axom/klee/
H A DUnits.cpp38 {"km", LengthUnit::km}, in parseLengthUnits()
39 {"m", LengthUnit::m}, in parseLengthUnits()
40 {"dm", LengthUnit::dm}, in parseLengthUnits()
41 {"cm", LengthUnit::cm}, in parseLengthUnits()
42 {"mm", LengthUnit::mm}, in parseLengthUnits()
43 {"um", LengthUnit::um}, in parseLengthUnits()
44 {"nm", LengthUnit::nm}, in parseLengthUnits()
70 double getConversionFactor(LengthUnit sourceUnits, LengthUnit targetUnits) in getConversionFactor()
73 {LengthUnit::km, 1e5}, in getConversionFactor()
74 {LengthUnit::m, 1e2}, in getConversionFactor()
[all …]
H A DUnits.hpp22 enum class LengthUnit enum
49 LengthUnit parseLengthUnits(const std::string &unitsAsString,
60 LengthUnit parseLengthUnits(const inlet::Proxy &unitsAsProxy);
71 double getConversionFactor(LengthUnit sourceUnits, LengthUnit targetUnits);
81 double convert(double sourceValue, LengthUnit sourceUnits, LengthUnit targetUnits);
93 void convertAll(T &values, LengthUnit sourceUnits, LengthUnit targetUnits) in convertAll()
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/svgtypes-0.5.0/src/
H A Dlength.rs15 pub enum LengthUnit { enum
35 pub unit: LengthUnit,
86 LengthUnit::None => b"", in write_buf_opt()
87 LengthUnit::Em => b"em", in write_buf_opt()
88 LengthUnit::Ex => b"ex", in write_buf_opt()
89 LengthUnit::Px => b"px", in write_buf_opt()
90 LengthUnit::In => b"in", in write_buf_opt()
91 LengthUnit::Cm => b"cm", in write_buf_opt()
92 LengthUnit::Mm => b"mm", in write_buf_opt()
93 LengthUnit::Pt => b"pt", in write_buf_opt()
[all …]
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/svgtypes-0.5.0/src/
H A Dlength.rs15 pub enum LengthUnit { enum
35 pub unit: LengthUnit,
86 LengthUnit::None => b"", in write_buf_opt()
87 LengthUnit::Em => b"em", in write_buf_opt()
88 LengthUnit::Ex => b"ex", in write_buf_opt()
89 LengthUnit::Px => b"px", in write_buf_opt()
90 LengthUnit::In => b"in", in write_buf_opt()
91 LengthUnit::Cm => b"cm", in write_buf_opt()
92 LengthUnit::Mm => b"mm", in write_buf_opt()
93 LengthUnit::Pt => b"pt", in write_buf_opt()
[all …]
/dports/cad/sweethome3d/SweetHome3D-6.6.4-src/test/com/eteks/sweethome3d/junit/
H A DUserPreferencesPanelTest.java42 import com.eteks.sweethome3d.model.LengthUnit;
232 LengthUnit.INCH.getFormat().format(LengthUnit.inchToCentimeter(11))); in testLengthUnit()
234 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(11 + 12))); in testLengthUnit()
236 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(11 + 12 + 0.125f))); in testLengthUnit()
238LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(-(11 + 12 + 0.125f)))); in testLengthUnit()
240 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(-(11 + 0.125f)))); in testLengthUnit()
242 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(-0.125f))); in testLengthUnit()
244 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(-12))); in testLengthUnit()
256 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(11))); in testLengthUnit()
258 LengthUnit.INCH.getFormatWithUnit().format(LengthUnit.inchToCentimeter(11 + 12))); in testLengthUnit()
[all …]
/dports/cad/librepcb/librepcb-0.1.6/libs/librepcb/common/units/
H A Dlengthunit.h62 class LengthUnit final {
63 Q_DECLARE_TR_FUNCTIONS(LengthUnit)
101 LengthUnit(const LengthUnit& other) noexcept : mUnit(other.mUnit) {} in LengthUnit() function
106 ~LengthUnit() noexcept {} in ~LengthUnit()
268 static LengthUnit fromIndex(int index);
283 static LengthUnit millimeters() noexcept { in millimeters()
286 static LengthUnit micrometers() noexcept { in micrometers()
289 static LengthUnit nanometers() noexcept { in nanometers()
292 static LengthUnit inches() noexcept { in inches()
295 static LengthUnit mils() noexcept { return LengthUnit(LengthUnit_t::Mils); } in mils()
[all …]
H A Dlengthunit.cpp41 QString LengthUnit::toStr() const noexcept { in toStr()
60 QString LengthUnit::toStringTr() const noexcept { in toStringTr()
79 QString LengthUnit::toShortStringTr() const noexcept { in toShortStringTr()
174 Length LengthUnit::convertFromUnit(qreal length) const { in convertFromUnit()
214 LengthUnit LengthUnit::fromString(const QString& str) { in fromString()
215 foreach (const LengthUnit& unit, getAllUnits()) { in fromString()
225 LengthUnit LengthUnit::fromIndex(int index) { in fromIndex()
229 return LengthUnit(static_cast<LengthUnit_t>(index)); in fromIndex()
232 QList<LengthUnit> LengthUnit::getAllUnits() noexcept { in getAllUnits()
233 QList<LengthUnit> list; in getAllUnits()
[all …]
/dports/graphics/librsvg2-rust/librsvg-2.52.8/src/
H A Dlength.rs62 pub enum LengthUnit { enum
110 pub unit: LengthUnit,
228 pub unit: LengthUnit,
382 LengthUnit::Cm => { in to_user()
386 LengthUnit::Mm => { in to_user()
390 LengthUnit::Pt => { in to_user()
395 LengthUnit::Pc => { in to_user()
409 LengthUnit::Px => { in to_points()
417 LengthUnit::Em => { in to_points()
421 LengthUnit::Ex => { in to_points()
[all …]
/dports/www/wt/wt-4.6.1/src/Wt/
H A DWLength.C25 unit_(LengthUnit::Pixel), in WLength()
37 unit_ = LengthUnit::Pixel; in parseCssString()
62 unit_ = LengthUnit::FontEm; in parseCssString()
64 unit_ = LengthUnit::FontEx; in parseCssString()
66 unit_ = LengthUnit::Pixel; in parseCssString()
68 unit_ = LengthUnit::Inch; in parseCssString()
70 unit_ = LengthUnit::Centimeter; in parseCssString()
72 unit_ = LengthUnit::Millimeter; in parseCssString()
74 unit_ = LengthUnit::Point; in parseCssString()
76 unit_ = LengthUnit::Pica; in parseCssString()
[all …]
H A DWLength.h17 enum class LengthUnit { enum
59 typedef LengthUnit Unit;
100 WLength(double value, LengthUnit unit = LengthUnit::Pixel);
118 LengthUnit unit() const { return unit_; } in unit()
145 LengthUnit unit_;
148 void setUnit(LengthUnit unit);
/dports/science/kim-api/kim-api-2.2.1/cpp/src/
H A DKIM_LengthUnit.cpp46 LengthUnit const A(ID_A);
47 LengthUnit const Bohr(ID_Bohr);
48 LengthUnit const cm(ID_cm);
49 LengthUnit const m(ID_m);
50 LengthUnit const nm(ID_nm);
93 LengthUnit::LengthUnit() {} in LengthUnit() function in KIM::LengthUnit
94 LengthUnit::LengthUnit(int const id) : lengthUnitID(id) {} in LengthUnit() function in KIM::LengthUnit
95 LengthUnit::LengthUnit(std::string const & str) in LengthUnit() function in KIM::LengthUnit
118 LengthUnit lenUnit; in Known()
127 bool LengthUnit::operator==(LengthUnit const & rhs) const in operator ==()
[all …]
/dports/print/libpagemaker/libpagemaker-0.0.4/src/lib/
H A DUnits.h21 template <unsigned PER_INCH> class LengthUnit
23 typedef LengthUnit<PER_INCH> T;
27 LengthUnit(int value) : m_value(value) { } in LengthUnit() function
35 template<unsigned PER_INCH> const LengthUnit<PER_INCH>
36 operator+(LengthUnit<PER_INCH> left, LengthUnit<PER_INCH> right)
41 template<unsigned PER_INCH> const LengthUnit<PER_INCH>
42 operator*(LengthUnit<PER_INCH> left, int right)
44 return LengthUnit<PER_INCH>(left.m_value * right);
47 template<unsigned PER_INCH> const LengthUnit<PER_INCH>
48 operator*(int left, LengthUnit<PER_INCH> right)
[all …]
/dports/science/kim-api/kim-api-2.2.1/cpp/include/
H A DKIM_LengthUnit.hpp49 class LengthUnit class
66 LengthUnit();
73 LengthUnit(int const id);
82 LengthUnit(std::string const & str);
134 extern LengthUnit const unused;
141 extern LengthUnit const A;
148 extern LengthUnit const Bohr;
155 extern LengthUnit const cm;
162 extern LengthUnit const m;
169 extern LengthUnit const nm;
[all …]
/dports/www/wt/wt-4.6.1/test/length/
H A DWLengthTest.C17 BOOST_REQUIRE(a.unit() == Wt::LengthUnit::Pixel); in BOOST_AUTO_TEST_CASE()
25 BOOST_REQUIRE(d.unit() == Wt::LengthUnit::Pixel); in BOOST_AUTO_TEST_CASE()
29 Wt::WLength d(99.0, Wt::LengthUnit::Centimeter); in BOOST_AUTO_TEST_CASE()
40 BOOST_REQUIRE(i.unit() == Wt::LengthUnit::Pixel); in BOOST_AUTO_TEST_CASE()
44 Wt::WLength i(10, Wt::LengthUnit::Centimeter); in BOOST_AUTO_TEST_CASE()
54 BOOST_REQUIRE(i.unit() == Wt::LengthUnit::Pixel); in BOOST_AUTO_TEST_CASE()
62 BOOST_REQUIRE(s.unit() == Wt::LengthUnit::Pixel); in BOOST_AUTO_TEST_CASE()
69 BOOST_REQUIRE(s.unit() == Wt::LengthUnit::FontEm); in BOOST_AUTO_TEST_CASE()
76 BOOST_REQUIRE(s.unit() == Wt::LengthUnit::FontEx); in BOOST_AUTO_TEST_CASE()
83 BOOST_REQUIRE(s.unit() == Wt::LengthUnit::Inch); in BOOST_AUTO_TEST_CASE()
[all …]
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/src/com/lightcrafts/ui/print/
H A DDimensionTextField.java15 import com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit;
57 void setUnit(LengthUnit unit) { in setUnit()
58 if (unit == LengthUnit.CM) { in setUnit()
61 else if (unit == LengthUnit.INCH) { in setUnit()
64 else if (unit == LengthUnit.POINT) { in setUnit()
72 LengthUnit getUnit() { in getUnit()
74 return LengthUnit.CM; in getUnit()
77 return LengthUnit.INCH; in getUnit()
80 return LengthUnit.POINT; in getUnit()
126 LengthUnit unit = getUnit(); in registerKeyboardActions()
[all …]
H A DUnitComboBox.java7 import com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit;
14 LengthUnit[] units = LengthUnit.getAll(); in UnitComboBox()
15 for (LengthUnit unit : units) { in UnitComboBox()
21 LengthUnit getSelectedUnit() { in getSelectedUnit()
22 return (LengthUnit) getSelectedItem(); in getSelectedUnit()
/dports/cad/librepcb/librepcb-0.1.6/libs/librepcb/common/widgets/
H A Dlengtheditbase.cpp42 mDefaultUnit(LengthUnit::millimeters()), in LengthEditBase()
86 const LengthUnit& LengthEditBase::getDisplayedUnit() const noexcept { in getDisplayedUnit()
94 void LengthEditBase::setDefaultUnit(const LengthUnit& unit) noexcept { in setDefaultUnit()
136 mSelectedUnit = LengthUnit::fromString(unit); // can throw in configureClientSettings()
146 void LengthEditBase::configure(const LengthUnit& defaultUnit, in configure()
209 LengthUnit unit = extractUnitFromExpression(text); in updateValueFromText()
296 foreach (const LengthUnit& unit, LengthUnit::getAllUnits()) { in extractUnitFromExpression()
310 foreach (const LengthUnit& unit, LengthUnit::getAllUnits()) { in changeUnitActionTriggered()
312 if (unit == LengthUnit::nanometers()) { in changeUnitActionTriggered()
331 tl::optional<LengthUnit> selectedUnit = in setSelectedUnit()
[all …]
H A Dlengtheditbase.h98 const LengthUnit& getDisplayedUnit() const noexcept;
101 void setDefaultUnit(const LengthUnit& unit) noexcept;
122 void configure(const LengthUnit& defaultUnit,
135 void displayedUnitChanged(const LengthUnit& unit);
145 LengthUnit extractUnitFromExpression(QString& expression) const noexcept;
147 void setSelectedUnit(const LengthUnit& unit) noexcept;
149 QString getValueStr(const LengthUnit& unit) const noexcept;
154 LengthUnit mDefaultUnit;
155 tl::optional<LengthUnit> mSelectedUnit;
/dports/devel/pyside2-tools/pyside-setup-opensource-src-5.15.2/sources/shiboken2/tests/libother/
H A Dothertypesystypedef.cpp34 ValueWithUnit<double, LengthUnit::Inch>
35 OtherValueWithUnitUser::doubleMillimeterToInch(ValueWithUnit<double, LengthUnit::Millimeter> v) in doubleMillimeterToInch()
37 return ValueWithUnit<double, LengthUnit::Inch>(v.value() / 254); in doubleMillimeterToInch()
40 ValueWithUnit<int, LengthUnit::Inch>
41 OtherValueWithUnitUser::intMillimeterToInch(ValueWithUnit<int, LengthUnit::Millimeter> v) in intMillimeterToInch()
43 return ValueWithUnit<int, LengthUnit::Inch>(v.value() / 254); in intMillimeterToInch()
/dports/devel/pyside2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/tests/libother/
H A Dothertypesystypedef.cpp34 ValueWithUnit<double, LengthUnit::Inch>
35 OtherValueWithUnitUser::doubleMillimeterToInch(ValueWithUnit<double, LengthUnit::Millimeter> v) in doubleMillimeterToInch()
37 return ValueWithUnit<double, LengthUnit::Inch>(v.value() / 254); in doubleMillimeterToInch()
40 ValueWithUnit<int, LengthUnit::Inch>
41 OtherValueWithUnitUser::intMillimeterToInch(ValueWithUnit<int, LengthUnit::Millimeter> v) in intMillimeterToInch()
43 return ValueWithUnit<int, LengthUnit::Inch>(v.value() / 254); in intMillimeterToInch()
/dports/devel/shiboken2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/tests/libother/
H A Dothertypesystypedef.cpp34 ValueWithUnit<double, LengthUnit::Inch>
35 OtherValueWithUnitUser::doubleMillimeterToInch(ValueWithUnit<double, LengthUnit::Millimeter> v) in doubleMillimeterToInch()
37 return ValueWithUnit<double, LengthUnit::Inch>(v.value() / 254); in doubleMillimeterToInch()
40 ValueWithUnit<int, LengthUnit::Inch>
41 OtherValueWithUnitUser::intMillimeterToInch(ValueWithUnit<int, LengthUnit::Millimeter> v) in intMillimeterToInch()
43 return ValueWithUnit<int, LengthUnit::Inch>(v.value() / 254); in intMillimeterToInch()
/dports/science/hepmc3/HepMC3-3.2.4/python/test/
H A Dtest_Units.py54 cf = conversion_factor(hm.Units.LengthUnit.MM, hm.Units.LengthUnit.MM)
60 cf = conversion_factor(hm.Units.LengthUnit.CM, hm.Units.LengthUnit.CM)
66 cf = conversion_factor(hm.Units.LengthUnit.CM, hm.Units.LengthUnit.MM)
72 cf = conversion_factor(hm.Units.LengthUnit.MM, hm.Units.LengthUnit.CM)

12345678910>>...13