v_sim.GlExtMaps¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
This signal is emitted when map is added to maps. |
|
This signal is emitted when map is removed to maps. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.GlExtMaps(**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_MAPS_ID).- Returns:
a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
Creates a new
v_sim.GlExtto draw maps.New in version 3.7.
- add(map, prec, shade, color, alpha)¶
- Parameters:
map (
v_sim.Map) – av_sim.Mapsobject.prec (
float) – rendering adaptivity level (default is 100).shade (
v_sim.Shade) – av_sim.Shadeobject.color (
v_sim.ColororNone) – av_sim.Colorobject.alpha (
bool) – a boolean.
- Returns:
Falseif surf was already reguistered.- Return type:
Add a new map to the list of drawn maps. If color is
None, then iso-lines will be drawn in inverse color. If alpha isTrue, the map will be rendered with alpha blending when values go to zero.New in version 3.7.
- iter_new()¶
- Returns:
a location to
v_sim.GlExtMapsIter.- Return type:
iter:
v_sim.GlExtMapsIter
Generate a new iterator to run over
v_sim.Mapobjects stored in self.New in version 3.8.
- remove(map)¶
- Parameters:
map (
v_sim.Map) – av_sim.Mapsobject.- Returns:
Trueif map was part of drawn maps.- Return type:
Removes map from the list of drawn maps.
New in version 3.7.
- setLineColor(map, color)¶
- Parameters:
color (
v_sim.ColororNone) – av_sim.Colorobject.
- Returns:
Trueif color of map is changed.- Return type:
Changes the rendered isoline color of map to color. If color is
None, then the isolines will be color inversed to thev_sim.Shadeof map (seev_sim.GlExtMaps.setShade()).New in version 3.7.
- setPrecision(map, prec)¶
- Parameters:
- Returns:
Trueif prec of map is changed.- Return type:
Changes the adaptative mesh of map. At a value of 200, there is no adaptivity and all triangles are rendered. At a level of 100, a variation of less than 3% on neighbouring triangles make them merged.
New in version 3.7.
- setShade(map, shade)¶
- Parameters:
shade (
v_sim.ShadeorNone) – av_sim.Shadeobject.
- Returns:
Trueif shade of map is changed.- Return type:
Changes the
v_sim.Shadeused to render data variation on the map.New in version 3.7.
- setTransparent(map, alpha)¶
- Parameters:
- Returns:
Trueif transparency of map is changed.- Return type:
Sets if map is rendered with transparency or not. If alpha is
True, the lower the rendered value is, the more transparent the colour will be.New in version 3.7.
- do_add(map, prec, shade, color, alpha) virtual¶
- Parameters:
map (
v_sim.Map) – av_sim.Mapsobject.prec (
float) – rendering adaptivity level (default is 100).shade (
v_sim.Shade) – av_sim.Shadeobject.color (
v_sim.ColororNone) – av_sim.Colorobject.alpha (
bool) – a boolean.
- Returns:
Falseif surf was already reguistered.- Return type:
Add a new map to the list of drawn maps. If color is
None, then iso-lines will be drawn in inverse color. If alpha isTrue, the map will be rendered with alpha blending when values go to zero.New in version 3.7.
- do_added(map) virtual¶
- Parameters:
map (
v_sim.Map) –
a method that is called when a
v_sim.Mapis added to av_sim.GlExtMapsobject.
- do_removed(map) virtual¶
- Parameters:
map (
v_sim.Map) –
a method that is called when a
v_sim.Mapis removed from av_sim.GlExtMapsobject.
Signal Details¶
- v_sim.GlExtMaps.signals.added(gl_ext_maps, map)¶
- Signal Name:
added- Flags:
- Parameters:
gl_ext_maps (
v_sim.GlExtMaps) – The object which received the signal
This signal is emitted when map is added to maps.
New in version 3.8.
- v_sim.GlExtMaps.signals.removed(gl_ext_maps, map)¶
- Signal Name:
removed- Flags:
- Parameters:
gl_ext_maps (
v_sim.GlExtMaps) – The object which received the signal
This signal is emitted when map is removed to maps.
New in version 3.8.