AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Point3D Class Reference

Point3D class is used for Point3D creations and manipulations. More...

#include <Point3D.hpp>

Inheritance diagram for Point3D:
Point

Public Member Functions

 Point3D (float x, float y, float z, Point *decorated=nullptr)
 Construct a new Point 3D object. More...
 
float getZ (void)
 Get the Point's z coordinate value. More...
 
float getX (void)
 Get the Point's x coordinate value. More...
 
float getY (void)
 Get the Point's y coordinate value. More...
 
const PointgetDecorated (void)
 Get the pointer to Point used to check if that's a "decorated" Point. More...
 

Protected Member Functions

void setX (float x)
 Set the Point's x coordinate value. More...
 
void setY (float y)
 Set the Point's y coordinate value. More...
 

Private Member Functions

void setZ (float z)
 Set the Point's z coordinate value. More...
 

Private Attributes

float z
 Point's z coordinate. More...
 
float x
 Point's x coordinate. More...
 
float y
 Point's y coordinate. More...
 
const Pointdecorated
 A pointer to Point. More...
 

Detailed Description

Point3D class is used for Point3D creations and manipulations.

Point3D class is a class that represents a Point with its own x coordinate, y coordinate, and z coordinate. This class inherits from Point and adds the "z coordinate" detail.

Definition at line 23 of file Point3D.hpp.

Constructor & Destructor Documentation

◆ Point3D()

Point3D::Point3D ( float  x,
float  y,
float  z,
Point decorated = nullptr 
)

Construct a new Point 3D object.

Parameters
xPoint's x coordinate value.
yPoint's y coordinate value.
zPoint's z coordinate value.
decorated
See also
Point (float x, float y, Point * decorated = nullptr) : decorated(decorated)

Definition at line 21 of file Point3D.cpp.

21 : Point(x, y, decorated) {
22 setZ(z);
23}
float z
Point's z coordinate.
Definition: Point3D.hpp:28
void setZ(float z)
Set the Point's z coordinate value.
Definition: Point3D.cpp:15
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
float y
Point's y coordinate.
Definition: Point.hpp:30

References setZ(), and z.

Member Function Documentation

◆ getDecorated()

const Point * Point::getDecorated ( void  )
inherited

Get the pointer to Point used to check if that's a "decorated" Point.

Returns
const Point *

Definition at line 37 of file Point.cpp.

37 {
38 return this->decorated;
39}

References Point::decorated.

Referenced by Point::~Point().

◆ getX()

float Point::getX ( void  )
inherited

Get the Point's x coordinate value.

Returns
float

Definition at line 29 of file Point.cpp.

29 {
30 return this->x;
31}

References Point::x.

◆ getY()

float Point::getY ( void  )
inherited

Get the Point's y coordinate value.

Returns
float

Definition at line 33 of file Point.cpp.

33 {
34 return this->y;
35}

References Point::y.

◆ getZ()

float Point3D::getZ ( void  )

Get the Point's z coordinate value.

Returns
float

Definition at line 25 of file Point3D.cpp.

25 {
26 return this->z;
27}

References z.

◆ setX()

void Point::setX ( float  x)
protectedinherited

Set the Point's x coordinate value.

Parameters
xPoint's x coordinate value.

Definition at line 15 of file Point.cpp.

15 {
16 this->x = x;
17}

References Point::x.

Referenced by Point::Point().

◆ setY()

void Point::setY ( float  y)
protectedinherited

Set the Point's y coordinate value.

Parameters
yPoint's y coordinate value.

Definition at line 19 of file Point.cpp.

19 {
20 this->y = y;
21}

References Point::y.

Referenced by Point::Point().

◆ setZ()

void Point3D::setZ ( float  z)
private

Set the Point's z coordinate value.

Parameters
zPoint's z coordinate value.

Definition at line 15 of file Point3D.cpp.

15 {
16 this->z = z;
17}

References z.

Referenced by Point3D().

Member Data Documentation

◆ decorated

const Point* Point::decorated
privateinherited

A pointer to Point.

Definition at line 34 of file Point.hpp.

Referenced by Point::getDecorated().

◆ x

float Point::x
privateinherited

Point's x coordinate.

Definition at line 26 of file Point.hpp.

Referenced by Point::getX(), Point::Point(), and Point::setX().

◆ y

float Point::y
privateinherited

Point's y coordinate.

Definition at line 30 of file Point.hpp.

Referenced by Point::getY(), Point::Point(), and Point::setY().

◆ z

float Point3D::z
private

Point's z coordinate.

Definition at line 28 of file Point3D.hpp.

Referenced by getZ(), Point3D(), and setZ().


The documentation for this class was generated from the following files: