| Home | Trees | Index | Help |
|
|---|
| Package aldrin :: Module router :: Class RouteView |
|
object--+ |Object--+ |EvtHandler--+ |Window--+ |Canvas--+ | RouteView
| Method Summary | |
|---|---|
Initializer. | |
Draws only the leds into the offscreen buffer. | |
Draws machines, connections and arrows to an offscreen buffer. | |
| (int,int) |
Converts a router coordinate to an on-screen pixel coordinate. |
| libzzub.Connection or None |
Finds the connection arrow at a specific position. |
| (libzzub.Metaplugin,(int,int)) or None |
Finds a plugin at a specific position. |
| wx.Menu |
Generates and returns a new plugin menu. |
Event handler for requests to show the context menu. | |
Timer event that only updates the machine leds. | |
on_focus(self,
event)
| |
Event handler for left doubleclicks. | |
Event handler for left mouse button presses. | |
Event handler for left mouse button releases. | |
Event handler for mouse movements. | |
callback for ui events sent by libzzub. | |
Event handler for requests to show the context menu. | |
Event handler for the "Delete" context menu option. | |
Event handler for the "Disconnect" context menu option. | |
Event handler for the "Mute" context menu option. | |
Event handler for "new plugin" context menu options. | |
on_popup_rename(self,
event)
| |
Event handler for the "Attributes..." context menu option. | |
Event handler for the "Parameters..." context menu option. | |
Event handler for the "Mute" context menu option. | |
| (float, float) |
Converts an on-screen pixel coordinate to a router coordinate. |
Destroys all parameter dialogs. | |
Shows a parameter dialog for a plugin. | |
solo(self,
machine)
| |
toggle_mute(self,
machine)
| |
update_all(self)
| |
Updates the routers color scheme. | |
update_info(self)
| |
yield_newplugin_indices(self)
| |
| Inherited from Canvas | |
Performs the blit of the buffer contents on-screen. | |
Returns a tuple that contains the co-ordinates of the top-left and bottom-right corners of the canvas. | |
| |
| |
Renders the off-screen buffer on-screen. | |
| |
Perform actual redraw to off-screen buffer only when the size of the canvas has changed. | |
Explicitly tells the canvas to redraw it's contents. | |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
int |
ABOUT = 370 |
int |
ATTRIBS = 367 |
int |
CENTERPAN = 365 |
int |
CMDBASEID = 375 |
bool |
connecting = False
|
NoneType |
context_conn = None |
NoneType |
context_plugin = None |
tuple |
contextmenupos = (0, 0)
|
NoneType |
current_plugin = None |
int |
DELETE = 369 |
int |
DISCONNECT = 374 |
bool |
dragging = False
|
tuple |
dragoffset = (0, 0)
|
int |
i = 8191 |
int |
IMPORTSONG = 372 |
int |
MAX_PLUGINS = 8192 |
int |
MUTE = 363 |
int |
NEWPLUGIN = 631 |
int |
PARAMS = 366 |
int |
RENAME = 368 |
int |
SIGNALANALYSIS = 371 |
int |
SOLO = 364 |
int |
UNMUTEALL = 373 |
| Inherited from Canvas | |
bool |
doublebuffered = True
|
| Instance Method Details |
|---|
__init__(self,
rootwindow,
*args,
**kwds)
Initializer.
|
draw_leds(self)Draws only the leds into the offscreen buffer. |
DrawBuffer(self, leds_only=False)Draws machines, connections and arrows to an offscreen buffer.
|
float_to_pixel(self, (x, y))Converts a router coordinate to an on-screen pixel coordinate.
|
get_connection_at(self, (mx, my))Finds the connection arrow at a specific position.
|
get_plugin_at(self, (x, y))Finds a plugin at a specific position.
|
get_plugin_menu(self)Generates and returns a new plugin menu.
|
on_context_menu(self, event)Event handler for requests to show the context menu.
|
on_draw_led_timer(self, event)Timer event that only updates the machine leds.
|
on_left_dclick(self, event)Event handler for left doubleclicks. If the doubleclick hits a plugin, the parameter window is being shown.
|
on_left_down(self, event)Event handler for left mouse button presses. Initiates plugin dragging or connection volume adjustments.
|
on_left_up(self, event)Event handler for left mouse button releases.
|
on_motion(self, event)Event handler for mouse movements.
|
on_player_callback(self, player, plugin, data)callback for ui events sent by libzzub.
|
on_popup_command(self, event)Event handler for requests to show the context menu.
|
on_popup_delete(self, event)Event handler for the "Delete" context menu option.
|
on_popup_disconnect(self, event)Event handler for the "Disconnect" context menu option.
|
on_popup_mute(self, event)Event handler for the "Mute" context menu option.
|
on_popup_new_plugin(self, event=None, pl=None)Event handler for "new plugin" context menu options. if pl is omitted, the pluginloader is deduced from event.GetId().
|
on_popup_show_attribs(self, event)Event handler for the "Attributes..." context menu option.
|
on_popup_show_params(self, event)Event handler for the "Parameters..." context menu option.
|
on_popup_solo(self, event)Event handler for the "Mute" context menu option.
|
pixel_to_float(self, (x, y))Converts an on-screen pixel coordinate to a router coordinate.
|
reset(self)Destroys all parameter dialogs. Used when a new song is being loaded. |
show_parameter_dialog(self, plugin)Shows a parameter dialog for a plugin.
|
update_colors(self)Updates the routers color scheme. |
| Class Variable Details |
|---|
ABOUT
|
ATTRIBS
|
CENTERPAN
|
CMDBASEID
|
connecting
|
context_conn
|
context_plugin
|
contextmenupos
|
current_plugin
|
DELETE
|
DISCONNECT
|
dragging
|
dragoffset
|
i
|
IMPORTSONG
|
MAX_PLUGINS
|
MUTE
|
NEWPLUGIN
|
PARAMS
|
RENAME
|
SIGNALANALYSIS
|
SOLO
|
UNMUTEALL
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Nov 24 13:58:33 2006 | http://epydoc.sf.net |