Package Scientific :: Package QtWidgets :: Module QtVisualizationCanvas :: Class VisualizationCanvas
[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
 
__init__(self, parent=None, background='white')
 
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

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

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

draw(self, graphics)

 

Draw something on the canvas

Parameters: