EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ViewConfig.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ViewConfig.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 #include <array>
12 
13 namespace Acts {
14 
18 using ColorRGB = std::array<int, 3>;
19 
22 struct ViewConfig {
24  ViewConfig(bool vis = true) : visible(vis) {}
25 
27  ViewConfig(const ColorRGB& rgb) : color(rgb) {}
28 
30  bool visible = true;
32  ColorRGB color = {250, 0, 0};
34  double offset = 0.1;
36  double lineThickness = 0.15;
38  double surfaceThickness = 0.15;
40  unsigned int nSegments = 72;
42  bool triangulate = false;
44  std::string outputName = "";
45 };
46 
47 } // namespace Acts