v_sim.UiGlWidget¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 v_sim.UiGlWidgetClass (1), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
|
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class v_sim.UiGlWidget(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Short name to address VisuUiGlWidget_struct objects.
- classmethod getCurrentContext()¶
 - Returns:
 the
v_sim.UiGlWidgetwith the current OpenGL context.- Return type:
 
Class routine that returns the OpenGL widget which has the current context.
- classmethod new(contextIsDirect)¶
 - Parameters:
 contextIsDirect (
bool) – a boolean.- Returns:
 a newly created widget.
- Return type:
 
Create a new OpenGL area inside a GTK widget. If contextIsDirect then it tries to initialise the OpenGL context to a direct one.
- setCurrent(force)¶
 - 
Make this object current. This means that all future OpenGL primitive will be rendered on this surface. If force is
True, the GL routine is actually called whereas in other cases, if self believe being already current, nothing is done. 
- setModel(model)¶
 - Parameters:
 model (
v_sim.GlExtSet) – av_sim.GlExtSetobject.
This method is used to defined a redraw method for the OpenGL area. By doing this the area will automatically redraw itself when necessary. Before doing it it calls
v_sim.UiGlWidget.setCurrent(), and after it calls swapGl().