CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, y1, y2, x, 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
 
 x
 
 x1
 
 x2
 
- 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 vertical line.

VLine(y1, y2, x, attribute=value)

y1, y2                  required        y range
x                       required        x position
attribute=value pairs   keyword list    SVG attributes

Definition at line 2122 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.VLine.__init__ (   self,
  y1,
  y2,
  x,
  attr 
)

Definition at line 2136 of file svgfig.py.

2136  def __init__(self, y1, y2, x, **attr):
2137  self.x = x
2138  self.attr = dict(self.defaults)
2139  self.attr.update(attr)
2140  Line.__init__(self, x, y1, x, y2, **self.attr)
2141 
dictionary defaults
Definition: svgfig.py:1509
def __init__(self, y1, y2, x, attr)
Definition: svgfig.py:2136

Member Function Documentation

def svgfig.VLine.__repr__ (   self)
def svgfig.VLine.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 2142 of file svgfig.py.

2142  def Path(self, trans=None, local=False):
2143  """Apply the transformation "trans" and return a Path object in
2144  global coordinates. If local=True, return a Path in local coordinates
2145  (which must be transformed again)."""
2146  self.x1 = self.x
2147  self.x2 = self.x
2148  return Line.Path(self, trans, local)
2149 
def Path(self, trans=None, local=False)
Definition: svgfig.py:2142

Member Data Documentation

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

Definition at line 2131 of file svgfig.py.

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

svgfig.VLine.x
svgfig.VLine.x1
svgfig.VLine.x2