Package examples :: Module qt :: Class Canvas
[hide private]
[frames] | no frames]

Class Canvas

source code

                         object --+                    
                                  |                    
                          ??.Object --+                
                                      |                
                  PySide.QtCore.QObject --+            
                                          |            
                         object --+       |            
                                  |       |            
                          ??.Object --+   |            
                                      |   |            
              PySide.QtGui.QPaintDevice --+            
                                          |            
                       PySide.QtGui.QWidget --+        
                                              |        
                      PySide.QtOpenGL.QGLWidget --+    
                                                  |    
                                 object --+       |    
                                          |       |    
glitter.utils.proxy.InstanceDescriptorMixin --+   |    
                                              |   |    
                                 object --+   |   |    
                                          |   |   |    
           glitter.utils.objects.StateMixin --+   |    
                                              |   |    
               glitter.contexts.context.Context --+    
                                                  |    
                       glitter.contexts.qt.QtWidget --+
                                                      |
                                                     Canvas

Nested Classes [hide private]

Inherited from PySide.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PySide.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
sizeHint(self) source code
 
loadMesh(self, filename) source code
 
mousePressEvent(self, event) source code
 
mouseMoveEvent(self, event) source code
 
resizeGL(self, w, h) source code
 
paintGL(self) source code
 
resetView(self) source code

Inherited from glitter.contexts.qt.QtWidget (private): _bind

Inherited from PySide.QtOpenGL.QGLWidget: __new__, autoBufferSwap, bindTexture, colormap, context, deleteTexture, doneCurrent, doubleBuffer, drawTexture, event, format, glDraw, glInit, grabFrameBuffer, initializeGL, initializeOverlayGL, isSharing, isValid, makeCurrent, makeOverlayCurrent, overlayContext, paintEngine, paintEvent, paintOverlayGL, qglClearColor, qglColor, renderPixmap, renderText, resizeEvent, resizeOverlayGL, setAutoBufferSwap, setColormap, setMouseTracking, swapBuffers, updateGL, updateOverlayGL

Inherited from PySide.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasMouseTracking, height, heightForWidth, hide, hideEvent, inputContext, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isVisible, isVisibleTo, isWindow, isWindowModified, keyPressEvent, keyReleaseEvent, languageChange, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseReleaseEvent, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, palette, parentWidget, pos, previousInFocusChain, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, repaint, resetInputContext, resize, restoreGeometry, saveGeometry, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputContext, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, winId, window, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, x, x11Info, x11PictureHandle, y

Inherited from PySide.QtCore.QObject: __delattr__, __getattribute__, __setattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, setObjectName, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from PySide.QtGui.QPaintDevice: colorCount, depth, heightMM, logicalDpiX, logicalDpiY, numColors, paintingActive, physicalDpiX, physicalDpiY, widthMM

Inherited from glitter.contexts.context.Context: __enter__, __exit__, bind

Inherited from glitter.utils.objects.StateMixin: __call__

Inherited from object: __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

    Global actions

Inherited from glitter.contexts.context.Context: clear, finish, flush, release_shader_compiler

Static Methods [hide private]

Inherited from PySide.QtOpenGL.QGLWidget: convertToGLFormat

Inherited from PySide.QtGui.QWidget: keyboardGrabber, mouseGrabber, setTabOrder

Inherited from PySide.QtCore.QObject: connect, disconnect, registerUserData

Class Variables [hide private]
  staticMetaObject = <PySide.QtCore.QMetaObject object at 0x433c...

Inherited from PySide.QtGui.QWidget: DrawChildren, DrawWindowBackground, IgnoreMask, customContextMenuRequested

Inherited from PySide.QtCore.QObject: destroyed

Inherited from PySide.QtGui.QPaintDevice: PdmDepth, PdmDpiX, PdmDpiY, PdmHeight, PdmHeightMM, PdmNumColors, PdmPhysicalDpiX, PdmPhysicalDpiY, PdmWidth, PdmWidthMM

Inherited from glitter.contexts.context.Context (private): _frozen

    Enums

Inherited from glitter.contexts.context.Context: blend_equations, blend_functions, color_read_formats, color_read_types, cull_face_modes, depth_functions, draw_buffers, front_face_modes, hints, logic_op_modes, polygon_modes, provoke_modes, provoking_vertices, read_buffers

    Buffer bindings

Inherited from glitter.contexts.context.Context: array_buffer_binding, atomic_counter_buffer_binding, copy_read_buffer_binding, copy_write_buffer_binding, draw_indirect_buffer_binding, element_array_buffer_binding, pixel_pack_buffer_binding, pixel_unpack_buffer_binding, texture_buffer_binding, transform_feedback_buffer_binding, uniform_buffer_binding

    Miscellaneous bindings

Inherited from glitter.contexts.context.Context: active_texture, current_program, draw_framebuffer_binding, program_pipeline_binding, read_framebuffer_binding, renderbuffer_binding, vertex_array_binding

    Properties with separate getters but joint setters

Inherited from glitter.contexts.context.Context: blend_dst_alpha, blend_dst_rgb, blend_equation_alpha, blend_equation_rgb, blend_src_alpha, blend_src_rgb, polygon_offset_factor, polygon_offset_units

    Miscellaneous enumerations

Inherited from glitter.contexts.context.Context: cull_face_mode, depth_func, draw_buffer, front_face, implementation_color_read_format, implementation_color_read_type, layer_provoking_vertex, logic_op_mode, polygon_mode, provoking_vertex, read_buffer, viewport_index_provoking_vertex

    Hints

Inherited from glitter.contexts.context.Context: fragment_shader_derivative_hint, line_smooth_hint, polygon_smooth_hint, texture_compression_hint

    Enabling and disabling

Inherited from glitter.contexts.context.Context: blend, color_logic_op, cull_face, depth_test, dither, line_smooth, polygon_offset_fill, polygon_offset_line, polygon_offset_point, polygon_smooth, scissor_test, stencil_test, vertex_program_point_size

    Boolean values

Inherited from glitter.contexts.context.Context: color_writemask, depth_writemask, doublebuffer, pack_lsb_first, pack_swap_bytes, shader_compiler, stereo, unpack_lsb_first, unpack_swap_bytes

    Float values

Inherited from glitter.contexts.context.Context: aliased_line_width_range, blend_color, color_clear_value, depth_clear_value, depth_range, line_width, line_width_granularity, line_width_range, point_fade_threshold_size, point_size, point_size_granularity, point_size_range, smooth_line_width_granularity, smooth_line_width_range

    Integer values

Inherited from glitter.contexts.context.Context: major_version, max_3d_texture_size, max_array_texture_layers, max_clip_distances, max_color_attachments, max_color_texture_samples, max_combined_fragment_uniform_components, max_combined_geometry_uniform_components, max_combined_texture_image_units, max_combined_uniform_blocks, max_combined_vertex_uniform_components, max_cube_map_texture_size, max_depth_texture_samples, max_draw_buffers, max_elements_indices, max_elements_vertices, max_fragment_input_components, max_fragment_uniform_blocks, max_fragment_uniform_components, max_fragment_uniform_vectors, max_geometry_input_components, max_geometry_output_components, max_geometry_texture_image_units, max_geometry_uniform_blocks, max_geometry_uniform_components, max_integer_samples, max_program_texel_offset, max_rectangle_texture_size, max_renderbuffer_size, max_sample_mask_words, max_server_wait_timeout, max_texture_buffer_size, max_texture_image_units, max_texture_lod_bias, max_texture_size, max_uniform_block_size, max_uniform_buffer_bindings, max_varying_vectors, max_vertex_attribs, max_vertex_output_components, max_vertex_texture_image_units, max_vertex_uniform_blocks, max_vertex_uniform_components, max_vertex_uniform_vectors, max_viewport_dims, max_viewports, min_program_texel_offset, minor_version, pack_alignment, pack_image_height, pack_row_length, pack_skip_images, pack_skip_pixels, pack_skip_rows, primitive_restart_index, sample_buffers, samples, scissor_box, stencil_clear_value, subpixel_bits, uniform_buffer_offset_alignment, unpack_alignment, unpack_image_height, unpack_row_length, unpack_skip_images, unpack_skip_pixels, unpack_skip_rows, viewport, viewport_bounds_range, viewport_subpixel_bits

    64-bit integer values

Inherited from glitter.contexts.context.Context: timestamp

    Strings

Inherited from glitter.contexts.context.Context: extensions, renderer, shading_language_version, vendor, version

Properties [hide private]

Inherited from PySide.QtGui.QPaintDevice: painters

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

sizeHint(self)

source code 
Overrides: PySide.QtGui.QWidget.sizeHint

mousePressEvent(self, event)

source code 
Overrides: PySide.QtGui.QWidget.mousePressEvent

mouseMoveEvent(self, event)

source code 
Overrides: PySide.QtGui.QWidget.mouseMoveEvent

resizeGL(self, w, h)

source code 
Overrides: PySide.QtOpenGL.QGLWidget.resizeGL

paintGL(self)

source code 
Overrides: PySide.QtOpenGL.QGLWidget.paintGL

Class Variable Details [hide private]

staticMetaObject

Value:
<PySide.QtCore.QMetaObject object at 0x433cb48>