CMS 3D CMS Logo

Public Member Functions | Public Attributes | Static Public Attributes

svgfig::VLine Class Reference

Inheritance diagram for svgfig::VLine:
svgfig::Line svgfig::Curve

List of all members.

Public Member Functions

def __init__
def __repr__
def Path

Public Attributes

 attr
 x
 x1
 x2

Static Public Attributes

dictionary defaults = {}

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.

02137                                        :
02138     self.x = x
02139     self.attr = dict(self.defaults)
02140     self.attr.update(attr)
02141     Line.__init__(self, x, y1, x, y2, **self.attr)


Member Function Documentation

def svgfig::VLine::__repr__ (   self)

Reimplemented from svgfig::Line.

Definition at line 2133 of file svgfig.py.

02134                     :
02135     return "<VLine (%g, %g) at x=%s %s>" % (self.y1, self.y2, self.x, self.attr)

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).

Reimplemented from svgfig::Line.

Definition at line 2142 of file svgfig.py.

02143                                          :
02144     """Apply the transformation "trans" and return a Path object in
02145     global coordinates.  If local=True, return a Path in local coordinates
02146     (which must be transformed again)."""
02147     self.x1 = self.x
02148     self.x2 = self.x
02149     return Line.Path(self, trans, local)


Member Data Documentation

Reimplemented from svgfig::Line.

Definition at line 2136 of file svgfig.py.

dictionary svgfig::VLine::defaults = {} [static]

Reimplemented from svgfig::Line.

Definition at line 2131 of file svgfig.py.

Definition at line 2136 of file svgfig.py.

Definition at line 2144 of file svgfig.py.

Definition at line 2144 of file svgfig.py.