| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
param.parameterized.Parameterized --+
|
base.patterngenerator.PatternGenerator --+
|
Disk
2D disk pattern generator.
An elliptical disk can be obtained by adjusting the aspect_ratio of a circular disk; this transforms a circle into an ellipse by stretching the circle in the y (vertical) direction.
The Gaussian fall-off at a point P is an approximation for non-circular disks, since the point on the ellipse closest to P is taken to be the same point as the point on the circle before stretching that was closest to P.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
aspect_ratio = param.Number(default= 1.0, bounds= (0.0, None),Ratio of width to height; size*aspect_ratio gives the width of the disk. |
|||
size = param.Number(default= 0.5, doc= "Top to bottom height oTop to bottom height of the disk |
|||
smoothing = param.Number(default= 0.1, bounds= (0.0, None), soWidth of the Gaussian fall-off |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Function to draw a pattern that will then be scaled and rotated. Instead of implementing __call__ directly, PatternGenerator subclasses will typically implement this helper function used by __call__, because that way they can let __call__ handle the scaling and rotation for them. Alternatively, __call__ itself can be reimplemented entirely by a subclass (e.g. if it does not need to do any scaling or rotation), in which case this function will be ignored.
|
|
|||
aspect_ratioRatio of width to height; size*aspect_ratio gives the width of the disk.
|
sizeTop to bottom height of the disk
|
smoothingWidth of the Gaussian fall-off
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 12 22:26:34 2008 | http://epydoc.sourceforge.net |