Package topo :: Package tkgui :: Module editor :: Class EditorProjection
[hide private]
[frames] | no frames]

Class EditorProjection

source code


Represents any topo CFProjection. It is a subclass of EditorEPConnection and fills in the methods that are not defined. Can be represented by a representation of a projection's receptive field or by a line with an arrow head in the middle; lateral projections are represented by a dotted ellipse around the center. Can determine if x,y coord is within the triangular receptive field or within an area around the arrow head. The same can be determined for a lateral projection ellipse.
Instance Methods [hide private]
 
__init__(self, name, canvas, from_node, receptive_field=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
draw(self)
Draw the object at the current x, y position.
source code
 
draw_radius(self, from_position, to_position) source code
 
draw_normal(self, from_position, to_position) source code
 
get_radius(self)
Not implemented in this class
source code
 
get_factor(self) source code
 
update_factor(self) source code
 
calculate_gradient(self)
Not implemented in this class
source code
 
in_bounds(self, x, y)
Return true if x,y lies within this gui object's boundary.
source code

Inherited from EditorEPConnection: connect, connect_to_coord, decrement_draw_index, draw_line, get_middle, move, remove, select_view, set_colours, set_mode

Inherited from EditorConnection: set_focus, show_properties, update_position

Inherited from EditorObject: objdoc, okay_parameters, update_parameters

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

Class Variables [hide private]

Inherited from EditorObject: FROM, TO

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, canvas, from_node, receptive_field=True)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

draw(self)

source code 
Draw the object at the current x, y position.
Overrides: EditorObject.draw
(inherited documentation)

get_radius(self)

source code 
Not implemented in this class
Overrides: EditorEPConnection.get_radius
(inherited documentation)

update_factor(self)

source code 
Overrides: EditorEPConnection.update_factor

calculate_gradient(self)

source code 
Not implemented in this class
Overrides: EditorEPConnection.calculate_gradient
(inherited documentation)

in_bounds(self, x, y)

source code 
Return true if x,y lies within this gui object's boundary.
Overrides: EditorObject.in_bounds
(inherited documentation)