v_sim.GlExtMapSet¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
field storing 3D data  | 
||
r/w  | 
colour used to draw isolines  | 
||
r/w  | 
manual range values  | 
||
r/w  | 
manual range maximum value  | 
||
r/w  | 
manual range minimum value  | 
||
r/w  | 
number of lines is the full range  | 
||
r/w  | 
map degree of adaptability  | 
||
r/w  | 
scaling method  | 
||
r/w  | 
shade used to colourise the map  | 
||
r/w  | 
use alpha channel according to field values  | 
||
r/w  | 
use manual range  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv  | 
r  | 
Class Details¶
- class v_sim.GlExtMapSet(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An opaque structure.
New in version 3.8.
- classmethod new(name)¶
 - Parameters:
 - Returns:
 a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
 
Creates a new
v_sim.GlExtto draw mapSet.New in version 3.7.
- addFromPlane(plane)¶
 - Parameters:
 plane (
v_sim.Plane) – av_sim.Planeobject.- Returns:
 the corresponding
v_sim.Map.- Return type:
 
Add a new map to the list of drawn mapSet. If color is
None, then iso-lines will be drawn in inverse color.New in version 3.8.
- export(map, filename, format)¶
 - Parameters:
 filename (
str) – a filename.format (
v_sim.MapExportFormat) – a format.
- Raises:
 - Returns:
 Trueif exportation is successful.- Return type:
 
Runs
v_sim.Map.export() on map with self shade and colour.New in version 3.8.
- getLegend()¶
 - Returns:
 the associated
v_sim.GlExtShadelegend.- Return type:
 
Retrieve the associated
v_sim.GlExtShadeobject used to draw the legend.New in version 3.8.
- getPlane(map)¶
 - Parameters:
 - Returns:
 the attached
v_sim.Planeif any.- Return type:
 
Retrieve the
v_sim.Planemap was build from (if any).New in version 3.8.
- getPrecision()¶
 - Returns:
 the precision value.
- Return type:
 
Return the rendering adaptability of map, or the general adaptability value if map is
None.New in version 3.8.
- getTransparent()¶
 - Returns:
 if map is rendered with transparency or not.
- Return type:
 
Return if field values are also used for alpha channel for map, or the general setting if map is
None.New in version 3.8.
- setField(field)¶
 - Parameters:
 field (
v_sim.ScalarField) – av_sim.ScalarFieldobject.
Associate field to the self.
New in version 3.8.
- setLineColor(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.GlExtMapSet.setShade()).New in version 3.8.
- setLines(nLines)¶
 - Parameters:
 nLines (
int) – a number.- Returns:
 Trueif the number of lines of self is changed.- Return type:
 
Set the number of iso-lines that are computed for each
v_sim.Mapin self. Contrary tov_sim.Map.setLines(), this routine set the same number of lines for everyv_sim.Mapand use the same bounds for all.New in version 3.8.
- setPlane(map, plane)¶
 - Parameters:
 plane (
v_sim.Plane) – av_sim.Planeobject.
Change the plane where map is projected on to plane.
New in version 3.8.
- setPrecision(prec)¶
 - Parameters:
 prec (
float) – a floating point value (default is 100).- 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.8.
- setScaling(scale)¶
 - Parameters:
 scale (
v_sim.MatrixScalingFlag) – av_sim.MatrixScalingFlagscaling method.- Returns:
 Trueif scaling function is changed.- Return type:
 
Set globally the scaling method for all
v_sim.Mapin self.New in version 3.8.
- setScalingRange(minMax)¶
 - Parameters:
 - Returns:
 Trueif the range is changed of self is changed.- Return type:
 
Set globally the scaling range for all
v_sim.Mapin self.New in version 3.8.
- setShade(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.8.
Property Details¶
- v_sim.GlExtMapSet.props.field¶
 - Name:
 field- Type:
 - Default Value:
 - Flags:
 
field storing 3D data
- v_sim.GlExtMapSet.props.line_color¶
 - Name:
 line-color- Type:
 - Default Value:
 - Flags:
 
colour used to draw isolines
- v_sim.GlExtMapSet.props.manual_range¶
 - Name:
 manual-range- Type:
 - Default Value:
 - Flags:
 
manual range values
- v_sim.GlExtMapSet.props.manual_range_max¶
 - 
manual range maximum value
 
- v_sim.GlExtMapSet.props.manual_range_min¶
 - 
manual range minimum value
 
- v_sim.GlExtMapSet.props.n_lines¶
 - 
number of lines is the full range
 
- v_sim.GlExtMapSet.props.precision¶
 - 
map degree of adaptability
 
- v_sim.GlExtMapSet.props.scale¶
 - 
scaling method
 
- v_sim.GlExtMapSet.props.shade¶
 - Name:
 shade- Type:
 - Default Value:
 - Flags:
 
shade used to colourise the map
- v_sim.GlExtMapSet.props.transparent¶
 - 
use alpha channel according to field values