v_sim.GlExt¶
- Subclasses:
 v_sim.GlExtAxes,v_sim.GlExtBg,v_sim.GlExtBox,v_sim.GlExtFrame,v_sim.GlExtInfos,v_sim.GlExtMaps,v_sim.GlExtMarks,v_sim.GlExtNodeVectors,v_sim.GlExtNodes,v_sim.GlExtPairs,v_sim.GlExtPaths,v_sim.GlExtPlanes,v_sim.GlExtScale,v_sim.GlExtSurfaces
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
extension is used or not  | 
||
r/w  | 
description of extension  | 
||
r/w  | 
object rendering is out of date  | 
||
r/w/c  | 
label (translated) of extension  | 
||
r/w/co  | 
number of GL lists dealt with  | 
||
r/w/co  | 
name (id) of extension  | 
||
r/w/c  | 
drawing priority of extension  | 
||
r/w  | 
specific rendering mode for the extension  | 
||
r/w/c  | 
save OpenGL state  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.GlExt(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Common name to refer to a #_VisuGlExt.
- call(lastOnly)¶
 - Parameters:
 lastOnly (
bool) – a boolean.
Select the
v_sim.GlExtmatching the given name and call it. The call is indeed done only if the extension is used. If lastOnly isTrue, the list is called only if it has av_sim.GL_EXT_PRIORITY_LASTpriority. On the contrary the list is called only if its priority is lower thanv_sim.GL_EXT_PRIORITY_LAST.
- completeDrawing()¶
 A method to be called after calling
v_sim.GlExt.startDrawing(), when the drawing primitives have all been called. It also reset the dirty flag for this extension.New in version 3.8.
- getActive()¶
 - 
Get if the extension is used or not. If not its ObjectList is not rendered.
 
- getGlList()¶
 - Returns:
 an OpenGL identifier id for self.
- Return type:
 
All
v_sim.GlExtobjects have a master OpenGL list to draw to. This routine gets the identifier of this list.New in version 3.7.
- getName()¶
 - Returns:
 the name of the extension.
- Return type:
 
Retrieve the name of the extension.
New in version 3.8.
- getPreferedRenderingMode()¶
 - Returns:
 the prefered rendering mode of this self.
- Return type:
 
Each
v_sim.GlExtmethod can draw in a mode different from the global one, seev_sim.GlRenderingMode. See alsov_sim.GlExt.setPreferedRenderingMode().New in version 3.7.
- getPriority()¶
 - Returns:
 the
v_sim.GlExtpriority.- Return type:
 
Inquire the priority of self.
New in version 3.8.
- rebuild()¶
 This routine does not sort the extension on their priority and should be used only to draw some selected extensions. This method is called automatically for all extensions in a
v_sim.GlExtSetwhen required.
- setActive(value)¶
 - 
Set if an extension is actually used or not.
 
- setDirty(status)¶
 - 
Set an internal flag to mark that self should be redrawn before next OpenGL frame view.
New in version 3.8.
 
- setGlContext(gl)¶
 - Parameters:
 - Returns:
 Trueif the value is actually changed.- Return type:
 
Associate gl to self.
New in version 3.8.
- setGlView(view)¶
 - Parameters:
 view (
v_sim.GlView) – av_sim.GlViewobject.- Returns:
 Trueif the view is changed.- Return type:
 
Attach a view to the self extension.
New in version 3.8.
- setPreferedRenderingMode(value)¶
 - Parameters:
 value (
v_sim.GlRenderingMode) – seev_sim.GlRenderingModeto choose one.- Returns:
 Trueif value is actually changed.- Return type:
 
This method is used to specify the rendering mode that the extension should use to be drawn. If the value is set to
v_sim.GlRenderingMode.FOLLOW, the extension follows the global setting for rendering mode.
- setTranslation(trans)¶
 - Parameters:
 trans ([
float]) – a translation vector in real space.- Returns:
 Trueif the translations are indeed changed.- Return type:
 
Change the translation the extension is drawn at.
New in version 3.8.
- startDrawing()¶
 Method to be called in the draw function to start compiling the list. Wghen drawing primitives are all done, call
v_sim.GlExt.completeDrawing().New in version 3.8.
- do_draw() virtual¶
 a draw method for this extension.
- do_rebuild() virtual¶
 This routine does not sort the extension on their priority and should be used only to draw some selected extensions. This method is called automatically for all extensions in a
v_sim.GlExtSetwhen required.
- do_setGlView(view) virtual¶
 - Parameters:
 view (
v_sim.GlView) – av_sim.GlViewobject.- Returns:
 Trueif the view is changed.- Return type:
 
Attach a view to the self extension.
New in version 3.8.
Property Details¶
- v_sim.GlExt.props.active¶
 - 
extension is used or not
 
- v_sim.GlExt.props.description¶
 - 
description of extension
 
- v_sim.GlExt.props.dirty¶
 - 
object rendering is out of date
 
- v_sim.GlExt.props.label¶
 - 
label (translated) of extension
 
- v_sim.GlExt.props.nGlObj¶
 - Name:
 nGlObj- Type:
 - Default Value:
 1- Flags:
 
number of GL lists dealt with
- v_sim.GlExt.props.name¶
 - Name:
 name- Type:
 - Default Value:
 ''- Flags:
 
name (id) of extension
- v_sim.GlExt.props.priority¶
 - 
drawing priority of extension
 
- v_sim.GlExt.props.rendering_mode¶
 - 
specific rendering mode for the extension