Public Member Functions | Public Attributes | Static Public Attributes | List of all members
evd::GeometryDrawingOptions Class Reference

Global drawing options that apply to all displays. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-28/EventDisplayServices/GeometryDrawingOptions.h"

Inheritance diagram for evd::GeometryDrawingOptions:
evdb::Reconfigurable

Public Member Functions

 GeometryDrawingOptions (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~GeometryDrawingOptions ()
 
void reconfigure (fhicl::ParameterSet const &pset) override
 
void do_reconfigure (fhicl::ParameterSet const &pset)
 

Public Attributes

int fZoom
 How to zoom the display. More...
 
float fZRange
 
int fOutline
 Which outlines to draw. More...
 
std::vector< float > fFiducialBounds
 
std::vector< float > fSliceBoxSize
 
int fFlip
 Reverse the sense of any of the coordinate axes? More...
 
int fLabel
 Which labels to draw? More...
 
int fDimDisabled
 Dim disabled channels? What colors? More...
 
int fEnabledColor
 
int fDisabledColor
 
int fHighlightPlane
 
int fHighlightCell
 
double fTheta
 View angles for 3D. More...
 
double fPhi
 
double fPsi
 

Static Public Attributes

static const int kZOOM_NONE = 0
 
static const int kZOOM_HITS = 1
 
static const int kZOOM_TRUTH = 2
 
static const int kZOOM_SLICE = 3
 
static const int kZOOM_SLICEBOX = 4
 
static const int kZOOM_PARTIAL = 5
 
static const int kOUTLINE_DETECTOR = 1<<0
 
static const int kOUTLINE_FIDUCIAL_USER = 1<<1
 
static const int kOUTLINE_GRID = 1<<2
 
static const int kOUTLINE_DCMS = 1<<3
 
static const int kOUTLINE_CELLS = 1<<4
 
static const int kOUTLINE_BADBOX = 1<<5
 
static const int kFLIP_X = 1<<0
 
static const int kFLIP_Y = 1<<1
 
static const int kFLIP_Z = 1<<2
 
static const int kLABEL_PLANECELL = 1<<0
 
static const int kLABEL_COMPASS = 1<<1
 

Detailed Description

Global drawing options that apply to all displays.

Definition at line 22 of file GeometryDrawingOptions.h.

Constructor & Destructor Documentation

evd::GeometryDrawingOptions::GeometryDrawingOptions ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)
explicit

Definition at line 13 of file GeometryDrawingOptions_service.cc.

References reconfigure().

15  : evdb::Reconfigurable{pset}
16  {
17  this->reconfigure(pset);
18  }
void reconfigure(fhicl::ParameterSet const &pset) override
evd::GeometryDrawingOptions::~GeometryDrawingOptions ( )

Definition at line 21 of file GeometryDrawingOptions_service.cc.

22  {
23  }

Member Function Documentation

void evdb::Reconfigurable::do_reconfigure ( fhicl::ParameterSet const &  pset)
inlineinherited

Definition at line 17 of file Reconfigurable.h.

17 { reconfigure(pset); }
virtual void reconfigure(fhicl::ParameterSet const &)=0
void evd::GeometryDrawingOptions::reconfigure ( fhicl::ParameterSet const &  pset)
overridevirtual

Implements evdb::Reconfigurable.

Definition at line 26 of file GeometryDrawingOptions_service.cc.

References DEFINE_ART_SERVICE, fDimDisabled, fDisabledColor, fEnabledColor, fFiducialBounds, fFlip, fHighlightCell, fHighlightPlane, fLabel, fOutline, fPhi, fPsi, fSliceBoxSize, fTheta, fZoom, fZRange, fhicl::ParameterSet::get(), and registry_explorer::v.

Referenced by GeometryDrawingOptions().

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  }
int fLabel
Which labels to draw?
double fTheta
View angles for 3D.
std::vector< float > fFiducialBounds
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.

Member Data Documentation

int evd::GeometryDrawingOptions::fDimDisabled

Dim disabled channels? What colors?

Definition at line 70 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawCells2D(), and reconfigure().

int evd::GeometryDrawingOptions::fDisabledColor

Definition at line 72 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawCells2D(), and reconfigure().

int evd::GeometryDrawingOptions::fEnabledColor

Definition at line 71 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawCells2D(), and reconfigure().

std::vector<float> evd::GeometryDrawingOptions::fFiducialBounds
int evd::GeometryDrawingOptions::fFlip

Reverse the sense of any of the coordinate axes?

Definition at line 59 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::LayoutHisto(), reconfigure(), evd::GeoTransform::X(), evd::GeoTransform::XYZ(), evd::GeoTransform::Y(), and evd::GeoTransform::Z().

int evd::GeometryDrawingOptions::fHighlightCell

Definition at line 75 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawHighlightCell(), and reconfigure().

int evd::GeometryDrawingOptions::fHighlightPlane

Definition at line 74 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawHighlightCell(), and reconfigure().

int evd::GeometryDrawingOptions::fLabel

Which labels to draw?

Definition at line 65 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawCells2D(), evd::TZProjPad::LayoutHisto(), and reconfigure().

int evd::GeometryDrawingOptions::fOutline
double evd::GeometryDrawingOptions::fPhi

Definition at line 78 of file GeometryDrawingOptions.h.

Referenced by evd::Display3DPad::Draw(), and reconfigure().

double evd::GeometryDrawingOptions::fPsi

Definition at line 78 of file GeometryDrawingOptions.h.

Referenced by evd::Display3DPad::Draw(), and reconfigure().

std::vector<float> evd::GeometryDrawingOptions::fSliceBoxSize

Definition at line 56 of file GeometryDrawingOptions.h.

Referenced by evd::SliceNavigator::GetBox(), and reconfigure().

double evd::GeometryDrawingOptions::fTheta

View angles for 3D.

Definition at line 78 of file GeometryDrawingOptions.h.

Referenced by evd::Display3DPad::Draw(), and reconfigure().

int evd::GeometryDrawingOptions::fZoom

How to zoom the display.

Definition at line 35 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw(), and reconfigure().

float evd::GeometryDrawingOptions::fZRange

Definition at line 43 of file GeometryDrawingOptions.h.

Referenced by reconfigure(), and evd::TZProjPad::ShowPartial().

const int evd::GeometryDrawingOptions::kFLIP_X = 1<<0
static
const int evd::GeometryDrawingOptions::kFLIP_Y = 1<<1
static

Definition at line 61 of file GeometryDrawingOptions.h.

Referenced by evd::GeoTransform::XYZ(), and evd::GeoTransform::Y().

const int evd::GeometryDrawingOptions::kFLIP_Z = 1<<2
static
const int evd::GeometryDrawingOptions::kLABEL_COMPASS = 1<<1
static

Definition at line 67 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::LayoutHisto().

const int evd::GeometryDrawingOptions::kLABEL_PLANECELL = 1<<0
static

Definition at line 66 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawCells2D().

const int evd::GeometryDrawingOptions::kOUTLINE_BADBOX = 1<<5
static
const int evd::GeometryDrawingOptions::kOUTLINE_CELLS = 1<<4
static
const int evd::GeometryDrawingOptions::kOUTLINE_DCMS = 1<<3
static

Definition at line 49 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DrawDCMBoxes().

const int evd::GeometryDrawingOptions::kOUTLINE_DETECTOR = 1<<0
static

Definition at line 46 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::DetOutline2D().

const int evd::GeometryDrawingOptions::kOUTLINE_FIDUCIAL_USER = 1<<1
static

Definition at line 47 of file GeometryDrawingOptions.h.

Referenced by evd::GeometryDrawer::FiducialVolumeUser2D().

const int evd::GeometryDrawingOptions::kOUTLINE_GRID = 1<<2
static

Definition at line 48 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().

const int evd::GeometryDrawingOptions::kZOOM_HITS = 1
static

Definition at line 37 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().

const int evd::GeometryDrawingOptions::kZOOM_NONE = 0
static

Definition at line 36 of file GeometryDrawingOptions.h.

const int evd::GeometryDrawingOptions::kZOOM_PARTIAL = 5
static

Definition at line 41 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().

const int evd::GeometryDrawingOptions::kZOOM_SLICE = 3
static

Definition at line 39 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().

const int evd::GeometryDrawingOptions::kZOOM_SLICEBOX = 4
static

Definition at line 40 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().

const int evd::GeometryDrawingOptions::kZOOM_TRUTH = 2
static

Definition at line 38 of file GeometryDrawingOptions.h.

Referenced by evd::TZProjPad::Draw().


The documentation for this class was generated from the following files: