LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
evdb Namespace Reference

Manage all things related to colors for the event display. More...

Namespaces

 ROOT
 

Classes

class  ButtonBar
 
class  Canvas
 
class  Colors
 
class  ColorScale
 Build an association between a numerical range and a ROOT color index for use in, eg., the event display. More...
 
class  DisplayWindow
 An event display window. More...
 
class  EditMenu
 The edit pull down menu. More...
 
class  EventDisplay
 ART event display service. More...
 
class  EventHolder
 
class  FileMenu
 
class  HelpMenu
 
class  JobMenu
 The job pull dow menu. More...
 
class  ListWindow
 An event display window. More...
 
class  MenuBar
 The pull down menu bar. More...
 
class  NavState
 
class  ObjListCanvas
 
class  ParameterSetEdit
 Dialog window to edit a parameter set. More...
 
class  ParameterSetEditDialog
 Top-level interface to all parameter sets. More...
 
class  ParameterSetEditFrame
 A frame for editing a single paramter set. More...
 
class  ParameterSetEditRow
 A single row for editing a single parameter in a set. More...
 
class  ParamFrame
 Helper class to setup scroll bars in evdb::ParameterSetEdit. More...
 
class  Printable
 Base class for printable objects. More...
 
class  PrintDialog
 
class  Reconfigurable
 
class  RootEnv
 Configure the ROOT environment. More...
 
class  ScanFrame
 Helper class to setup scroll bars in evdb::ScanWindow. More...
 
class  ScanOptions
 
class  ScanWindow
 
class  ServiceTable
 Collection of Services used in the event display. More...
 
struct  ServiceTableEntry
 Information about a service required by the event display. More...
 
class  StatusBar
 A status bar on the bottom of the display. More...
 
class  TBoxClipped
 
class  testCanvas1
 
class  View2D
 
class  View3D
 
class  WindowMenu
 

Typedefs

typedef Canvas *(* CanvasCreator_t) (TGMainFrame *mf)
 
typedef ObjListCanvas *(* ObjListCanvasCreator_t) (TGMainFrame *mf)
 

Enumerations

enum  _color_scales {
  kRainbow, kInvRainbow, kLinGray, kColdToHot,
  kBlueToRed, kBlueToRedII, kHeatedObject, kReds,
  kGreens, kBlues, kGeographic, kBlueToGreen,
  kBlueToOrange, kGreenToMagenta, kSequential, kFocus,
  kCustom
}
 The list of default color options. More...
 
enum  _scale_options { kLinear, kLog, kSqrt }
 How to scale between low and high ranges. More...
 
enum  {
  kM_FILE_OPEN, kM_FILE_SAVE, kM_FILE_SAVEAS, kM_FILE_CLOSE,
  kM_FILE_PRINT, kM_FILE_QUIT
}
 
enum  { kM_HELP_CONTENTS, kM_HELP_RELEASENOTES, kM_HELP_ABOUT }
 
enum  { kM_JOB_OPENXML = 99001, kM_JOB_EDITCONFIG = 99100, kM_JOB_RESETJOB = 99003, kM_JOB_EDITSERVICE = 99200 }
 
enum  nav_states_ {
  kNEXT_EVENT, kPREV_EVENT, kRELOAD_EVENT, kGOTO_EVENT,
  kSEQUENTIAL_ONLY
}
 

Functions

static std::vector< DisplayWindow * > gsWindows (64)
 
const TGWindow * TopWindow ()
 
TGPicturePool * PicturePool ()
 
static std::vector< ListWindow * > gsWindows (64)
 
static void parse_pset_string (const std::string &pset, std::vector< std::string > &names, std::vector< std::string > &values)
 

Variables

static std::vector< std::string > gsName
 
static std::vector< std::string > gsDescription
 
static std::vector< unsigned int > gsHeight
 
static std::vector< unsigned int > gsWidth
 
static std::vector< CanvasCreator_tgsCanvasCreator
 
static evdb::RootEnv gsRootEnv (0, 0)
 
static EventHoldergInstance = 0
 
static std::vector< std::string > gsName
 
static std::vector< std::string > gsDescription
 
static std::vector< unsigned int > gsHeight
 
static std::vector< unsigned int > gsWidth
 
static std::vector< ObjListCanvasCreator_tgsObjListCanvasCreator
 
static int gsNavState = 0
 
static int gsTargetRun = 0
 
static int gsTargetEvent = 0
 
static std::map< std::string, evdb::Printable * > gsPrintables
 
static std::map< std::string, bool > gsPrintableSelection
 
static std::map< std::string, bool > gsFormatSelection
 
static constexpr int kDRAWING_SERVICE = 1
 
static constexpr int kEXPERIMENT_SERVICE = 2
 

Detailed Description

Manage all things related to colors for the event display.

Base package for construction of an event display.

$Id:$

Author
messi.nosp@m.er@i.nosp@m.ndian.nosp@m.a.ed.nosp@m.u

Typedef Documentation

typedef Canvas*(* evdb::CanvasCreator_t) (TGMainFrame *mf)

Definition at line 26 of file DisplayWindow.h.

typedef ObjListCanvas*(* evdb::ObjListCanvasCreator_t) (TGMainFrame *mf)

Definition at line 21 of file ListWindow.h.

Enumeration Type Documentation

anonymous enum
Enumerator
kM_FILE_OPEN 
kM_FILE_SAVE 
kM_FILE_SAVEAS 
kM_FILE_CLOSE 
kM_FILE_PRINT 
kM_FILE_QUIT 

Definition at line 23 of file FileMenu.cxx.

anonymous enum
Enumerator
kM_HELP_CONTENTS 
kM_HELP_RELEASENOTES 
kM_HELP_ABOUT 

Definition at line 26 of file HelpMenu.cxx.

anonymous enum
Enumerator
kM_JOB_OPENXML 
kM_JOB_EDITCONFIG 
kM_JOB_RESETJOB 
kM_JOB_EDITSERVICE 

Definition at line 26 of file JobMenu.cxx.

The list of default color options.

Enumerator
kRainbow 
kInvRainbow 

ROY G. BIV (default)

kLinGray 

Rainbow with high and low flipped.

kColdToHot 

Linearized gray scale.

kBlueToRed 

A color scale primarily in reds.

kBlueToRedII 

Blue = cold, red = hot.

kHeatedObject 

A color scale from dark blue (very cold) to red (hot) passing through yellow.

kReds 

A color scale from light to "burned".

kGreens 

A color scale primarily in reds.

kBlues 

A color scale primarily in greens.

kGeographic 

A color scale primarily in blues.

kBlueToGreen 

Light earth tones through green to blues.

kBlueToOrange 

Blue to green transition.

kGreenToMagenta 

Blue to orange transition.

kSequential 

Green to magenta transition.

kFocus 

Useful for sequential data.

kCustom 

Sequential data with focus in center of scale.

User specfied

Definition at line 15 of file ColorScale.h.

15  {
16  kRainbow,
17  kInvRainbow,
18  kLinGray,
19  kColdToHot,
20  kBlueToRed,
21  kBlueToRedII,
23  kReds,
24  kGreens,
25  kBlues,
26  kGeographic,
27  kBlueToGreen,
30  kSequential,
31  kFocus,
32  kCustom
33  };
Blue to orange transition.
Definition: ColorScale.h:29
Useful for sequential data.
Definition: ColorScale.h:31
Sequential data with focus in center of scale.
Definition: ColorScale.h:32
Blue to green transition.
Definition: ColorScale.h:28
ROY G. BIV (default)
Definition: ColorScale.h:17
A color scale primarily in greens.
Definition: ColorScale.h:25
A color scale primarily in reds.
Definition: ColorScale.h:20
A color scale primarily in blues.
Definition: ColorScale.h:26
Blue = cold, red = hot.
Definition: ColorScale.h:21
Rainbow with high and low flipped.
Definition: ColorScale.h:18
Green to magenta transition.
Definition: ColorScale.h:30
A color scale from dark blue (very cold) to red (hot) passing through yellow.
Definition: ColorScale.h:22
Light earth tones through green to blues.
Definition: ColorScale.h:27
Linearized gray scale.
Definition: ColorScale.h:19
A color scale primarily in reds.
Definition: ColorScale.h:24
A color scale from light to "burned".
Definition: ColorScale.h:23

How to scale between low and high ranges.

Enumerator
kLinear 
kLog 

Linearly (default)

kSqrt 

According to log(x)

According to sqrt(x)

Definition at line 36 of file ColorScale.h.

36  {
37  kLinear,
38  kLog,
39  kSqrt
40  };
According to log(x)
Definition: ColorScale.h:39
Linearly (default)
Definition: ColorScale.h:38
Enumerator
kNEXT_EVENT 
kPREV_EVENT 
kRELOAD_EVENT 
kGOTO_EVENT 
kSEQUENTIAL_ONLY 

Definition at line 11 of file NavState.h.

Function Documentation

static std::vector<ListWindow*> evdb::gsWindows ( 64  )
static

The collection of open windows

static void evdb::parse_pset_string ( const std::string &  pset,
std::vector< std::string > &  names,
std::vector< std::string > &  values 
)
static

Definition at line 30 of file ParameterSetEdit.cxx.

References fhicl::detail::atom::value().

Referenced by evdb::ParameterSetEdit::ParameterSetEdit().

33  {
34  // Parse out the content of the parameter set
35  size_t istart = 0;
36  size_t iend = 0;
37  while (1) {
38  iend = pset.find(' ',istart);
39 
40  std::string param = pset.substr(istart, iend-istart);
41 
42  size_t ieq = param.find(':');
43  if (ieq == param.npos) { abort(); }
44 
45  std::string nm = param.substr(0,ieq);
46  std::string value = param.substr(ieq+1,param.size());
47 
48  names. push_back(nm);
49  values.push_back(value);
50 
51  if (iend==pset.npos) break;
52  istart = iend+1;
53  }
54 
55  }
std::string value(boost::any const &)
TGPicturePool * evdb::PicturePool ( )

Definition at line 16 of file evdb.cxx.

Referenced by evdb::ButtonBar::ButtonBar().

17 {
18  static TGPicturePool* pp = 0;
19  if (pp==0) {
20  std::string path;
21 
22  const char* private_ctx = getenv("SRT_PRIVATE_CONTEXT");
23  const char* public_ctx = getenv("SRT_PUBLIC_CONTEXT");
24  const char* root_ctx = getenv("ROOTSYS");
25 
26  // Not every experiment uses SRT, so check that the SRT environmental
27  // variables are legit before adding them to the path
28  if(private_ctx) { path += private_ctx; path += "/EventDisplay/icons:"; }
29  if(public_ctx) { path += public_ctx; path += "/EventDisplay/icons:"; }
30  path += root_ctx; path += "/icons";
31 
32  pp = new TGPicturePool(gClient, path.c_str());
33  }
34  return pp;
35 }

Variable Documentation

EventHolder* evdb::gInstance = 0
static

Definition at line 12 of file EventHolder.cxx.

Referenced by evdb::EventHolder::Instance().

std::vector<CanvasCreator_t> evdb::gsCanvasCreator
static

Definition at line 46 of file DisplayWindow.cxx.

std::vector<std::string> evdb::gsDescription
static

Definition at line 39 of file ListWindow.cxx.

std::vector<std::string> evdb::gsDescription
static

Definition at line 43 of file DisplayWindow.cxx.

std::map<std::string,bool> evdb::gsFormatSelection
static

Definition at line 25 of file PrintDialog.cxx.

std::vector<unsigned int> evdb::gsHeight
static

Definition at line 40 of file ListWindow.cxx.

std::vector<unsigned int> evdb::gsHeight
static

Definition at line 44 of file DisplayWindow.cxx.

std::vector<std::string> evdb::gsName
static

Tables of information for display windows

Definition at line 38 of file ListWindow.cxx.

std::vector<std::string> evdb::gsName
static

Tables of information for display windows

Definition at line 42 of file DisplayWindow.cxx.

Referenced by evdb::ListWindow::Names(), and evdb::DisplayWindow::Names().

int evdb::gsNavState = 0
static

Definition at line 14 of file NavState.cxx.

Referenced by evdb::NavState::Which().

std::vector<ObjListCanvasCreator_t> evdb::gsObjListCanvasCreator
static

Definition at line 42 of file ListWindow.cxx.

std::map<std::string,evdb::Printable*> evdb::gsPrintables
static

Definition at line 14 of file Printable.cxx.

Referenced by evdb::Printable::GetPrintables().

std::map<std::string,bool> evdb::gsPrintableSelection
static

Definition at line 24 of file PrintDialog.cxx.

evdb::RootEnv evdb::gsRootEnv(0, 0)
static
int evdb::gsTargetEvent = 0
static

Definition at line 16 of file NavState.cxx.

Referenced by evdb::NavState::TargetEvent().

int evdb::gsTargetRun = 0
static

Definition at line 15 of file NavState.cxx.

Referenced by evdb::NavState::TargetRun().

std::vector<unsigned int> evdb::gsWidth
static

Definition at line 41 of file ListWindow.cxx.

std::vector<unsigned int> evdb::gsWidth
static

Definition at line 45 of file DisplayWindow.cxx.

constexpr int evdb::kEXPERIMENT_SERVICE = 2
static