Module fig :: Class SplineBase

Class SplineBase




Base class of Spline objects (ApproximatedSpline, InterpolatedSpline, XSpline).

Instance Methods
 
__init__(self, points=None, shapeFactors=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
closed(self)
Return whether this spline curve is closed.
 
changeType(self, splineType)
Change type of this Spline object.
 
__str__(self)
str(x)
 
bounds(self)
Return the bounds of this object.

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties
  points
  shapeFactors

Inherited from Object: backwardArrow, capStyle, comment, depth, fillColor, fillStyle, forwardArrow, joinStyle, lineStyle, lineWidth, penColor, penStyle, styleValue

Inherited from object: __class__

Method Details

__init__(self, points=None, shapeFactors=None)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: Object.__init__

changeType(self, splineType)

 

Change type of this Spline object. splineType may be one of the stXXX constants:

  • stOpenApproximated
  • stClosedApproximated
  • stOpenInterpolated
  • stClosedInterpolated
  • stOpenXSpline
  • stClosedXSpline

This method may change the type of this object to another SplineBase-derived class.

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: object.__str__
(inherited documentation)

bounds(self)

 
Return the bounds of this object. This is not accurate at all, since it simply returns the bounding box of the support points, but the curve may well run outside of that box.