vacca.synoptics module

Classes

VaccaSynoptic

class vacca.synoptics.VaccaSynoptic(parent=None, delay=0, designMode=False, updateMode=None, alias=None, resizable=True, panelClass=None)[source]

Overrides TaurusJDrawSynopticsView methods to highlight multiple items in multiple colors.

It allows to setup a delayed setModel call to reduce “hungs” on heavy synoptics. But!: This delayed call may cause problems in some versions of taurusGUI. (due to scene not-set yet)

static getDefaultIcon()[source]
Returns:The Default Icon Path.
getModelMimeData()[source]

Used for drag events

static getPanelDescription(NAME='Synoptic', JDRAW_FILE='', JDRAW_HOOK=None, JDRAW_TREE=[])[source]
Parameters:
  • NAME – Name for the Panel
  • JDRAW_FILE – synoptic configuration file
  • JDRAW_HOOK

    ‘’

  • JDRAW_TREE – None
Returns:

PanelDescription Object

setHighlightedItems(models=[], color=7)[source]
Parameters:
  • models – List of model to be Highlighted
  • color – Color, by default Qt.Qt.red

VaccaSynopticGraphicsFactory

class vacca.synoptics.VaccaSynopticGraphicsFactory(parent, alias=None, delayed=False)[source]

VaccaGraphicsScene

class vacca.synoptics.VaccaGraphicsScene(parent=None, strt=True)[source]
getItemByPosition(x, y)[source]

This method will try first with named objects; if failed then with itemAt

Functions

GetClassWithExtensions

vacca.synoptics.GetClassWithExtensions(klass)[source]

catched

vacca.synoptics.catched(f)[source]

vacca.synoptics.GetClassWithExtensions(klass)[source]
class vacca.synoptics.VaccaGraphicsScene(parent=None, strt=True)[source]

Bases: taurus.qt.qtgui.graphic.taurusgraphic.TaurusGraphicsScene

getItemByPosition(x, y)[source]

This method will try first with named objects; if failed then with itemAt

getSelectionMark(picture=None, w=10, h=10)[source]
selectionColor()[source]
setSelectionColor(color)[source]
class vacca.synoptics.VaccaSynoptic(parent=None, delay=0, designMode=False, updateMode=None, alias=None, resizable=True, panelClass=None)[source]

Bases: taurus.qt.qtgui.graphic.jdraw.jdraw_view.TaurusJDrawSynopticsView

Overrides TaurusJDrawSynopticsView methods to highlight multiple items in multiple colors.

It allows to setup a delayed setModel call to reduce “hungs” on heavy synoptics. But!: This delayed call may cause problems in some versions of taurusGUI. (due to scene not-set yet)

JDRAW_FILE = None
JDRAW_HOOK = None
JDRAW_TREE = None
static getDefaultIcon()[source]
Returns:The Default Icon Path.
getGraphicsFactory(delayed=False)[source]
getModelMimeData()[source]

Used for drag events

static getPanelDescription(NAME='Synoptic', JDRAW_FILE='', JDRAW_HOOK=None, JDRAW_TREE=[])[source]
Parameters:
  • NAME – Name for the Panel
  • JDRAW_FILE – synoptic configuration file
  • JDRAW_HOOK

    ‘’

  • JDRAW_TREE – None
Returns:

PanelDescription Object

setHighlightedItems(models=[], color=7)[source]
Parameters:
  • models – List of model to be Highlighted
  • color – Color, by default Qt.Qt.red
setModel(model)[source]
class vacca.synoptics.VaccaSynopticGraphicsFactory(parent, alias=None, delayed=False)[source]

Bases: taurus.qt.qtgui.graphic.jdraw.jdraw.TaurusJDrawGraphicsFactory

getGraphicsItem(type_, params)[source]
getSceneObj(items)[source]
vacca.synoptics.catched(f)[source]
vacca.synoptics.test(model, filters='', debug=False)[source]