ATLAS Offline Software
Loading...
Searching...
No Matches
python.draw_obj._options Class Reference
Inheritance diagram for python.draw_obj._options:
Collaboration diagram for python.draw_obj._options:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, options)

Public Attributes

int merge = 0
int same = 0
int norm = 0
int logx = 0
int logy = 0
int fill = -1
int linetype = -1
int color = -1
int linecolors = 0
str other = ""

Protected Member Functions

 _optmatch (self, lo, pat)

Detailed Description

Helper class for parsing options.

Definition at line 74 of file draw_obj.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.draw_obj._options.__init__ ( self,
options )

Definition at line 76 of file draw_obj.py.

76 def __init__ (self, options):
77 self.merge = 0
78 self.same = 0
79 self.norm = 0
80 self.logx = 0
81 self.logy = 0
82 self.fill = -1
83 self.linetype = -1
84 self.color = -1
85 self.linecolors = 0
86 self.other = ""
87
88 options = options.replace (',', ' ')
89 for o in options.split():
90 lo = o.lower()
91 if lo in ["merge", "same", "norm", "logx", "logy", 'linecolors']:
92 setattr (self, lo, 1)
93 elif (self._optmatch (lo, "fill") or
94 self._optmatch (lo, "linetype") or
95 self._optmatch (lo, "color")):
96 pass
97 else:
98 self.other += o
99 return
100
101

Member Function Documentation

◆ _optmatch()

python.draw_obj._options._optmatch ( self,
lo,
pat )
protected

Definition at line 102 of file draw_obj.py.

102 def _optmatch (self, lo, pat):
103 if lo.startswith (pat+'='):
104 setattr (self, pat, int (lo[len (pat)+1:]))
105 return 1
106 return 0
107
108

Member Data Documentation

◆ color

int python.draw_obj._options.color = -1

Definition at line 84 of file draw_obj.py.

◆ fill

int python.draw_obj._options.fill = -1

Definition at line 82 of file draw_obj.py.

◆ linecolors

int python.draw_obj._options.linecolors = 0

Definition at line 85 of file draw_obj.py.

◆ linetype

int python.draw_obj._options.linetype = -1

Definition at line 83 of file draw_obj.py.

◆ logx

int python.draw_obj._options.logx = 0

Definition at line 80 of file draw_obj.py.

◆ logy

int python.draw_obj._options.logy = 0

Definition at line 81 of file draw_obj.py.

◆ merge

int python.draw_obj._options.merge = 0

Definition at line 77 of file draw_obj.py.

◆ norm

int python.draw_obj._options.norm = 0

Definition at line 79 of file draw_obj.py.

◆ other

str python.draw_obj._options.other = ""

Definition at line 86 of file draw_obj.py.

◆ same

int python.draw_obj._options.same = 0

Definition at line 78 of file draw_obj.py.


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