File indexing completed on 2025-12-16 09:41:55
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include <string>
0012 #include <vector>
0013
0014 #include "actsvg/core/defs.hpp"
0015 #include "actsvg/styles/defaults.hpp"
0016
0017 namespace actsvg {
0018
0019 namespace proto {
0020
0021
0022
0023
0024
0025
0026
0027 struct grid {
0028
0029
0030 enum type { e_x_y = 0, e_r_phi = 1, e_z_phi = 2 };
0031
0032
0033 std::string _name = "grid";
0034
0035
0036 type _type = e_r_phi;
0037
0038
0039 std::vector<scalar> _edges_0 = {};
0040
0041
0042 std::vector<scalar> _edges_1 = {};
0043
0044
0045 scalar _reference_r = 0.;
0046
0047
0048 std::vector<std::string> _bin_ids = {};
0049
0050
0051 std::vector<svg::object> _connections;
0052
0053 std::vector<connectors::type> _connection_types = {};
0054
0055 std::vector<std::vector<size_t>> _connection_associations = {};
0056
0057
0058 style::fill _fill = defaults::__g_fill;
0059
0060
0061 style::stroke _stroke = defaults::__g_stroke;
0062 };
0063
0064 }
0065
0066 }