CMS 3D CMS Logo

Public Member Functions | Public Attributes

svgfig::Curve::Sample Class Reference

nested class Sample More...

List of all members.

Public Member Functions

def __init__
def __repr__
def evaluate
def link

Public Attributes

 right
 t
 y
 Y

Detailed Description

nested class Sample

Definition at line 1528 of file svgfig.py.


Constructor & Destructor Documentation

def svgfig::Curve::Sample::__init__ (   self,
  t 
)

Definition at line 1538 of file svgfig.py.

01538                          : self.t = t
01539 

Member Function Documentation

def svgfig::Curve::Sample::__repr__ (   self)

Definition at line 1529 of file svgfig.py.

01530                       :
01531       t, x, y, X, Y = self.t, self.x, self.y, self.X, self.Y
01532       if t != None: t = "%g" % t
01533       if x != None: x = "%g" % x
01534       if y != None: y = "%g" % y
01535       if X != None: X = "%g" % X
01536       if Y != None: Y = "%g" % Y
01537       return "<Curve.Sample t=%s x=%s y=%s X=%s Y=%s>" % (t, x, y, X, Y)

def svgfig::Curve::Sample::evaluate (   self,
  f,
  trans 
)

Definition at line 1542 of file svgfig.py.

01543                                 :
01544       self.x, self.y = f(self.t)
01545       if trans == None:
01546         self.X, self.Y = self.x, self.y
01547       else:
01548         self.X, self.Y = trans(self.x, self.y)
  ### end Sample
def svgfig::Curve::Sample::link (   self,
  left,
  right 
)

Definition at line 1540 of file svgfig.py.

01540                                : self.left, self.right = left, right
01541 

Member Data Documentation

Definition at line 1540 of file svgfig.py.

Definition at line 1538 of file svgfig.py.

Definition at line 1542 of file svgfig.py.

Definition at line 1542 of file svgfig.py.