23 Point2D(
int _x,
int _y) : m_x(_x), m_y(_y) {};
27 Point2D& operator = (
const Point2D& _other) { m_x = _other.m_x; m_y = _other.m_y;
return *
this; };
28 bool operator == (
const Point2D& _other)
const {
return m_x == _other.m_x && m_y == _other.m_y; };
29 bool operator != (
const Point2D& _other)
const {
return m_x != _other.m_x || m_y != _other.m_y; };
32 Point2D& operator += (
const Point2D& _other) { m_x += _other.m_x; m_y += _other.m_y;
return *
this; };
34 Point2D& operator -= (
const Point2D& _other) { m_x -= _other.m_x; m_y -= _other.m_y;
return *
this; };
44 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
47 int x(
void)
const {
return m_x; };
50 int y(
void)
const {
return m_y; };
54 void setX(
int _x) { m_x = _x; };
58 void setY(
int _y) { m_y = _y; };
63 void set(
int _x,
int _y) { m_x = _x; m_y = _y; };
85 Point2DF(
float _x,
float _y) : m_x(_x), m_y(_y) {};
89 Point2DF& operator = (
const Point2DF& _other) { m_x = _other.m_x; m_y = _other.m_y;
return *
this; };
91 bool operator != (
const Point2DF& _other)
const {
return m_x != _other.m_x || m_y != _other.m_y; };
94 Point2DF& operator += (
const Point2DF& _other) { m_x += _other.m_x; m_y += _other.m_y;
return *
this; };
96 Point2DF& operator -= (
const Point2DF& _other) { m_x -= _other.m_x; m_y -= _other.m_y;
return *
this; };
106 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
109 float x(
void)
const {
return m_x; };
112 float y(
void)
const {
return m_y; };
116 void setX(
float _x) { m_x = _x; };
120 void setY(
float _y) { m_y = _y; };
125 void set(
float _x,
float _y) { m_x = _x; m_y = _y; };
147 Point2DD(
double _x,
double _y) : m_x(_x), m_y(_y) {};
151 Point2DD& operator = (
const Point2DD& _other) { m_x = _other.m_x; m_y = _other.m_y;
return *
this; };
153 bool operator != (
const Point2DD& _other)
const {
return m_x != _other.m_x || m_y != _other.m_y; };
156 Point2DD& operator += (
const Point2DD& _other) { m_x += _other.m_x; m_y += _other.m_y;
return *
this; };
158 Point2DD& operator -= (
const Point2DD& _other) { m_x -= _other.m_x; m_y -= _other.m_y;
return *
this; };
168 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
171 double x(
void)
const {
return m_x; };
174 double y(
void)
const {
return m_y; };
178 void setX(
double _x) { m_x = _x; };
182 void setY(
double _y) { m_y = _y; };
187 void set(
double _x,
double _y) { m_x = _x; m_y = _y; };
#define OT_CORE_API_EXPORT
Dll import.
Definition CoreAPIExport.h:8
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
2D Point with double values
Definition Point2D.h:144
double y(void) const
Returns the current Y value.
Definition Point2D.h:174
void setX(double _x)
Set the X value.
Definition Point2D.h:178
void set(double _x, double _y)
Set the X and Y value.
Definition Point2D.h:187
virtual ~Point2DD()
Definition Point2D.h:149
Point2DD()
Definition Point2D.h:146
Point2DD(const Point2DD &_other)
Definition Point2D.h:148
Point2DD(double _x, double _y)
Definition Point2D.h:147
double x(void) const
Returns the current X value.
Definition Point2D.h:171
void setY(double _y)
Set the Y value.
Definition Point2D.h:182
2D Point with float values
Definition Point2D.h:82
void setX(float _x)
Set the X value.
Definition Point2D.h:116
Point2DF()
Definition Point2D.h:84
Point2DF(float _x, float _y)
Definition Point2D.h:85
float x(void) const
Returns the current X value.
Definition Point2D.h:109
virtual ~Point2DF()
Definition Point2D.h:87
void set(float _x, float _y)
Set the X and Y value.
Definition Point2D.h:125
void setY(float _y)
Set the Y value.
Definition Point2D.h:120
float y(void) const
Returns the current Y value.
Definition Point2D.h:112
Point2DF(const Point2DF &_other)
Definition Point2D.h:86
2D Point with integer values
Definition Point2D.h:20
void set(int _x, int _y)
Set the X and Y value.
Definition Point2D.h:63
int x(void) const
Returns the current X value.
Definition Point2D.h:47
Point2D()
Definition Point2D.h:22
virtual ~Point2D()
Definition Point2D.h:25
Point2D(const Point2D &_other)
Definition Point2D.h:24
void setX(int _x)
Set the X value.
Definition Point2D.h:54
void setY(int _y)
Set the Y value.
Definition Point2D.h:58
int y(void) const
Returns the current Y value.
Definition Point2D.h:50
Point2D(int _x, int _y)
Definition Point2D.h:23
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30