v_sim.Colorization¶
- Subclasses:
None
Methods¶
- Inherited:
v_sim.DataColorizerShaded (2), v_sim.DataColorizer (5), GObject.Object (37), v_sim.Sourceable (8), v_sim.NodeMasker (3)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
apply colorization on all nodes |
||
r/w |
box |
||
r/w |
column the blue channel is read from |
||
r/w |
column the green channel is read from |
||
r/w |
column the red channel is read from |
||
r/w |
column the size factor is read from |
||
r |
min / max values of data |
||
r |
number of columns |
||
r/w |
input normalisation scheme |
||
r/w |
min / max range to normalise data |
||
r/w |
colorization data is single variable |
||
r |
applied min and max values |
||
r |
Source file if any |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.Colorization(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure to store colorisation settings.
New in version 3.7.
- classmethod new()¶
- Returns:
a newly created
v_sim.Colorization.- Return type:
Create a new object to store colorisation data.
New in version 3.7.
- classmethod new_fromCLI(dataObj)¶
- Parameters:
dataObj (
v_sim.Data) – av_sim.Dataobject.- Raises:
- Returns:
a newly created
v_sim.Colorizationobject.- Return type:
Use all command line options related to colorization to create a new colorization object, storing its values in dataObj.
New in version 3.8.
- getColUsed()¶
- Returns:
a three value array, own by V_Sim. It should not be freed.
- Return type:
[
int]
This method is used to retrieve the vector used to adapt or not the colour to the value of the loaded data.
- getFile()¶
- Returns:
the name of the input data file if set.
- Return type:
If the given self has an input data file already loaded, it returns its name.
- getMax(column)¶
- Parameters:
column (
int) – a column id.- Returns:
the maximum bound if self is not
Noneor the default value if not.- Return type:
Retrieve the maximum value used when scaling is user defined.
- getMin(column)¶
- Parameters:
column (
int) – a column id.- Returns:
the minimum bound if self is not
Noneor the default value if not.- Return type:
Retrieve the minimum value used when scaling is user defined.
- getNColumns()¶
- Returns:
this number of columns, or -1 if none.
- Return type:
This method is used to retrieve the number of columns of data read in the loaded file.
- getRestrictInRange()¶
-
The colourisation can be applied on all nodes or on nodes within range. See
v_sim.Colorization.setRestrictInRange().New in version 3.7.
- getScaleType()¶
- Returns:
the scaling method if self is not
Noneor the default value if not.- Return type:
Retrieve the scaling method of input data associated to the given self.
- getScalingUsed()¶
- Returns:
-1 if no scaling is used.
- Return type:
Retrieve if a column is used as entry to scale the nodes.
- getSingleColumnId()¶
- Returns:
Falseif several columns are used, orTrueif a single column is used for the colourisation.- id:
a location to store a column id.
- Return type:
The colourisation can be applied from values coming from several columns. But, if only one column is used, this routine will give it in id.
- setBox(box)¶
- Parameters:
- Returns:
Trueif value has been changed.- Return type:
Change the associated box for self. This box is used for the coordinate colourisation.
New in version 3.8.
- setColUsed(val, pos)¶
- Parameters:
- Returns:
Trueifv_sim.NodeArray::RenderingChangedshould be emitted.- Return type:
Choose if the loaded value should change the given channel of the colour.
- setColUsedArr(vals)¶
- Parameters:
vals ([
int]) – the new columns to be used per channel.- Returns:
Trueif any changes.- Return type:
Setup all three channels at once, see
v_sim.Colorization.setColUsed().New in version 3.8.
- setMax(max, column)¶
- Parameters:
- Returns:
Trueifv_sim.NodeArray::RenderingChangedshould be emitted.- Return type:
When the scaling method is
v_sim.ColorizationInputScaleId.MINMAX(seev_sim.ColorizationInputScaleId) min and max value for convert input data are user defined. Use this method to choose the maximum bound. This method raises a error if no input file has already been associated to the give visuData.
- setMin(min, column)¶
- Parameters:
- Returns:
Trueifv_sim.NodeArray::RenderingChangedshould be emitted.- Return type:
When the scaling method is
v_sim.ColorizationInputScaleId.MINMAX(seev_sim.ColorizationInputScaleId) min and max value for convert input data are user defined. Use this method to choose the minimum bound. This method raises a error if no input file has already been associated to the give visuData.
- setNodeModel(values)¶
- Parameters:
values (
v_sim.NodeValuesFarrayorNone) – av_sim.NodeValuesFarrayobject.
Change the
v_sim.NodeValuesFarraythis self is associated to.New in version 3.8.
- setRestrictInRange(status)¶
-
The colourisation can be applied on all nodes or on nodes within range. See
v_sim.Colorization.getRestrictInRange() andv_sim.Colorization.setMin() andv_sim.Colorization.setMax().New in version 3.7.
- setScaleType(scale)¶
- Parameters:
scale (
v_sim.ColorizationInputScaleId) – an integer.- Returns:
Trueifv_sim.NodeArray::RenderingChangedshould be emitted.- Return type:
This method is used to change the scale method used on input data. See
v_sim.ColorizationInputScaleIdfor further informations. This method raises a error if no input file has already been associated to the give visuData.
Property Details¶
- v_sim.Colorization.props.apply_all¶
-
apply colorization on all nodes
- v_sim.Colorization.props.box¶
-
box
- v_sim.Colorization.props.column_blue¶
-
column the blue channel is read from
- v_sim.Colorization.props.column_green¶
-
column the green channel is read from
- v_sim.Colorization.props.column_red¶
-
column the red channel is read from
- v_sim.Colorization.props.column_size¶
-
column the size factor is read from
- v_sim.Colorization.props.data_min_max¶
- Name:
data-min-max- Type:
- Default Value:
- Flags:
min / max values of data
- v_sim.Colorization.props.n_columns¶
-
number of columns
- v_sim.Colorization.props.normalisation¶
-
input normalisation scheme
- v_sim.Colorization.props.range_min_max¶
- Name:
range-min-max- Type:
- Default Value:
- Flags:
min / max range to normalise data
- v_sim.Colorization.props.single_param¶
-
colorization data is single variable
- v_sim.Colorization.props.single_range¶
-
applied min and max values