NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
Panels.cpp
1#include "Panels.h"
2
3Panels::Panels()
4 : _xmargins({0.15, 0.9}), _ymargins({0.15, 0.9}), _columns(1), _rows(1) {
5 type = Type::I_Panels;
6 _items.reserve(2);
7}
8Panels::Panels(Panels const &other) {
9 type = other.type;
10
11 _xmargins = other._xmargins;
12 _ymargins = other._ymargins;
13 _columns = other._columns;
14 _rows = other._rows;
15
16 for (auto &item : other._items) {
17 _items.emplace_back(item->clone());
18 }
19}
20Panels *Panels::clone() const { return new Panels(*this); }
21
22void Panels::add(CanvasItem &item) { _items.emplace_back(item.clone()); }
23
24void Panels::add(std::vector<Plot> &plots) {
25
26 for (auto &plot : plots) {
27
28 _items.emplace_back(plot.clone());
29 }
30}

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