v_sim.MethodSpin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The omega angle to orientate the colourisation cone. |
||
r/w |
The phi angle to orientate the colourisation cone. |
||
r/w |
The theta angle to orientate the colourisation cone. |
||
r/w |
The hiding policy for spin with a null modulus. |
||
r/w |
The scaling policy based on modulus value. |
||
r/w |
If atomic rendering is used in addition to spin rendering. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.MethodSpin(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Structure used to define
v_sim.MethodSpinobjects.Added in version 3.8.
- classmethod getDefault()¶
- Returns:
the default spin method object.
- Return type:
Access the default spin method object.
Added in version 3.8.
- classmethod new()¶
- Returns:
a newly allocated
v_sim.MethodSpinobject.- Return type:
Creates a
v_sim.MethodSpinobject.Added in version 3.8.
- getSpinVector(dataSpin, node)¶
- Parameters:
dataSpin (
v_sim.DataSpin) – av_sim.DataSpinobject.node (
v_sim.Node) – av_sim.Nodefrom dataSpin.
- Returns:
three floats representing the spin.
- ratio:
the ratio to apply when drawing the spin.
- rgb:
a location to store the colour.
- withAtomic:
a location to store if atomic rendering is required.
- Return type:
Retrieves the spin of node in spherical coordinates. According to rendering policy from self, ratio, rgb and withAtomic will be set to their respective values. If no spin should be rendered for node,
Noneis returned.Added in version 3.8.
Property Details¶
- v_sim.MethodSpin.props.cone_omega¶
-
The omega angle to orientate the colourisation cone.
- v_sim.MethodSpin.props.cone_phi¶
-
The phi angle to orientate the colourisation cone.
- v_sim.MethodSpin.props.cone_theta¶
-
The theta angle to orientate the colourisation cone.
- v_sim.MethodSpin.props.hiding_mode¶
-
The hiding policy for spin with a null modulus.
- v_sim.MethodSpin.props.modulus_scaling¶
-
The scaling policy based on modulus value.