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 2123 of file svgfig.py.

Constructor & Destructor Documentation

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

Definition at line 2137 of file svgfig.py.

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

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 2143 of file svgfig.py.

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

Member Data Documentation

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

Definition at line 2132 of file svgfig.py.

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

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