AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Point.hpp
Go to the documentation of this file.
1//
2// Point.hpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 20/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#ifndef Point_hpp
12#define Point_hpp
13
14
15
21class Point {
22private:
26 float x;
30 float y;
35protected:
40 void setX (float x);
45 void setY (float y);
46public:
53 Point (float x, float y, Point * decorated = nullptr) : decorated(decorated) {
54 setX(x);
55 setY(y);
56 }
60 ~Point (void);
61
62
63
68 float getX (void);
73 float getY (void);
78 const Point * getDecorated (void);
79};
80
81#endif /* Point_hpp */
Point class is used for point creations and manipulations.
Definition: Point.hpp:21
const Point * decorated
A pointer to Point.
Definition: Point.hpp:34
float x
Point's x coordinate.
Definition: Point.hpp:26
Point(float x, float y, Point *decorated=nullptr)
Construct a new Point object.
Definition: Point.hpp:53
void setY(float y)
Set the Point's y coordinate value.
Definition: Point.cpp:19
float getY(void)
Get the Point's y coordinate value.
Definition: Point.cpp:33
float y
Point's y coordinate.
Definition: Point.hpp:30
~Point(void)
Destroy the Point object.
Definition: Point.cpp:23
float getX(void)
Get the Point's x coordinate value.
Definition: Point.cpp:29
void setX(float x)
Set the Point's x coordinate value.
Definition: Point.cpp:15
const Point * getDecorated(void)
Get the pointer to Point used to check if that's a "decorated" Point.
Definition: Point.cpp:37