Analysis Software
Documentation for sPHENIX simulation 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 #include <string>
13 
14 namespace Acts {
15 
19 using ColorRGB = std::array<int, 3>;
20 
23 struct ViewConfig {
25  ViewConfig(bool vis = true) : visible(vis) {}
26 
28  ViewConfig(const ColorRGB& rgb) : color(rgb) {}
29 
31  bool visible = true;
33  ColorRGB color = {250, 0, 0};
35  double offset = 0.1;
37  double lineThickness = 0.15;
39  double surfaceThickness = 0.15;
41  unsigned int nSegments = 72;
43  bool triangulate = false;
46 };
47 
48 } // namespace Acts