| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
PatternSampler
Stores a SheetCoordinateSystem whose activity represents the supplied pattern_array, and when called will resample that array at the supplied Sheet coordinates according to the supplied scaling parameters.
(x,y) coordinates outside the pattern_array are returned as the background value.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create a SheetCoordinateSystem whose activity is pattern_array (where pattern_array is a Numeric array), modified in place by whole_pattern_output_fn. If supplied, background_value_fn must accept an array and return a scalar. |
Return pixels from the pattern at the given Sheet (x,y) coordinates. sheet_density should be the density of the sheet on which the pattern is to be drawn. scaling determines how the pattern is scaled initially; it can be: 'stretch_to_fit': scale both dimensions of the pattern so they would fill a Sheet with bounds=BoundingBox(radius=0.5) (disregards the original's aspect ratio). 'fit_shortest': scale the pattern so that its shortest dimension is made to fill the corresponding dimension on a Sheet with bounds=BoundingBox(radius=0.5) (maintains the original's aspect ratio). 'fit_longest': scale the pattern so that its longest dimension is made to fill the corresponding dimension on a Sheet with bounds=BoundingBox(radius=0.5) (maintains the original's aspect ratio). 'original': no scaling is applied; one pixel of the pattern is put in one unit of the sheet on which the pattern being displayed. The pattern is further scaled according to the supplied width and height. |
Initial pattern scaling (size_normalization), relative to the default retinal dimension of 1.0 in sheet coordinates. See __call__ for a description of the various scaling options. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:07 2008 | http://epydoc.sourceforge.net |