v_sim.DataColorizer¶
- Subclasses:
 
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
  | 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
active  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Gets emitted when colorizer characteristics have changed and a redraw is needed.  | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class v_sim.DataColorizer(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Structure used to define
v_sim.DataColorizerobjects.New in version 3.8.
- getActive()¶
 - 
Retrieve if self is actively changing the
v_sim.Nodecolours.New in version 3.8.
 
- getColor(visuData, node)¶
 - Parameters:
 visuData (
v_sim.Data) – av_sim.Dataobject.node (
v_sim.Node) – av_sim.Nodestructure.
- Returns:
 Trueif self can actually provide a colour for node.- rgba:
 a location for store a colour definition.
- Return type:
 
Call the class colorizer function of self to setup a colour in rgba for given node inside visuData. If there is no specific colour for this node and the default element colour should be used instead, this function returns
False.New in version 3.8.
- getScalingFactor(visuData, node)¶
 - Parameters:
 visuData (
v_sim.Data) – av_sim.Dataobject.node (
v_sim.Node) – av_sim.Nodestructure.
- Returns:
 a scaling factor.
- Return type:
 
Calls the class scaling function of self to retrieve a scaling factor for node in visuData.
New in version 3.8.
- setActive(status)¶
 - Parameters:
 status (
bool) – a boolean.- Returns:
 Trueif the status is actually changed.- Return type:
 
Changes the active status of self.
New in version 3.8.
- setDirty()¶
 - 
Notifies when self colorising parameters have been changed.
New in version 3.8.
 
- do_colorize(rgba, visuData, node) virtual¶
 - Parameters:
 rgba (
float) –visuData (
v_sim.Data) –node (
v_sim.Node) –
- Return type:
 
a method to colorize a given node according to a model.
- do_scale(visuData, node) virtual¶
 - Parameters:
 visuData (
v_sim.Data) –node (
v_sim.Node) –
- Return type:
 
a method to scale a given node according to a model.
Signal Details¶
- v_sim.DataColorizer.signals.dirty(data_colorizer)¶
 - Signal Name:
 dirty- Flags:
 - Parameters:
 data_colorizer (
v_sim.DataColorizer) – The object which received the signal
Gets emitted when colorizer characteristics have changed and a redraw is needed.
New in version 3.8.