Skip to content

Commit

Permalink
Merge pull request #37 from acts-project/feat-update-grid-functionality
Browse files Browse the repository at this point in the history
feat: in situ grid functionality
  • Loading branch information
asalzburger authored Apr 6, 2023
2 parents 6253710 + c1dc48d commit bec2649
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meta/include/actsvg/display/grids.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace display {
*
* @return an svg object representing the grid
*/
svg::object grid(const std::string& id_, const proto::grid& g_) {
static inline svg::object grid(const std::string& id_, const proto::grid& g_) {

// The grid object
svg::object g;
Expand Down
5 changes: 3 additions & 2 deletions meta/include/actsvg/meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

#include "actsvg/styles/defaults.hpp"

#include "actsvg/display/datamodel.hpp"
#include "actsvg/display/grids.hpp"
#include "actsvg/display/geometry.hpp"
#include "actsvg/display/helpers.hpp"
#include "actsvg/display/sheets.hpp"
#include "actsvg/display/geometry.hpp"
#include "actsvg/display/datamodel.hpp"
3 changes: 3 additions & 0 deletions meta/include/actsvg/proto/grid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ struct grid {
/// Reference r for drawing
scalar _reference_r = 0.;

/// Bin identifications
std::vector<std::string> _bin_ids = {};

/// Connections
std::vector<svg::object> _connections;
/// Connection types
Expand Down

0 comments on commit bec2649

Please sign in to comment.