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 __repr__ (self)
 
def Path (self, trans=None, local=False)
 
def SVG (self, trans=None)
 
- Public Member Functions inherited from svgfig.Curve
def __init__ (self, f, low, high, loop=False, attr)
 
def __repr__ (self)
 
def Path (self, trans=None, local=False)
 
def sample (self, trans=None)
 end nested class More...
 
def subsample (self, left, right, depth, trans=None)
 
def SVG (self, 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 2150 of file svgfig.py.

Constructor & Destructor Documentation

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

Definition at line 2164 of file svgfig.py.

2164  def __init__(self, x1, x2, y, **attr):
2165  self.y = y
2166  self.attr = dict(self.defaults)
2167  self.attr.update(attr)
2168  Line.__init__(self, x1, y, x2, y, **self.attr)
2169 
def __init__(self, x1, x2, y, attr)
Definition: svgfig.py:2164
dictionary defaults
Definition: svgfig.py:1509

Member Function Documentation

def svgfig.HLine.__repr__ (   self)
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).

Definition at line 2170 of file svgfig.py.

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

Member Data Documentation

svgfig.HLine.attr
dictionary svgfig.HLine.defaults = {}
static

Definition at line 2159 of file svgfig.py.

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

svgfig.HLine.y
svgfig.HLine.y1
svgfig.HLine.y2

Definition at line 2175 of file svgfig.py.

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