Public Member Functions | Public Attributes | Static Public Attributes | List of all members
smach_viewer.xdot.wxxdot.WxDotWindow Class Reference
Inheritance diagram for smach_viewer.xdot.wxxdot.WxDotWindow:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, parent, id)
 
def animate_to (self, x, y)
 
def get_current_pos (self)
 Helper functions. More...
 
def get_drag_action (self, event)
 
def get_jump (self, x, y)
 
def get_url (self, x, y)
 
def on_area_size_allocate (self, area, allocation)
 
def on_zoom_100 (self, action)
 
def on_zoom_fit (self, action)
 
def on_zoom_in (self, action)
 
def on_zoom_out (self, action)
 
def OnKeyDown (self, event)
 
def OnMouse (self, event)
 
def OnPaint (self, event)
 
def OnResize (self, event)
 Event handlers. More...
 
def OnScroll (self, event)
 
def register_select_callback (self, cb)
 User callbacks. More...
 
def reload (self)
 
def set_current_pos (self, x, y)
 
def set_cursor (self, cursor_type)
 Cursor manipulation. More...
 
def set_dotcode (self, dotcode, filename='< stdin >')
 
def set_filter (self, filter)
 
def set_highlight (self, items)
 
def set_xdotcode (self, xdotcode)
 
def window2graph (self, x, y)
 
def zoom_image (self, zoom_ratio, center=False, pos=None)
 Zooming methods. More...
 
def zoom_to_area (self, x1, y1, x2, y2)
 
def zoom_to_fit (self)
 

Public Attributes

 animation
 
 ctx
 
 cursor
 
 dc
 
 drag_action
 
 filter
 
 graph
 
 highlight
 
 items_by_url
 
 openfilename
 
 presstime
 
 pressx
 
 pressy
 
 select_cbs
 
 subgraph_shapes
 
 x
 
 y
 
 zoom_ratio
 
 zoom_to_fit_on_resize
 

Static Public Attributes

string filter = 'dot'
 
int POS_INCREMENT = 100
 
float ZOOM_INCREMENT = 1.25
 
int ZOOM_TO_FIT_MARGIN = 12
 

Detailed Description

wxpython Frame that draws dot graphs.

Definition at line 143 of file wxxdot.py.

Constructor & Destructor Documentation

def smach_viewer.xdot.wxxdot.WxDotWindow.__init__ (   self,
  parent,
  id 
)
constructor

Definition at line 147 of file wxxdot.py.

Member Function Documentation

def smach_viewer.xdot.wxxdot.WxDotWindow.animate_to (   self,
  x,
  y 
)

Definition at line 413 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.get_current_pos (   self)

Helper functions.

Get the current graph position.

Definition at line 257 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.get_drag_action (   self,
  event 
)
Get a drag action for this click.

Definition at line 342 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.get_jump (   self,
  x,
  y 
)

Definition at line 432 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.get_url (   self,
  x,
  y 
)

Definition at line 428 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.on_area_size_allocate (   self,
  area,
  allocation 
)

Definition at line 409 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.on_zoom_100 (   self,
  action 
)

Definition at line 337 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.on_zoom_fit (   self,
  action 
)

Definition at line 334 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.on_zoom_in (   self,
  action 
)

Definition at line 328 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.on_zoom_out (   self,
  action 
)

Definition at line 331 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.OnKeyDown (   self,
  event 
)
Process key down event.

Definition at line 224 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.OnMouse (   self,
  event 
)

Definition at line 366 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.OnPaint (   self,
  event 
)
Redraw the graph.

Definition at line 186 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.OnResize (   self,
  event 
)

Event handlers.

Definition at line 183 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.OnScroll (   self,
  event 
)
Zoom the view.

Definition at line 215 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.register_select_callback (   self,
  cb 
)

User callbacks.

Definition at line 179 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.reload (   self)

Definition at line 493 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_current_pos (   self,
  x,
  y 
)
Set the current graph position.

Definition at line 261 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_cursor (   self,
  cursor_type 
)

Cursor manipulation.

Definition at line 274 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_dotcode (   self,
  dotcode,
  filename = '<stdin>' 
)

Definition at line 439 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_filter (   self,
  filter 
)

Definition at line 436 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_highlight (   self,
  items 
)
Set a number of items to be hilighted.

Definition at line 267 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.set_xdotcode (   self,
  xdotcode 
)
Set xdot code.

Definition at line 485 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.window2graph (   self,
  x,
  y 
)

Definition at line 417 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.zoom_image (   self,
  zoom_ratio,
  center = False,
  pos = None 
)

Zooming methods.

Zoom the graph.

Definition at line 279 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.zoom_to_area (   self,
  x1,
  y1,
  x2,
  y2 
)
Zoom to an area of the graph.

Definition at line 295 of file wxxdot.py.

def smach_viewer.xdot.wxxdot.WxDotWindow.zoom_to_fit (   self)
Zoom to fit the size of the graph.

Definition at line 309 of file wxxdot.py.

Member Data Documentation

smach_viewer.xdot.wxxdot.WxDotWindow.animation

Definition at line 157 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.ctx

Definition at line 175 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.cursor

Definition at line 275 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.dc

Definition at line 174 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.drag_action

Definition at line 158 of file wxxdot.py.

string smach_viewer.xdot.wxxdot.WxDotWindow.filter = 'dot'
static

Definition at line 145 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.filter

Definition at line 437 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.graph

Definition at line 151 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.highlight

Definition at line 160 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.items_by_url

Definition at line 176 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.openfilename

Definition at line 152 of file wxxdot.py.

int smach_viewer.xdot.wxxdot.WxDotWindow.POS_INCREMENT = 100
static

Definition at line 340 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.presstime

Definition at line 159 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.pressx

Definition at line 396 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.pressy

Definition at line 397 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.select_cbs

Definition at line 173 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.subgraph_shapes

Definition at line 470 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.x

Definition at line 263 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.y

Definition at line 154 of file wxxdot.py.

float smach_viewer.xdot.wxxdot.WxDotWindow.ZOOM_INCREMENT = 1.25
static

Definition at line 325 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.zoom_ratio

Definition at line 155 of file wxxdot.py.

int smach_viewer.xdot.wxxdot.WxDotWindow.ZOOM_TO_FIT_MARGIN = 12
static

Definition at line 326 of file wxxdot.py.

smach_viewer.xdot.wxxdot.WxDotWindow.zoom_to_fit_on_resize

Definition at line 156 of file wxxdot.py.


The documentation for this class was generated from the following file:


smach_viewer
Author(s): Jonathan Bohren
autogenerated on Fri Jun 7 2019 22:03:26