NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
Point.h
1#ifndef _POINT_H_
2#define _POINT_H_
3
4#include "CanvasItem.h"
5
6#include <string>
7#include <string_view>
8
9#include <array>
10
11class Point : public CanvasItem {
12
13public:
14 Point();
15 Point *clone() const;
16
17 void setCoordinates(const std::array<double, 3> &coordinates);
18
19 void setCoordinates(double x, double y, double z);
20
21 std::array<double, 3> const &getCoordinates() const;
22
23 void setColor(std::string_view color);
24
25 std::string_view getColor() const;
26
27 void setSymbol(int symbol);
28
29 const int &getSymbol() const;
30
31 void setSize(int size);
32
33 const int &getSize() const;
34
35private:
36 std::array<double, 3> _coordinates;
37
38 std::string _color;
39
40 int _size;
41
42 int _symbol;
43};
44
45inline void Point::setCoordinates(const std::array<double, 3> &coordinates) {
46 _coordinates = coordinates;
47}
48
49inline std::array<double, 3> const &Point::getCoordinates() const {
50 return (_coordinates);
51}
52
53inline void Point::setColor(std::string_view color) { _color = color; }
54
55inline std::string_view Point::getColor() const { return (_color); }
56
57inline void Point::setSymbol(int symbol) { _symbol = symbol; }
58
59inline const int &Point::getSymbol() const { return (_symbol); }
60
61inline void Point::setSize(int size) { _size = size; }
62
63inline const int &Point::getSize() const { return (_size); }
64
65#endif /* _POINT_H_ */
Definition Point.h:11

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma