OpenLexocad  28.0
CompoundPlaneAngle.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 
6 
7 namespace Geom
8 {
12 class LX_GEOM_EXPORT CompoundPlaneAngle
13 {
14 public:
16  // //
17  // --------------------- BEGIN API --------------------- //
18  // //
19  // ATTENTION: DO NOT CHANGE ANY SIGNATURES IN THE API ! //
20  // //
22 
26  CompoundPlaneAngle(int degrees, int minutes, int seconds);
28  CompoundPlaneAngle(int degrees, int minutes, int seconds, int millionthSeconds);
29 
31  void setDegrees(int degrees);
33  int getDegrees() const;
35  void setMinutes(int minutes);
37  int getMinutes() const;
39  void setSeconds(int seconds);
41  int getSeconds() const;
44  void setMillionthSeconds(int millionthSeconds);
46  int getMillionthSeconds() const;
48  std::vector<int> getValues() const;
49 
50  bool operator==(const Geom::CompoundPlaneAngle& other) const;
51  bool operator!=(const Geom::CompoundPlaneAngle& other) const;
52 
54  // //
55  // ---------------------- END API ---------------------- //
56  // //
58 
59 
60 private:
61  int _degrees;
62  int _minutes;
63  int _seconds;
64  int _millionthSeconds;
65 };
66 } // namespace Geom
Geom::CompoundPlaneAngle::getValues
std::vector< int > getValues() const
Get values.
Geom::CompoundPlaneAngle::CompoundPlaneAngle
CompoundPlaneAngle()
Constructs a CompoundPlaneAngle at 0 degrees, 0 minutes, 0 seconds.
Geom::CompoundPlaneAngle::setDegrees
void setDegrees(int degrees)
The first integer measure is the number of degrees in the range {360; -360}. Throws Base::OutOfRange ...
Geom::CompoundPlaneAngle::getMillionthSeconds
int getMillionthSeconds() const
Get third integer.
Core::seconds
std::chrono::duration< double > seconds
Definition: core_types.h:20
Geom::CompoundPlaneAngle::getSeconds
int getSeconds() const
Get seconds.
Geom::CompoundPlaneAngle::CompoundPlaneAngle
CompoundPlaneAngle(int degrees, int minutes, int seconds)
Constructs a CompoundPlaneAngle from degrees, minutes and seconds.
Geom::CompoundPlaneAngle
A compound measure of plane angle in degrees, minutes, seconds, and optionally millionth-seconds of a...
Definition: CompoundPlaneAngle.h:13
Geom::CompoundPlaneAngle::getMinutes
int getMinutes() const
Get minutes.
Geom::CompoundPlaneAngle::operator==
bool operator==(const Geom::CompoundPlaneAngle &other) const
Geom::CompoundPlaneAngle::setMinutes
void setMinutes(int minutes)
The second integer measure is the number of minutes in the range {60; -60}. Throws Base::OutOfRange i...
Geom::CompoundPlaneAngle::CompoundPlaneAngle
CompoundPlaneAngle(int degrees, int minutes, int seconds, int millionthSeconds)
Constructs a CompoundPlaneAngle from degrees, minutes, seconds and millionth-seconds.
Geom::CompoundPlaneAngle::operator!=
bool operator!=(const Geom::CompoundPlaneAngle &other) const
Geom::CompoundPlaneAngle::getDegrees
int getDegrees() const
Get degrees.
Geom::CompoundPlaneAngle::setSeconds
void setSeconds(int seconds)
The third integer measure is the number of seconds in the range {60; -60}. Throws Base::OutOfRange if...
Geom
Definition: PropertyContainer.h:33
Geom::CompoundPlaneAngle::setMillionthSeconds
void setMillionthSeconds(int millionthSeconds)