GeometryDrawingOptions_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file GeometryDrawingOptions.cxx
3 /// \brief Global drawing options that apply to all displays
4 /// \author messier@indiana.edu
5 /////////////////////////////////////////////////////////////////////////
7 
8 
9 namespace evd
10 {
11  // Unpack the configuration into the class data
12  //---------------------------------------------------------------
15  : evdb::Reconfigurable{pset}
16  {
17  this->reconfigure(pset);
18  }
19 
20  //---------------------------------------------------------------
22  {
23  }
24 
25  //---------------------------------------------------------------
27  {
28  fZoom = pset.get<int>("Zoom.val");
29  fZRange = pset.get<int>("ZRange.val");
30  fOutline = pset.get<int>("Outline.val");
31  fFiducialBounds= pset.get< std::vector<float> >("FiducialBounds.val");
32  fSliceBoxSize = pset.get< std::vector<float> >("SliceBoxSize.val");
33  fFlip = pset.get<int>("Flip.val");
34  fLabel = pset.get<int>("Label.val");
35  fDimDisabled = pset.get<int>("DimDisabled.val");
36  fEnabledColor = pset.get<int>("EnabledColor.val");
37  fDisabledColor = pset.get<int>("DisabledColor.val");
38  fHighlightPlane= pset.get<int>("HighlightPlane.val");
39  fHighlightCell = pset.get<int>("HighlightCell.val");
40 
41  std::vector<double> v =
42  pset.get<std::vector<double> >("ViewingAngles3D.val");
43 
44  fTheta = v[0];
45  fPhi = v[1];
46  fPsi = v[2];
47  }
48 
50 
51 } // end namespace evd
52 ////////////////////////////////////////////////////////////////////////
int fLabel
Which labels to draw?
#define DEFINE_ART_SERVICE(svc)
Definition: ServiceMacros.h:93
void reconfigure(fhicl::ParameterSet const &pset) override
double fTheta
View angles for 3D.
GeometryDrawingOptions(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Manage all things related to colors for the event display.
Definition: Display3DPad.h:11
std::vector< float > fFiducialBounds
nova event display
T get(std::string const &key) const
Definition: ParameterSet.h:231
Global drawing options that apply to all displays.
int fZoom
How to zoom the display.
std::vector< float > fSliceBoxSize
int fFlip
Reverse the sense of any of the coordinate axes?
int fDimDisabled
Dim disabled channels? What colors?
int fOutline
Which outlines to draw.
Global drawing options that apply to all displays.