Belle II Software  release-05-02-19
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 13 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 20 of file __init__.py.

20  def __init__(self, animate=False):
21  """
22  Constructor methode.
23  @param animate switch indicating if an animated SVG should be generated
24  """
25  top = -112
26  left = -112
27  right = 112
28  bottom = 112
29 
30  default_bound = Belle2.TrackFindingCDC.BoundingBox(left, bottom, right, top)
31  default_width = 1120
32  default_height = 1120
33 
34 
35  self.animate = animate
36 
37  self.eventdata_plotter = Belle2.TrackFindingCDC.EventDataPlotter(self.animate)
38 
39  self.eventdata_plotter.setBoundingBox(default_bound)
40  self.eventdata_plotter.setCanvasHeight(default_height)
41  self.eventdata_plotter.setCanvasWidth(default_width)
42 

Member Function Documentation

◆ clone()

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

Definition at line 43 of file __init__.py.

◆ draw()

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

Definition at line 165 of file __init__.py.

◆ draw_inner_cdc_wall()

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

Definition at line 82 of file __init__.py.

◆ draw_interaction_point()

def draw_interaction_point (   self)
Draw the interaction point

Definition at line 69 of file __init__.py.

◆ draw_iterable()

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

Definition at line 104 of file __init__.py.

◆ draw_outer_cdc_wall()

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

Definition at line 75 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 142 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 114 of file __init__.py.

◆ draw_superlayer_boundaries()

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

Definition at line 62 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 193 of file __init__.py.

◆ saveSVGFile()

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

Definition at line 172 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 51 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 90 of file __init__.py.


The documentation for this class was generated from the following file:
Belle2::TrackFindingCDC::EventDataPlotter
A class that can plot event related data types.
Definition: EventDataPlotter.h:64
Belle2::TrackFindingCDC::BoundingBox
A two dimensional rectangle that keeps track of the extend of a drawing.
Definition: BoundingBox.h:31