Package aldrin :: Module router :: Class RouteView
[show private | hide private]
[frames | no frames]

Type RouteView

        CanvasBase --+    
                     |    
object --+           |    
         |           |    
    Object --+       |    
             |       |    
    EvtHandler --+   |    
                 |   |    
            Window --+    
                     |    
                Canvas --+
                         |
                        RouteView


Allows to monitor and control plugins and their connections.
Method Summary
  __init__(self, rootwindow, *args, **kwds)
Initializer.
  draw_leds(self)
Draws only the leds into the offscreen buffer.
  DrawBuffer(self, leds_only)
Draws plugins, connections and arrows to an offscreen buffer.
(int,int) float_to_pixel(self, (x, y))
Converts a router coordinate to an on-screen pixel coordinate.
zzub.Connection or None get_connection_at(self, (mx, my))
Finds the connection arrow at a specific position.
(zzub.Plugin,(int,int),int) or None get_plugin_at(self, (x, y))
Finds a plugin at a specific position.
wx.Menu get_plugin_menu(self, include_generators, include_effects)
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 plugin leds.
  on_focus(self, event)
  on_left_dclick(self, event)
Event handler for left doubleclicks.
  on_left_down(self, event)
Event handler for left mouse button presses.
  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 zzub.
  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, pl)
Event handler for "new plugin" context menu options.
  on_popup_rename(self, event)
  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_show_signalanalysis(self, event)
Event handler for the "Signal Analysis" context menu option.
  on_popup_solo(self, event)
Event handler for the "Mute" context menu option.
(float, float) pixel_to_float(self, (x, y))
Converts an on-screen pixel coordinate to a router coordinate.
  reset(self)
Destroys all parameter dialogs.
  show_parameter_dialog(self, plugin)
Shows a parameter dialog for a plugin.
  solo(self, plugin)
  toggle_mute(self, plugin)
  update_all(self)
  update_colors(self)
Updates the routers color scheme.
  update_info(self)
  yield_newplugin_indices(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
int ABOUT = 375                                                                   
int ATTRIBS = 372                                                                   
int CENTERPAN = 370                                                                   
int CMDBASEID = 380                                                                   
bool connecting = False
NoneType context_conn = None                                                                  
NoneType context_plugin = None                                                                  
tuple contextmenupos = (0, 0)
NoneType current_plugin = None                                                                  
int DELETE = 374                                                                   
int DISCONNECT = 379                                                                   
bool dragging = False
tuple dragoffset = (0, 0)
int i = 8191                                                                  
int IMPORTSONG = 377                                                                   
int MAX_PLUGINS = 8192                                                                  
int MUTE = 368                                                                   
int NEWPLUGIN = 636                                                                   
int PARAMS = 371                                                                   
int RENAME = 373                                                                   
int SIGNALANALYSIS = 376                                                                   
int SOLO = 369                                                                   
int UNMUTEALL = 378                                                                   

Instance Method Details

__init__(self, rootwindow, *args, **kwds)
(Constructor)

Initializer.
Parameters:
rootwindow - Main window.
           (type=wx.Frame)
Overrides:
aldrin.canvas.Canvas.__init__

draw_leds(self)

Draws only the leds into the offscreen buffer.

DrawBuffer(self, leds_only=False)

Draws plugins, connections and arrows to an offscreen buffer.
Overrides:
aldrin.canvas.CanvasBase.DrawBuffer

float_to_pixel(self, (x, y))

Converts a router coordinate to an on-screen pixel coordinate.
Parameters:
x - X coordinate.
           (type=float)
y - Y coordinate.
           (type=float)
Returns:
A tuple returning the pixel coordinate.
           (type=(int,int))

get_connection_at(self, (mx, my))

Finds the connection arrow at a specific position.
Parameters:
mx - X coordinate in pixels.
           (type=int)
my - Y coordinate in pixels.
           (type=int)
Returns:
A connection item or None.
           (type=zzub.Connection or None)

get_plugin_at(self, (x, y))

Finds a plugin at a specific position.
Parameters:
x - X coordinate in pixels.
           (type=int)
y - Y coordinate in pixels.
           (type=int)
Returns:
A connection item, exact pixel position and area (AREA_ANY, AREA_PANNING, AREA_LED) or None.
           (type=(zzub.Plugin,(int,int),int) or None)

get_plugin_menu(self, include_generators=True, include_effects=True)

Generates and returns a new plugin menu.
Returns:
A menu containing commands to instantiate new plugins.
           (type=wx.Menu)

on_context_menu(self, event)

Event handler for requests to show the context menu.
Parameters:
event - event.
           (type=wx.Event)

on_draw_led_timer(self, event)

Timer event that only updates the plugin leds.
Parameters:
event - Paint event.
           (type=wx.PaintEvent)

on_left_dclick(self, event)

Event handler for left doubleclicks. If the doubleclick hits a plugin, the parameter window is being shown.
Parameters:
event - Mouse event.
           (type=wx.MouseEvent)

on_left_down(self, event)

Event handler for left mouse button presses. Initiates plugin dragging or connection volume adjustments.
Parameters:
event - Mouse event.
           (type=wx.MouseEvent)

on_left_up(self, event)

Event handler for left mouse button releases.
Parameters:
event - Mouse event.
           (type=wx.MouseEvent)

on_motion(self, event)

Event handler for mouse movements.
Parameters:
event - Mouse event.
           (type=wx.MouseEvent)

on_player_callback(self, player, plugin, data)

callback for ui events sent by zzub.
Parameters:
player - player instance.
           (type=zzub.Player)
plugin - plugin instance
           (type=zzub.Plugin)
data - event data.
           (type=zzub_event_data_t)

on_popup_command(self, event)

Event handler for requests to show the context menu.
Parameters:
event - event.
           (type=wx.Event)

on_popup_delete(self, event)

Event handler for the "Delete" context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_popup_disconnect(self, event)

Event handler for the "Disconnect" context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_popup_mute(self, event)

Event handler for the "Mute" context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

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().
Parameters:
event - Menu event.
           (type=zzub.Pluginloader)
pl - Pluginloader

on_popup_show_attribs(self, event)

Event handler for the "Attributes..." context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_popup_show_params(self, event)

Event handler for the "Parameters..." context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_popup_show_signalanalysis(self, event)

Event handler for the "Signal Analysis" context menu option.

on_popup_solo(self, event)

Event handler for the "Mute" context menu option.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

pixel_to_float(self, (x, y))

Converts an on-screen pixel coordinate to a router coordinate.
Parameters:
x - X coordinate.
           (type=int)
y - Y coordinate.
           (type=int)
Returns:
A tuple returning the router coordinate.
           (type=(float, float))

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.
Parameters:
plugin - Plugin instance.
           (type=Plugin)

update_colors(self)

Updates the routers color scheme.

Class Variable Details

ABOUT

Type:
int
Value:
375                                                                   

ATTRIBS

Type:
int
Value:
372                                                                   

CENTERPAN

Type:
int
Value:
370                                                                   

CMDBASEID

Type:
int
Value:
380                                                                   

connecting

Type:
bool
Value:
False                                                                  

context_conn

Type:
NoneType
Value:
None                                                                  

context_plugin

Type:
NoneType
Value:
None                                                                  

contextmenupos

Type:
tuple
Value:
(0, 0)                                                                 

current_plugin

Type:
NoneType
Value:
None                                                                  

DELETE

Type:
int
Value:
374                                                                   

DISCONNECT

Type:
int
Value:
379                                                                   

dragging

Type:
bool
Value:
False                                                                  

dragoffset

Type:
tuple
Value:
(0, 0)                                                                 

i

Type:
int
Value:
8191                                                                  

IMPORTSONG

Type:
int
Value:
377                                                                   

MAX_PLUGINS

Type:
int
Value:
8192                                                                  

MUTE

Type:
int
Value:
368                                                                   

NEWPLUGIN

Type:
int
Value:
636                                                                   

PARAMS

Type:
int
Value:
371                                                                   

RENAME

Type:
int
Value:
373                                                                   

SIGNALANALYSIS

Type:
int
Value:
376                                                                   

SOLO

Type:
int
Value:
369                                                                   

UNMUTEALL

Type:
int
Value:
378                                                                   

Generated by Epydoc 2.1 on Sun Feb 4 18:01:15 2007 http://epydoc.sf.net