Package topo :: Package pattern :: Module basic :: Class GaussiansCorner
[hide private]
[frames] | no frames]

Class GaussiansCorner

source code


Two Gaussian pattern generators with a variable intersection point, appearing as a corner or cross.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, **params_to_override)
Call the subclass's 'function' method on a rotated and scaled coordinate system.
source code

Inherited from base.patterngenerator.PatternGenerator: function

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  x = param.Number(default=-0.15, bounds= (-1.0, 1.0), softbound...
X center of the corner
  y = param.Number(default=-0.15, bounds= (-1.0, 1.0), softbound...
Y center of the corner
  size = param.Number(default= 0.5, bounds= (0, None), softbound...
The size of the corner
  aspect_ratio = param.Number(default= 1/ 0.31, bounds= (0, None...
Ratio of the width to the height for both Gaussians
  angle = param.Number(default= 0.5* pi, bounds= (0, pi), softbo...
The angle of the corner
  cross = param.Number(default= 0.4, bounds= (0, 1), softbounds=...
Where the two Gaussians cross, as a fraction of their half length
  name = <param.parameterized.String object at 0xb1eabac>
String identifier for this object.

Inherited from base.patterngenerator.PatternGenerator: bounds, mask, mask_shape, offset, orientation, output_fns, position, scale, xdensity, ydensity

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, **params_to_override)
(Call operator)

source code 

Call the subclass's 'function' method on a rotated and scaled coordinate system.

Creates and fills an array with the requested pattern. If called without any params, uses the values for the Parameters as currently set on the object. Otherwise, any params specified override those currently set on the object.

Overrides: base.patterngenerator.PatternGenerator.__call__
(inherited documentation)

Class Variable Details [hide private]

x

X center of the corner
Value:
param.Number(default=-0.15, bounds= (-1.0, 1.0), softbounds= (-0.5, 0.5), doc= "X \
center of the corner")

y

Y center of the corner
Value:
param.Number(default=-0.15, bounds= (-1.0, 1.0), softbounds= (-0.5, 0.5), doc= "Y \
center of the corner")

size

The size of the corner
Value:
param.Number(default= 0.5, bounds= (0, None), softbounds= (0.1, 1), doc= "The size\
 of the corner")

aspect_ratio

Ratio of the width to the height for both Gaussians
Value:
param.Number(default= 1/ 0.31, bounds= (0, None), softbounds= (1, 10), doc= "Ratio\
 of the width to the height for both Gaussians")

angle

The angle of the corner
Value:
param.Number(default= 0.5* pi, bounds= (0, pi), softbounds= (0.01* pi, 0.99* pi), \
doc= "The angle of the corner")

cross

Where the two Gaussians cross, as a fraction of their half length
Value:
param.Number(default= 0.4, bounds= (0, 1), softbounds= (0, 1), doc= "Where the two\
 Gaussians cross, as a fraction of their half length")