Inherits Object.
Position on a photo where a mask is placed.
Public Fields | |
object_ptr< MaskPoint > | point_ |
Part of the face, relative to which the mask is placed. | |
double | x_shift_ |
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position.) | |
double | y_shift_ |
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position.) | |
double | scale_ |
Mask scaling coefficient. (For example, 2.0 means a doubled size.) | |
Public Instance Methods | |
maskPosition () | |
maskPosition (object_ptr< MaskPoint > &&point_, double x_shift_, double y_shift_, double scale_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -2097433026 |
Identifier uniquely determining a type of the object. | |
maskPosition | ( | ) |
Position on a photo where a mask is placed.
maskPosition | ( | object_ptr< MaskPoint > && | point_, |
double | x_shift_, | ||
double | y_shift_, | ||
double | scale_ | ||
) |
Position on a photo where a mask is placed.
[in] | point_ | Part of the face, relative to which the mask is placed. |
[in] | x_shift_ | Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position.) |
[in] | y_shift_ | Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position.) |
[in] | scale_ | Mask scaling coefficient. (For example, 2.0 means a doubled size.) |
|
finalvirtual |