CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.Dots Class Reference

Public Member Functions

def __init__ (self, d=[], symbol=None, width=1., height=1., attr)
 
def __repr__ (self)
 
def SVG (self, trans=None)
 

Public Attributes

 attr
 
 d
 
 height
 
 symbol
 
 width
 

Static Public Attributes

dictionary defaults = {}
 

Detailed Description

Dots draws SVG symbols at a set of points.

d                      required               list of (x,y) points
symbol                 default=None           SVG symbol or a new identifier to
                                              label an auto-generated symbol;
                                              if None, use pre-defined _circular_dot
width, height          default=1, 1           width and height of the symbols
                                              in SVG coordinates
attribute=value pairs  keyword list           SVG attributes

Definition at line 1907 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Dots.__init__ (   self,
  d = [],
  symbol = None,
  width = 1.,
  height = 1.,
  attr 
)

Definition at line 1923 of file svgfig.py.

1923  def __init__(self, d=[], symbol=None, width=1., height=1., **attr):
1924  self.d = list(d)
1925  self.width = width
1926  self.height = height
1927 
1928  self.attr = dict(self.defaults)
1929  self.attr.update(attr)
1930 
1931  if symbol == None:
1932  self.symbol = _circular_dot
1933  elif isinstance(symbol, SVG):
1934  self.symbol = symbol
1935  else:
1936  self.symbol = make_symbol(symbol)
1937 
def __init__(self, d=[], symbol=None, width=1., height=1., attr)
Definition: svgfig.py:1923
dictionary defaults
Definition: svgfig.py:1918
def make_symbol(id, shape="dot", attr)
Definition: svgfig.py:1893
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Function Documentation

def svgfig.Dots.__repr__ (   self)
def svgfig.Dots.SVG (   self,
  trans = None 
)
Apply the transformation "trans" and return an SVG object.

Definition at line 1938 of file svgfig.py.

References svgfig.Fig.d, svgfig.Plot.d, svgfig.Frame.d, svgfig.Path.d, svgfig.Poly.d, svgfig.Text.d, svgfig.TextGlobal.d, svgfig.Dots.d, svgfig.Plot.height, svgfig.Frame.height, svgfig.Dots.height, svgfig.Dots.symbol, svgfig.totrans(), svgfig.Plot.width, svgfig.Frame.width, and svgfig.Dots.width.

1938  def SVG(self, trans=None):
1939  """Apply the transformation "trans" and return an SVG object."""
1940  if isinstance(trans, str): trans = totrans(trans)
1941 
1942  output = SVG("g", SVG("defs", self.symbol))
1943  id = "#%s" % self.symbol["id"]
1944 
1945  for p in self.d:
1946  x, y = p[0], p[1]
1947 
1948  if trans == None: X, Y = x, y
1949  else: X, Y = trans(x, y)
1950 
1951  item = SVG("use", x=X, y=Y, xlink__href=id)
1952  if self.width != None: item["width"] = self.width
1953  if self.height != None: item["height"] = self.height
1954  output.append(item)
1955 
1956  return output
1957 
def SVG(self, trans=None)
Definition: svgfig.py:1938
def totrans(expr, vars=("x","y"), globals=None, locals=None)
Definition: svgfig.py:597

Member Data Documentation

svgfig.Dots.attr
svgfig.Dots.d
dictionary svgfig.Dots.defaults = {}
static

Definition at line 1918 of file svgfig.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().

svgfig.Dots.height
svgfig.Dots.symbol

Definition at line 1932 of file svgfig.py.

Referenced by svgfig.Dots.SVG().

svgfig.Dots.width