Debian Codegraph @

src/App/PropertyUnits.h

raw
1 /***************************************************************************
2 * Copyright (c) 2010 Jürgen Riegel <[email protected]> *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Library General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU Library General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this library; see the file COPYING.LIB. If not, *
18 * write to the Free Software Foundation, Inc., 59 Temple Place, *
19 * Suite 330, Boston, MA 02111-1307, USA *
20 * *
21 ***************************************************************************/
22
23 #ifndef APP_PROPERTYUNITS_H
24 #define APP_PROPERTYUNITS_H
25
26 #include <Base/Quantity.h>
27 #include <Base/Unit.h>
28
29 #include "PropertyStandard.h"
30
31
32 namespace Base
33 {
34 class Writer;
35 }
36
37 namespace App
38 {
39
40 /** Float with Unit property
41 * This is a property for float with a predefined Unit associated.
42 */
43 class AppExport PropertyQuantity: public PropertyFloat
44 {
45 TYPESYSTEM_HEADER_WITH_OVERRIDE();
46
47 public:
48 PropertyQuantity() = default;
49 ~PropertyQuantity() override = default;
50
51 Base::Quantity getQuantityValue() const;
52
53 const char* getEditorName() const override;
54
55 PyObject* getPyObject() override;
56 void setPyObject(PyObject*) override;
57
58 void setUnit(const Base::Unit& u)
59 {
60 _Unit = u;
61 }
62 const Base::Unit& getUnit() const
63 {
64 return _Unit;
65 }
66
67 void setValue(double lValue)
68 {
69 PropertyFloat::setValue(lValue);
70 }
71 double getValue() const
72 {
73 return PropertyFloat::getValue();
74 }
75
76 const Base::QuantityFormat& getFormat() const
77 {
78 return _Format;
79 }
80 void setFormat(const Base::QuantityFormat& fmt)
81 {
82 _Format = fmt;
83 }
84
85 void setPathValue(const App::ObjectIdentifier& path, const boost::any& value) override;
86 const boost::any getPathValue(const App::ObjectIdentifier& path) const override;
87
88 bool isSame(const Property& other) const override
89 {
90 if (&other == this) {
91 return true;
92 }
93 return getTypeId() == other.getTypeId()
94 && getValue() == static_cast<decltype(this)>(&other)->getValue()
95 && _Unit == static_cast<decltype(this)>(&other)->_Unit;
96 }
97
98 protected:
99 Base::Quantity createQuantityFromPy(PyObject* value);
100 Base::Unit _Unit;
101 Base::QuantityFormat _Format;
102 };
103
104 /** Float with Unit property
105 * This is a property for float with a predefined Unit associated.
106 */
107 class AppExport PropertyQuantityConstraint: public PropertyQuantity
108 {
109 TYPESYSTEM_HEADER_WITH_OVERRIDE();
110
111 public:
112 PropertyQuantityConstraint() = default;
113 ~PropertyQuantityConstraint() override = default;
114
115 /// Constraint methods
116 //@{
117 /// the boundary struct
118 struct Constraints
119 {
120 double LowerBound, UpperBound, StepSize;
121 };
122 /** setting the boundaries
123 * This sets the constraint struct. It can be dynamically
124 * allocated or set as an static in the class the property
125 * belongs to:
126 * \code
127 * const Constraints percent = {0.0,100.0,1.0}
128 * \endcode
129 */
130 void setConstraints(const Constraints* sConstrain);
131 /// get the constraint struct
132 const Constraints* getConstraints() const;
133 //@}
134
135 double getMinimum() const;
136 double getMaximum() const;
137 double getStepSize() const;
138
139 const char* getEditorName() const override;
140 void setPyObject(PyObject*) override;
141
142 private:
143 const Constraints* _ConstStruct {nullptr};
144 };
145
146 // ------------------------------------------------------
147 // now all properties
148 // ------------------------------------------------------
149
150 /** Acceleration property
151 * This is a property for representing acceleration. It is basically a float
152 * property. On the Gui it has a quantity like m/s^2.
153 */
154 class AppExport PropertyAcceleration: public PropertyQuantity
155 {
156 TYPESYSTEM_HEADER_WITH_OVERRIDE();
157
158 public:
159 PropertyAcceleration();
160 ~PropertyAcceleration() override = default;
161 };
162
163 /** AmountOfSubstance property
164 * This is a property for representing number of molecules. It is basically a
165 * float property. On the Gui it has a quantity like mole.
166 */
167 class AppExport PropertyAmountOfSubstance: public PropertyQuantity
168 {
169 TYPESYSTEM_HEADER_WITH_OVERRIDE();
170
171 public:
172 PropertyAmountOfSubstance();
173 ~PropertyAmountOfSubstance() override = default;
174 };
175
176 /** Angle property
177 * This is a property for representing angles. It basically a float
178 * property. On the Gui it has a quantity like RAD.
179 */
180 class AppExport PropertyAngle: public PropertyQuantityConstraint
181 {
182 TYPESYSTEM_HEADER_WITH_OVERRIDE();
183
184 public:
185 PropertyAngle();
186 ~PropertyAngle() override = default;
187 const char* getEditorName() const override
188 {
189 return "Gui::PropertyEditor::PropertyAngleItem";
190 }
191 };
192
193 /** Area property
194 * This is a property for representing areas. It is basically a float
195 * property which must not be negative. On the Gui it has a quantity like m^2 or mm^2.
196 */
197 class AppExport PropertyArea: public PropertyQuantityConstraint
198 {
199 TYPESYSTEM_HEADER_WITH_OVERRIDE();
200
201 public:
202 PropertyArea();
203 ~PropertyArea() override = default;
204 };
205
206 /** CompressiveStrength property
207 * This is a property for representing compressive strength. It is basically a
208 * float property. On the Gui it has a quantity like Pa.
209 */
210 class AppExport PropertyCompressiveStrength: public PropertyQuantity
211 {
212 TYPESYSTEM_HEADER_WITH_OVERRIDE();
213
214 public:
215 PropertyCompressiveStrength();
216 ~PropertyCompressiveStrength() override = default;
217 };
218
219 /** CurrentDensity property
220 * This is a property for electric current densities. It is basically a float
221 * property. On the Gui it has a quantity of Ampere/m^2.
222 */
223 class AppExport PropertyCurrentDensity: public PropertyQuantity
224 {
225 TYPESYSTEM_HEADER_WITH_OVERRIDE();
226
227 public:
228 PropertyCurrentDensity();
229 ~PropertyCurrentDensity() override = default;
230 };
231
232 /** Density property
233 * This is a property for representing density. It is basically a float
234 * property which must not be negative. On the Gui it has a quantity like
235 * kg/m^3.
236 */
237 class AppExport PropertyDensity: public PropertyQuantity
238 {
239 TYPESYSTEM_HEADER_WITH_OVERRIDE();
240
241 public:
242 PropertyDensity();
243 ~PropertyDensity() override = default;
244 };
245
246 /** DissipationRate property
247 * This is a property for representing turbulent dissipation rate. It basically
248 * a float property. On the Gui it has a quantity like m^2/s^3.
249 */
250 class AppExport PropertyDissipationRate: public PropertyQuantity
251 {
252 TYPESYSTEM_HEADER_WITH_OVERRIDE();
253
254 public:
255 PropertyDissipationRate();
256 ~PropertyDissipationRate() override = default;
257 };
258
259 /** Distance property
260 * This is a property for representing distances. It is basically a float
261 * property. On the Gui it has a quantity like m or mm.
262 */
263 class AppExport PropertyDistance: public PropertyQuantity
264 {
265 TYPESYSTEM_HEADER_WITH_OVERRIDE();
266
267 public:
268 PropertyDistance();
269 ~PropertyDistance() override = default;
270 };
271
272 /** DynamicViscosity property
273 * This is a property for representing dynamic viscosity. It is basically a float
274 * property which must not be negative. On the Gui it has a quantity like Pa*s.
275 */
276 class AppExport PropertyDynamicViscosity: public PropertyQuantity
277 {
278 TYPESYSTEM_HEADER_WITH_OVERRIDE();
279
280 public:
281 PropertyDynamicViscosity();
282 ~PropertyDynamicViscosity() override = default;
283 };
284
285 /** ElectricalCapacitance property
286 * This is a property for representing capacitance. It is basically a float
287 * property. On the Gui it has a quantity like F.
288 */
289 class AppExport PropertyElectricalCapacitance: public PropertyQuantity
290 {
291 TYPESYSTEM_HEADER_WITH_OVERRIDE();
292
293 public:
294 PropertyElectricalCapacitance();
295 ~PropertyElectricalCapacitance() override = default;
296 };
297
298 /** ElectricalConductance property
299 * This is a property for representing electrical conductance. It is basically a
300 * float property. On the Gui it has a quantity like S.
301 */
302 class AppExport PropertyElectricalConductance: public PropertyQuantity
303 {
304 TYPESYSTEM_HEADER_WITH_OVERRIDE();
305
306 public:
307 PropertyElectricalConductance();
308 ~PropertyElectricalConductance() override = default;
309 };
310
311 /** ElectricalConductivity property
312 * This is a property for representing electrical conductivity. It is basically
313 * a float property. On the Gui it has a quantity like S/m.
314 */
315 class AppExport PropertyElectricalConductivity: public PropertyQuantity
316 {
317 TYPESYSTEM_HEADER_WITH_OVERRIDE();
318
319 public:
320 PropertyElectricalConductivity();
321 ~PropertyElectricalConductivity() override = default;
322 };
323
324 /** ElectricalInductance property
325 * This is a property for representing electrical inductance. It is basically a
326 * float property. On the Gui it has a quantity like H.
327 */
328 class AppExport PropertyElectricalInductance: public PropertyQuantity
329 {
330 TYPESYSTEM_HEADER_WITH_OVERRIDE();
331
332 public:
333 PropertyElectricalInductance();
334 ~PropertyElectricalInductance() override = default;
335 };
336
337 /** ElectricalResistance property
338 * This is a property for representing electrical resistance. It is basically a
339 * float property. On the Gui it has a quantity like Ohm.
340 */
341
342 class AppExport PropertyElectricalResistance: public PropertyQuantity
343 {
344 TYPESYSTEM_HEADER_WITH_OVERRIDE();
345
346 public:
347 PropertyElectricalResistance();
348 ~PropertyElectricalResistance() override = default;
349 };
350
351 /** ElectricCharge property
352 * This is a property for representing electric charge. It is basically a float
353 * property. On the Gui it has a quantity like C.
354 */
355 class AppExport PropertyElectricCharge: public PropertyQuantity
356 {
357 TYPESYSTEM_HEADER_WITH_OVERRIDE();
358
359 public:
360 PropertyElectricCharge();
361 ~PropertyElectricCharge() override = default;
362 };
363
364 /** SurfaceChargeDensity property
365 * This is a property for representing surface charge density. It is basically a float
366 * property. On the Gui it has a quantity like C/m^2.
367 */
368 class AppExport PropertySurfaceChargeDensity: public PropertyQuantity
369 {
370 TYPESYSTEM_HEADER_WITH_OVERRIDE();
371
372 public:
373 PropertySurfaceChargeDensity();
374 ~PropertySurfaceChargeDensity() override = default;
375 };
376
377 /** VolumeChargeDensity property
378 * This is a property for representing volume charge density. It is basically a float
379 * property. On the Gui it has a quantity like C/m^3.
380 */
381 class AppExport PropertyVolumeChargeDensity: public PropertyQuantity
382 {
383 TYPESYSTEM_HEADER_WITH_OVERRIDE();
384
385 public:
386 PropertyVolumeChargeDensity();
387 ~PropertyVolumeChargeDensity() override = default;
388 };
389
390 /** ElectricCurrent property
391 * This is a property for representing electric currents. It is basically a
392 * float property. On the Gui it has a quantity like A.
393 */
394 class AppExport PropertyElectricCurrent: public PropertyQuantity
395 {
396 TYPESYSTEM_HEADER_WITH_OVERRIDE();
397
398 public:
399 PropertyElectricCurrent();
400 ~PropertyElectricCurrent() override = default;
401 };
402
403 /** ElectricPotential property
404 * This is a property for electric potentials. It is basically a float
405 * property. On the Gui it has a quantity of Volt.
406 */
407 class AppExport PropertyElectricPotential: public PropertyQuantity
408 {
409 TYPESYSTEM_HEADER_WITH_OVERRIDE();
410
411 public:
412 PropertyElectricPotential();
413 ~PropertyElectricPotential() override = default;
414 };
415
416 /** Frequency property
417 * This is a property for representing frequency. It is basically a float
418 * property. On the Gui it has a quantity like 1/s or Hz.
419 */
420 class AppExport PropertyFrequency: public PropertyQuantity
421 {
422 TYPESYSTEM_HEADER_WITH_OVERRIDE();
423
424 public:
425 PropertyFrequency();
426 ~PropertyFrequency() override = default;
427 };
428
429 /** Force property
430 * This is a property for representing acceleration. It is basically a float
431 * property. On the Gui it has a quantity like m/s^2.
432 */
433 class AppExport PropertyForce: public PropertyQuantity
434 {
435 TYPESYSTEM_HEADER_WITH_OVERRIDE();
436
437 public:
438 PropertyForce();
439 ~PropertyForce() override = default;
440 };
441
442 /** HeatFlux property
443 * This is a property for representing heat flux. It is basically a float
444 * property. On the Gui it has a quantity like W/m^2.
445 */
446 class AppExport PropertyHeatFlux: public PropertyQuantity
447 {
448 TYPESYSTEM_HEADER_WITH_OVERRIDE();
449
450 public:
451 PropertyHeatFlux();
452 ~PropertyHeatFlux() override = default;
453 };
454
455 /** InverseArea property
456 * This is a property for representing the reciprocal of area. It is basically a float
457 * property which must not be negative. On the Gui it has a quantity like 1/m^2.
458 */
459 class AppExport PropertyInverseArea: public PropertyQuantity
460 {
461 TYPESYSTEM_HEADER_WITH_OVERRIDE();
462
463 public:
464 PropertyInverseArea();
465 ~PropertyInverseArea() override = default;
466 };
467
468 /** InverseLength property
469 * This is a property for representing the reciprocal of length. It is basically a float
470 * property which must not be negative. On the Gui it has a quantity like 1/m.
471 */
472 class AppExport PropertyInverseLength: public PropertyQuantity
473 {
474 TYPESYSTEM_HEADER_WITH_OVERRIDE();
475
476 public:
477 PropertyInverseLength();
478 ~PropertyInverseLength() override = default;
479 };
480
481 /** InverseVolume property
482 * This is a property for representing the reciprocal of volume. It is basically a float
483 * property. which must not be negative. On the Gui it has a quantity like 1/m^3.
484 */
485 class AppExport PropertyInverseVolume: public PropertyQuantity
486 {
487 TYPESYSTEM_HEADER_WITH_OVERRIDE();
488
489 public:
490 PropertyInverseVolume();
491 ~PropertyInverseVolume() override = default;
492 };
493
494 /** KinematicViscosity property
495 * This is a property for representing kinematic viscosity. It is basically a float
496 * property which must not be negative. On the Gui it has a quantity like m^2/s.
497 */
498 class AppExport PropertyKinematicViscosity: public PropertyQuantity
499 {
500 TYPESYSTEM_HEADER_WITH_OVERRIDE();
501
502 public:
503 PropertyKinematicViscosity();
504 ~PropertyKinematicViscosity() override = default;
505 };
506
507 /** Length property
508 * This is a property for representing lengths. It is basically a float
509 * property which must not be negative. On the Gui it has a quantity like m or mm.
510 */
511 class AppExport PropertyLength: public PropertyQuantityConstraint
512 {
513 TYPESYSTEM_HEADER_WITH_OVERRIDE();
514
515 public:
516 PropertyLength();
517 ~PropertyLength() override = default;
518
519 void enableNegative(bool on);
520 };
521
522 /** LuminousIntensity property
523 * This is a property for representing luminous intensity. It is basically a
524 * float property. On the Gui it has a quantity like cd.
525 */
526 class AppExport PropertyLuminousIntensity: public PropertyQuantity
527 {
528 TYPESYSTEM_HEADER_WITH_OVERRIDE();
529
530 public:
531 PropertyLuminousIntensity();
532 ~PropertyLuminousIntensity() override = default;
533 };
534
535 /** MagneticFieldStrength property
536 * This is a property for representing magnetic field strength. It is basically
537 * a float property. On the Gui it has a quantity like A/m.
538 */
539 class AppExport PropertyMagneticFieldStrength: public PropertyQuantity
540 {
541 TYPESYSTEM_HEADER_WITH_OVERRIDE();
542
543 public:
544 PropertyMagneticFieldStrength();
545 ~PropertyMagneticFieldStrength() override = default;
546 };
547
548 /** MagneticFlux property
549 * This is a property for representing magnetic flux. It is basically a float
550 * property. On the Gui it has a quantity like Wb.
551 */
552 class AppExport PropertyMagneticFlux: public PropertyQuantity
553 {
554 TYPESYSTEM_HEADER_WITH_OVERRIDE();
555
556 public:
557 PropertyMagneticFlux();
558 ~PropertyMagneticFlux() override = default;
559 };
560
561 /** MagneticFluxDensity property
562 * This is a property for representing magnetic flux density. It is basically a
563 * float property. On the Gui it has a quantity like G or T.
564 */
565 class AppExport PropertyMagneticFluxDensity: public PropertyQuantity
566 {
567 TYPESYSTEM_HEADER_WITH_OVERRIDE();
568
569 public:
570 PropertyMagneticFluxDensity();
571 ~PropertyMagneticFluxDensity() override = default;
572 };
573
574 /** Magnetization property
575 * This is a property for representing magnetizations. It is basically a float
576 * property. On the Gui it has a quantity like A/m.
577 */
578 class AppExport PropertyMagnetization: public PropertyQuantity
579 {
580 TYPESYSTEM_HEADER_WITH_OVERRIDE();
581
582 public:
583 PropertyMagnetization();
584 ~PropertyMagnetization() override = default;
585 };
586
587 /** ElectromagneticPotential property
588 * This is a property for representing electromagnetic potentials. It is basically a float
589 * property. On the Gui it has a quantity like Wb/m.
590 */
591 class AppExport PropertyElectromagneticPotential: public PropertyQuantity
592 {
593 TYPESYSTEM_HEADER_WITH_OVERRIDE();
594
595 public:
596 PropertyElectromagneticPotential();
597 ~PropertyElectromagneticPotential() override = default;
598 };
599
600 /** Mass property
601 * This is a property for representing mass. It is basically a float
602 * property. On the Gui it has a quantity like kg.
603 */
604 class AppExport PropertyMass: public PropertyQuantity
605 {
606 TYPESYSTEM_HEADER_WITH_OVERRIDE();
607
608 public:
609 PropertyMass();
610 ~PropertyMass() override = default;
611 };
612
613 /** Moment property
614 * This is a property for representing moment. It is basically a float
615 * property. On the Gui it has a quantity like N*m.
616 */
617 class AppExport PropertyMoment: public PropertyQuantity
618 {
619 TYPESYSTEM_HEADER_WITH_OVERRIDE();
620
621 public:
622 PropertyMoment();
623 ~PropertyMoment() override = default;
624 };
625
626 /** Pressure property
627 * This is a property for representing pressure. It basically a float
628 * property. On the Gui it has a quantity like Pa.
629 */
630 class AppExport PropertyPressure: public PropertyQuantity
631 {
632 TYPESYSTEM_HEADER_WITH_OVERRIDE();
633
634 public:
635 PropertyPressure();
636 ~PropertyPressure() override = default;
637 };
638
639 /** Power property
640 * This is a property for representing power. It is basically a float
641 * property. On the Gui it has a quantity like W.
642 */
643 class AppExport PropertyPower: public PropertyQuantity
644 {
645 TYPESYSTEM_HEADER_WITH_OVERRIDE();
646
647 public:
648 PropertyPower();
649 ~PropertyPower() override = default;
650 };
651
652 /** ShearModulus property
653 * This is a property for representing shear modulus. It is basically a float
654 * property. On the Gui it has a quantity like Pa.
655 */
656 class AppExport PropertyShearModulus: public PropertyQuantity
657 {
658 TYPESYSTEM_HEADER_WITH_OVERRIDE();
659
660 public:
661 PropertyShearModulus();
662 ~PropertyShearModulus() override = default;
663 };
664
665 /** SpecificEnergy property
666 * This is a property for representing specific energy. It is basically a float
667 * property. On the Gui it has a quantity like m^2/s^2 or J/kg.
668 */
669 class AppExport PropertySpecificEnergy: public PropertyQuantity
670 {
671 TYPESYSTEM_HEADER_WITH_OVERRIDE();
672
673 public:
674 PropertySpecificEnergy();
675 ~PropertySpecificEnergy() override = default;
676 };
677
678 /** SpecificHeat property
679 * This is a property for representing specific heat capacity. It is basically a
680 * float property. On the Gui it has a quantity like J/kg/K.
681 */
682 class AppExport PropertySpecificHeat: public PropertyQuantity
683 {
684 TYPESYSTEM_HEADER_WITH_OVERRIDE();
685
686 public:
687 PropertySpecificHeat();
688 ~PropertySpecificHeat() override = default;
689 };
690
691 /** Speed property
692 * This is a property for representing speed. It is basically a float
693 * property. On the Gui it has a quantity like m/s or km/h.
694 */
695 class AppExport PropertySpeed: public PropertyQuantity
696 {
697 TYPESYSTEM_HEADER_WITH_OVERRIDE();
698
699 public:
700 PropertySpeed();
701 ~PropertySpeed() override = default;
702 };
703
704 /** Stiffness property
705 * This is a property for representing stiffness. It is basically a float
706 * property. On the Gui it has a quantity like N/m.
707 */
708 class AppExport PropertyStiffness: public PropertyQuantity
709 {
710 TYPESYSTEM_HEADER_WITH_OVERRIDE();
711
712 public:
713 PropertyStiffness();
714 ~PropertyStiffness() override = default;
715 };
716
717 /** StiffnessDensity property
718 * This is a property for representing stiffness per area unit. It is basically a float
719 * property. On the Gui it has a quantity like Pa/m.
720 */
721 class AppExport PropertyStiffnessDensity: public PropertyQuantity
722 {
723 TYPESYSTEM_HEADER_WITH_OVERRIDE();
724
725 public:
726 PropertyStiffnessDensity();
727 ~PropertyStiffnessDensity() override = default;
728 };
729
730 /** Stress property
731 * This is a property for representing stress. It is basically a float
732 * property. On the Gui it has a quantity like Pa.
733 */
734 class AppExport PropertyStress: public PropertyQuantity
735 {
736 TYPESYSTEM_HEADER_WITH_OVERRIDE();
737
738 public:
739 PropertyStress();
740 ~PropertyStress() override = default;
741 };
742
743 /** Temperature property
744 * This is a property for representing temperatures. It is basically a float
745 * property which must not be negative. On the Gui it has a quantity like K.
746 */
747 class AppExport PropertyTemperature: public PropertyQuantity
748 {
749 TYPESYSTEM_HEADER_WITH_OVERRIDE();
750
751 public:
752 PropertyTemperature();
753 ~PropertyTemperature() override = default;
754 };
755
756 /** ThermalConductivity property
757 * This is a property for representing thermal conductivity. It is basically a
758 * float property. On the Gui it has a quantity like W/m/K.
759 */
760 class AppExport PropertyThermalConductivity: public PropertyQuantity
761 {
762 TYPESYSTEM_HEADER_WITH_OVERRIDE();
763
764 public:
765 PropertyThermalConductivity();
766 ~PropertyThermalConductivity() override = default;
767 };
768
769 /** ThermalExpansionCoefficient property
770 * This is a property for representing a coefficient of thermal expansion. It
771 * basically a float property. On the Gui it has a quantity like 1/K.
772 */
773 class AppExport PropertyThermalExpansionCoefficient: public PropertyQuantity
774 {
775 TYPESYSTEM_HEADER_WITH_OVERRIDE();
776
777 public:
778 PropertyThermalExpansionCoefficient();
779 ~PropertyThermalExpansionCoefficient() override = default;
780 };
781
782 /** ThermalTransferCoefficient property
783 * This is a property for representing heat transfer coefficient. It is
784 * basically a float property. On the Gui it has a quantity like W/m^2/K.
785 */
786 class AppExport PropertyThermalTransferCoefficient: public PropertyQuantity
787 {
788 TYPESYSTEM_HEADER_WITH_OVERRIDE();
789
790 public:
791 PropertyThermalTransferCoefficient();
792 ~PropertyThermalTransferCoefficient() override = default;
793 };
794
795 /** TimeSpan property
796 * This is a property for representing time intervals. It is basically a float
797 * property. On the Gui it has a quantity like s.
798 */
799 class AppExport PropertyTime: public PropertyQuantity
800 {
801 TYPESYSTEM_HEADER_WITH_OVERRIDE();
802
803 public:
804 PropertyTime();
805 ~PropertyTime() override = default;
806 };
807
808 /** UltimateTensileStrength property
809 * This is a property for representing ultimate tensile strength. It is
810 * basically a float property. On the Gui it has a quantity like Pa.
811 */
812 class AppExport PropertyUltimateTensileStrength: public PropertyQuantity
813 {
814 TYPESYSTEM_HEADER_WITH_OVERRIDE();
815
816 public:
817 PropertyUltimateTensileStrength();
818 ~PropertyUltimateTensileStrength() override = default;
819 };
820
821 /** VacuumPermittivity property
822 * This is a property for representing vacuum permittivity. It is basically a float
823 * property. On the Gui it has a quantity like s^4*A^2 / (m^3*kg).
824 */
825 class AppExport PropertyVacuumPermittivity: public PropertyQuantity
826 {
827 TYPESYSTEM_HEADER_WITH_OVERRIDE();
828
829 public:
830 PropertyVacuumPermittivity();
831 ~PropertyVacuumPermittivity() override = default;
832 };
833
834 /** Velocity property
835 * This is a property for representing velocities. It is basically a float
836 * property. On the Gui it has a quantity like m/s.
837 */
838 class AppExport PropertyVelocity: public PropertyQuantity
839 {
840 TYPESYSTEM_HEADER_WITH_OVERRIDE();
841
842 public:
843 PropertyVelocity();
844 ~PropertyVelocity() override = default;
845 };
846
847 /** Volume property
848 * This is a property for representing volumes. It is basically a float
849 * property which must not be negative. On the Gui it has a quantity like m^3 or mm^3.
850 */
851 class AppExport PropertyVolume: public PropertyQuantityConstraint
852 {
853 TYPESYSTEM_HEADER_WITH_OVERRIDE();
854
855 public:
856 PropertyVolume();
857 ~PropertyVolume() override = default;
858 };
859
860 /** VolumeFlowRate property
861 * This is a property for representing volumetric flow rate. It is basically a
862 * float property. On the Gui it has a quantity like l/s.
863 */
864 class AppExport PropertyVolumeFlowRate: public PropertyQuantity
865 {
866 TYPESYSTEM_HEADER_WITH_OVERRIDE();
867
868 public:
869 PropertyVolumeFlowRate();
870 ~PropertyVolumeFlowRate() override = default;
871 };
872
873 /** VolumetricThermalExpansionCoefficient property
874 * This is a property for representing . It is basically a float
875 * property. On the Gui it has a quantity like 1/K.
876 */
877 class AppExport PropertyVolumetricThermalExpansionCoefficient: public PropertyQuantity
878 {
879 TYPESYSTEM_HEADER_WITH_OVERRIDE();
880
881 public:
882 PropertyVolumetricThermalExpansionCoefficient();
883 ~PropertyVolumetricThermalExpansionCoefficient() override = default;
884 };
885
886 /** Work property
887 * This is a property for representing work. It is basically a float
888 * property. On the Gui it has a quantity like Nm.
889 */
890 class AppExport PropertyWork: public PropertyQuantity
891 {
892 TYPESYSTEM_HEADER_WITH_OVERRIDE();
893
894 public:
895 PropertyWork();
896 ~PropertyWork() override = default;
897 };
898
899 /** YieldStrength property
900 * This is a property for representing yield strength. It is basically a float
901 * property. On the Gui it has a quantity like Pa.
902 */
903 class AppExport PropertyYieldStrength: public PropertyQuantity
904 {
905 TYPESYSTEM_HEADER_WITH_OVERRIDE();
906
907 public:
908 PropertyYieldStrength();
909 ~PropertyYieldStrength() override = default;
910 };
911
912 /** YoungsModulus property
913 * This is a property for representing Young's modulus. It is basically a float
914 * property. On the Gui it has a quantity like Pa.
915 */
916 class AppExport PropertyYoungsModulus: public PropertyQuantity
917 {
918 TYPESYSTEM_HEADER_WITH_OVERRIDE();
919
920 public:
921 PropertyYoungsModulus();
922 ~PropertyYoungsModulus() override = default;
923 };
924
925 } // namespace App
926
927 #endif // APP_PROPERTYUNITS_H
928