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 182 of file wxxdot.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 186 of file wxxdot.py.

Member Function Documentation

◆ animate_to()

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

Definition at line 456 of file wxxdot.py.

◆ get_current_pos()

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

Helper functions.

Get the current graph position.

Definition at line 297 of file wxxdot.py.

◆ get_drag_action()

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

Definition at line 385 of file wxxdot.py.

◆ get_jump()

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

Definition at line 475 of file wxxdot.py.

◆ get_url()

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

Definition at line 471 of file wxxdot.py.

◆ on_area_size_allocate()

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

Definition at line 452 of file wxxdot.py.

◆ on_zoom_100()

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

Definition at line 380 of file wxxdot.py.

◆ on_zoom_fit()

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

Definition at line 377 of file wxxdot.py.

◆ on_zoom_in()

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

Definition at line 371 of file wxxdot.py.

◆ on_zoom_out()

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

Definition at line 374 of file wxxdot.py.

◆ OnKeyDown()

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

Definition at line 264 of file wxxdot.py.

◆ OnMouse()

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

Definition at line 409 of file wxxdot.py.

◆ OnPaint()

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

Definition at line 225 of file wxxdot.py.

◆ OnResize()

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

Event handlers.

Definition at line 222 of file wxxdot.py.

◆ OnScroll()

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

Definition at line 255 of file wxxdot.py.

◆ register_select_callback()

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

User callbacks.

Definition at line 218 of file wxxdot.py.

◆ reload()

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

Definition at line 540 of file wxxdot.py.

◆ set_current_pos()

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

Definition at line 301 of file wxxdot.py.

◆ set_cursor()

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

Cursor manipulation.

Definition at line 314 of file wxxdot.py.

◆ set_dotcode()

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

Definition at line 482 of file wxxdot.py.

◆ set_filter()

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

Definition at line 479 of file wxxdot.py.

◆ set_highlight()

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

Definition at line 307 of file wxxdot.py.

◆ set_xdotcode()

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

Definition at line 529 of file wxxdot.py.

◆ window2graph()

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

Definition at line 460 of file wxxdot.py.

◆ zoom_image()

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

Zooming methods.

Zoom the graph.

Definition at line 322 of file wxxdot.py.

◆ zoom_to_area()

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

Definition at line 338 of file wxxdot.py.

◆ zoom_to_fit()

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

Definition at line 352 of file wxxdot.py.

Member Data Documentation

◆ animation

smach_viewer.xdot.wxxdot.WxDotWindow.animation

Definition at line 196 of file wxxdot.py.

◆ ctx

smach_viewer.xdot.wxxdot.WxDotWindow.ctx

Definition at line 214 of file wxxdot.py.

◆ cursor

smach_viewer.xdot.wxxdot.WxDotWindow.cursor

Definition at line 316 of file wxxdot.py.

◆ dc

smach_viewer.xdot.wxxdot.WxDotWindow.dc

Definition at line 213 of file wxxdot.py.

◆ drag_action

smach_viewer.xdot.wxxdot.WxDotWindow.drag_action

Definition at line 197 of file wxxdot.py.

◆ filter [1/2]

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

Definition at line 184 of file wxxdot.py.

◆ filter [2/2]

smach_viewer.xdot.wxxdot.WxDotWindow.filter

Definition at line 480 of file wxxdot.py.

◆ graph

smach_viewer.xdot.wxxdot.WxDotWindow.graph

Definition at line 190 of file wxxdot.py.

◆ highlight

smach_viewer.xdot.wxxdot.WxDotWindow.highlight

Definition at line 199 of file wxxdot.py.

◆ items_by_url

smach_viewer.xdot.wxxdot.WxDotWindow.items_by_url

Definition at line 215 of file wxxdot.py.

◆ openfilename

smach_viewer.xdot.wxxdot.WxDotWindow.openfilename

Definition at line 191 of file wxxdot.py.

◆ POS_INCREMENT

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

Definition at line 383 of file wxxdot.py.

◆ presstime

smach_viewer.xdot.wxxdot.WxDotWindow.presstime

Definition at line 198 of file wxxdot.py.

◆ pressx

smach_viewer.xdot.wxxdot.WxDotWindow.pressx

Definition at line 439 of file wxxdot.py.

◆ pressy

smach_viewer.xdot.wxxdot.WxDotWindow.pressy

Definition at line 440 of file wxxdot.py.

◆ select_cbs

smach_viewer.xdot.wxxdot.WxDotWindow.select_cbs

Definition at line 212 of file wxxdot.py.

◆ subgraph_shapes

smach_viewer.xdot.wxxdot.WxDotWindow.subgraph_shapes

Definition at line 514 of file wxxdot.py.

◆ x

smach_viewer.xdot.wxxdot.WxDotWindow.x

Definition at line 303 of file wxxdot.py.

◆ y

smach_viewer.xdot.wxxdot.WxDotWindow.y

Definition at line 193 of file wxxdot.py.

◆ ZOOM_INCREMENT

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

Definition at line 368 of file wxxdot.py.

◆ zoom_ratio

smach_viewer.xdot.wxxdot.WxDotWindow.zoom_ratio

Definition at line 194 of file wxxdot.py.

◆ ZOOM_TO_FIT_MARGIN

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

Definition at line 369 of file wxxdot.py.

◆ zoom_to_fit_on_resize

smach_viewer.xdot.wxxdot.WxDotWindow.zoom_to_fit_on_resize

Definition at line 195 of file wxxdot.py.


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


smach_viewer
Author(s): Jonathan Bohren
autogenerated on Thu Feb 20 2025 03:09:09