|
swift
|
Value object for a wind layer. More...
#include <windlayer.h>
Public Types | |
| enum | ColumnIndex { IndexLevel = swift::misc::CPropertyIndexRef::GlobalIndexCWindLayer , IndexDirection , IndexDirectionVariable , IndexSpeed , IndexGustSpeed } |
| Properties by index. More... | |
| Public Types inherited from swift::misc::CValueObject< CWindLayer > | |
| using | base_type |
| Base class. | |
| Public Types inherited from swift::misc::CEmpty | |
| using | base_type = CEmpty |
| Base class is alias of itself. | |
| Public Types inherited from swift::misc::mixin::Index< CWindLayer > | |
| enum | ColumnIndex |
| Base class enums. More... | |
Public Member Functions | |
| CWindLayer ()=default | |
| Default constructor. | |
| CWindLayer (const swift::misc::aviation::CAltitude &level, const physical_quantities::CAngle &direction, const physical_quantities::CSpeed &speed, const physical_quantities::CSpeed &gustSpeed) | |
| Constructor. | |
| void | setLevel (const swift::misc::aviation::CAltitude &level) |
| Set level. | |
| swift::misc::aviation::CAltitude | getLevel () const |
| Get level. | |
| void | setDirection (const physical_quantities::CAngle &main) |
| Set direction. | |
| void | setDirection (const physical_quantities::CAngle &from, const physical_quantities::CAngle &to) |
| Set direction Main direction will not be modified. | |
| void | setDirection (const physical_quantities::CAngle &main, const physical_quantities::CAngle &from, const physical_quantities::CAngle &to) |
| Set direction. | |
| physical_quantities::CAngle | getDirection () const |
| Get direction. | |
| physical_quantities::CAngle | getDirectionFrom () const |
| Get direction from. | |
| physical_quantities::CAngle | getDirectionTo () const |
| Get direction to. | |
| void | setDirectionVariable (bool variable=true) |
| Set direction to variable. | |
| bool | isDirectionVariable () const |
| Is direction variable? | |
| void | setSpeed (const physical_quantities::CSpeed &speed) |
| Set speed. | |
| physical_quantities::CSpeed | getSpeed () const |
| Get descriptor. | |
| void | setGustSpeed (const physical_quantities::CSpeed &gustSpeed) |
| Set gust speed. | |
| physical_quantities::CSpeed | getGustSpeed () const |
| Get weather phenomenas. | |
| QVariant | propertyByIndex (swift::misc::CPropertyIndexRef index) const |
| Property by index. | |
| void | setPropertyByIndex (swift::misc::CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CWindLayer > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
| Public Member Functions inherited from swift::misc::mixin::DBusByMetaClass< CWindLayer > | |
| void | marshallToDbus (QDBusArgument &arg, Tags...) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
| Public Member Functions inherited from swift::misc::mixin::DataStreamByMetaClass< CWindLayer > | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. | |
| Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CWindLayer > | |
| QJsonObject | toJson () const |
| Cast to JSON object. | |
| QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| Public Member Functions inherited from swift::misc::mixin::String< CWindLayer > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
| Public Member Functions inherited from swift::misc::mixin::Index< CWindLayer > | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CWindLayer &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
| Public Member Functions inherited from swift::misc::mixin::Icon< CWindLayer > | |
| CIcons::CIcons::StandardIconUnknown16 | toIcon () const |
| As icon, not implemented by all classes. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from swift::misc::mixin::MetaType< CWindLayer > | |
| static void | registerMetadata () |
| Register metadata. | |
| Static Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CWindLayer > | |
| static DerivedObj | fromJson (const QJsonObject &json) |
| Get object from QJsonObject. | |
| static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Get object from JSON string. | |
| Protected Member Functions inherited from swift::misc::CValueObject< CWindLayer > | |
| CEmpty ()=default | |
| Inheriting constructors. | |
| CEmpty (const CEmpty &)=default | |
| Inheriting constructors. | |
| CValueObject ()=default | |
| Default constructor. | |
| CValueObject & | operator= (const CValueObject &)=default |
| Copy assignment operator. | |
| ~CValueObject ()=default | |
| Destructor. | |
| Protected Member Functions inherited from swift::misc::CEmpty | |
| CEmpty ()=default | |
| Protected default constructor. | |
| CEmpty (const CEmpty &)=default | |
| Protected copy constructor. | |
| CEmpty & | operator= (const CEmpty &)=default |
| Protected copy assignment operator. | |
| ~CEmpty ()=default | |
| Non-virtual protected destructor. | |
Value object for a wind layer.
Definition at line 27 of file windlayer.h.
Properties by index.
Definition at line 31 of file windlayer.h.
| swift::misc::weather::CWindLayer::CWindLayer | ( | const swift::misc::aviation::CAltitude & | level, |
| const physical_quantities::CAngle & | direction, | ||
| const physical_quantities::CSpeed & | speed, | ||
| const physical_quantities::CSpeed & | gustSpeed ) |
Constructor.
Definition at line 17 of file windlayer.cpp.
| QString swift::misc::weather::CWindLayer::convertToQString | ( | bool | i18n = false | ) | const |
|
inline |
Get direction.
Definition at line 74 of file windlayer.h.
|
inline |
Get direction from.
Definition at line 77 of file windlayer.h.
|
inline |
Get direction to.
Definition at line 80 of file windlayer.h.
|
inline |
Get weather phenomenas.
Definition at line 98 of file windlayer.h.
|
inline |
Get level.
Definition at line 51 of file windlayer.h.
|
inline |
Get descriptor.
Definition at line 92 of file windlayer.h.
|
inline |
Is direction variable?
Definition at line 86 of file windlayer.h.
| QVariant swift::misc::weather::CWindLayer::propertyByIndex | ( | swift::misc::CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 22 of file windlayer.cpp.
|
inline |
Set direction Main direction will not be modified.
Definition at line 58 of file windlayer.h.
|
inline |
Set direction.
Definition at line 54 of file windlayer.h.
|
inline |
Set direction.
Definition at line 65 of file windlayer.h.
|
inline |
Set direction to variable.
Definition at line 83 of file windlayer.h.
|
inline |
Set gust speed.
Definition at line 95 of file windlayer.h.
|
inline |
Set level.
Definition at line 48 of file windlayer.h.
| void swift::misc::weather::CWindLayer::setPropertyByIndex | ( | swift::misc::CPropertyIndexRef | index, |
| const QVariant & | variant ) |
Set property by index.
Definition at line 40 of file windlayer.cpp.
|
inline |
Set speed.
Definition at line 89 of file windlayer.h.