Belle II Software  release-08-01-10
CDCSVGPlotter Class Reference

Public Member Functions

def __init__ (self, animate=False)
 
def clone (self)
 
def styling_to_attribute_map (self, **styling)
 
def draw_superlayer_boundaries (self, **styling)
 
def draw_interaction_point (self)
 
def draw_outer_cdc_wall (self, **styling)
 
def draw_inner_cdc_wall (self, **styling)
 
def draw_iterable (self, iterable, **styling)
 
def draw_storevector (self, storeobj_name, **styling)
 
def draw_storearray (self, storearray_name, **styling)
 
def draw (self, obj, **styling)
 
def saveSVGFile (self, svgFileName='display.svg')
 
def savePNGFile (self, pngFileName='display.png')
 

Static Public Member Functions

def unpack_attributes (styling, i_obj=0, obj=None)
 

Public Attributes

 animate
 Switch to indicating if an animated SVG should be generated.
 
 eventdata_plotter
 Display the image using the event-data plotter.
 

Detailed Description

Helper class to generated the svg image from the various tracking objects.
This is a tiny wrapper around the TrackFindingCDC.EventDataPlotter.

Definition at line 22 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  animate = False 
)
Constructor methode.
@param animate switch indicating if an animated SVG should be generated

Definition at line 29 of file __init__.py.

29  def __init__(self, animate=False):
30  """
31  Constructor methode.
32  @param animate switch indicating if an animated SVG should be generated
33  """
34  top = -112
35  left = -112
36  right = 112
37  bottom = 112
38 
39  default_bound = Belle2.TrackFindingCDC.BoundingBox(left, bottom, right, top)
40  default_width = 1120
41  default_height = 1120
42 
43 
44  self.animate = animate
45 
46  self.eventdata_plotter = Belle2.TrackFindingCDC.EventDataPlotter(self.animate)
47 
48  self.eventdata_plotter.setBoundingBox(default_bound)
49  self.eventdata_plotter.setCanvasHeight(default_height)
50  self.eventdata_plotter.setCanvasWidth(default_width)
51 
A two dimensional rectangle that keeps track of the extend of a drawing.
Definition: BoundingBox.h:21
A class that can plot event related data types.

Member Function Documentation

◆ clone()

def clone (   self)
Make a copy of the current status of the plotter.

Definition at line 52 of file __init__.py.

◆ draw()

def draw (   self,
  obj,
**  styling 
)
Draw an object with the specified styling

Definition at line 174 of file __init__.py.

◆ draw_inner_cdc_wall()

def draw_inner_cdc_wall (   self,
**  styling 
)
Draw the CDC inner wall

Definition at line 91 of file __init__.py.

◆ draw_interaction_point()

def draw_interaction_point (   self)
Draw the interaction point

Definition at line 78 of file __init__.py.

◆ draw_iterable()

def draw_iterable (   self,
  iterable,
**  styling 
)
Draw one or more items with the specified styling

Definition at line 113 of file __init__.py.

◆ draw_outer_cdc_wall()

def draw_outer_cdc_wall (   self,
**  styling 
)
Draw the CDC outer wall

Definition at line 84 of file __init__.py.

◆ draw_storearray()

def draw_storearray (   self,
  storearray_name,
**  styling 
)
Draw information from a StoreArray with the specified styling

Definition at line 151 of file __init__.py.

◆ draw_storevector()

def draw_storevector (   self,
  storeobj_name,
**  styling 
)
Draw information in a vector from the DataStore with the specified styling

Definition at line 123 of file __init__.py.

◆ draw_superlayer_boundaries()

def draw_superlayer_boundaries (   self,
**  styling 
)
Draw the CDC superlayer boundaries

Definition at line 71 of file __init__.py.

◆ savePNGFile()

def savePNGFile (   self,
  pngFileName = 'display.png' 
)
Save the current dom object representation to disk as a png.

Definition at line 202 of file __init__.py.

◆ saveSVGFile()

def saveSVGFile (   self,
  svgFileName = 'display.svg' 
)
Save the current dom object representation to disk.

Definition at line 181 of file __init__.py.

◆ styling_to_attribute_map()

def styling_to_attribute_map (   self,
**  styling 
)
Transfer the styling information to the attribute map

Definition at line 60 of file __init__.py.

◆ unpack_attributes()

def unpack_attributes (   styling,
  i_obj = 0,
  obj = None 
)
static
Mapping function to unpack the attributes from the attribute maps. Mechanism and interface inspired by d3.js

Definition at line 99 of file __init__.py.


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