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

Public Member Functions

def __init__ (self, parent=None)
 
def animate_to (self, x, y)
 
def get_current_pos (self)
 
def get_drag_action (self, event)
 
def get_jump (self, x, y)
 
def get_url (self, x, y)
 
def is_click (self, event, click_fuzz=4, click_timeout=1.0)
 
def keyPressEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def on_area_scroll_event (self, area, event)
 
def on_area_size_allocate (self, area, allocation)
 
def on_zoom_100 (self)
 
def on_zoom_fit (self)
 
def on_zoom_in (self)
 
def on_zoom_out (self)
 
def paintEvent (self, event=None)
 
def register_select_callback (self, cb)
 User callbacks. More...
 
def reload (self)
 
def set_current_pos (self, x, y)
 
def set_dotcode (self, dotcode, filename='< stdin >', center=True)
 
def set_filter (self, filter)
 
def set_highlight (self, items)
 
def set_xdotcode (self, xdotcode, center=True)
 
def wheelEvent (self, event)
 
def window_to_graph (self, x, y)
 
def zoom_image (self, zoom_ratio, center=False, pos=None)
 
def zoom_to_area (self, x1, y1, x2, y2)
 
def zoom_to_fit (self)
 

Public Attributes

 animation
 
 ctx
 
 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

Qt widget that draws dot graphs.

Definition at line 1342 of file xdot_qt.py.

Constructor & Destructor Documentation

◆ __init__()

def smach_viewer.xdot.xdot_qt.DotWidget.__init__ (   self,
  parent = None 
)

Definition at line 1348 of file xdot_qt.py.

Member Function Documentation

◆ animate_to()

def smach_viewer.xdot.xdot_qt.DotWidget.animate_to (   self,
  x,
  y 
)

Definition at line 1688 of file xdot_qt.py.

◆ get_current_pos()

def smach_viewer.xdot.xdot_qt.DotWidget.get_current_pos (   self)

Definition at line 1486 of file xdot_qt.py.

◆ get_drag_action()

def smach_viewer.xdot.xdot_qt.DotWidget.get_drag_action (   self,
  event 
)

Definition at line 1598 of file xdot_qt.py.

◆ get_jump()

def smach_viewer.xdot.xdot_qt.DotWidget.get_jump (   self,
  x,
  y 
)

Definition at line 1707 of file xdot_qt.py.

◆ get_url()

def smach_viewer.xdot.xdot_qt.DotWidget.get_url (   self,
  x,
  y 
)

Definition at line 1703 of file xdot_qt.py.

◆ is_click()

def smach_viewer.xdot.xdot_qt.DotWidget.is_click (   self,
  event,
  click_fuzz = 4,
  click_timeout = 1.0 
)

Definition at line 1625 of file xdot_qt.py.

◆ keyPressEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.keyPressEvent (   self,
  event 
)

Definition at line 1568 of file xdot_qt.py.

◆ mouseMoveEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.mouseMoveEvent (   self,
  event 
)

Definition at line 1678 of file xdot_qt.py.

◆ mousePressEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.mousePressEvent (   self,
  event 
)

Definition at line 1609 of file xdot_qt.py.

◆ mouseReleaseEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.mouseReleaseEvent (   self,
  event 
)

Definition at line 1636 of file xdot_qt.py.

◆ on_area_scroll_event()

def smach_viewer.xdot.xdot_qt.DotWidget.on_area_scroll_event (   self,
  area,
  event 
)

Definition at line 1667 of file xdot_qt.py.

◆ on_area_size_allocate()

def smach_viewer.xdot.xdot_qt.DotWidget.on_area_size_allocate (   self,
  area,
  allocation 
)

Definition at line 1684 of file xdot_qt.py.

◆ on_zoom_100()

def smach_viewer.xdot.xdot_qt.DotWidget.on_zoom_100 (   self)

Definition at line 1564 of file xdot_qt.py.

◆ on_zoom_fit()

def smach_viewer.xdot.xdot_qt.DotWidget.on_zoom_fit (   self)

Definition at line 1560 of file xdot_qt.py.

◆ on_zoom_in()

def smach_viewer.xdot.xdot_qt.DotWidget.on_zoom_in (   self)

Definition at line 1552 of file xdot_qt.py.

◆ on_zoom_out()

def smach_viewer.xdot.xdot_qt.DotWidget.on_zoom_out (   self)

Definition at line 1556 of file xdot_qt.py.

◆ paintEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.paintEvent (   self,
  event = None 
)

Definition at line 1450 of file xdot_qt.py.

◆ register_select_callback()

def smach_viewer.xdot.xdot_qt.DotWidget.register_select_callback (   self,
  cb 
)

User callbacks.

Definition at line 1384 of file xdot_qt.py.

◆ reload()

def smach_viewer.xdot.xdot_qt.DotWidget.reload (   self)

Definition at line 1441 of file xdot_qt.py.

◆ set_current_pos()

def smach_viewer.xdot.xdot_qt.DotWidget.set_current_pos (   self,
  x,
  y 
)

Definition at line 1490 of file xdot_qt.py.

◆ set_dotcode()

def smach_viewer.xdot.xdot_qt.DotWidget.set_dotcode (   self,
  dotcode,
  filename = '<stdin>',
  center = True 
)

Definition at line 1390 of file xdot_qt.py.

◆ set_filter()

def smach_viewer.xdot.xdot_qt.DotWidget.set_filter (   self,
  filter 
)

Definition at line 1387 of file xdot_qt.py.

◆ set_highlight()

def smach_viewer.xdot.xdot_qt.DotWidget.set_highlight (   self,
  items 
)

Definition at line 1495 of file xdot_qt.py.

◆ set_xdotcode()

def smach_viewer.xdot.xdot_qt.DotWidget.set_xdotcode (   self,
  xdotcode,
  center = True 
)

Definition at line 1435 of file xdot_qt.py.

◆ wheelEvent()

def smach_viewer.xdot.xdot_qt.DotWidget.wheelEvent (   self,
  event 
)

Definition at line 1670 of file xdot_qt.py.

◆ window_to_graph()

def smach_viewer.xdot.xdot_qt.DotWidget.window_to_graph (   self,
  x,
  y 
)

Definition at line 1692 of file xdot_qt.py.

◆ zoom_image()

def smach_viewer.xdot.xdot_qt.DotWidget.zoom_image (   self,
  zoom_ratio,
  center = False,
  pos = None 
)

Definition at line 1500 of file xdot_qt.py.

◆ zoom_to_area()

def smach_viewer.xdot.xdot_qt.DotWidget.zoom_to_area (   self,
  x1,
  y1,
  x2,
  y2 
)

Definition at line 1518 of file xdot_qt.py.

◆ zoom_to_fit()

def smach_viewer.xdot.xdot_qt.DotWidget.zoom_to_fit (   self)

Definition at line 1532 of file xdot_qt.py.

Member Data Documentation

◆ animation

smach_viewer.xdot.xdot_qt.DotWidget.animation

Definition at line 1366 of file xdot_qt.py.

◆ ctx

smach_viewer.xdot.xdot_qt.DotWidget.ctx

Definition at line 1374 of file xdot_qt.py.

◆ dc

smach_viewer.xdot.xdot_qt.DotWidget.dc

Definition at line 1373 of file xdot_qt.py.

◆ drag_action

smach_viewer.xdot.xdot_qt.DotWidget.drag_action

Definition at line 1367 of file xdot_qt.py.

◆ filter [1/2]

string smach_viewer.xdot.xdot_qt.DotWidget.filter = 'dot'
static

Definition at line 1346 of file xdot_qt.py.

◆ filter [2/2]

smach_viewer.xdot.xdot_qt.DotWidget.filter

Definition at line 1388 of file xdot_qt.py.

◆ graph

smach_viewer.xdot.xdot_qt.DotWidget.graph

Definition at line 1350 of file xdot_qt.py.

◆ highlight

smach_viewer.xdot.xdot_qt.DotWidget.highlight

Definition at line 1369 of file xdot_qt.py.

◆ items_by_url

smach_viewer.xdot.xdot_qt.DotWidget.items_by_url

Definition at line 1375 of file xdot_qt.py.

◆ openfilename

smach_viewer.xdot.xdot_qt.DotWidget.openfilename

Definition at line 1351 of file xdot_qt.py.

◆ POS_INCREMENT

int smach_viewer.xdot.xdot_qt.DotWidget.POS_INCREMENT = 100
static

Definition at line 1381 of file xdot_qt.py.

◆ presstime

smach_viewer.xdot.xdot_qt.DotWidget.presstime

Definition at line 1368 of file xdot_qt.py.

◆ pressx

smach_viewer.xdot.xdot_qt.DotWidget.pressx

Definition at line 1621 of file xdot_qt.py.

◆ pressy

smach_viewer.xdot.xdot_qt.DotWidget.pressy

Definition at line 1622 of file xdot_qt.py.

◆ select_cbs

smach_viewer.xdot.xdot_qt.DotWidget.select_cbs

Definition at line 1372 of file xdot_qt.py.

◆ subgraph_shapes

smach_viewer.xdot.xdot_qt.DotWidget.subgraph_shapes

Definition at line 1421 of file xdot_qt.py.

◆ x

smach_viewer.xdot.xdot_qt.DotWidget.x

Definition at line 1491 of file xdot_qt.py.

◆ y

smach_viewer.xdot.xdot_qt.DotWidget.y

Definition at line 1363 of file xdot_qt.py.

◆ ZOOM_INCREMENT

float smach_viewer.xdot.xdot_qt.DotWidget.ZOOM_INCREMENT = 1.25
static

Definition at line 1379 of file xdot_qt.py.

◆ zoom_ratio

smach_viewer.xdot.xdot_qt.DotWidget.zoom_ratio

Definition at line 1364 of file xdot_qt.py.

◆ ZOOM_TO_FIT_MARGIN

int smach_viewer.xdot.xdot_qt.DotWidget.ZOOM_TO_FIT_MARGIN = 12
static

Definition at line 1380 of file xdot_qt.py.

◆ zoom_to_fit_on_resize

smach_viewer.xdot.xdot_qt.DotWidget.zoom_to_fit_on_resize

Definition at line 1365 of file xdot_qt.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