v_sim.GlExtSet¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.GlExtSet(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a #_VisuGlExtSet.
- classmethod new()¶
- Returns:
a newly created
v_sim.GlExtSetobject.- Return type:
Create an object to handle a set of
v_sim.GlExtobjects and draw them together.New in version 3.8.
- add(ext)¶
- Parameters:
ext (
v_sim.GlExt) – av_sim.GlExtobject.- Returns:
Trueif not already existing.- Return type:
Add ext in the list of drawn
v_sim.GlExtby self.New in version 3.8.
- getAll()¶
- Returns:
only the container list should be freed after.
- Return type:
Retrieve as a
GLib.Listall thev_sim.GlExtobjects drawn by self.New in version 3.8.
- getByName(name)¶
- Parameters:
name (
str) – a name to look for.- Returns:
a
v_sim.GlExtwith name.- Return type:
Retrieve the
v_sim.GlExtobject with name that is stored in self. If severalv_sim.GlExtobjects have the same name, the first one is returned.New in version 3.8.
- getPixmapData(width, height, hasAlpha)¶
- Parameters:
- Returns:
image data, row by row.
- Return type:
[
int]
Create an image from the OpenGL area. The size can be changed, using width and height. If these pointers contains positive values, then they are used to set the size for the image. If not, the size of the current
v_sim.GlViewis used and stored in these pointers.New in version 3.8.
- initOffscreenContext()¶
- Raises:
- Returns:
Trueif a context is successfully created.- Return type:
Create an OpenGL context for offscreen rendering. After this call, the context is set current.
New in version 3.9.
- remove(ext)¶
- Parameters:
ext (
v_sim.GlExt) – av_sim.GlExtobject.- Returns:
Trueif successfully removed.- Return type:
Remove ext in the list of drawn
v_sim.GlExtby self.New in version 3.8.
- setGlView(view)¶
- Parameters:
view (
v_sim.GlView) – av_sim.GlViewobject.- Returns:
Trueif the view actually change.- Return type:
Apply the given view on all
v_sim.GlExtobjects stored in self.New in version 3.8.
- do_added(ext) virtual¶
- Parameters:
ext (
v_sim.GlExt) –
executed when ext is added.
- do_removed(ext) virtual¶
- Parameters:
ext (
v_sim.GlExt) –
executed when ext is removed.