CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.HLine Class Reference
Inheritance diagram for svgfig.HLine:
svgfig.Line svgfig.Curve

Public Member Functions

def __init__ (self, x1, x2, y, **attr)
 
def __repr__ (self)
 
def Path (self, trans=None, local=False)
 
- Public Member Functions inherited from svgfig.Line
def __init__ (self, x1, y1, x2, y2, arrow_start=None, arrow_end=None, **attr)
 
def SVG (self, trans=None)
 
- Public Member Functions inherited from svgfig.Curve
def __init__ (self, f, low, high, loop=False, **attr)
 
def sample (self, trans=None)
 end nested class More...
 
def subsample (self, left, right, depth, trans=None)
 

Public Attributes

 attr
 
 y
 
 y1
 
 y2
 
- Public Attributes inherited from svgfig.Line
 arrow_end
 
 attr
 
 f
 
 high
 
 loop
 
 low
 
 y2
 
- Public Attributes inherited from svgfig.Curve
 attr
 
 f
 
 high
 
 last_samples
 
 loop
 
 low
 

Static Public Attributes

dictionary defaults = {}
 
- Static Public Attributes inherited from svgfig.Line
dictionary defaults = {}
 
- Static Public Attributes inherited from svgfig.Curve
dictionary defaults = {}
 
int discontinuity_limit = 5.
 
float linearity_limit = 0.05
 
bool random_sampling = True
 
int recursion_limit = 15
 

Detailed Description

Draws a horizontal line.

HLine(x1, x2, y, attribute=value)

x1, x2                  required        x range
y                       required        y position
attribute=value pairs   keyword list    SVG attributes

Definition at line 2151 of file svgfig.py.

Constructor & Destructor Documentation

◆ __init__()

def svgfig.HLine.__init__ (   self,
  x1,
  x2,
  y,
**  attr 
)

Definition at line 2165 of file svgfig.py.

2165  def __init__(self, x1, x2, y, **attr):
2166  self.y = y
2167  self.attr = dict(self.defaults)
2168  self.attr.update(attr)
2169  Line.__init__(self, x1, y, x2, y, **self.attr)
2170 

Member Function Documentation

◆ __repr__()

def svgfig.HLine.__repr__ (   self)

◆ Path()

def svgfig.HLine.Path (   self,
  trans = None,
  local = False 
)
Apply the transformation "trans" and return a Path object in
global coordinates.  If local=True, return a Path in local coordinates
(which must be transformed again).

Reimplemented from svgfig.Line.

Definition at line 2171 of file svgfig.py.

2171  def Path(self, trans=None, local=False):
2172  """Apply the transformation "trans" and return a Path object in
2173  global coordinates. If local=True, return a Path in local coordinates
2174  (which must be transformed again)."""
2175  self.y1 = self.y
2176  self.y2 = self.y
2177  return Line.Path(self, trans, local)
2178 

Member Data Documentation

◆ attr

svgfig.HLine.attr

◆ defaults

dictionary svgfig.HLine.defaults = {}
static

Definition at line 2160 of file svgfig.py.

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

◆ y

svgfig.HLine.y

◆ y1

svgfig.HLine.y1

◆ y2

svgfig.HLine.y2

Definition at line 2176 of file svgfig.py.

Referenced by svgfig.Rect.__repr__(), and svgfig.Rect.Path().

mps_fire.Path
Path
Definition: mps_fire.py:290
update
#define update(a, b)
Definition: TrackClassifier.cc:10