Package Scientific :: Package QtWidgets :: Module QtVisualizationCanvas :: Class VisualizationCanvas
[hide private]
[frames] | no frames]

Class VisualizationCanvas



qt_fake.QWidget --+
                  |
                 VisualizationCanvas

Qt visualization widget

VisualizationCanvas objects support all operations of Qt widgets.

Interactive manipulation of the display is possible with click-and-drag operations. The left mouse button rotates the objects, the middle button translates it, and the right button scales it up or down.

Instance Methods [hide private]
  __init__(self, parent=None, background='white')
  _setsize(self)
  clear(self, keepscale=0)
Clear the canvas
  copyViewpointFrom(self, other)
  draw(self, graphics)
Draw something on the canvas
  mousePressEvent(self, event)
  mouseReleaseEvent(self, event)
  paintEvent(self, event)
  redraw(self)
  resizeEvent(self, event)
  setViewpoint(self, axis, plane, scale=None, translate=None)

Method Details [hide private]

__init__(self, parent=None, background='white')
(Constructor)

 
Parameters:
  • parent - the parent widget
  • background (str) - the background color

_setsize(self)

 

clear(self, keepscale=0)

 

Clear the canvas

copyViewpointFrom(self, other)

 

draw(self, graphics)

 

Draw something on the canvas
Parameters:

mousePressEvent(self, event)

 

mouseReleaseEvent(self, event)

 

paintEvent(self, event)

 

redraw(self)

 

resizeEvent(self, event)

 

setViewpoint(self, axis, plane, scale=None, translate=None)