v_sim.GlExtBg¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
path to the background image.  | 
||
r/w  | 
display or not the background filename.  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.GlExtBg(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure.
New in version 3.7.
- classmethod new(name)¶
 - Parameters:
 name (
strorNone) – the name to give to the extension (default isv_sim.GL_EXT_BG_ID).- Returns:
 a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
 
Creates a new
v_sim.GlExtto draw bg.New in version 3.7.
- setCamera(zoom, xs, ys)¶
 - Parameters:
 - Returns:
 Trueif the settings are indeed changed.- Return type:
 
If the background image is in follow mode, see
v_sim.GlExtBg.setFollowCamera(), this routine is used to update the current camera settings of the background image.New in version 3.7.
- setFile(path)¶
 - 
Loads path and store it as a background image for the scene, see
v_sim.GlExtBg.setImage().New in version 3.8.
 
- setFollowCamera(follow, zoomInit, xs, ys)¶
 - Parameters:
 - Returns:
 Trueif the following status has been changed.- Return type:
 
When follow is
True, the size and the position of the background image is adjusted with every camera change.New in version 3.7.
- setImage(imageData, width, height, alpha, title, fit)¶
 - Parameters:
 
Draw the imageData on the background. The image is scaled to the viewport dimensions, keeping the width/height ratio, if fit is set to
True. If title is notNone, the title is also printed on the background. The image data are copied and can be free after this call.
Property Details¶
- v_sim.GlExtBg.props.background_file¶
 - 
path to the background image.